/*
Theme Name: LYVBIO Cosmetics
Theme URI: https://lyvbio.com/
Author: LYVBIO
Author URI: https://lyvbio.com/
Description: B2B theme for cosmetic ingredient suppliers — product finder with category facets, applications, insights blog and inquiry form. Built from the LYVBIO v2 design system (Raleway + Roboto, brand green #004438).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lyvbio
Tags: business, custom-menu, featured-images, translation-ready, blog
*/

/* ============================================================
   LYVBIO COSMETICS — PREMIUM INTERNATIONAL DESIGN SYSTEM
   v2.0 · Brand green elevated · editorial layout · generous
   whitespace · refined for EU / US formulator audience
   ------------------------------------------------------------
   Font (Google Fonts):
     - "Raleway" — the same family loaded by Croda Beauty.
       Light weights (300) for display, 400–700 for UI & body.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
    --green-900: #004438;
    --green-800: #074d3f;
    --green-700: #0f7b41;
    --green-600: #129452;
    --green-500: #1fb267;
    --green-100: #e3efec;
    --green-50: #f0f6f4;

    --cream: #fbf9f4;
    --cream-2: #f5f2ea;
    --white: #ffffff;

    --ink: #14251c;
    --ink-2: #3e4f46;
    --ink-3: #6b7a71;

    --line: #eae7df;
    --line-2: #f1efe8;

    --amber: #c0772b;
    --amber-100: #f7ede0;

    --font-display: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --font-sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --font-num: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(0, 68, 56, 0.04), 0 2px 8px rgba(0, 68, 56, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 68, 56, 0.08);
    --shadow-lg: 0 24px 70px rgba(0, 68, 56, 0.14);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

::selection {
    background: var(--green-100);
    color: var(--green-900);
}

/* Full-width container with the same gutters used by Croda:
   2rem on small screens, 4rem from 1230px up. No max-width. */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1230px) {
    .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display {
    font-family: var(--font-display);
    font-weight: 420;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--green-700);
}

.eyebrow--center {
    justify-content: center;
}

.eyebrow--center::after {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--green-700);
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 18px;
}

.section-title .em {
    font-family: var(--font-display);
    font-weight: 420;
    font-style: italic;
    color: var(--green-700);
}

.section-lead {
    font-size: 1.08rem;
    color: var(--ink-3);
    max-width: 620px;
    line-height: 1.7;
}

.section-head {
    margin-bottom: 56px;
}

.section-head--center {
    text-align: center;
}

