/* ============================================
   Bogle Winery — Editorial Wine Website
   Emerald Green + Cream Palette
   ============================================ */

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

:root {
    --emerald-50: #f0fdf4;
    --emerald-100: #dcfce7;
    --emerald-200: #bbf7d0;
    --emerald-300: #86efac;
    --emerald-400: #4ade80;
    --emerald-500: #22c55e;
    --emerald-600: #16a34a;
    --emerald-700: #15803d;
    --emerald-800: #166534;
    --emerald-900: #14532d;
    --emerald-950: #052e16;

    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde047;
    --cream-500: #eab308;
    --cream-600: #ca8a04;
    --cream-700: #a16207;
    --cream-800: #854d0e;
    --cream-900: #713f12;

    --bg-primary: #faf9f5;
    --bg-secondary: #f3f1eb;
    --bg-dark: var(--emerald-950);
    --bg-dark-alt: #0a2e1a;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-light: #faf9f5;
    --text-dark: #1a1a1a;

    --accent: var(--emerald-700);
    --accent-light: var(--emerald-100);
    --accent-dark: var(--emerald-900);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    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;
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-accent {
    color: var(--accent);
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

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

.btn--ghost-light {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--emerald-300);
}

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

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
}

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

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    color: var(--accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav__links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    transition: all var(--transition) !important;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background: var(--emerald-800) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 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(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: var(--accent);
}

.mobile-menu__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--emerald-950) 0%,
        var(--emerald-900) 25%,
        var(--emerald-800) 50%,
        var(--emerald-700) 75%,
        var(--emerald-600) 100%
    );
    z-index: 0;
}

.hero__gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(22, 101, 52, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(34, 197, 94, 0.3) 0%, transparent 50%);
}

.hero__gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero__eyebrow {
    color: var(--emerald-200);
    margin-bottom: 24px;
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.hero__subhead {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    line-height: 1.65;
    color: var(--emerald-100);
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 300;
}

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

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

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

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.5);
    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); }
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
}

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

.about__text {
    max-width: 520px;
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight svg {
    color: var(--accent);
    flex-shrink: 0;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

/* --- Wines --- */
.wines {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.wines__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.wines__lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

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

.wine-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
}

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

.wine-card__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: var(--emerald-100);
    color: var(--emerald-800);
    margin-bottom: 20px;
}

.wine-card__badge--rose {
    background: #fce7f3;
    color: #9d174d;
}

.wine-card__badge--red {
    background: #fef2f2;
    color: #991b1b;
}

.wine-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.wine-card__name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wine-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.wine-card__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition);
}

.wine-card__link:hover {
    color: var(--emerald-800);
}

.wines__cta {
    text-align: center;
}

.wines__cta p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-style: italic;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--bg-primary);
}

.visit__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--emerald-950);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.visit__content {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit__content .section-eyebrow {
    color: var(--emerald-300);
}

.visit__content .section-title {
    color: #fff;
}

.visit__content .text-accent {
    color: var(--emerald-300);
}

.visit__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--emerald-100);
    margin-bottom: 36px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.visit__details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--emerald-100);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.visit__details svg {
    color: var(--emerald-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__details strong {
    color: #fff;
    font-weight: 600;
}

.visit__details a {
    color: var(--emerald-300);
    transition: color var(--transition);
}

.visit__details a:hover {
    color: var(--emerald-200);
}

.visit__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.visit__actions .btn--primary {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
    color: var(--emerald-950);
    font-weight: 600;
}

.visit__actions .btn--primary:hover {
    background: var(--emerald-400);
    border-color: var(--emerald-400);
}

.visit__actions .btn--ghost-light {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.visit__actions .btn--ghost-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.visit__image {
    position: relative;
    min-height: 100%;
}

.visit__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.contact__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: color var(--transition);
}

.contact__method:hover {
    color: var(--accent);
}

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

.contact__method a {
    color: inherit;
    transition: color var(--transition);
}

.contact__method a:hover {
    color: var(--accent);
}

/* Form */
.contact__form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--emerald-100);
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form__success svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 64px 0 32px;
    color: var(--text-light);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer__logo svg {
    color: var(--emerald-400);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--emerald-200);
    max-width: 280px;
}

.footer__nav {
    display: flex;
    gap: 32px;
}

.footer__nav a {
    font-size: 0.9375rem;
    color: var(--emerald-200);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--emerald-300);
}

.footer__bottom a {
    color: var(--emerald-300);
    transition: color var(--transition);
}

.footer__bottom a:hover {
    color: #fff;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .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; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .wines__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid,
    .visit__card,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image img {
        height: 500px;
    }

    .visit__card {
        flex-direction: column;
    }

    .visit__image {
        min-height: 400px;
    }

    .visit__image img {
        position: relative;
        height: 400px;
    }

    .visit__content {
        padding: 48px 32px;
    }
}

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

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-divider {
        display: none;
    }

    .about,
    .wines,
    .visit,
    .contact {
        padding: 80px 0;
    }

    .wines__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .about__grid {
        gap: 40px;
    }

    .about__text {
        max-width: 100%;
    }

    .contact__form-wrapper {
        padding: 28px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 20px;
    }

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

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

    .hero__headline {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .visit__content {
        padding: 32px 24px;
    }

    .visit__actions {
        flex-direction: column;
    }

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