/* ============================================
   Chase Farm Market — Styles
   Palette: Plum (#7B2D8E / #C47DD4) + Amber (#F5A623 / #D4891A)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --plum-deep: #5A1D6B;
    --plum: #7B2D8E;
    --plum-light: #C47DD4;
    --plum-pale: #F3E5F5;
    --plum-bg: #FDF6FF;
    --amber: #F5A623;
    --amber-dark: #D4891A;
    --amber-light: #FDE8C0;
    --amber-pale: #FFF8EE;
    --text-dark: #2D1B33;
    --text-mid: #5A4462;
    --text-light: #8A7494;
    --white: #FFFFFF;
    --bg: #FFFBFE;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 8px rgba(123, 45, 142, 0.08);
    --shadow-md: 0 8px 30px rgba(123, 45, 142, 0.12);
    --shadow-lg: 0 16px 50px rgba(123, 45, 142, 0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--text-dark);
}

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

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 254, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 251, 254, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--plum);
}

.logo svg {
    flex-shrink: 0;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-mid);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--plum);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--plum);
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--plum-deep);
    border-color: var(--plum-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--plum-pale);
    border-color: var(--plum-pale);
    transform: translateY(-2px);
}

.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(--plum);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ============================================
   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-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 29, 107, 0.88) 0%,
        rgba(123, 45, 142, 0.80) 40%,
        rgba(212, 137, 26, 0.60) 100%
    );
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(45, 27, 51, 0.3) 100%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.4);
    color: var(--amber-light);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.hero-detail a {
    color: var(--amber);
    font-weight: 700;
    transition: var(--transition);
}

.hero-detail a:hover {
    color: var(--white);
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

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

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

.section-tag {
    display: inline-block;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum);
    background: var(--plum-pale);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-mid);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    background: var(--plum-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-img-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-card h3 {
    font-size: 1.2rem;
    padding: 20px 24px 8px;
}

.product-card p {
    padding: 0 24px 24px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.products-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

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

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

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 20px;
}

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

.about-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.about-features li svg {
    color: var(--amber);
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
}

.testimonials .section-tag {
    background: rgba(245, 166, 35, 0.2);
    color: var(--amber);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--amber);
    font-weight: 700;
    font-size: 0.9rem;
}

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

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

.visit-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
}

.visit-info > p {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--plum-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--plum);
}

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

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 80px 0;
    background: var(--bg);
}

.cta-card {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-lg);
}

.cta-text h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding: 64px 0 48px;
}

.footer-brand .logo {
    color: var(--plum-light);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

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

.footer-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--amber);
    font-weight: 600;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Default: always visible (no JS) */
.reveal {
    opacity: 1;
    transform: none;
}

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

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 254, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(123, 45, 142, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 20px 80px;
    }

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

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

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

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

    .cta-card {
        padding: 36px 24px;
    }

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

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