.section-head--center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.text-link {
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.text-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.text-link:hover {
    gap: 12px;
    color: var(--green-600);
}

.text-link:hover i {
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 15px 30px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--green-700);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--green-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--dark {
    background: var(--ink);
    color: #ffffff;
}

.btn--dark:hover {
    background: var(--green-900);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

.btn--ghost-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.btn--lg {
    padding: 18px 38px;
    font-size: 0.95rem;
}

.btn i {
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   5. TOP ANNOUNCEMENT BAR (minimal, not boxy)
   ------------------------------------------------------------ */
.topbar {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 9px 0;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__item i {
    color: #7fd0a1;
    font-size: 0.78rem;
}

.topbar__link {
    color: #ffffff;
    font-weight: 700;
}

.topbar__link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   6. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2aa861 0%, var(--green-700) 60%, var(--green-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand__text {
    line-height: 1.05;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.brand__sub {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-top: 3px;
}

.nav {
    margin-left: auto;
}

.nav__close {
    display: none;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 5px;
    height: 2px;
    background: var(--green-700);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav__link:hover {
    color: var(--ink);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__link.is-active {
    color: var(--green-700);
}

.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__link .caret {
    margin-left: 5px;
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.nav__item {
    position: relative;
}

.nav__item:hover .nav__link .caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.38px;
    transition: all 0.18s ease;
}

.nav__dropdown a .dd-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav__dropdown a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.nav__dropdown a:hover .dd-icon {
    background: var(--green-100);
}

.header__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* margin instead of flex gap — older Android WebView ignores gap */
.header__actions > * {
    margin-left: 10px;
}

.header__actions > *:first-child {
    margin-left: 0;
}

.header__search {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.header__search:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

.header__cta {
    padding: 11px 22px;
    font-size: 0.85rem;
}

.header__burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.05rem;
    align-items: center;
    justify-content: center;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 17, 0.42);
    /* must stay below .header (z-index 900) — the drawer lives inside it */
    z-index: 890;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1081px) {
    .nav-overlay {
        display: none;
    }
}

/* ------------------------------------------------------------
   7. HERO SLIDER (auto-play + arrows + swipe)
   ------------------------------------------------------------ */
.hero-slider {
    position: relative;
    height: clamp(460px, 46vw, 640px);
    overflow: hidden;
    background: var(--green-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-slide.is-active .hero-slide__img {
    transform: scale(1);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 22, 17, 0.88) 0%, rgba(0, 22, 17, 0.58) 42%, rgba(0, 22, 17, 0.06) 100%);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide__content {
    max-width: 620px;
    padding-left: 56px;
    color: #ffffff;
}

.hero-slide__title {
    font-size: clamp(1.7rem, 3.1vw, 2.6rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero-slide__text {
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 470px;
    margin-bottom: 26px;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-slide__btn i {
    font-size: 0.62rem;
}

.hero-slide__btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--green-900);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(6px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-dot {
    width: 26px;
    height: 3px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 42px;
    background: #ffffff;
}

@media (max-width: 720px) {
    .hero-slider {
        height: 520px;
    }

    .hero-slide__overlay {
        background: linear-gradient(180deg, rgba(0, 22, 17, 0.32) 0%, rgba(0, 22, 17, 0.84) 100%);
    }

    .hero-slide .container {
        align-items: flex-end;
        padding-bottom: 64px;
    }

    .hero-slide__title {
        font-size: 1.55rem;
    }

    .hero-slide__content {
        padding-left: 0;
    }

    .hero-slide__text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-arrow {
        top: auto;
        bottom: 18px;
        transform: none;
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
    }

    .hero-arrow--prev {
        left: 16px;
    }

    .hero-arrow--next {
        right: 16px;
    }

    .hero-dots {
        bottom: 27px;
    }
}

/* ------------------------------------------------------------
   8. SECTION SHELL
   ------------------------------------------------------------ */
.section {
    padding: 50px 0;
}

.section--cream {
    background: var(--cream);
}

.section--green {
    background: var(--green-900);
    color: #ffffff;
}

/* ------------------------------------------------------------
   9. STATS (minimal inline numbers)
   ------------------------------------------------------------ */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats__item {
    padding: 44px 28px;
    text-align: center;
    border-left: 1px solid var(--line);
}

.stats__item:first-child {
    border-left: none;
}

.stats__num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 420;
    color: var(--green-700);
    line-height: 1;
    margin-bottom: 10px;
}

.stats__label {
    font-size: 0.86rem;
    color: var(--ink-3);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   10. CATEGORY CARDS (image-forward)
   ------------------------------------------------------------ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    min-height: 340px;
    background: var(--green-900);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cat-card__img {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card:hover .cat-card__img {
    opacity: 0.4;
    transform: scale(1.05);
}

.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 26, 17, 0.05) 0%, rgba(6, 26, 17, 0.85) 100%);
}

.cat-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    color: #ffffff;
}

.cat-card__count {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fe0b8;
    margin-bottom: 8px;
}

.cat-card__title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 420;
    color: #ffffff;
    margin-bottom: 10px;
}

.cat-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 90%;
}

.cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.cat-card__link i {
    transition: transform 0.25s ease;
}

.cat-card:hover .cat-card__link i {
    transform: translateX(4px);
}

/* ------------------------------------------------------------
   11. PRODUCT CARD
   ------------------------------------------------------------ */
.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(140deg, var(--green-50) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__media .media-glyph {
    font-size: 3.2rem;
    color: var(--green-100);
    transition: transform 0.5s ease, color 0.5s ease;
}

.product-card:hover .product-card__media .media-glyph {
    transform: scale(1.15);
    color: #cfe7d9;
}

.product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    background: var(--green-700);
    color: #ffffff;
}

.product-card__badge--hot {
    background: var(--amber);
}

.product-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 8px;
}

.product-card__name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.product-card__inci {
    font-size: 0.84rem;
    color: var(--ink-3);
    font-style: italic;
    margin-bottom: 14px;
}

.product-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
}

.product-card__cas {
    font-size: 0.78rem;
    color: var(--ink-3);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-card__arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.product-card:hover .product-card__arrow {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #ffffff;
}

/* ------------------------------------------------------------
   12. WHY / FEATURE ROWS
   ------------------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.feature-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    padding: 44px 34px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.feature:nth-child(3n) {
    border-right: none;
}

.feature-grid--4 .feature:nth-child(3n) {
    border-right: 1px solid var(--line);
}

.feature-grid--4 .feature:nth-child(4n) {
    border-right: none;
}

.feature__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.feature__desc {
    font-size: 0.92rem;
    color: var(--ink-3);
    line-height: 1.65;
}

/* Inverted features (used on dark green sections) */
.section--green .eyebrow {
    color: #9fe0b8;
}

.section--green .eyebrow::before {
    background: #9fe0b8;
}

.section--green .section-title {
    color: #ffffff;
}

.section--green .section-title .em {
    color: #a7e7c0;
}

.feature-grid--inverse {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.feature-grid--inverse .feature {
    border-color: rgba(255, 255, 255, 0.14);
}

.feature-grid--inverse .feature__icon {
    background: rgba(255, 255, 255, 0.1);
    color: #9fe0b8;
}

.feature-grid--inverse .feature__title {
    color: #ffffff;
}

.feature-grid--inverse .feature__desc {
    color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------
   13. CERT STRIP
   ------------------------------------------------------------ */
.certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.certs__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-2);
}

.certs__item i {
    font-size: 1.35rem;
    color: var(--green-700);
}

/* ------------------------------------------------------------
   14. CTA PANEL
   ------------------------------------------------------------ */
.cta-panel {
    position: relative;
    background: var(--green-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 72px 64px;
    color: #ffffff;
}

.cta-panel__bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}

.cta-panel__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-panel__inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.cta-panel__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 420;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-panel__text {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-panel__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   15. PAGE HERO (inner pages)
   ------------------------------------------------------------ */
.page-hero {
    background: var(--green-900);
    color: #ffffff;
    padding: 78px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 420;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 16px;
}

.page-hero__lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 22px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb .sep {
    opacity: 0.5;
}

/* ------------------------------------------------------------
   16. PRODUCTS PAGE (left sidebar + grid)
   ------------------------------------------------------------ */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
}

.products-main {
    min-width: 0;
}

/* Match Croda's results-wrapper ratio: keep rows readable on wide screens */
@media (min-width: 992px) {
    .products-main {
        padding-right: 8%;
    }
}

@media (min-width: 1230px) {
    .products-main {
        padding-right: 15%;
    }
}

.product-search {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.product-search input {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 16px 20px;
    outline: none;
    transition: border-color 0.2s ease;
}

.product-search input::placeholder {
    color: var(--ink-3);
}

.product-search input:focus {
    border-color: var(--green-700);
}

.product-search button {
    flex-shrink: 0;
    padding: 0 36px;
    background: var(--green-800);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.25s ease;
}

.product-search button:hover {
    background: var(--green-700);
}

.facets {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 6px;
}

/* Mobile-only drawer chrome (hidden on desktop) */
.facets__head,
.filters-toggle,
.facet-overlay {
    display: none;
}

.facets__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 6px;
}

.facets__group {
    margin-bottom: 26px;
}

.facets__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.facet-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.facet-list a,
.facet-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.38px;
    transition: all 0.18s ease;
}

.facet-list a:hover,
.facet-list button:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.facet-list a.is-active,
.facet-list button.is-active {
    background: var(--green-100);
    color: var(--green-700);
    font-weight: 700;
}

.facet-list .count {
    font-size: 0.74rem;
    color: var(--ink-3);
    font-weight: 600;
}

.facet-list a.is-active .count,
.facet-list button.is-active .count {
    color: var(--green-700);
}

.facet-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--line);
    vertical-align: 1px;
}

.facet-dot--peptides {
    background: #0f7b41;
}

.facet-dot--botanicals {
    background: #6e8b3d;
}

.facet-dot--whitening {
    background: #c08a2e;
}

.facet-dot--antiaging {
    background: #7b4b6b;
}

.facet-dot--moisture {
    background: #2f7e8c;
}

.facet-dot--vitamins {
    background: #b4562f;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.products-count {
    font-size: 0.9rem;
    color: var(--ink-3);
}

.products-count strong {
    color: var(--ink);
    font-weight: 700;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort label {
    font-size: 0.82rem;
    color: var(--ink-3);
    font-weight: 600;
}

.products-sort select {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.products-sort select:focus {
    border-color: var(--green-700);
}

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

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-3);
}

.products-empty i {
    font-size: 3rem;
    color: #d3ddd6;
    margin-bottom: 18px;
}

/* Product list — one row per product, category-coloured */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-row {
    --accent: var(--green-700);
    --accent-soft: #9fe0b8;
    --tint: var(--green-50);
    display: grid;
    grid-template-columns: 240px 1fr;
    background: #ffffff;
    border: 1px solid var(--line);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.product-row:hover {
    background: var(--cream);
    box-shadow: var(--shadow-sm);
}

.product-row--peptides {
    --accent: #0f7b41;
    --accent-soft: #7fce9f;
    --tint: #e7f3ec;
}

.product-row--botanicals {
    --accent: #6e8b3d;
    --accent-soft: #b7cf8e;
    --tint: #f0f3e6;
}

.product-row--whitening {
    --accent: #c08a2e;
    --accent-soft: #e8c27e;
    --tint: #f8f0e1;
}

.product-row--antiaging {
    --accent: #7b4b6b;
    --accent-soft: #c79ab8;
    --tint: #f4eaef;
}

.product-row--moisture {
    --accent: #2f7e8c;
    --accent-soft: #8fc6d1;
    --tint: #e6f1f3;
}

.product-row--vitamins {
    --accent: #b4562f;
    --accent-soft: #e2a58a;
    --tint: #f8ebe4;
}

.product-row__media {
    position: relative;
    min-height: 240px;
    background: linear-gradient(145deg, var(--tint) 0%, var(--cream) 100%);
    overflow: hidden;
}

.product-row__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-row:hover .product-row__media img {
    transform: scale(1.05);
}

.product-row__body {
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
    background: #3c2c32;
    border-left: 3px solid var(--accent);
    color: #ffffff;
    transition: background 0.25s ease;
}

.product-row:hover .product-row__body {
    background: #46363c;
}

.product-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.product-row__cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.product-row__cas {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.product-row__name {
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 4px;
}

.product-row__name a {
    color: inherit;
}

.product-row__name a:hover {
    color: var(--accent-soft);
}

.product-row__inci {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent-soft);
    margin-bottom: 8px;
}

.product-row__syn {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 12px;
}

.product-row__syn strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.product-row__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
    max-width: 78ch;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-row__chip {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 3px;
}

.product-row__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    transition: color 0.2s ease, gap 0.25s ease;
}

.product-row__link:hover {
    color: var(--accent-soft);
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
}

.pagination button,
.pagination a {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled),
.pagination a:hover {
    border-color: var(--green-700);
    color: var(--green-700);
}

.pagination button.is-active,
.pagination a.is-active {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #ffffff;
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ------------------------------------------------------------
   17. PRODUCT DETAIL
   ------------------------------------------------------------ */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.pd-gallery {
    position: sticky;
    top: 104px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(140deg, var(--green-50) 0%, var(--cream) 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-gallery .media-glyph {
    font-size: 7rem;
    color: #cde7d7;
}

.pd-body .eyebrow {
    margin-bottom: 14px;
}

.pd-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 420;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 8px;
}

.pd-inci {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--green-700);
    margin-bottom: 20px;
}

.pd-desc {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: 26px;
    max-width: 62ch;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pd-meta__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-50);
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
}

.pd-meta__chip i {
    color: var(--green-700);
}

.pd-meta__chip strong {
    color: var(--ink);
}

.pd-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pd-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.pd-docs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.02em;
}

.pd-docs__item i {
    color: var(--green-700);
}

/* Specs table */
.pd-block {
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 34px;
}

.pd-block__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-block__title i {
    color: var(--green-700);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--line-2);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th {
    text-align: left;
    width: 40%;
    padding: 14px 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-3);
    vertical-align: top;
}

