/* Reset & base */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #2b2b2b;
    --color-muted: #6b6b6b;
    --color-accent: #9e7d3f;
    --color-accent-dark: #6b4f28;
    --color-link: #5d431f;
    --color-dark: #1a1a1a;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --max-width: 1100px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
}

/* Prevent layout shift while Google Fonts loads */
.fonts-loading h1, .fonts-loading h2, .fonts-loading h3, .fonts-loading .logo {
    font-family: Georgia, 'Times New Roman', serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-text);
}

.main-nav a:not(.btn),
.btn,
.footer-nav a,
.hero-actions a,
.about-text a {
    text-decoration: none;
}

.about-text a {
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-text);
    text-shadow: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a:not(.btn) {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100svh - var(--header-height));
    padding: 4rem 1rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.45), rgba(26, 26, 26, 0.55));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 0.25em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    gap: 1.25rem;
}

.highlight {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.highlight-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.highlight-label {
    color: var(--color-muted);
    font-weight: 500;
}

/* Team */
.team {
    background: var(--color-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.team-card:hover {
    transform: translateY(-6px);
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-card-body {
    padding: 1.5rem;
}

.team-card-body h3 {
    margin-bottom: 0.35em;
}

.team-card-body p {
    color: var(--color-muted);
    margin: 0;
}

/* Gallery */
.gallery {
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.contact-info {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    padding: 0.6rem 0;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hours-table th {
    width: 40%;
    font-weight: 500;
}

address {
    font-style: normal;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.contact-list li {
    margin-bottom: 0.35rem;
}

/* Map */
.map-section {
    padding: 0 0 5rem;
}

.map-section .container {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-section h2 {
    padding: 1.5rem 1.5rem 0;
    text-align: left;
    margin-bottom: 1rem;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: #c8c8c8;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #c8c8c8;
}

.footer-nav a:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 800px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-surface);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 1rem;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 0.9rem 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a.btn {
        margin-top: 0.75rem;
        border: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
