/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight: #0a1f3f;
    --midnight-light: #132d54;
    --midnight-dark: #061428;
    --mint: #5eead4;
    --mint-dark: #3ecfb8;
    --mint-light: #a7f3d0;
    --cream: #f8f6f2;
    --cream-dark: #ede9e0;
    --warm-gray: #6b6560;
    --warm-gray-light: #9e9790;
    --text-dark: #1a1a1a;
    --text-light: #f5f3ef;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(10, 31, 63, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 31, 63, 0.1);
    --shadow-lg: 0 8px 40px rgba(10, 31, 63, 0.12);
    --radius: 4px;
    --radius-lg: 8px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    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 24px;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

.nav.scrolled {
    background: rgba(10, 31, 63, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 14px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    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(--text-light);
    letter-spacing: 0.01em;
}

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

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 243, 239, 0.85);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

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

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

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

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

.btn-mint {
    background: var(--mint);
    color: var(--midnight-dark);
    border-color: var(--mint);
}

.btn-mint:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(94, 234, 212, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(245, 243, 239, 0.5);
}

.btn-outline-light:hover {
    border-color: var(--mint);
    color: var(--mint);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.9rem;
}

/* ========== 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-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 20, 40, 0.88) 0%,
        rgba(10, 31, 63, 0.82) 40%,
        rgba(19, 45, 84, 0.70) 100%
    );
}

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

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--mint);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(245, 243, 239, 0.75);
    max-width: 580px;
    margin: 0 auto 40px;
}

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

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

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

/* ========== FEATURE STRIP ========== */
.feature-strip {
    background: var(--midnight);
    padding: 0;
}

.feature-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    padding: 40px 24px;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.feature-icon {
    color: var(--mint);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(245, 243, 239, 0.9);
    letter-spacing: 0.04em;
}

.feature-divider {
    width: 1px;
    height: 32px;
    background: rgba(94, 234, 212, 0.25);
    flex-shrink: 0;
}

/* ========== SECTION COMMON ========== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--warm-gray);
}

/* ========== ROASTS ========== */
.roasts {
    background: var(--cream);
}

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

.roast-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.roast-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.roast-card-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.roast-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.roast-card:hover .roast-card-visual img {
    transform: scale(1.05);
}

.roast-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(10, 31, 63, 0.85), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.roast-origin, .roast-process {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
}

.roast-process {
    color: rgba(245, 243, 239, 0.7);
}

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

.roast-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 8px;
}

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

.roast-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 16px;
}

.roast-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--midnight);
    background: var(--mint-light);
    padding: 5px 12px;
    border-radius: 20px;
}

/* ========== ABOUT ========== */
.about {
    background: var(--midnight);
    padding: 100px 0;
}

.about .section-eyebrow {
    color: var(--mint);
}

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

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

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--midnight);
}

.about-image-accent img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 243, 239, 0.72);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(94, 234, 212, 0.2);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--mint);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 243, 239, 0.55);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(94, 234, 212, 0.2);
}

/* ========== VISIT ========== */
.visit {
    background: var(--cream);
}

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

.visit-info {
    padding: 20px 0;
}

.visit-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-bottom: 40px;
}

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

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

.visit-icon {
    color: var(--mint-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--midnight);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--warm-gray);
}

.visit-detail a {
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

.visit-detail a:hover {
    color: var(--mint-dark);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* ========== CONTACT ========== */
.contact {
    background: var(--midnight-light);
    padding: 100px 0;
}

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

.contact-text .section-eyebrow {
    color: var(--mint);
}

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

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(245, 243, 239, 0.7);
}

.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.1em;
    text-transform: uppercase;
    color: rgba(245, 243, 239, 0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 243, 239, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    background: rgba(255, 255, 255, 0.09);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--midnight);
    color: var(--text-light);
}

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

.form-note {
    font-size: 0.8rem;
    color: rgba(245, 243, 239, 0.4);
    margin-top: 4px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: var(--radius-lg);
}

.form-success svg {
    color: var(--mint);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-light);
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(245, 243, 239, 0.7);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--midnight-dark);
    padding: 64px 0 0;
}

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

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

.footer-logo-icon {
    color: var(--mint);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 243, 239, 0.5);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(245, 243, 239, 0.6);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 243, 239, 0.5);
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(245, 243, 239, 0.5);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--mint);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    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(245, 243, 239, 0.35);
}

/* ========== REVEAL ANIMATIONS ========== */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .roast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roast-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--midnight-dark);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    }

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

    .nav-links a {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .hero-sub {
        font-size: 1rem;
    }

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

    .feature-strip-inner {
        flex-direction: column;
        gap: 20px;
    }

    .feature-divider {
        display: none;
    }

    .feature-item {
        justify-content: center;
    }

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

    .roast-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

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

    .about-image-accent {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
        width: 100%;
    }

    .about-image-main img {
        height: 320px;
    }

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

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

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

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

    .section {
        padding: 72px 0;
    }
}

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

    .hero-content {
        padding: 100px 16px 60px;
    }

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