.spec-table td {
    padding: 14px 10px;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
}

/* Uses grid */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.uses-grid__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.uses-grid__item i {
    color: var(--green-700);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Related products */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ------------------------------------------------------------
   18. APPLICATIONS PAGE
   Two cards per row on desktop (image left · dark panel right)
   ------------------------------------------------------------ */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.app-card {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 320px;
    background: #3c2c32;
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
}

.app-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cream-2);
}

.app-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
    will-change: transform;
}

.app-card:hover .app-card__media img {
    transform: scale(1.06);
}

.app-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 32px;
    background: #3c2c32;
    color: #ffffff;
}

.app-card__title {
    width: 100%;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.app-card__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 24px;
    flex: 1;
    max-width: 48ch;
}

.app-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.app-card__btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #3c2c32;
}

/* ------------------------------------------------------------
   19. ABOUT PAGE
   Large image hero + editorial two-column content
   Right column follows Croda's 25 / 33.3 / 41.7% ratios.
   ------------------------------------------------------------ */
.about-hero {
    position: relative;
    height: clamp(380px, 46vw, 560px);
    overflow: hidden;
    background: var(--green-900);
}

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

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.about-hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    color: #ffffff;
}

.about-hero__title {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 14px;
}

.about-hero__sub {
    font-size: clamp(1.1rem, 2.2vw, 1.7rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
}

.page-crumb {
    background: #3c2c32;
    padding: 11px 0;
}

.page-crumb .breadcrumb {
    margin-top: 0;
    flex-wrap: nowrap;
    max-width: var(--crumb-max, 1440px);
    margin-left: auto;
    margin-right: auto;
}

.page-crumb--wide .breadcrumb {
    --crumb-max: 1600px;
}

.page-crumb .breadcrumb > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 41.667%);
        gap: 32px;
    }
}

