/* =============================================
   KEAMS CANYON CAFE — Styles
   Palette: Burgundy (#781f2d) + Blush (#f5e6e0)
   Fonts: Cormorant Garamond + Inter
   ============================================= */

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

:root {
    --color-burgundy: #781f2d;
    --color-burgundy-deep: #5a1520;
    --color-burgundy-light: #9e2a3d;
    --color-blush: #f5e6e0;
    --color-blush-light: #faf3f0;
    --color-cream: #faf7f5;
    --color-dark: #1a1414;
    --color-text: #2c2020;
    --color-text-muted: #7a6565;
    --color-line: rgba(120, 31, 45, 0.12);
    --color-white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-line);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 247, 245, 0.97);
    box-shadow: 0 1px 20px rgba(120, 31, 45, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-burgundy);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-burgundy);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-burgundy);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--color-burgundy);
    color: var(--color-white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background var(--transition), transform var(--transition);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-burgundy-deep);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--color-burgundy);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 20, 20, 0.55) 0%,
        rgba(26, 20, 20, 0.70) 50%,
        rgba(26, 20, 20, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: var(--space-lg) var(--space-md);
    color: var(--color-white);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blush);
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--color-burgundy);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(120, 31, 45, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ── */
.section {
    padding: var(--space-2xl) 0;
}

.section--light {
    background: var(--color-blush-light);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

.section-eyebrow--light {
    color: var(--color-blush);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-title--light {
    color: var(--color-white);
}

.section-lead {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.section-lead--light {
    color: rgba(255, 255, 255, 0.6);
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-content {
    padding: var(--space-md) 0;
}

.about-content .lead {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-line);
}

.stat {
    text-align: left;
}

.stat--divider {
    padding-left: var(--space-md);
    border-left: 1px solid var(--color-line);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-burgundy);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ── Menu ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.menu-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--transition), background var(--transition);
}

.menu-category:hover {
    border-color: rgba(245, 230, 224, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-category-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-white);
}

.menu-category-icon {
    color: var(--color-blush);
    opacity: 0.6;
}

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

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-white);
}

.menu-item-desc {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    margin-top: var(--space-lg);
    font-style: italic;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: auto;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(6) {
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Visit ── */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.visit-info {
    padding: var(--space-lg) 0;
}

.visit-info .section-lead {
    margin: 0 0 var(--space-lg);
    text-align: left;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.visit-icon {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-burgundy);
    opacity: 0.7;
}

.visit-detail-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.visit-link {
    color: var(--color-burgundy);
    font-weight: 400;
    transition: color var(--transition);
}

.visit-link:hover {
    color: var(--color-burgundy-light);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 4px 40px rgba(120, 31, 45, 0.1);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* ── Footer ── */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 8px;
    max-width: 260px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-blush);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-md);
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-category:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 247, 245, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--color-line);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .nav-link--cta {
        text-align: center;
        margin-top: var(--space-sm);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about-image-wrap {
        max-height: 400px;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .stat--divider {
        border-left: none;
        padding-left: 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-category:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        aspect-ratio: 4/3;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .visit-map iframe {
        min-height: 300px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        aspect-ratio: 4/3;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-scroll {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}
