/* =============================================================================
   Client Theme — main.css
   A clean, semantic skeleton. Design tokens via CSS custom properties.
   All visual decisions (colors, fonts, brand) are set in :root only.
   ============================================================================= */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────────── */

:root {
    /* Colors — update these to match the brand */
    --color-primary:        #1a1a1a;
    --color-primary-light:  #2e2e2e;
    --color-accent:         #c8973a;     /* warm gold — common in hospitality */
    --color-accent-dark:    #a67c2e;
    --color-bg:             #ffffff;
    --color-bg-alt:         #f7f5f0;     /* off-white for alternating sections */
    --color-text:           #1a1a1a;
    --color-text-muted:     #6b6b6b;
    --color-border:         #e0ddd8;
    --color-white:          #ffffff;
    --color-overlay:        rgba(0, 0, 0, 0.45);

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;    /* placeholder — swap for brand font */
    --font-body:    'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;       /* 16px */
    --line-height-base: 1.65;
    --line-height-tight: 1.2;

    /* Spacing scale */
    --space-xs:   0.25rem;   /*  4px */
    --space-sm:   0.5rem;    /*  8px */
    --space-md:   1rem;      /* 16px */
    --space-lg:   1.5rem;    /* 24px */
    --space-xl:   2.5rem;    /* 40px */
    --space-2xl:  4rem;      /* 64px */
    --space-3xl:  6rem;      /* 96px */

    /* Layout */
    --container-max:   1200px;
    --container-pad:   1.5rem;
    --section-spacing: var(--space-3xl);

    /* Borders & Radius */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --border:     1px solid var(--color-border);

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.4s ease;

    /* Z-index layers */
    --z-header:  100;
    --z-overlay: 200;
    --z-modal:   300;
}


/* ── 2. RESET & BASE ──────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

address {
    font-style: normal;
}

/* Visually hidden (accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ── 3. LAYOUT UTILITIES ─────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--section-spacing);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-xl);
}

.section__heading--center {
    text-align: center;
}


/* ── 4. TYPOGRAPHY ───────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* Prose — rich text output from WYSIWYG fields */
.prose h2,
.prose h3,
.prose h4 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.prose p,
.prose li {
    max-width: 70ch;
}

.prose ul,
.prose ol {
    list-style: initial;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
}

.prose strong { font-weight: 700; }
.prose em     { font-style: italic; }


/* ── 5. BUTTONS ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-white);
}


/* ── 6. HEADER ───────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background-color: var(--color-bg);
    border-bottom: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    height: 72px;
}

.site-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-header__logo-img {
    max-height: 48px;
    width: auto;
}

.site-header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Primary Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.site-nav__list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.site-nav__list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
    width: 100%;
}

.site-nav__list .current-menu-item > a {
    color: var(--color-accent);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ── 7. HERO ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.hero--home {
    min-height: 640px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: var(--space-3xl);
    max-width: 720px;
}

.hero__headline {
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 60ch;
}

.hero__cta {
    margin-top: var(--space-sm);
}

/* Generic page hero (no BG image) */
.page-hero--generic,
.page-hero--archive {
    background-color: var(--color-bg-alt);
    padding-block: var(--space-2xl);
    border-bottom: var(--border);
}

.page-hero__title {
    color: var(--color-text);
}

.page-hero__desc {
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}


/* ── 8. HOME PAGE SECTIONS ───────────────────────────────────────────────── */

/* Intro */
.section--intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.section--intro__img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: var(--border);
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    margin: 0 auto var(--space-lg);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon-img {
    max-width: 100%;
    max-height: 100%;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* CTA Banner */
.section--cta-banner {
    position: relative;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding-block: var(--space-3xl);
}

.section--cta-banner__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-overlay);
    z-index: 1;
}

.section--cta-banner__content {
    position: relative;
    z-index: 2;
}