@media (min-width: 992px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 33.333%);
        gap: 48px;
    }
}

@media (min-width: 1230px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 25%);
        gap: 64px;
    }
}

.about-main {
    min-width: 0;
}

.about-main__title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 300;
    color: #1d1737;
    margin-bottom: 22px;
}

.about-main__intro {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 28px;
}

.about-main__p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.about-main__media {
    margin: 32px 0 38px;
    overflow: hidden;
}

.about-main__media img {
    width: 100%;
    height: auto;
}

.about-main__heading {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d1737;
    margin: 0 0 18px;
}

/* Sidebar cards — inset image, generous padding, light display title */
.about-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-side__card {
    overflow: hidden;
    color: #ffffff;
}

.about-side__card--green {
    background: #004438;
}

.about-side__card--plum {
    background: #3c2c32;
}

.about-side__media {
    margin: 36px 36px 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--cream-2);
}

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

.about-side__body {
    padding: 30px 36px 40px;
    text-align: center;
}

.about-side__kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-side__title {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    margin-bottom: 22px;
}

.about-side p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 26px;
}

.about-side__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.about-side__btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #004438;
}

@media (max-width: 991px) {
    .about-side__media {
        margin: 24px 24px 0;
    }

    .about-side__body {
        padding: 24px 24px 30px;
    }

    .about-side__title {
        font-size: 1.15rem;
    }
}

