/* ============================================
   ALLEN FARM & VINEYARD — STYLESHEET
   Premium Dark Luxury: Plum + Amber
   ============================================ */

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

:root {
    --plum-950: #0D0710;
    --plum-900: #1A0F1E;
    --plum-800: #2D1B30;
    --plum-700: #3D2545;
    --plum-600: #4E2F5A;
    --plum-500: #5E3A6E;
    --amber-400: #D4A843;
    --amber-300: #E8C36A;
    --amber-200: #F0D69A;
    --amber-100: #F7E8C0;
    --gold: #C9A84C;
    --gold-light: #E0C070;
    --cream: #F5F0E8;
    --cream-dark: #E8DFD0;
    --white: #FFFFFF;
    --text-light: #F0EBE3;
    --text-muted: #A89BB0;
    --text-dark: #1A0F1E;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
    --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(--plum-950);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* ---------- LOADER ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--plum-950);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-icon {
    margin: 0 auto 16px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.loader-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- NAVBAR ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background: rgba(13, 7, 16, 0.95);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-amp {
    color: var(--gold);
    font-style: italic;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

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

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

.nav-cta {
    border: 1.5px solid var(--gold) !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    color: var(--gold) !important;
    transition: background var(--transition), color var(--transition) !important;
}

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

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

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

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: transform var(--transition), opacity var(--transition);
    display: block;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 7, 16, 0.88) 0%,
        rgba(45, 27, 48, 0.82) 50%,
        rgba(13, 7, 16, 0.90) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 8px 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.08);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 24px;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 168, 76, 0.3);
    align-self: center;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(240, 235, 227, 0.3);
}

.btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(240, 235, 227, 0.08);
    transform: translateY(-2px);
}

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

/* ---------- HERO SCROLL ---------- */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--gold);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity var(--transition);
}

.hero-scroll:hover {
    opacity: 1;
}

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

/* ---------- SECTION HEADERS ---------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50px;
}

.section-tag-light {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.4);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 20px;
}

.section-title-light {
    color: var(--cream);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 100px 0;
    background: var(--plum-950);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--plum-900);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(201, 168, 76, 0.25);
}

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

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

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

.product-card-icon {
    margin-bottom: 16px;
}

.product-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 12px;
}

.product-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--plum-900);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid var(--plum-900);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.about-img-accent {
    position: absolute;
    top: -20px;
    right: -16px;
    opacity: 0.4;
}

.about-content {
    padding: 16px 0;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

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

.about-value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.06);
}

.about-value h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 4px;
}

.about-value p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- VISIT ---------- */
.visit {
    position: relative;
    padding: 100px 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(13, 7, 16, 0.92) 0%,
        rgba(45, 27, 48, 0.85) 60%,
        rgba(13, 7, 16, 0.75) 100%
    );
}

.visit .container {
    position: relative;
    z-index: 1;
}

.visit-content {
    max-width: 640px;
}

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.08);
}

.visit-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.6;
}

.visit-detail-value a {
    color: var(--cream);
    transition: color var(--transition);
}

.visit-detail-value a:hover {
    color: var(--gold);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: var(--plum-900);
}

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

.contact-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-method-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 6px;
    background: rgba(201, 168, 76, 0.06);
}

.contact-method a {
    color: var(--cream);
    transition: color var(--transition);
}

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

/* ---------- FORM ---------- */
.contact-form-wrapper {
    background: var(--plum-800);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cream);
    background: var(--plum-900);
    border: 1.5px solid rgba(201, 168, 76, 0.2);
    border-radius: 6px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
    color: rgba(168, 155, 176, 0.5);
}

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

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

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

.form-success-icon {
    margin: 0 auto 20px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 64px 0 0;
    background: var(--plum-950);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gold);
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- SCROLL REVEAL (below fold only) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 7, 16, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition);
        backdrop-filter: blur(16px);
        border-left: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-divider {
        display: none;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

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

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

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

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

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

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

    .product-card-img {
        height: 200px;
    }
}
