/* Le Comptoir - Redesigned CSS */

@font-face {
    font-family: 'Playfair Display';
    src: url('/static/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --cream:        #F5EFE4;
    --parchment:    #EDE1CC;
    --warm-white:   #FAF6EF;
    --gold:         #B8965A;
    --gold-light:   #D4AC6E;
    --gold-muted:   #8A6E3E;
    --forest:       #2E3B2A;
    --forest-mid:   #3D4F38;
    --charcoal:     #1C1C18;
    --ink:          #2A2419;
    --mist:         #8A9085;

    --font-display: 'Playfair Display', Georgia, serif;

    --max-w: 1100px;
    --pad-x: clamp(1.5rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-display);
    background-color: var(--warm-white);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

/* HERO */
.hero {
    position: relative;
    min-height: 100svh;
    background-color: var(--forest);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-texture {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(184,150,90,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(184,150,90,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--pad-x);
    border-bottom: 1px solid rgba(184,150,90,0.2);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,239,228,0.7);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-light); }

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--pad-x);
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-logo-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 2.5rem;
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    position: relative;
    z-index: 2;
}

.hero-logo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(184,150,90,0.35);
    animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.04); }
}

.hero-overline {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 1.25rem;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(245,239,228,0.65);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(184,150,90,0.5);
    padding: 0.8rem 2.5rem;
    border-radius: 2px;
    transition: all 0.35s;
}

.hero-cta:hover {
    background-color: var(--gold);
    color: var(--forest);
    border-color: var(--gold);
}

.hero-scroll-hint {
    text-align: center;
    padding-bottom: 2rem;
    color: rgba(184,150,90,0.4);
    font-size: 1.2rem;
    animation: bob 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* INTRO */
.intro-section {
    background-color: var(--parchment);
    padding: 5rem var(--pad-x);
}

.intro-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-rule {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
    opacity: 0.6;
}

.intro-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--forest);
    margin-bottom: 1.25rem;
}

.intro-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.9;
}

.intro-text strong {
    font-weight: 600;
    color: var(--forest);
}

/* PANELS */
.panels-section {
    background-color: var(--warm-white);
    padding: 4rem var(--pad-x);
}

.panels-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.panel:hover { transform: translateY(-5px); }

.panel-img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    background-color: var(--forest-mid);
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel:hover .panel-img-wrap {
    box-shadow: 0 8px 28px rgba(184,150,90,0.25);
    border-color: var(--gold-light);
}

.panel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.panel-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 400;
}

/* Shared Section Typography */
.section-overline {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--forest);
    margin-bottom: 1.5rem;
}

.section-heading em {
    font-style: italic;
    color: var(--gold-muted);
}

.section-heading-center {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--forest);
    text-align: center;
    margin-bottom: 2rem;
}

.body-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.9;
}

.body-text strong {
    font-weight: 600;
    color: var(--forest);
}

/* PROFILE */
.profile-section {
    background-color: var(--cream);
    padding: 6rem var(--pad-x);
}

.profile-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.profile-img-frame {
    position: relative;
}

.profile-img-frame::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    opacity: 0.4;
    pointer-events: none;
}

.profile-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(8%) contrast(1.02);
}

/* EVENTS */
.events-section {
    background-color: var(--forest);
    padding: 6rem var(--pad-x);
}

.events-section .section-overline { color: var(--gold-light); }
.events-section .section-heading { color: var(--cream); }
.events-section .section-heading em { color: var(--gold-light); }
.events-section .body-text { color: rgba(245,239,228,0.75); }
.events-section .body-text strong { color: var(--cream); }

.events-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: center;
}

.events-img-frame {
    position: relative;
}

.events-img-frame::after {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 1px solid rgba(184,150,90,0.35);
    border-radius: 4px;
    pointer-events: none;
}

.events-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

/* GALLERY */
.gallery-section {
    background-color: var(--parchment);
    padding: 5rem var(--pad-x);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item:first-child {
    grid-column: span 2;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46,59,42,0.35) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:first-child .gallery-img { height: 380px; }

.gallery-item:hover .gallery-img { transform: scale(1.06); }

/* CONTACT */
.contact-section {
    background-color: var(--charcoal);
    padding: 7rem var(--pad-x);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: 'Le Comptoir';
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 14rem);
    font-style: italic;
    color: rgba(255,255,255,0.025);
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    letter-spacing: -0.02em;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-overline { color: var(--gold-light); }

.contact-heading {
    color: var(--cream);
    margin-bottom: 1.25rem;
}

.contact-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(245,239,228,0.55);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.contact-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--gold-light);
    border: 1px solid rgba(184,150,90,0.5);
    padding: 1rem 2.5rem;
    border-radius: 2px;
    transition: all 0.35s;
}

.contact-btn:hover {
    background-color: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    letter-spacing: 0.18em;
}

/* FOOTER */
.site-footer {
    background-color: var(--forest);
    padding: 2.5rem var(--pad-x);
    text-align: center;
    border-top: 1px solid rgba(184,150,90,0.2);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(245,239,228,0.4);
}

.footer-copy a {
    color: rgba(245,239,228,0.55);
    transition: color 0.3s;
}

.footer-copy a:hover { color: var(--gold-light); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }

    .hero-title { font-size: 2.8rem; }

    .profile-inner,
    .events-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .events-inner { direction: ltr; }

    .profile-img-frame::before,
    .events-img-frame::after { display: none; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .gallery-item:first-child { grid-column: span 1; }

    .gallery-img,
    .gallery-item:first-child .gallery-img { height: 200px; }

    .contact-section::before { font-size: 5rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-img { height: 240px; }
    .panels-grid { gap: 1rem; }
    .panel-img-wrap { width: 100px; height: 100px; }
}