/* ------------------------------------------------------------
   20. INSIGHTS / BLOG LIST
   Horizontal cards: image left · solid panel right.
   One definition, reused by the insights list and search results.
   ------------------------------------------------------------ */
.c-content-aggregator__title {
    color: #1d1737;
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1.2;
}

.blog-lead {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-3);
}

/* Featured article */
.post-feature {
    display: grid;
    grid-template-columns: 56% 44%;
    min-height: 470px;
    background: var(--cream);
    overflow: hidden;
    margin-bottom: 60px;
    transition: box-shadow 0.35s ease;
}

.post-feature:hover {
    box-shadow: var(--shadow-md);
}

.post-feature__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cream-2);
}

.post-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.post-feature:hover .post-feature__media img {
    transform: scale(1.05);
}

.post-feature__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 52px;
}

.post-feature__cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 18px;
}

.post-feature__title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 18px;
}

.post-feature__title a:hover {
    color: var(--green-700);
}

.post-feature__excerpt {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-3);
    margin-bottom: 22px;
    max-width: 52ch;
}

.post-feature__meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: 30px;
}

.post-feature__btn {
    margin-top: auto;
    border-radius: 0;
}

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

.insight-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 340px;
    background: var(--green-800);
    overflow: hidden;
    transition: box-shadow 0.35s ease;
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
}

/* Media — the image eases in on hover */
.insight-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cream-2);
}

.insight-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
    will-change: transform;
}

.insight-card:hover .insight-card__media img {
    transform: scale(1.09);
}

.insight-card__media .media-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--green-100);
}

/* Panel */
.insight-card__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 30px 34px;
    color: #ffffff;
}

.insight-card__cat {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fe0b8;
    margin-bottom: 14px;
}

.insight-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
}

.insight-card__title a {
    color: inherit;
}

.insight-card__title a:hover {
    color: #a7e7c0;
}

.insight-card__excerpt {
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.insight-card__btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--green-900);
}

/* ------------------------------------------------------------
   21. ARTICLE (blog detail)
   ------------------------------------------------------------ */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
}

.article {
    min-width: 0;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 18px;
}

.article__cat {
    color: var(--green-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.article__title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 20px;
}

.article__lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ink-2);
    margin-bottom: 30px;
}

/* Author strip */
.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
}

.article-author__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.article-author__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
}

.article-author__meta {
    font-size: 0.78rem;
    color: var(--ink-3);
    margin-top: 3px;
}

/* Hero image */
.article__hero {
    margin: 0 0 38px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--cream-2);
}

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

/* Inline figure */
.article__figure {
    margin: 38px 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--cream-2);
}

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

/* Body */
.article__body h2 {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--ink);
    padding-top: 26px;
    border-top: 1px solid var(--line);
    margin: 46px 0 18px;
}

.article__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 30px 0 12px;
}

.article__body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-2);
    margin-bottom: 22px;
}

.article__body ul,
.article__body ol {
    margin: 0 0 24px;
    padding-left: 22px;
    list-style: disc;
}

.article__body ol {
    list-style: decimal;
}

.article__body li {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.article__body blockquote {
    border-left: 3px solid var(--green-700);
    background: var(--green-50);
    padding: 22px 26px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 30px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.75;
}

/* Bottom CTA inside article */
.article-cta {
    margin-top: 50px;
    padding: 38px 36px;
    background: var(--green-800);
    border-radius: var(--radius);
    color: #ffffff;
}

.article-cta h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 10px;
}

.article-cta p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 22px;
    max-width: 48ch;
}

.article__footer {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Sidebar */
.article-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-height: 900px) {
    .article-side {
        position: sticky;
        top: 100px;
    }
}

.side-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.side-card--newsletter {
    background: var(--green-800);
}

.side-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-2);
}

.side-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-card__body {
    padding: 24px 24px 26px;
}

.side-card--newsletter h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
}

.side-card--newsletter p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.side-subscribe {
    display: flex;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.side-subscribe input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    padding: 12px 13px;
}