.section--cta-banner__heading {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.section--cta-banner__subtext {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    max-width: 60ch;
    margin-inline: auto;
}


/* ── 9. ABOUT PAGE ───────────────────────────────────────────────────────── */

.section--story__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.section--story__img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.team-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-card__img {
    transform: scale(1.04);
}

.team-card__info {
    padding: var(--space-lg);
}

.team-card__name {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.team-card__role {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.team-card__bio {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}


/* ── 10. FAQ PAGE ─────────────────────────────────────────────────────────── */

.section--faq__inner {
    max-width: 800px;
    margin-inline: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item__question {
    display: block;
}

.faq-item__trigger {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-bg);
    transition: background-color var(--transition-fast);
}

.faq-item__trigger:hover {
    background-color: var(--color-bg-alt);
}

.faq-item__trigger[aria-expanded="true"] {
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
}

/* +/− icon */
.faq-item__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-item__icon::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item__icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon::before {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item__answer {
    padding: 0 var(--space-lg) var(--space-lg);
    background-color: var(--color-bg-alt);
}

.faq-item__answer[hidden] {
    display: none;
}


/* ── 11. CONTACT PAGE ─────────────────────────────────────────────────────── */

.section--contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.section--contact__intro {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.contact-detail__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.contact-detail__value {
    font-size: 1rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

a.contact-detail__value:hover {
    color: var(--color-accent);
}

/* Hours table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table__row {
    border-bottom: var(--border);
}

.hours-table__row:last-child {
    border-bottom: none;
}

.hours-table__day,
.hours-table__time {
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.hours-table__day {
    font-weight: 600;
    width: 55%;
}

.hours-table__time {
    color: var(--color-text-muted);
}

/* Map */
.section--map {
    padding: 0;
}

.map-embed {
    display: block;
    line-height: 0;
}

.map-embed iframe {
    display: block;
    width: 100%;
}


/* ── 12. BLOG ────────────────────────────────────────────────────────────── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    border: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail {
    transform: scale(1.04);
}

.post-card__body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.post-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.post-card__title a:hover {
    color: var(--color-accent);
}

.post-card__excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    flex: 1;
}

.post-card__read-more {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: underline;
}

/* Single post */
.single-post__header {
    background-color: var(--color-bg-alt);
    padding-block: var(--space-2xl);
    border-bottom: var(--border);
}

.single-post__meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-md);
}

.single-post__title {
    max-width: 800px;
}

.single-post__featured-image {
    margin-block: var(--space-2xl);
}

.single-post__thumbnail {
    border-radius: var(--radius-md);
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.single-post__content {
    padding-block: var(--space-xl);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-2xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: var(--border);
    font-size: 0.875rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}


/* ── 13. FOOTER ──────────────────────────────────────────────────────────── */

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: var(--space-3xl);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer__logo {
    max-height: 48px;
    width: auto;
    margin-bottom: var(--space-md);
}

.site-footer__site-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-md);
}

.site-footer__tagline {
    font-size: 0.9375rem;
    opacity: 0.7;
}

.site-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__nav-list a {
    font-size: 0.9375rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.site-footer__nav-list a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__phone,
.site-footer__email {
    font-size: 0.9375rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.site-footer__phone:hover,
.site-footer__email:hover {
    opacity: 1;
    color: var(--color-accent);
}

.site-footer__address {
    font-size: 0.875rem;
    opacity: 0.65;
    line-height: 1.6;
}

.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-end;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
    font-size: 0.875rem;
}

.site-footer__social-link:hover {
    opacity: 1;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Placeholder social icon text (swap with real icons/SVG later) */
.social-icon--facebook::before  { content: 'f'; font-weight: 700; }
.social-icon--instagram::before { content: '◻'; }
.social-icon--x::before         { content: '𝕏'; }

.site-footer__bottom {
    padding-block: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer__copyright {
    font-size: 0.8125rem;
    opacity: 0.5;
    text-align: center;
}


/* ── 14. FOCUS & ACCESSIBILITY ─────────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}


/* ── 15. RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    .site-footer__social {
        align-items: flex-start;
        flex-direction: row;
    }
}

@media (max-width: 768px) {

    :root {
        --section-spacing: 3rem;
        --container-pad:   1rem;
    }

    /* Header */
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--color-bg);
        border-bottom: var(--border);
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
        gap: var(--space-md);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    /* Two-column sections → single column */
    .section--intro__inner,
    .section--story__inner,
    .section--contact__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Footer */
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .site-footer__social {
        flex-direction: row;
    }

    /* Hero */
    .hero {
        min-height: 380px;
    }

    .hero--home {
        min-height: 460px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}
