/* Theme Name: Biohome V3 (Rebuild) */
:root {
    --brand: #1d8b5b;
    --brand-dark: #146844;
    --brand-soft: #def5e8;
    --accent: #f59e0b;
    --ink: #0b1f1a;
    --slate: #41534c;
    --muted: #6b7c75;
    --bg: #f4f8f5;
    --surface: #ffffff;
    --border: #d7e4dd;
    --shadow: 0 18px 40px rgba(11, 31, 26, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1200px;
    --header-h: 72px;
    --font-body: "Work Sans", sans-serif;
    --font-display: "Space Grotesk", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(20, 104, 68, 0.08) 1px, transparent 0),
        linear-gradient(180deg, #f9fbf9 0%, #eff5f1 55%, #f9fbf9 100%);
    background-size: 26px 26px, 100% 100%;
    min-height: 100vh;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: #fff;
    border-radius: 999px;
    z-index: 2000;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(29, 139, 91, 0.25);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.badge--highlight {
    background: #fef3c7;
    color: #92400e;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 10px 0;
}

.section {
    padding: 64px 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0;
}

.section-subtitle {
    color: var(--muted);
    margin: 0;
    max-width: 640px;
}

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

.muted {
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.brand span {
    color: var(--brand);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle i {
    font-size: 1.3rem;
}

.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

body.nav-open .main-nav {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px 20px;
}

.nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--radius-sm);
}

.nav-link {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-weight: 600;
    border-radius: 12px;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.dropdown-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 1rem;
}

.dropdown {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-left: 12px;
}

.nav-item.is-open .dropdown {
    max-height: 500px;
    margin-bottom: 8px;
}

.dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--slate);
    border-radius: 10px;
}

.dropdown a:hover {
    background: rgba(29, 139, 91, 0.1);
    color: var(--brand-dark);
}

.dropdown .dropdown-title {
    font-weight: 700;
    color: var(--ink);
}

.header-cta {
    display: none;
}

.nav-cta {
    margin-top: 12px;
}

.hero {
    padding: 36px 0 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 340px;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.is-active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(11, 31, 26, 0.82) 0%, rgba(11, 31, 26, 0.3) 50%, rgba(11, 31, 26, 0.55) 100%);
}

.slide-fallback {
    background-image: linear-gradient(135deg, #14532d, #1d8b5b);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 600px;
    color: #fff;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    margin: 0 0 12px 0;
}

.slide-text {
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.88);
}

.slider-controls {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.slider-dots {
    position: absolute;
    right: 24px;
    bottom: 26px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.slider-dot.is-active {
    background: #fff;
}

.category-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(29, 139, 91, 0.12);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 1.5rem;
}

.category-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    padding-top: 66%;
    background: #edf3ef;
}

.placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9fb3aa;
}

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

.product-image .badge {
    position: absolute;
    top: 14px;
    right: 14px;
}

.product-content {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-title {
    font-size: 1.1rem;
    margin: 0;
}

.product-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-hero {
    padding: 60px 0 30px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    margin: 0 0 12px 0;
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
    max-width: 640px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chip-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.filter-chip-group .chip-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
    background: #fff;
    color: var(--slate);
}

.chip.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.product-page {
    padding: 30px 0 80px;
}

.product-layout {
    display: grid;
    gap: 32px;
}

.product-media {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    align-self: start;
}

.product-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius) - 6px);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-details h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
}

.filter-video {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    background: #000;
}

.filter-video a {
    color: var(--brand-dark);
    text-decoration: underline;
    font-weight: 600;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--slate);
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--slate);
}

.info-card h3 {
    margin-top: 0;
}

.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.form-message--success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.form-message--error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.rich-text {
    color: var(--slate);
    line-height: 1.7;
}

.rich-text h2,
.rich-text h3 {
    font-family: var(--font-display);
    color: var(--ink);
}

.rich-text p {
    margin: 0 0 16px 0;
}

.rich-text ul {
    padding-left: 18px;
    list-style: disc;
}

.rich-text a {
    color: var(--brand-dark);
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 2.4rem;
    color: #9fb3aa;
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-control {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: 2px solid rgba(29, 139, 91, 0.2);
    border-color: var(--brand);
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-banner h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.cookie-banner .btn-outline:hover {
    background: #fff;
    color: #0f172a;
}

@media (min-width: 700px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

.faq-question:focus {
    outline: 2px solid rgba(29, 139, 91, 0.25);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--brand);
    transition: transform 0.2s ease;
}

.faq-answer {
    background: #f8fafc;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.25s ease;
}

.faq-answer-inner {
    padding: 16px 0;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.is-open .faq-answer {
    border-top: 1px solid var(--border);
}

.faq-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    background: #0b1f1a;
    color: #b6c6bf;
    padding: 70px 0 30px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(29, 139, 91, 0.35) 0%, transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.site-footer.footer-spacing-tight {
    padding: 50px 0 24px;
    margin-top: 40px;
}

.site-footer.footer-align-center {
    text-align: center;
}

.site-footer.footer-align-center .footer-inner {
    text-align: center;
}

.site-footer.footer-align-center .footer-grid {
    justify-items: center;
}

.site-footer.footer-align-center .footer-col ul {
    justify-items: center;
}

.site-footer.footer-align-center .social-links {
    justify-content: center;
}

.site-footer.footer-layout-compact .footer-inner {
    gap: 24px;
}

.site-footer.footer-layout-compact .footer-grid {
    grid-template-columns: 1fr;
}

.footer-inner {
    position: relative;
    display: grid;
    gap: 32px;
}

.footer-brand {
    display: grid;
    gap: 12px;
}

.footer-brand .brand {
    color: #fff;
}

.footer-grid {
    display: grid;
    gap: 24px;
}

.footer-col h4 {
    color: #fff;
    margin: 0 0 16px 0;
    font-size: 1rem;
}

.footer-col ul {
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: #b6c6bf;
}

.footer-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: 0.85rem;
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
    .section-heading {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .main-nav {
        position: static;
        max-height: none;
        opacity: 1;
        transform: none;
        background: transparent;
        border-bottom: none;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 6px;
    }

    .nav-item {
        position: relative;
    }

    .dropdown-toggle {
        display: none;
    }

    .dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 230px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 8px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        max-height: none;
        overflow: visible;
    }

    .nav-item:hover .dropdown,
    .nav-item:focus-within .dropdown {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .dropdown a {
        padding: 10px 12px;
    }

    .hero-slider {
        min-height: 420px;
    }

    .slide-title {
        font-size: 3rem;
    }

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

    .product-media {
        position: sticky;
        top: 110px;
    }

    .footer-inner {
        grid-template-columns: 1.1fr 2fr;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer.footer-layout-compact .footer-inner {
        grid-template-columns: 1fr;
    }

    .site-footer.footer-layout-compact .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .slide-title {
        font-size: 3.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }

    .slide {
        transition: none;
    }

    .btn {
        transition: none;
    }
}