.side-subscribe input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.side-subscribe button {
    width: 46px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.25s ease;
}

.side-subscribe button:hover {
    background: var(--green-700);
}

.side-note {
    font-size: 0.76rem;
    color: #a7e7c0;
    margin-top: 10px;
    min-height: 1.1em;
}

.side-card--plain {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 24px;
}

.side-card__title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
}

.side-list li {
    margin-bottom: 16px;
}

.side-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.side-list__body {
    flex: 1;
    min-width: 0;
}

.side-list__thumb {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--cream-2);
}

.side-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.side-list a:hover .side-list__thumb img {
    transform: scale(1.07);
}

.side-list__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    transition: color 0.2s ease;
}

.side-list a:hover .side-list__title {
    color: var(--green-700);
}

.side-list__meta {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-3);
    margin-top: 5px;
}

/* ------------------------------------------------------------
   22. CONTACT
   Simple two-column: details left, short form right
   ------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: block;
}

.contact-info__title {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 14px;
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.contact-details dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 5px;
}

.contact-details dd {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ink);
}

.num {
    font-family: var(--font-num);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: normal;
}

.contact-details a {
    color: var(--green-700);
}

.contact-details a:hover {
    text-decoration: underline;
}

/* No panel, no labels — three fields in a row, one message box */

.contact-form-wrap {
    padding-top: 4px;
}

.contact-form__title {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #dcd9d2;
    border-radius: 0;
    padding: 15px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-700);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6f6f6f;
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 132px;
    padding: 16px;
}

.contact-form-wrap .btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-success {
    display: none;
    background: var(--green-50);
    border: 1px solid #bfe0cc;
    color: var(--green-800);
    padding: 14px 16px;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.form-success.is-visible {
    display: block;
}

/* ------------------------------------------------------------
   23. SEARCH OVERLAY
   ------------------------------------------------------------ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 17, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 20px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__box {
    width: 100%;
    max-width: 720px;
}

.search-overlay__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #ffffff;
}

.search-overlay__head h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fe0b8;
}

.search-overlay__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-overlay__field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 8px 8px 8px 20px;
    box-shadow: var(--shadow-lg);
}

.search-overlay__field input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.search-overlay__field button {
    background: var(--green-700);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-overlay__field button:hover {
    background: var(--green-800);
}

.search-results {
    margin-top: 14px;
    max-height: 52vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow-lg);
}

.search-results__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--line-2);
}

.search-results__item:last-child {
    border-bottom: none;
}

.search-results__item:hover {
    background: var(--green-50);
}

.search-results__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-results__info {
    flex: 1;
    min-width: 0;
}

.search-results__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results__sub {
    font-size: 0.78rem;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results__type {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-50);
    padding: 4px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.search-empty {
    text-align: center;
    padding: 30px;
    color: var(--ink-3);
    font-size: 0.92rem;
}

.search-hint {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    text-align: center;
    margin-top: 14px;
}

/* Search page */
.search-page-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.search-page-bar input {
    flex: 1;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 18px;
    outline: none;
}

.search-page-bar input:focus {
    border-color: var(--green-700);
}

.search-summary {
    font-size: 0.95rem;
    color: var(--ink-3);
    margin-bottom: 30px;
}

.search-summary strong {
    color: var(--green-700);
}

.search-block {
    margin-bottom: 50px;
}

.search-block__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-block__title i {
    color: var(--green-700);
}

.search-block__title span {
    font-size: 0.82rem;
    color: var(--ink-3);
    font-weight: 600;
}

.search-no-result {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-3);
}

.search-no-result i {
    font-size: 3.2rem;
    color: #d3ddd6;
    margin-bottom: 18px;
}

/* ------------------------------------------------------------
   24. FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.66);
    padding: 76px 0 32px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer__about {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 340px;
}

.footer__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fd9ab;
    font-weight: 700;
    font-size: 0.92rem;
}

.footer__email:hover {
    color: #ffffff;
}

.footer__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer__contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.footer__contact i {
    color: #8fd9ab;
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   BACK TO TOP
   Slides up from the bottom once the page is scrolled, and
   slides back down again when the page returns to the top.
   Injected once from main.js so every page stays in sync.
   ------------------------------------------------------------ */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 96px;
    z-index: 850;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, visibility 0.45s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top__label {
    background: rgba(0, 68, 56, 0.92);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: background 0.25s ease;
}

.back-to-top__icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 68, 56, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    box-shadow: 0 0 0 4px rgba(0, 68, 56, 0.12), 0 0 14px rgba(15, 123, 65, 0.3), var(--shadow-md);
    transition: background 0.25s ease, transform 0.25s ease;
}

/* Automatic halo — two staggered rings breathing outward */
.back-to-top__icon::before,
.back-to-top__icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(31, 178, 103, 0.55);
    animation: bttRing 2.8s ease-out infinite;
    pointer-events: none;
}

