/* ============================================================
   scire.bar — Knowledge Bar
   Colors: #1a0e0a (Mahogany), #d4a039 (Amber Glow),
           #f0e8d8 (Cream Linen), #8b5e34 (Whiskey),
           #3a2218 (Leather), #ffd699 (Candlelight)
   Fonts: Cormorant Garamond (Display), Lora (Body),
          Josefin Sans (Labels)
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #1a0e0a;
    color: #f0e8d8;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Grain Texture Overlay ---- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---- Typography Base ---- */
.label-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b5e34;
}

/* ---- Light Pools ---- */
section {
    position: relative;
}

.light-pool {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.light-pool--hero {
    background: radial-gradient(ellipse at 50% 40%, rgba(212, 160, 57, 0.10) 0%, rgba(212, 160, 57, 0.04) 35%, transparent 65%);
}

.light-pool--section {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 160, 57, 0.07) 0%, transparent 60%);
}

.light-pool--quote {
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 160, 57, 0.09) 0%, transparent 55%);
}

.light-pool--manifesto {
    background: radial-gradient(ellipse at 50% 35%, rgba(212, 160, 57, 0.08) 0%, transparent 60%);
}

/* ---- Ornaments & Dividers ---- */
.gold-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4a039, transparent);
    margin: 1.25rem 0 1.75rem;
}

.gold-divider--short {
    max-width: 120px;
    margin: 1rem auto 0.75rem;
}

.hero-ornament,
.manifesto-footer,
.footer-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem auto;
    max-width: 160px;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 160, 57, 0.5));
}

.hero-ornament .ornament-line:last-child,
.manifesto-footer .ornament-line:last-child,
.footer-ornament .ornament-line:last-child {
    background: linear-gradient(to left, transparent, rgba(212, 160, 57, 0.5));
}

.ornament-diamond {
    font-size: 0.6rem;
    color: #d4a039;
    line-height: 1;
}

.ornament-diamond.small {
    font-size: 0.45rem;
}

/* ---- Atmospheric Breaks ---- */
.atmospheric-break {
    height: 60px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(26, 14, 10, 0.8) 50%,
        transparent
    );
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
}

.hero-content .label-text {
    margin-bottom: 16px;
    letter-spacing: 0.25em;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: 0.08em;
    color: #d4a039;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow:
        0 0 60px rgba(212, 160, 57, 0.25),
        0 0 120px rgba(212, 160, 57, 0.10);
}

.hero-sub {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #f0e8d8;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hero-latin {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8b5e34;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-invitation {
    letter-spacing: 0.2em;
    margin-top: 4px;
}

/* Hero scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: scroll-hint-appear 1s ease 3s forwards;
}

.scroll-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.scroll-arrow {
    font-size: 0.9rem;
    color: rgba(212, 160, 57, 0.6);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes scroll-hint-appear {
    to { opacity: 1; }
}

/* ============================================================
   FADE REVEAL — Hero (slow fade from dark)
   ============================================================ */
.fade-reveal {
    opacity: 0;
    animation: hero-reveal 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}

@keyframes hero-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   FADE IN — Scroll-triggered elements
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MENU SECTIONS
   ============================================================ */
.menu-section {
    padding: 80px 24px;
}

.section-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .label-text {
    margin-bottom: 12px;
    display: block;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: 0.05em;
    color: #ffd699;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(212, 160, 57, 0.15);
}

.section-intro {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #f0e8d8;
    opacity: 0.75;
    font-style: italic;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Menu Cards ---- */
.menu-card {
    background: rgba(58, 34, 24, 0.6);
    border: 1px solid rgba(212, 160, 57, 0.3);
    padding: 2rem 2.5rem;
    margin: 2rem auto;
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: border-color 0.4s ease,
                box-shadow 0.4s ease,
                background 0.4s ease;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 160, 57, 0.05) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-card:hover {
    border-color: rgba(212, 160, 57, 0.6);
    background: rgba(58, 34, 24, 0.75);
    box-shadow: 0 0 40px rgba(212, 160, 57, 0.06),
                inset 0 0 30px rgba(212, 160, 57, 0.03);
}

.menu-card:hover::before {
    opacity: 1;
}

.card-category {
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    display: block;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    letter-spacing: 0.04em;
    color: #ffd699;
    margin-bottom: 4px;
}

/* ---- Menu Items ---- */
.menu-item {
    margin-bottom: 1.5rem;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.item-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: #ffd699;
    white-space: nowrap;
}

.item-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(212, 160, 57, 0.35);
    margin-bottom: 4px;
    min-width: 20px;
}

.item-meta {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b5e34;
    white-space: nowrap;
}

.item-desc {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #f0e8d8;
    opacity: 0.82;
    padding-left: 0;
}

/* ============================================================
   QUOTE SECTIONS
   ============================================================ */
.quote-section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.quote-inner {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.featured-quote {
    position: relative;
}

.quote-mark {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 0.5;
    color: rgba(212, 160, 57, 0.2);
    font-weight: 600;
}

.open-quote {
    margin-bottom: 12px;
}

.close-quote {
    margin-top: 12px;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: #ffd699;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.quote-attribution {
    margin-top: 8px;
}

.quote-cite {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #8b5e34;
    font-style: normal;
    text-transform: uppercase;
}

/* ============================================================
   MANIFESTO SECTION
   ============================================================ */
.manifesto-section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.manifesto-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(58, 34, 24, 0.5);
    border: 1px solid rgba(212, 160, 57, 0.25);
    padding: 3rem 3rem;
    transition: border-color 0.4s ease;
}

.manifesto-inner:hover {
    border-color: rgba(212, 160, 57, 0.5);
}

.manifesto-inner .label-text {
    display: block;
    margin-bottom: 12px;
}

.manifesto-inner .section-heading {
    margin-bottom: 0;
}

.manifesto-text {
    margin-top: 1.5rem;
    text-align: left;
}

.manifesto-text p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #f0e8d8;
    opacity: 0.88;
    margin-bottom: 1.1rem;
}

.manifesto-text p:last-child {
    margin-bottom: 0;
}

.manifesto-footer {
    margin-top: 1.75rem;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    padding: 60px 24px 80px;
    display: flex;
    justify-content: center;
}

.footer-inner {
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-ornament {
    margin-bottom: 28px;
}

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #d4a039;
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(212, 160, 57, 0.2);
}

.footer-sub {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #f0e8d8;
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 12px;
}

.footer-tagline {
    margin-bottom: 20px;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
}

.footer-inner .gold-divider {
    max-width: 200px;
    margin: 16px auto;
}

.footer-credit {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    opacity: 0.6;
    margin-top: 12px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .fade-reveal {
        animation: none;
        opacity: 1;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fade-in.visible {
        opacity: 1;
        transform: none;
    }

    .scroll-arrow {
        animation: none;
    }

    .hero-scroll-hint {
        animation: none;
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .menu-card {
        padding: 1.5rem 1.25rem;
    }

    .manifesto-inner {
        padding: 2rem 1.5rem;
    }

    .quote-section {
        padding: 60px 24px;
    }

    .menu-section {
        padding: 60px 16px;
    }

    .item-name {
        font-size: 1rem;
    }

    .quote-mark {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .menu-card {
        padding: 1.25rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .menu-item-header {
        flex-wrap: wrap;
    }

    .item-dots {
        display: none;
    }

    .item-meta {
        order: 3;
        flex-basis: 100%;
        margin-top: -2px;
        margin-bottom: 4px;
    }
}
