/* ========================================
   The Country Cart — Styles
   Palette: Midnight Blue (#0C1E3A) + Mint (#5EEAD4)
   Fonts: DM Serif Display + Inter + Lora
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #0C1E3A;
    background-color: #F9F6F2;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0C1E3A;
    color: #F5F0EB;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 400;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0C1E3A;
    background: #5EEAD4;
    padding: 0.35em 1em;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0C1E3A;
    margin-bottom: 1.25rem;
}

.text-accent {
    color: #0D9488;
}

.section-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #2A4A6B;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85em 1.8em;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: #0C1E3A;
    color: #F5F0EB;
    border-color: #0C1E3A;
}
.btn-primary:hover {
    background: #1A3A5C;
    border-color: #1A3A5C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 30, 58, 0.3);
}

.btn-mint {
    background: #5EEAD4;
    color: #0C1E3A;
    border-color: #5EEAD4;
}
.btn-mint:hover {
    background: #3DD4BC;
    border-color: #3DD4BC;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 234, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: #0C1E3A;
    border-color: #0C1E3A;
}
.btn-outline:hover {
    background: #0C1E3A;
    color: #F5F0EB;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1em 2.2em;
    font-size: 1.05rem;
}

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

/* ---------- SECTION ---------- */
.section {
    padding: 6rem 0;
}
.section-alt {
    background: #F5F0EB;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 246, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(12, 30, 58, 0.08);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(12, 30, 58, 0.1);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: #0C1E3A;
}
.logo-light { color: #F5F0EB; }

.logo-text { font-size: 1.15rem; }

/* NAV */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0C1E3A;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all 0.25s ease;
}
.main-nav a:hover {
    background: rgba(94, 234, 212, 0.25);
    color: #0D9488;
}

/* NAV TOGGLE */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.25s ease;
}
.nav-toggle:hover { background: rgba(94, 234, 212, 0.2); }
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #0C1E3A;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.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);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #F5F0EB;
    padding: 6rem 0 0;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(12, 30, 58, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 540px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0C1E3A;
    background: rgba(94, 234, 212, 0.35);
    padding: 0.5em 1.2em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(94, 234, 212, 0.5);
}

.hero-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: #0C1E3A;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #2A4A6B;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0C1E3A;
}

/* HERO IMAGE STACK */
.hero-image-stack {
    position: relative;
    height: 640px;
}
.hero-img {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(12, 30, 58, 0.2);
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-img-main {
    width: 340px;
    height: 440px;
    top: 0;
    right: 0;
    z-index: 2;
}
.hero-img-accent {
    width: 220px;
    height: 280px;
    bottom: 100px;
    right: 140px;
    z-index: 3;
    box-shadow: 0 20px 50px rgba(12, 30, 58, 0.25);
}
.hero-img-float {
    width: 180px;
    height: 150px;
    bottom: 20px;
    right: 10px;
    z-index: 4;
    box-shadow: 0 15px 40px rgba(12, 30, 58, 0.2);
    border: 4px solid #F5F0EB;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- ABOUT ---------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}
.about-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(12, 30, 58, 0.15);
}
.about-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #5EEAD4;
    color: #0C1E3A;
    padding: 1.25rem 1.75rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(94, 234, 212, 0.4);
}
.accent-number {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
}
.accent-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.about-content { max-width: 520px; }
.about-content > p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: #2A4A6B;
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-content > p:first-of-type { margin-top: 0; }

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
.feature-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(12, 30, 58, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(12, 30, 58, 0.12);
}
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F0EB;
    border-radius: 14px;
}
.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0C1E3A;
    margin-bottom: 0.25rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: #2A4A6B;
    line-height: 1.6;
}

/* ---------- PRODUCTS ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(12, 30, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(12, 30, 58, 0.15);
}
.product-img {
    height: 220px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-body {
    padding: 1.75rem;
}
.product-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0C1E3A;
    margin-bottom: 0.5rem;
}
.product-body p {
    font-size: 0.95rem;
    color: #2A4A6B;
    line-height: 1.7;
}

.products-cta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(12, 30, 58, 0.1);
}
.products-cta p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1rem;
    color: #2A4A6B;
    margin-bottom: 1.25rem;
}

/* ---------- COMMUNITY ---------- */
.community-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-content > p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: #2A4A6B;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.community-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}
.community-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0C1E3A;
}

.community-image-group {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 500px;
}
.community-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(12, 30, 58, 0.12);
}
.community-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.community-img-lg { height: 280px; }
.community-img-sm { height: 200px; }

/* ---------- VISIT ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.visit-info {
    display: grid;
    gap: 1.25rem;
}
.visit-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(12, 30, 58, 0.06);
    transition: transform 0.3s ease;
}
.visit-card:hover {
    transform: translateX(6px);
}
.visit-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F0EB;
    border-radius: 16px;
}
.visit-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0C1E3A;
    margin-bottom: 0.35rem;
}
.visit-card p {
    font-size: 0.95rem;
    color: #2A4A6B;
    line-height: 1.6;
}
.visit-card a {
    color: #0D9488;
    font-weight: 600;
    transition: color 0.2s;
}
.visit-card a:hover { color: #0C1E3A; }
.visit-hint {
    display: block;
    font-size: 0.8rem;
    color: #6B8FAE;
    margin-top: 0.25rem;
}

.visit-map a {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(12, 30, 58, 0.15);
}
.visit-map img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 30, 58, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #F5F0EB;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.visit-map a:hover .map-overlay { opacity: 1; }

/* ---------- CONTACT ---------- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-content { max-width: 480px; }
.contact-content > p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: #2A4A6B;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-direct-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0C1E3A;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(12, 30, 58, 0.06);
    transition: all 0.3s ease;
}
.contact-direct-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(12, 30, 58, 0.12);
    color: #0D9488;
}

.contact-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 15px 50px rgba(12, 30, 58, 0.1);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0C1E3A;
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0C1E3A;
    background: #F9F6F2;
    border: 2px solid rgba(12, 30, 58, 0.1);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #5EEAD4;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9BB5C9;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(94, 234, 212, 0.15);
    border-radius: 14px;
    font-size: 0.95rem;
    color: #0C1E3A;
}
.form-success strong { font-weight: 700; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: #0C1E3A;
    color: #B8C9D9;
    padding: 4rem 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(94, 234, 212, 0.15);
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    color: #8AA8C4;
}
.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5EEAD4;
    margin-bottom: 1rem;
}
.footer-links ul,
.footer-contact ul {
    display: grid;
    gap: 0.6rem;
}
.footer-links a {
    font-size: 0.9rem;
    color: #8AA8C4;
    transition: color 0.2s;
}
.footer-links a:hover { color: #5EEAD4; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #8AA8C4;
}
.footer-contact a {
    color: #8AA8C4;
    transition: color 0.2s;
}
.footer-contact a:hover { color: #5EEAD4; }
.footer-contact svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: #5EEAD4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #6B8FAE;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-subheadline { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-image-stack {
        display: none;
    }
    .about-container,
    .community-wrapper,
    .visit-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-content,
    .contact-content { max-width: 100%; }
    .about-image-wrapper { order: -1; }
    .community-image-group { height: 360px; }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(249, 246, 242, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem;
        border-bottom: 1px solid rgba(12, 30, 58, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    .main-nav .btn {
        align-self: center;
        margin-top: 0.5rem;
    }

    .hero { min-height: auto; padding: 7rem 0 2rem; }
    .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-wave svg { height: 40px; }

    .products-grid { grid-template-columns: 1fr; }
    
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .contact-form-wrapper { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; align-items: center; }
    .about-accent-box { right: 0; }
}