.back-to-top__icon::after {
    animation-delay: 1.4s;
}

@keyframes bttRing {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.back-to-top:hover .back-to-top__label {
    background: var(--green-700);
}

.back-to-top:hover .back-to-top__icon {
    background: var(--green-700);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .back-to-top {
        right: 1rem;
        bottom: 96px;
    }

    .back-to-top__label {
        display: none;
    }

    .back-to-top__icon {
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transform: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .back-to-top__icon::before,
    .back-to-top__icon::after {
        animation: none;
        opacity: 0;
    }
}

/* ------------------------------------------------------------
   25. UTILITIES
   ------------------------------------------------------------ */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-40 {
    margin-bottom: 40px;
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------
   26. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .feature-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid--4 .feature:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .feature-grid--4 .feature:nth-child(2n) {
        border-right: none;
    }

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

@media (max-width: 1080px) {
    .header {
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(360px, 88vw);
        background: #ffffff;
        border-left: 1px solid var(--line);
        padding: 74px 24px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }

    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        margin: 0;
        background: #ffffff;
        border: 1px solid var(--line);
        color: var(--ink);
        font-size: 1rem;
        line-height: 1;
        z-index: 2;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 6px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line-2);
        border-radius: 0;
    }

    .nav__link::after {
        display: none;
    }

    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--cream);
        padding: 8px;
        margin-bottom: 8px;
        display: none;
    }

    .nav__dropdown.is-open {
        display: block;
    }

    .header__burger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .header__actions {
        margin-left: auto;
    }

    .header__actions > * {
        margin-left: 8px;
    }

    .header__actions > *:first-child {
        margin-left: 0;
    }

    .header__search,
    .header__burger {
        width: 40px;
        height: 40px;
        padding: 0;
        flex: 0 0 40px;
        line-height: 1;
    }

    .header__inner {
        gap: 12px;
    }

    .nav {
        margin-left: 0;
    }

    .topbar__item--hide-mobile {
        display: none;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item {
        border-left: 1px solid var(--line);
        border-top: 1px solid var(--line);
    }

    .stats__item:nth-child(odd) {
        border-left: none;
    }

    .stats__item:nth-child(-n + 2) {
        border-top: none;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .feature:nth-child(2n) {
        border-right: none;
    }

    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-main {
        padding-right: 0;
    }

    .facets {
        position: fixed;
        top: 0;
        left: 0;
        width: min(340px, 86vw);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #ffffff;
        padding: 0 20px 34px;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s ease;
        z-index: 1200;
        box-shadow: var(--shadow-lg);
    }

    .facets.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .facets__title {
        display: none;
    }

    .facets__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1;
        background: #ffffff;
        padding: 16px 0 14px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--line);
    }

    .facets__head-title {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink);
    }

    .facets__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        background: #ffffff;
        border: 1px solid var(--line);
        color: var(--ink);
        font-size: 0.95rem;
        line-height: 1;
    }

    .facet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 26, 17, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1100;
    }

    .facet-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        padding: 13px 20px;
        background: var(--green-800);
        color: #ffffff;
        font-family: inherit;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

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

    .product-row__media {
        min-height: 190px;
    }

    .pd-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .pd-gallery {
        position: static;
        max-width: 480px;
    }

    .app-card {
        min-height: 280px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .article {
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
    }

    .article-side {
        position: static;
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
    }

    .post-feature {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .post-feature__media {
        aspect-ratio: 16 / 9;
    }

    .post-feature__body {
        padding: 36px 28px 38px;
    }

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

@media (max-width: 720px) {
    .section-head {
        margin-bottom: 40px;
    }

    .section-head--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

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

    .cat-card {
        min-height: 280px;
    }

    .feature-grid,
    .feature-grid--4 {
        grid-template-columns: 1fr;
    }

    .feature,
    .feature-grid--4 .feature {
        border-right: none !important;
        padding: 34px 10px;
    }

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

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

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

    /* Stack the horizontal insight card: image on top, panel below */
    .insight-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .insight-card__media {
        aspect-ratio: 16 / 9;
    }

    .insight-card__panel {
        padding: 22px 20px 24px;
    }

    .insight-card__title {
        font-size: 1rem;
    }

    .c-content-aggregator__title {
        font-size: 1.5rem;
    }

    .blog-lead {
        margin-bottom: 40px;
        font-size: 0.98rem;
    }

    .post-feature {
        margin-bottom: 44px;
    }

    .post-feature__title {
        font-size: 1.5rem;
    }

    .article-cta {
        padding: 28px 22px;
    }

    .about-hero {
        height: 340px;
    }

    .article__body h2 {
        margin-top: 36px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-toggle {
        align-self: flex-start;
    }

    .product-search {
        flex-direction: column;
    }

    .product-search button {
        padding: 15px 20px;
    }

    .products-sort {
        justify-content: space-between;
    }

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

    .product-row__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .product-row__body {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding: 24px 22px 26px;
    }

    .product-row__name {
        font-size: 1.3rem;
    }

    .product-row__desc {
        -webkit-line-clamp: 3;
    }

    .product-row__link {
        margin-left: 0;
    }

    .pd-block {
        padding: 28px 22px;
    }

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

    .app-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .app-card__media {
        aspect-ratio: 16 / 9;
    }

    .app-card__body {
        padding: 24px 22px 26px;
    }

    .app-card__title {
        font-size: 1.15rem;
    }

    .cta-panel {
        padding: 50px 30px;
    }

    .cta-panel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-wrap {
        padding: 32px 24px 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 34px;
    }

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

    .stats__item {
        padding: 32px 16px;
    }

    .certs {
        gap: 22px;
        justify-content: flex-start;
    }
}

@media (max-width: 460px) {
    .brand__name {
        font-size: 1.25rem;
    }

    .topbar {
        display: none;
    }

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

/* ============================================================
   24. WORDPRESS ADDITIONS
   Content that comes from the editor / featured images.
   ============================================================ */

/* Product thumbnails inside cards */
.product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.05);
}

/* Fallback glyph when a product has no featured image */
.product-row__media .row-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--accent);
    opacity: 0.5;
}

