/* ============================================
   APPALACHIAN MERCANTILE & GOOD COFFEE
   Vibrant Modern · Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2B;
    --burgundy-light: #9E3A4C;
    --blush: #F5E6D3;
    --blush-light: #FDF6EE;
    --blush-mid: #E8D0BC;
    --cream: #FFFAF5;
    --dark: #1A0E12;
    --dark-soft: #2D1519;
    --text: #2D1519;
    --text-light: #6B4C52;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(123, 45, 59, 0.08);
    --shadow-md: 0 8px 30px rgba(123, 45, 59, 0.12);
    --shadow-lg: 0 20px 60px rgba(123, 45, 59, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: 16px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
}

.text-accent {
    color: var(--burgundy);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}
.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}
.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--burgundy);
    line-height: 1.2;
}

.logo em {
    font-style: italic;
    color: var(--burgundy-light);
}

.logo-light {
    color: var(--white);
}
.logo-light em {
    color: var(--blush);
}

.logo-icon {
    color: var(--burgundy);
    flex-shrink: 0;
}

.logo-light .logo-icon {
    color: var(--blush);
}

/* ---------- NAV ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--burgundy);
    position: relative;
    transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--burgundy);
    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: 8px;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(123, 45, 59, 0.08);
    color: var(--burgundy);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--burgundy);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo {
    position: absolute;
    opacity: 0.12;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--blush);
    top: -200px;
    right: -150px;
}

.geo-circle-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--blush-mid);
    bottom: -100px;
    left: -80px;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--white);
    top: 40%;
    right: 15%;
    opacity: 0.08;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid var(--blush);
    top: 15%;
    left: 8%;
    opacity: 0.07;
    transform: rotate(-15deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--blush) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 8%;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--blush);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .text-accent {
    color: var(--blush);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(245, 230, 211, 0.8);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.hero-actions .btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(245, 230, 211, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 230, 211, 0.2);
}

/* ---------- SECTION COMMON ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--burgundy);
    background: rgba(123, 45, 59, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.section-tag-light {
    color: var(--blush);
    background: rgba(255,255,255,0.12);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.7;
}

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

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

/* ---------- PRODUCTS ---------- */
.products {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.products-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--blush);
    opacity: 0.3;
    top: -100px;
    left: -150px;
}

.deco-stripe {
    position: absolute;
    width: 200px;
    height: 300px;
    background: repeating-linear-gradient(
        45deg,
        var(--burgundy),
        var(--burgundy) 4px,
        transparent 4px,
        transparent 12px
    );
    opacity: 0.04;
    bottom: -50px;
    right: -50px;
    transform: rotate(20deg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--blush);
    color: var(--burgundy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    z-index: 2;
}

.product-body {
    padding: 24px;
}

.product-card.card-burgundy .product-body {
    background: var(--burgundy);
}

.product-card.card-blush .product-body {
    background: var(--blush);
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--white);
}

.product-card.card-blush .product-name {
    color: var(--text);
}

.product-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
}

.product-card.card-blush .product-desc {
    color: var(--text-light);
}

/* ---------- ABOUT ---------- */
.about {
    position: relative;
    padding: 120px 0;
    background: var(--blush-light);
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--burgundy) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.04;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-visual {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    height: 500px;
    box-shadow: var(--shadow-lg);
}

.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--blush-light);
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--burgundy);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--burgundy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.value-item strong {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.value-item span {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- COFFEE ---------- */
.coffee {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    overflow: hidden;
}

.coffee-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 59, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 230, 211, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.coffee-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.coffee-content .section-title {
    margin-bottom: 24px;
}

.coffee-desc {
    font-size: 1.05rem;
    color: rgba(245, 230, 211, 0.7);
    line-height: 1.8;
    margin-bottom: 36px;
}

.coffee-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.coffee-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blush);
    font-size: 1rem;
}

.coffee-list-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(245, 230, 211, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blush);
}

.coffee-list strong {
    color: var(--white);
}

.coffee-visual {
    position: relative;
}

.coffee-img-stack {
    position: relative;
    height: 560px;
}

.coffee-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.coffee-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: 50%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--dark);
}

/* ---------- VISIT ---------- */
.visit {
    position: relative;
    padding: 120px 0;
    background: var(--cream);
    overflow: hidden;
}

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

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.detail-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--blush);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.detail-item strong {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.detail-item a {
    color: var(--burgundy);
    font-weight: 500;
    transition: var(--transition);
}
.detail-item a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

/* ---------- FORM ---------- */
.visit-form-wrap {
    position: relative;
    background: var(--burgundy);
    border-radius: var(--radius-xl);
    padding: 48px;
    overflow: hidden;
}

.form-deco {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.form-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.form-subtitle {
    font-size: 0.95rem;
    color: rgba(245, 230, 211, 0.7);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blush);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(245, 230, 211, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 230, 211, 0.4);
}

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

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

.form-success {
    display: none;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--blush);
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-success.visible {
    display: block;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

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

.footer-brand p {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.7;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blush);
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-links a,
.footer-contact a {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(245, 230, 211, 0.4);
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-md);
    }

    .nav-menu .btn {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26, 14, 18, 0.5);
        z-index: 99;
    }

    .nav-overlay.visible {
        display: block;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .about-grid,
    .coffee-layout,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .about-img-main {
        height: 350px;
    }

    .about-img-float {
        right: 10px;
        bottom: -20px;
    }

    .about-badge {
        left: 10px;
        top: -12px;
    }

    .coffee-img-stack {
        height: 400px;
    }

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

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

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

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

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

    .visit-form-wrap {
        padding: 32px 24px;
    }

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

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

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

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

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