/* ========================================
   Marvs Wine & Liquor — Styles
   Forest Green + Off-White | Fresh & Airy
======================================== */

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

:root {
    --green-900: #0f2918;
    --green-800: #1a3c2a;
    --green-700: #234d36;
    --green-600: #2d6345;
    --green-500: #3a7d57;
    --green-400: #52a072;
    --green-300: #8fbf9a;
    --green-200: #c5dfc8;
    --green-100: #e4f2e6;
    --green-50:  #f2f8f1;
    
    --white:     #ffffff;
    --off-white: #f7f9f5;
    --cream:     #f0f4ec;
    --sand:      #e8ede3;
    --gray-100:  #e2e6df;
    --gray-200:  #c8cfc4;
    --gray-400:  #8a9486;
    --gray-600:  #5a6558;
    --gray-800:  #2e382e;
    
    --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    
    --shadow-sm:  0 1px 3px rgba(15, 41, 24, 0.06), 0 1px 2px rgba(15, 41, 24, 0.04);
    --shadow-md:  0 4px 16px rgba(15, 41, 24, 0.08), 0 2px 6px rgba(15, 41, 24, 0.05);
    --shadow-lg:  0 12px 40px rgba(15, 41, 24, 0.12), 0 4px 12px rgba(15, 41, 24, 0.06);
    --shadow-xl:  0 24px 60px rgba(15, 41, 24, 0.14), 0 8px 20px rgba(15, 41, 24, 0.08);
    
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 249, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 223, 200, 0.4);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(247, 249, 245, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    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.25rem;
    font-weight: 600;
    color: var(--green-800);
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    background: var(--green-800) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.nav-cta:hover {
    background: var(--green-700) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--off-white) 0%, var(--green-50) 40%, var(--cream) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 600px 600px at 80% 20%, rgba(82, 160, 114, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(45, 99, 69, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--green-200);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green-700);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-400);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--green-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline-accent {
    color: var(--green-500);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-800);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: var(--white);
    color: var(--green-800);
    border: 1.5px solid var(--green-200);
}

.btn-ghost:hover {
    border-color: var(--green-400);
    background: var(--green-50);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ── Hero Visual ── */
.hero-visual {
    position: relative;
    height: 560px;
}

.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: absolute;
}

.hero-card-main {
    width: 320px;
    height: 420px;
    right: 0;
    top: 40px;
}

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

.float-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    color: var(--green-700);
    flex-shrink: 0;
}

.float-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--green-900);
    font-weight: 600;
}

.float-card span {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.hero-float-1 {
    left: -20px;
    top: 0;
    animation-delay: 0s;
}

.hero-float-2 {
    left: -40px;
    bottom: 120px;
    animation-delay: 1.3s;
}

.hero-float-3 {
    right: 340px;
    bottom: 20px;
    animation-delay: 2.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Section Shared ── */
.section {
    padding: 100px 0;
}

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

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--green-900);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Products ── */
.products {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: block;
}

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

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 41, 24, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-overlay svg {
    color: var(--white);
    transform: translateX(-8px);
    transition: var(--transition);
}

.product-card:hover .product-card-overlay svg {
    transform: translateX(0);
}

.product-card-body {
    padding: 22px;
}

.product-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--green-900);
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ── About ── */
.about {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--green-50) 100%);
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 340px;
    height: 440px;
}

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

.about-img-secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 240px;
    height: 200px;
    border: 5px solid var(--white);
}

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

.about-accent {
    position: absolute;
    left: 40px;
    bottom: 60px;
    color: var(--green-300);
    opacity: 0.6;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 18px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    color: var(--green-700);
    flex-shrink: 0;
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--green-900);
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.85rem;
    color: var(--gray-400);
}

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

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

.visit-info {
    max-width: 520px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 36px 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card-static {
    cursor: default;
}

.contact-card-static:hover {
    transform: none;
    box-shadow: none;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    color: var(--green-700);
    flex-shrink: 0;
}

.contact-card-text {
    flex: 1;
}

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

.contact-card-text span {
    font-size: 0.95rem;
    color: var(--green-900);
    font-weight: 500;
    line-height: 1.5;
}

.contact-card-arrow {
    color: var(--gray-200);
    transition: var(--transition);
}

.contact-card:hover .contact-card-arrow {
    color: var(--green-500);
    transform: translate(2px, -2px);
}

/* ── Contact Form ── */
.contact-form-wrapper {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-900);
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(82, 160, 114, 0.15);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-800);
}

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

.form-success svg {
    color: var(--green-600);
    flex-shrink: 0;
}

/* ── Map ── */
.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 500px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ── Footer ── */
.footer {
    background: var(--green-900);
    color: var(--green-200);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

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

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--green-300);
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-400);
    margin-bottom: 16px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--green-300);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--green-300);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--green-500);
}

.footer-bottom {
    border-top: 1px solid rgba(143, 191, 154, 0.15);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--green-400);
}

.footer-legal {
    font-size: 0.78rem !important;
    color: var(--green-500) !important;
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .hero-visual {
        height: 480px;
    }
    
    .hero-card-main {
        width: 280px;
        height: 370px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-images {
        height: 500px;
    }
    
    .about-img-main {
        width: 280px;
        height: 370px;
    }
    
    .about-img-secondary {
        width: 200px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(247, 249, 245, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--green-100);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .hero-card-main {
        width: 240px;
        height: 320px;
        right: 20px;
        top: 20px;
    }
    
    .hero-float-1 {
        left: 0;
        top: -10px;
    }
    
    .hero-float-2 {
        left: 10px;
        bottom: 80px;
    }
    
    .hero-float-3 {
        right: 20px;
        bottom: 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        height: 400px;
        order: -1;
    }
    
    .about-img-main {
        width: 220px;
        height: 300px;
    }
    
    .about-img-secondary {
        width: 170px;
        height: 140px;
    }
    
    .about-accent {
        left: 20px;
        bottom: 40px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-map {
        min-height: 350px;
    }
    
    .map-wrapper {
        min-height: 350px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .hero-headline {
        font-size: 2.6rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 340px;
    }
    
    .hero-card-main {
        width: 200px;
        height: 270px;
    }
    
    .float-card {
        padding: 10px 14px;
    }
    
    .float-card-icon {
        width: 34px;
        height: 34px;
    }
    
    .float-card strong {
        font-size: 0.78rem;
    }
    
    .float-card span {
        font-size: 0.7rem;
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
}