/* Page / post content inside About template */
.about-main > p,
.about-main > ul,
.about-main > ol {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.about-main > h2 {
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
    margin: 34px 0 14px;
}

.about-main > h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin: 30px 0 12px;
}

.about-main > ul,
.about-main > ol {
    padding-left: 22px;
}

.about-main > ul li,
.about-main > ol li {
    margin-bottom: 8px;
}

.about-main img,
.article__body img {
    max-width: 100%;
    height: auto;
}

.about-main blockquote,
.article__body blockquote {
    border-left: 3px solid var(--green-700);
    padding: 4px 0 4px 20px;
    margin: 26px 0;
    font-style: italic;
    color: var(--ink-2);
}

/* Editor alignment classes */
.alignleft {
    float: left;
    margin: 6px 24px 18px 0;
}

.alignright {
    float: right;
    margin: 6px 0 18px 24px;
}

.aligncenter {
    display: block;
    margin: 24px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: var(--ink-3);
    margin-top: 8px;
}

/* Accessibility helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background: #ffffff;
    clip: auto;
    clip-path: none;
    color: var(--green-700);
    display: block;
    font-weight: 700;
    height: auto;
    left: 16px;
    padding: 12px 20px;
    top: 16px;
    width: auto;
    z-index: 9999;
}

/* Comment list (single post) */
.comments-area {
    margin-top: 54px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 22px;
}

.pagination .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
}

.pagination .page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Category / application card without an image */
.cat-card__img img[src=""] {
    display: none;
}

/* Comment form — matches the contact form fields */
.comments-title,
.comment-reply-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 0.86rem;
    color: var(--ink-3);
    margin-bottom: 7px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #dcd9d2;
    border-radius: 0;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--green-700);
}

.comment-form .form-submit {
    margin-bottom: 0;
}

/* Contact form honeypot — never visible to humans */
.contact-hp {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success--error {
    background: #fdf1ef;
    border-color: #f0c3ba;
    color: #a5341f;
}

/* ------------------------------------------------------------
   25. PRODUCT SPEC TABLE (generated HTML) + GALLERY THUMBS
   The product generator writes a free-form HTML table into the
   product_specs meta field, so the styles below cover whatever
   table / list markup it produces.
   ------------------------------------------------------------ */
.pd-specs {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.7;
}

.pd-specs > p:first-child {
    margin-top: 0;
}

.pd-specs > p:last-child {
    margin-bottom: 0;
}

.pd-specs h3,
.pd-specs h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 26px 0 10px;
}

.pd-specs table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 22px;
    font-size: 0.9rem;
}

.pd-specs table th,
.pd-specs table td {
    border: 1px solid var(--line-2);
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.pd-specs table th {
    width: 34%;
    background: var(--cream);
    font-weight: 600;
    color: var(--ink-3);
    white-space: nowrap;
}

.pd-specs table tr:nth-child(even) td {
    background: #fcfbf8;
}

.pd-specs ul,
.pd-specs ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

.pd-specs li {
    margin-bottom: 6px;
}

/* Legacy multi-image gallery */
.pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pd-thumb {
    display: block;
    width: 74px;
    height: 74px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb:hover {
    border-color: var(--green-700);
}

/* Tag cloud (product tag archive) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.tag-cloud__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 6px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.84rem;
    color: var(--ink-2);
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-chip:hover {
    color: var(--green-700);
    border-color: var(--green-700);
}
