/* ═══════════════════════════════════════════════════════════
   KEYS COFFEE COMPANY — Styles
   Palette: Deep Navy (#0D1B2A) · Warm Gold (#C8A45E)
   Fonts: Cormorant Garamond (serif) · Inter (sans)
   ═══════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #FAFAF8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #0D1B2A;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8A45E;
    margin-bottom: 16px;
}

/* ── Section Title ── */
.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    margin-bottom: 24px;
    color: #0D1B2A;
}

.section-title--center {
    text-align: center;
}

/* ── Section Lead ── */
.section-lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 560px;
    margin: 0 auto;
}

.section-lead--center {
    text-align: center;
}

/* ── Section Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin-bottom: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #C8A45E;
    color: #0D1B2A;
    border-color: #C8A45E;
}

.btn-primary:hover {
    background-color: #b8933f;
    border-color: #b8933f;
}

.btn-outline-light {
    background-color: transparent;
    color: #FAFAF8;
    border-color: rgba(250, 250, 248, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(250, 250, 248, 0.1);
    border-color: #FAFAF8;
}

.btn-outline-dark {
    background-color: transparent;
    color: #0D1B2A;
    border-color: #0D1B2A;
}

.btn-outline-dark:hover {
    background-color: #0D1B2A;
    color: #FAFAF8;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 164, 94, 0.15);
    transition: background 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #FAFAF8;
    letter-spacing: 0.02em;
}

.nav-logo-icon circle {
    stroke: #C8A45E;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(250, 250, 248, 0.75);
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #C8A45E;
}

.nav-cta {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: #C8A45E !important;
    border: 1px solid rgba(200, 164, 94, 0.4);
    padding: 8px 18px;
    border-radius: 2px;
    transition: all 0.25s ease !important;
}

.nav-cta:hover {
    background-color: rgba(200, 164, 94, 0.12);
    border-color: #C8A45E;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #FAFAF8;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    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(
        135deg,
        rgba(13, 27, 42, 0.82) 0%,
        rgba(13, 27, 42, 0.65) 50%,
        rgba(13, 27, 42, 0.50) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 24px;
    text-align: center;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C8A45E;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: #FAFAF8;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(250, 250, 248, 0.78);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(250, 250, 248, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 28px;
}

.about-text p {
    color: #444;
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-text .lead {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(13, 27, 42, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #0D1B2A;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: #777;
    letter-spacing: 0.04em;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(200, 164, 94, 0.35);
    border-radius: 2px;
    z-index: -1;
}

/* ═══════════════════════════════════════════════════════════
   MENU
   ═══════════════════════════════════════════════════════════ */
.menu {
    padding: 120px 0;
    background-color: #0D1B2A;
}

.menu .section-eyebrow {
    color: #C8A45E;
}

.menu .section-title {
    color: #FAFAF8;
}

.menu .section-lead {
    color: rgba(250, 250, 248, 0.65);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 64px;
}

.menu-category {
    padding: 40px;
    background: rgba(250, 250, 248, 0.04);
    border: 1px solid rgba(200, 164, 94, 0.15);
    border-radius: 2px;
    transition: border-color 0.3s ease;
}

.menu-category:hover {
    border-color: rgba(200, 164, 94, 0.35);
}

.menu-category-icon {
    margin-bottom: 20px;
}

.menu-category-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #FAFAF8;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(200, 164, 94, 0.2);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.menu-item-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FAFAF8;
}

.menu-item-desc {
    font-size: 0.82rem;
    color: rgba(250, 250, 248, 0.45);
    text-align: right;
    flex-shrink: 0;
    max-width: 200px;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.88rem;
    color: rgba(250, 250, 248, 0.4);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials {
    padding: 120px 0;
    background-color: #F5F3EE;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.testimonial-card {
    padding: 40px 32px;
    background: #FAFAF8;
    border-radius: 2px;
    border: 1px solid rgba(13, 27, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(13, 27, 42, 0.08);
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.82rem;
    font-weight: 500;
    color: #0D1B2A;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   VISIT
   ═══════════════════════════════════════════════════════════ */
.visit {
    padding: 120px 0;
    background-color: #FAFAF8;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8A45E;
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.6;
}

.visit-link {
    color: #0D1B2A;
    border-bottom: 1px solid rgba(200, 164, 94, 0.4);
    transition: border-color 0.2s ease;
}

.visit-link:hover {
    border-color: #C8A45E;
}

.visit-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.visit-map {
    border-radius: 2px;
    overflow: hidden;
    height: 460px;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background-color: #0D1B2A;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #FAFAF8;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(250, 250, 248, 0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8A45E;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(250, 250, 248, 0.55);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C8A45E;
}

.footer-link-phone {
    color: rgba(250, 250, 248, 0.55);
    transition: color 0.2s ease;
}

.footer-link-phone:hover {
    color: #C8A45E;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 248, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(250, 250, 248, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL (progressive enhancement)
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .menu-grid {
        gap: 24px;
    }

    .menu-category {
        padding: 28px;
    }

    .visit-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 360px;
    }

    .about-image::after {
        display: none;
    }

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

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

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .visit-map {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(13, 27, 42, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
        gap: 28px;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        border-bottom: 1px solid rgba(200, 164, 94, 0.15);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        gap: 28px;
        flex-wrap: wrap;
    }

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

    .menu-item {
        flex-direction: column;
        gap: 4px;
    }

    .menu-item-desc {
        text-align: left;
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .about,
    .menu,
    .gallery,
    .testimonials,
    .visit {
        padding: 80px 0;
    }

    .menu-category {
        padding: 24px;
    }

    .visit-cta {
        flex-direction: column;
    }

    .visit-cta .btn {
        width: 100%;
    }
}
