/* ========================================
   Koffies — Specialty Coffee & Craft Drinks
   Kennewick, WA
   ======================================== */

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

:root {
    --navy: #0F1C3F;
    --navy-light: #1A2D54;
    --navy-dark: #091229;
    --gold: #C8A45E;
    --gold-light: #D4B76E;
    --gold-pale: #F5EDD6;
    --cream: #FAF8F4;
    --cream-dark: #F3EFE6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --text-on-dark: #E8E4DC;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: 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(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -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;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Label --- */
.label-line {
    display: inline-block;
    width: 32px;
    height: 1px;
    background-color: var(--gold);
    vertical-align: middle;
    margin-right: 12px;
}

.label-text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    vertical-align: middle;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
}

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

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
}

.btn-ghost {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-ghost:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 28, 63, 0.06);
    transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
    box-shadow: 0 1px 30px rgba(15, 28, 63, 0.06);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

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

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

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

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold);
    transition: color 0.3s var(--ease-smooth);
}

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

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--navy);
    transition: all 0.3s var(--ease-smooth);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--navy);
    transition: color 0.3s var(--ease-smooth);
}

.mobile-menu-link:hover {
    color: var(--gold);
}

.mobile-menu-cta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-top: 1rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding: 72px 0 0;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.hero-meta-sep {
    color: var(--gold);
}

.hero-meta a {
    color: var(--navy);
    transition: color 0.3s var(--ease-smooth);
}

.hero-meta a:hover {
    color: var(--gold);
}

/* Hero Images */
.hero-images {
    position: relative;
    height: 700px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
}

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

.hero-img--primary {
    width: 380px;
    height: 520px;
    top: 0;
    right: 0;
    z-index: 1;
}

.hero-img--secondary {
    width: 280px;
    height: 200px;
    bottom: 80px;
    left: 0;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(15, 28, 63, 0.12);
}

.hero-accent {
    position: absolute;
    bottom: 0;
    right: 40px;
    z-index: 3;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.hero-line {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-top: 0;
}

/* --- About --- */
.about {
    padding: 8rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.about-label {
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
}

.about-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.about-body {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(15, 28, 63, 0.08);
}

.stat {
    flex: 1;
    padding: 1.5rem 0;
    border-right: 1px solid rgba(15, 28, 63, 0.08);
}

.stat--sep {
    border-right: none;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* --- Menu --- */
.menu {
    padding: 8rem 0;
    background-color: var(--cream);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.menu-category {
    padding: 2.5rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 28, 63, 0.05);
    transition: box-shadow 0.4s var(--ease-smooth);
}

.menu-category:hover {
    box-shadow: 0 20px 60px rgba(15, 28, 63, 0.06);
}

.menu-category-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 164, 94, 0.3);
}

.menu-list {
    list-style: none;
}

.menu-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(15, 28, 63, 0.05);
}

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

.menu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

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

.menu-item-detail {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.menu-item-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.menu-note {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-light);
    margin-top: 3rem;
    font-style: italic;
}

/* --- Experience --- */
.experience {
    padding: 8rem 0;
    background-color: var(--navy);
    color: var(--white);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.experience-header .label-text {
    color: var(--gold);
}

.experience-header .label-line {
    background-color: var(--gold);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.experience-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 2rem;
}

.text-gold {
    color: var(--gold);
}

.experience-body {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.experience-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}

.feature-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-on-dark);
    line-height: 1.5;
}

.experience-images {
    position: relative;
    height: 600px;
}

.exp-img {
    position: absolute;
    overflow: hidden;
}

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

.exp-img--1 {
    width: 280px;
    height: 380px;
    top: 0;
    left: 0;
    z-index: 1;
}

.exp-img--2 {
    width: 220px;
    height: 160px;
    top: 60px;
    right: 0;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exp-img--3 {
    width: 260px;
    height: 200px;
    bottom: 0;
    right: 20px;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Visit --- */
.visit {
    padding: 8rem 0;
    background-color: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.visit-info {
    display: flex;
    flex-direction: column;
}

.visit-info > .label-line,
.visit-info > .label-text {
    margin-bottom: 0;
}

.visit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.visit-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 3rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.visit-detail-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

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

.visit-detail-link {
    color: var(--navy);
    transition: color 0.3s var(--ease-smooth);
}

.visit-detail-link:hover {
    color: var(--gold);
}

.visit-map {
    min-height: 450px;
    background-color: var(--cream-dark);
    border: 1px solid rgba(15, 28, 63, 0.06);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(30%) contrast(1.05);
}

/* --- Footer --- */
.footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-on-dark);
    opacity: 0.6;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-on-dark);
    opacity: 0.6;
    transition: all 0.3s var(--ease-smooth);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-phone {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gold);
    transition: color 0.3s var(--ease-smooth);
}

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

.footer-address {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-on-dark);
    opacity: 0.6;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-on-dark);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
    }

    .hero-images {
        height: 550px;
    }

    .hero-img--primary {
        width: 300px;
        height: 420px;
    }

    .hero-img--secondary {
        width: 220px;
        height: 160px;
    }

    .menu-grid {
        gap: 1.5rem;
    }

    .experience-images {
        height: 480px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 3rem 2rem 2rem;
    }

    .hero-images {
        display: none;
    }

    .hero-line {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 0;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(15, 28, 63, 0.08);
        padding: 1rem 0;
    }

    .stat--sep {
        border-bottom: none;
    }

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

    .menu-category {
        padding: 2rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-images {
        height: 350px;
        order: -1;
    }

    .exp-img--1 {
        width: 200px;
        height: 260px;
    }

    .exp-img--2 {
        width: 160px;
        height: 120px;
    }

    .exp-img--3 {
        width: 180px;
        height: 140px;
    }

    .experience-features {
        grid-template-columns: 1fr;
    }

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

    .visit-map {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about, .menu, .experience, .visit {
        padding: 5rem 0;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
