/* KUPU MUSHROOMS // MODERN AGRONOMY THEME */

:root {
    /* PALETTE */
    --c-bg-cream: #F8F9F1;
    --c-text-slate: #2F3E46;
    --c-accent-sage: #84A98C;
    --c-trim-gold-light: #CAD2C5;
    --c-trim-gold-dark: #A39171;

    /* TYPOGRAPHY */
    --f-header: 'Playfair Display', serif;
    --f-body: 'Montserrat', sans-serif;

    /* SPACING */
    --s-content-width: 1200px;
    --s-pad-section: 80px 20px;
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--c-bg-cream);
    color: var(--c-text-slate);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--f-header);
    font-weight: 700;
    color: var(--c-text-slate);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* UTILITY */
.container {
    max-width: var(--s-content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--c-text-slate);
    font-family: var(--f-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-primary {
    background-color: var(--c-text-slate);
    color: var(--c-bg-cream);
}

.btn-primary:hover {
    background-color: var(--c-accent-sage);
    border-color: var(--c-accent-sage);
    color: white;
}

.btn-outline {
    border-color: var(--c-bg-cream);
    color: var(--c-bg-cream);
}

.btn-outline:hover {
    background: var(--c-bg-cream);
    color: var(--c-text-slate);
}

.btn-white {
    background-color: white;
    color: var(--c-text-slate);
    border-color: white;
}

.btn-white:hover {
    background-color: var(--c-bg-cream);
    color: var(--c-text-slate);
    border-color: var(--c-bg-cream);
}

/* --- SECTIONS --- */

/* HERO */
.hero {
    height: 90vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--c-text-slate);
    overflow: hidden;
    color: var(--c-bg-cream);
}

/* BACKGROUND CONTAINER */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ANIMATED BACKGROUNDS */
.hero-bg-video,
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-image {
    background: url('assets/hero_collage_v3.jpg') center/cover no-repeat;
    opacity: 0;
    animation: imageCycle 16s infinite;
}

.hero-bg-video {
    opacity: 1;
    animation: videoCycle 16s infinite;
}

/* 
   TIMELINE (16s loop):
   0s - 6s:   Video Visible (Image hidden)
   6s - 8s:   Crossfade to Image
   8s - 14s:  Image Visible (Video hidden)
   14s - 16s: Crossfade to Video
*/

@keyframes videoCycle {

    0%,
    35% {
        opacity: 1;
    }

    45%,
    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes imageCycle {

    0%,
    35% {
        opacity: 0;
    }

    45%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 62, 70, 0.4);
    /* Consistent overlay color */
    z-index: 2;
}

/* HERO LOGO - Centered and Zoomed */
.hero-logo {
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 10;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
    transform-origin: center;
}

/* HERO CONTENT */
.hero-content {
    color: var(--c-bg-cream);
    max-width: 800px;
    z-index: 3;
    position: relative;
    /* Ensure content is above overlay */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--c-bg-cream);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* THE DIFFERENCE (INFO) */
.section-info {
    padding: var(--s-pad-section);
    background-color: white;
}

.info-input-grid {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-input-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-text h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.info-text p {
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    border-left: 2px solid var(--c-accent-sage);
    padding-left: 15px;
}

.stat-num {
    font-size: 2rem;
    font-family: var(--f-header);
    color: var(--c-accent-sage);
}

.stat-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* PORTFOLIO */
.section-portfolio {
    padding: var(--s-pad-section);
}

.section-portfolio h2 {
    text-align: center;
    margin-bottom: 50px;
}

.mushroom-grid {
    display: grid;
    /* Force 2 columns on desktop */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}



.mushroom-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.mushroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mushroom-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

/* W-Oyster (White) */
.w-oyster {
    background-image: url('assets/strain_white_v3.png');
    background-size: 180%;
    background-position: center;
}

/* P-Oyster (Pink) */
.p-oyster {
    background-image: url('assets/strain_pink.jpg');
}

.lions {
    background-image: url('assets/strain_lions_mane_v6.png');
}

/* K-Oyster (King/Alii) */
.k-oyster {
    background-image: url('assets/strain_king_oyster_grilled.png');
    background-color: transparent;
}

.mushroom-info {
    padding: 25px;
}

.mushroom-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--c-accent-sage);
}

/* INQUIRY SECTION */
.section-contact {
    padding: var(--s-pad-section);
    background: var(--c-text-slate);
    color: var(--c-bg-cream);
    text-align: center;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.section-contact h2 {
    color: var(--c-trim-gold-light);
    margin-bottom: 10px;
}

.section-contact .subtitle {
    display: block;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Hidden Forms */
.form-container {
    display: none;
    /* Hidden by default */
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fade-in 0.5s ease;
}

.form-container h3 {
    margin-bottom: 20px;
    color: var(--c-trim-gold-light);
}

.form-container.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--f-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-trim-gold-dark);
    background: rgba(0, 0, 0, 0.4);
}

.btn-submit {
    width: 100%;
    background: var(--c-trim-gold-dark);
    color: white;
    border: none;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--c-trim-gold-light);
    color: var(--c-text-slate);
}

.footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    background: #222d32;
    color: var(--c-bg-cream);
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        /* Ensure full height on mobile */
        padding-top: 100px;
        /* Space for top-mounted logo */
    }

    /* Move Logo to Top Center on Mobile/Tablet */
    .hero-logo {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: 300px;
        border-width: 2px;
    }

    .hero-content {
        margin-top: 220px;
        /* Push content down below logo */
        padding: 0 20px;
    }

    /* Mobile Tweaks for Images */
    .w-oyster {
        background-size: 300%;
        background-position: 48% center;
        /* Shift right to center the cluster */
    }

    /* Show "Right Half" of Hero Assets on Mobile (Action is on the right) */
    .hero-bg-video {
        object-position: 85% center;
    }

    .hero-bg-image {
        background-position: 85% center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* Landscape / Short Screen Adjustment */
@media (max-width: 1024px) and (max-height: 500px) {
    .hero-logo {
        width: 120px;
        height: 120px;
        top: 10px;
    }

    .hero-content {
        margin-top: 140px;
        /* Less gap for landscape */
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero p {
        display: none;
        /* Hide tagline on short landscape screens to fit CTA */
    }
}

/* INVENTORY NOTICE */
.inventory-notice-container {
    text-align: center;
    margin-top: 60px;
}

.inventory-notice-text {
    font-style: italic;
    opacity: 0.7;
}

.inventory-link {
    color: var(--c-accent-sage);
    font-weight: bold;
    border-bottom: 2px solid var(--c-accent-sage);
    text-decoration: none;
}