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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #4a4a4a;
    --coral: #E8644A;
    --coral-light: #f0806a;
    --coral-pale: #fdf0ee;
    --cream: #faf8f6;
    --cream-dark: #f0ece6;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --line: rgba(26, 26, 26, 0.08);
    --line-strong: rgba(26, 26, 26, 0.15);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.7;
    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 24px;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), padding 0.3s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line-strong);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.3s var(--ease-smooth);
}

.nav.scrolled .nav-inner {
    padding: 14px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: color 0.4s var(--ease-smooth);
}

.nav.scrolled .nav-logo {
    color: var(--charcoal);
}

.nav-logo-icon {
    color: var(--white);
    transition: color 0.4s var(--ease-smooth);
}

.nav.scrolled .nav-logo-icon {
    color: var(--charcoal);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--white);
}

.nav.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}

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

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth) !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--charcoal) !important;
    color: var(--charcoal) !important;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--charcoal) !important;
    border-color: var(--white) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--charcoal);
    color: var(--white) !important;
}

.nav-cta::after {
    display: none !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-smooth);
    transform-origin: center;
}

.nav.scrolled .nav-toggle span {
    background: var(--charcoal);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

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

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
    transition: opacity 0.3s var(--ease-smooth);
}

.mobile-menu a:hover {
    opacity: 0.6;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 30%, #3d2a24 60%, #4a3028 80%, #1a1a1a 100%);
    z-index: 0;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(232, 100, 74, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 100, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 50%, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
}

.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 44px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

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

.btn-primary:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 100, 74, 0.3);
}

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

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

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

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ─── Sections ─── */
.section {
    padding: 120px 0;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

/* ─── About ─── */
.about {
    background: var(--cream);
}

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

.about-image {
    position: relative;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--coral);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.3;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid var(--line-strong);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
}

/* ─── Roasts ─── */
.roasts {
    background: var(--white);
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.roast-card {
    background: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-smooth);
}

.roast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 26, 26, 0.08);
}

.roast-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5/3.8;
}

.roast-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.roast-card:hover .roast-card-image img {
    transform: scale(1.04);
}

.roast-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.roast-card-body {
    padding: 28px 24px;
}

.roast-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.roast-notes {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--coral);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.roast-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.roast-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--line-strong);
}

.roast-disclaimer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Visit ─── */
.visit {
    background: var(--cream);
}

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

.visit-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 44px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.visit-detail svg {
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.visit-detail span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.visit-image {
    position: relative;
}

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

.visit-image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--coral);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.3;
}

/* ─── Quote ─── */
.quote {
    background: var(--charcoal);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(232, 100, 74, 0.08) 0%, transparent 70%);
}

.quote .container {
    position: relative;
    z-index: 1;
}

.quote-mark {
    color: var(--coral);
    margin-bottom: 32px;
}

blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 28px;
    letter-spacing: -0.01em;
}

.quote-source {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.quote-source em {
    color: var(--coral-light);
    font-style: normal;
    font-weight: 500;
}

/* ─── Contact ─── */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 44px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 44px;
    border-top: 1px solid var(--line-strong);
}

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

.contact-item-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-item-value {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 400;
}

.contact-item-value a {
    color: var(--charcoal);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.contact-item-value a:hover {
    border-color: var(--coral);
    color: var(--coral);
}

/* Form */
.contact-form-wrapper {
    background: var(--cream);
    padding: 40px;
    border-radius: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.3s var(--ease-smooth);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 2px;
    color: #166534;
    font-size: 0.875rem;
    margin-top: 8px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* ─── Footer ─── */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer .nav-logo {
    color: var(--white);
}

.footer-links h4,
.footer-hours h4 {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s var(--ease-smooth);
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s var(--ease-smooth);
}

.footer-bottom a:hover {
    color: var(--coral-light);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }

    .roast-grid {
        gap: 24px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 80px;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section {
        padding: 80px 0;
    }

    .about-grid,
    .visit-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image::before {
        top: -10px;
        left: -10px;
    }

    .visit-image {
        order: -1;
    }

    .visit-image::after {
        bottom: -10px;
        right: -10px;
    }

    .roast-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 28px 24px;
    }

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

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

    .quote {
        padding: 80px 24px;
    }
}

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

    .hero-eyebrow {
        margin-bottom: 20px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .roast-card-body {
        padding: 24px 20px;
    }
}
