/* ========================================
   Charis Winery — Stylesheet
   Bold Editorial | Navy + Gold
   ======================================== */

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

:root {
    --navy-950: #050D1A;
    --navy-900: #0A1628;
    --navy-800: #0F1F36;
    --navy-700: #162B4A;
    --navy-600: #1E3A5F;
    --gold-500: #C9A84C;
    --gold-400: #D4B968;
    --gold-300: #E0CC8A;
    --gold-200: #ECD9A8;
    --cream-50: #FAF8F4;
    --cream-100: #F5F0E8;
    --cream-200: #EDE6D8;
    --warm-gray-100: #F7F5F2;
    --warm-gray-200: #EDE9E3;
    --warm-gray-300: #D4CFC6;
    --warm-gray-500: #8A8478;
    --warm-gray-700: #4A4539;
    --warm-gray-900: #2A2519;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--warm-gray-900);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--navy-900);
    margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-950);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
}

.btn-gold:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold-500);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold-500);
    font-weight: 600;
}

.nav-logo-text {
    font-family: var(--font-serif);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: #fff;
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--gold-500) !important;
    border: 1px solid var(--gold-500);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out) !important;
}

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

.nav-cta:hover {
    background: var(--gold-500);
    color: var(--navy-950) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 13, 26, 0.55) 0%,
        rgba(10, 22, 40, 0.7) 50%,
        rgba(5, 13, 26, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.75rem;
    max-width: 800px;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- About --- */
.about {
    padding: 8rem 0;
    background: var(--cream-50);
}

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

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold-500);
    border-radius: 4px;
    z-index: -1;
}

.about-content {
    padding: 1rem 0;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray-700);
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--warm-gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-900);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray-500);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--warm-gray-200);
}

/* --- Products --- */
.products {
    padding: 8rem 0;
    background: var(--navy-900);
}

.products .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products .section-headline {
    color: #fff;
}

.products .section-eyebrow {
    color: var(--gold-500);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--navy-800);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.product-card-img {
    overflow: hidden;
    height: 260px;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.product-card-body {
    padding: 2rem;
}

.product-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.product-card-body p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* --- Experience --- */
.experience {
    padding: 8rem 0;
    background: var(--cream-50);
}

.experience-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience-content {
    padding-right: 1rem;
}

.experience-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray-700);
    margin-bottom: 2rem;
}

.experience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.experience-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.experience-list-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-500);
    margin-top: 2px;
}

.experience-list li span:last-child {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--warm-gray-700);
    padding-top: 6px;
}

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

.experience-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: 4px;
    overflow: hidden;
}

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

.experience-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: 4px;
    overflow: hidden;
    border: 4px solid var(--cream-50);
}

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

/* --- Visit --- */
.visit {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.visit-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.visit-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.75) 60%,
        rgba(10, 22, 40, 0.4) 100%
    );
}

.visit-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.visit-eyebrow {
    color: var(--gold-500);
}

.visit-headline {
    color: #fff;
    margin-bottom: 3rem;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.visit-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.visit-detail-value {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #fff;
}

.visit-phone:hover {
    color: var(--gold-300);
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: var(--cream-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray-700);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--warm-gray-900);
    transition: color 0.3s ease;
}

.contact-method:hover {
    color: var(--gold-500);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--warm-gray-200);
    border-radius: 50%;
    color: var(--gold-500);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
    border-color: var(--gold-500);
    background: rgba(201, 168, 76, 0.08);
}

.contact-method span:last-child {
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--warm-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--warm-gray-200);
    border-radius: 4px;
    background: var(--cream-50);
    color: var(--warm-gray-900);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    color: var(--navy-900);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

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

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold-500);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-500);
    font-weight: 600;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: center;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    letter-spacing: 0.04em;
}

.footer-nav a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        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; }
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.mobile-menu-link:hover {
    color: var(--gold-500);
}

.mobile-menu-cta {
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem !important;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-500) !important;
    border: 1px solid var(--gold-500);
    padding: 0.875rem 2rem;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .experience-split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        max-width: 500px;
    }

    .about-img {
        height: 400px;
    }

    .experience-images {
        height: 450px;
    }

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

    .visit-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .hero-actions {
        flex-direction: column;
    }

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .experience-images {
        height: 350px;
    }

    .about-image-accent {
        display: none;
    }
}

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

    .hero-content {
        padding-top: 5rem;
    }

    .about,
    .products,
    .experience,
    .visit,
    .contact {
        padding: 5rem 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
