/* ==========================================
   HAIKU FARMS — Dark Premium Landing
   Inspired by Agrom template
   ========================================== */

/* ---------- Variables ---------- */
:root {
    --bg-primary: #111111;
    --bg-secondary: #1A1A1A;
    --bg-card: #1E1E1E;
    --bg-elevated: #252525;

    --text-white: #FFFFFF;
    --text-light: #D4D4D4;
    --text-muted: #999999;
    --text-dim: #666666;

    --accent-gold: #4CAF50;
    --accent-gold-hover: #66BB6A;
    --accent-green: #4CAF50;
    --accent-green-dark: #1B5E20;
    --accent-green-light: #66BB6A;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --container-width: 1200px;
    --section-padding: clamp(80px, 10vw, 140px);
    --gap: clamp(24px, 4vw, 48px);

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-light);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.btn--ghost {
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn--ghost:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn--solid {
    border: 1.5px solid var(--accent-gold);
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn--solid:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
}

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.nav--scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nav__logo-img {
    height: 160px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-white);
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav__cta {
    border: 1px solid var(--accent-gold) !important;
    padding: 8px 20px !important;
    color: var(--accent-gold) !important;
}

.nav__cta:hover {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
}

.nav__cta::after {
    display: none !important;
}

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

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        url('assets/stock/hero-herbs-dark-wood-v2.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.65) 100%),
        linear-gradient(180deg, rgba(17,17,17,0.25) 0%, rgba(17,17,17,0.1) 40%, rgba(17,17,17,0.55) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero__tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero__title {
    margin-top: 80px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero__title--serif {
    display: block;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(36px, 5.5vw, 60px);
    color: var(--text-white);
    letter-spacing: 1px;
}

.hero__title--bold {
    display: block;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(48px, 7.5vw, 84px);
    letter-spacing: clamp(4px, 1vw, 10px);
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1;
}

.hero__sub {
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 300;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero .btn {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero__scroll span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============ SECTIONS (shared) ============ */
.section {
    padding: var(--section-padding) 0;
}

.section__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--gap);
}

/* ============ ABOUT (split layout) ============ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.split__text p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
}

.split__text .btn {
    margin-top: 12px;
}

.split__image {
    position: relative;
    overflow: hidden;
}

.split__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.6s ease;
}

.split__image:hover img {
    transform: scale(1.03);
}

.split__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;
}

/* ============ BANNER ============ */
.banner {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.banner__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.banner__text {
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 12px;
    color: var(--text-light);
}

.banner__text strong {
    color: var(--text-white);
    font-weight: 600;
}

.banner__highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--accent-gold);
    margin-top: 20px;
}

/* ============ FEATURES (method) ============ */
.section--method {
    background: var(--bg-primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: var(--gap);
}

.feature {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.feature:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.feature__icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

.product-category {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.product-category:hover {
    border-color: rgba(212, 175, 55, 0.15);
}

.product-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.product-category p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============ DIVIDER / TAGLINE ============ */
.divider {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
}

.divider::before { top: 0; }
.divider::after { bottom: 0; }

.divider__quote {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 300;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    border: none;
    padding: 0;
}

.divider__quote .serif {
    color: var(--accent-gold);
}

/* ============ CLIENTS ============ */
.section--clients {
    background: var(--bg-secondary);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: var(--gap);
}

.card {
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.card__icon {
    font-size: 42px;
    margin-bottom: 24px;
}

.card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============ CTA ============ */
.cta {
    padding: var(--section-padding) 0;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--accent-gold));
}

.cta__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 40px;
}

.cta__text {
    font-size: 16px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap);
    padding-bottom: 48px;
}

.footer__logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
}

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

.footer__brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer__links a,
.footer__social a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer__links a:hover,
.footer__social a:hover {
    color: var(--accent-gold);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav__links.active {
        display: flex;
    }

    .nav__links a {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .nav__toggle {
        display: flex;
        z-index: 200;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split__image img {
        height: 320px;
    }

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

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

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

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
