/* ========================================
   Colburn Coffee — Editorial Style
   Plum + Amber Palette
   ======================================== */

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

:root {
    /* Plum palette */
    --plum-50: #faf5f7;
    --plum-100: #f5e9ed;
    --plum-200: #ebccd6;
    --plum-300: #d9a3b3;
    --plum-400: #c47a90;
    --plum-500: #a85570;
    --plum-600: #8c3f58;
    --plum-700: #723147;
    --plum-800: #5e2a3c;
    --plum-900: #4f2432;
    --plum-950: #2a1119;

    /* Amber palette */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Neutrals */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--plum-700);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--neutral-900);
    margin-bottom: var(--space-lg);
}

.text-amber {
    color: var(--amber-600);
}

.text-plum {
    color: var(--plum-600);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--amber {
    background: var(--amber-500);
    color: var(--neutral-950);
    border-color: var(--amber-500);
}

.btn--amber:hover {
    background: var(--amber-600);
    border-color: var(--amber-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.btn--plum {
    background: var(--plum-700);
    color: white;
    border-color: var(--plum-700);
}

.btn--plum:hover {
    background: var(--plum-800);
    border-color: var(--plum-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 49, 71, 0.35);
}

.btn--ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background: white;
    color: var(--neutral-900);
    border-color: white;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.logo-mark {
    font-size: 1.5rem;
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: var(--transition);
    position: relative;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-950);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(42, 17, 25, 0.92) 0%,
            rgba(79, 36, 50, 0.85) 50%,
            rgba(114, 49, 71, 0.78) 100%
        ),
        url('https://images.pexels.com/photos/31484078/pexels-photo-31484078.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-4xl) var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: white;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--plum-200);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--plum-300);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--plum-300), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

/* --- About --- */
.about {
    background: var(--neutral-50);
}

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.about-content p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--neutral-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--plum-600);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Menu --- */
.menu {
    background: var(--plum-950);
}

.menu .section-eyebrow {
    color: var(--amber-400);
}

.menu .section-title {
    color: white;
}

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

.menu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.menu-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.menu-card-content {
    padding: var(--space-lg);
}

.menu-card-title {
    font-size: 1.35rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.menu-card-desc {
    font-size: 0.9rem;
    color: var(--plum-200);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

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

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.875rem;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-list li span:first-child {
    color: white;
    font-weight: 500;
}

.menu-list li span:last-child {
    color: var(--amber-400);
    font-size: 0.8rem;
}

.menu-note {
    text-align: center;
    color: var(--plum-300);
    font-size: 0.875rem;
    margin-top: var(--space-xl);
    font-style: italic;
}

/* --- Origin --- */
.origin {
    background: var(--neutral-100);
}

.origin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.origin-text p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.origin-text .btn {
    margin-top: var(--space-lg);
}

.origin-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.origin-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.origin-image-secondary {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 55%;
}

.origin-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--neutral-100);
}

/* --- Visit --- */
.visit {
    background: var(--neutral-50);
}

.visit-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    text-align: left;
}

.visit-detail {
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.visit-detail:hover {
    border-color: var(--plum-300);
    box-shadow: 0 12px 30px rgba(168, 85, 112, 0.1);
    transform: translateY(-4px);
}

.visit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-50);
    border-radius: var(--radius-md);
    color: var(--plum-600);
    margin-bottom: var(--space-sm);
}

.visit-detail h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-500);
    margin-bottom: var(--space-xs);
}

.visit-detail p {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.7;
}

.visit-detail a {
    color: var(--plum-600);
    font-weight: 500;
    transition: var(--transition);
}

.visit-detail a:hover {
    color: var(--plum-800);
    text-decoration: underline;
}

/* --- Contact --- */
.contact {
    background: var(--plum-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info .section-title {
    color: white;
}

.contact-info p {
    color: var(--plum-200);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--amber-400);
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--amber-300);
    transform: translateX(4px);
}

/* --- Form --- */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--plum-200);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--plum-300);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber-500);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #4ade80;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Footer --- */
.footer {
    background: var(--neutral-950);
    padding: var(--space-2xl) 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.footer-copy {
    color: var(--neutral-500);
    font-size: 0.8rem;
}

.footer-address {
    color: var(--neutral-600);
    font-size: 0.8rem;
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--neutral-50);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--neutral-700);
    }

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

    .about-grid,
    .origin-split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-image {
        order: -1;
    }

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

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

    .menu-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .origin-images {
        order: -1;
    }

    .origin-image-secondary {
        position: relative;
        width: 100%;
        bottom: 0;
    }

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

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .section {
        padding: var(--space-3xl) 0;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
