/* ==========================================================================
   CUSTOM BLOCKS CSS — Le Monde du Microbiote
   Styles spécifiques pour Kadence Blocks et effets visuels
   ========================================================================== */

/* ==========================================================================
   GRADIENTS — Fonds dégradés
   ========================================================================== */
.section-gradient-hero {
    background: radial-gradient(ellipse at center, #238a7a 0%, #0f4a42 100%);
}

.section-gradient-dark {
    background: radial-gradient(ellipse at 30% 50%, #2a3d3d 0%, #1E2A2A 100%);
}

.section-gradient-teal-light {
    background: radial-gradient(ellipse at center, rgba(26, 122, 109, 0.08) 0%, rgba(26, 122, 109, 0.02) 100%);
}

.section-gradient-accent {
    background: linear-gradient(135deg, rgba(198, 122, 75, 0.06) 0%, rgba(198, 122, 75, 0.02) 100%);
}

/* ==========================================================================
   CARDS — Profondeur et lévitation
   ========================================================================== */
.card-depth {
    background: var(--color-white, #FFFFFF);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card, 0 20px 60px rgba(0, 0, 0, 0.08));
    transition: all var(--transition-base, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
    overflow: hidden;
}

.card-depth:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 30px 80px rgba(0, 0, 0, 0.14));
}

/* Card produit affiliation */
.card-product {
    background: var(--color-white, #FFFFFF);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-lg, 40px);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.card-product .product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    background-color: var(--color-accent, #C67A4B);
    border-radius: 50px;
}

.card-product .product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto var(--spacing-md, 24px);
}

.card-product .product-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs, 8px);
}

.card-product .product-brand {
    font-size: 14px;
    color: var(--color-gray, #9B9B9B);
    margin-bottom: var(--spacing-sm, 16px);
}

.card-product .product-stars {
    color: var(--color-accent, #C67A4B);
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm, 16px);
}

.card-product .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary, #1A7A6D);
    margin-bottom: var(--spacing-md, 24px);
}

.card-product .product-pros,
.card-product .product-cons {
    text-align: left;
    font-size: 14px;
    margin-bottom: var(--spacing-sm, 16px);
    padding: 0;
    list-style: none;
}

.card-product .product-pros li::before {
    content: "\2713 ";
    color: var(--color-primary, #1A7A6D);
    font-weight: 700;
    margin-right: 8px;
}

.card-product .product-cons li::before {
    content: "\2717 ";
    color: var(--color-accent, #C67A4B);
    font-weight: 700;
    margin-right: 8px;
}

/* Card article blog */
.card-article {
    background: var(--color-white, #FFFFFF);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-article .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-article .card-content {
    padding: var(--spacing-md, 24px);
}

.card-article .card-category {
    display: inline-block;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white, #FFFFFF);
    background-color: var(--color-primary, #1A7A6D);
    border-radius: 50px;
    margin-bottom: var(--spacing-xs, 8px);
}

.card-article .card-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs, 8px);
}

.card-article .card-title a {
    color: var(--color-text, #2C2C2C);
    text-decoration: none;
}

.card-article .card-title a:hover {
    color: var(--color-primary, #1A7A6D);
}

.card-article .card-excerpt {
    font-size: 15px;
    color: var(--color-gray, #9B9B9B);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm, 16px);
}

.card-article .card-meta {
    font-size: 13px;
    color: var(--color-gray, #9B9B9B);
}

/* Card feature (article principal) */
.card-feature {
    grid-row: span 2;
}

.card-feature .card-image {
    height: 100%;
    min-height: 300px;
}

/* ==========================================================================
   TEXT SHADOWS — Sections sombres
   ========================================================================== */
.text-shadow-light {
    text-shadow: var(--shadow-text, 0 2px 10px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   HOVER LÉVITATION
   ========================================================================== */
.hover-levitate {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-levitate:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   ANIMATIONS AU SCROLL — Fade In Up
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==========================================================================
   TRUST BAR — Bande de réassurance
   ========================================================================== */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg, 40px);
    padding: var(--spacing-md, 24px) 0;
    border-top: 1px solid var(--color-gray-light, #E8E4DF);
    border-bottom: 1px solid var(--color-gray-light, #E8E4DF);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #2C2C2C);
}

.trust-item .trust-icon {
    font-size: 24px;
    color: var(--color-primary, #1A7A6D);
}

/* ==========================================================================
   TABLE DES MATIÈRES (single.php)
   ========================================================================== */
.toc-container {
    background: var(--color-white, #FFFFFF);
    border: 2px solid var(--color-gray-light, #E8E4DF);
    border-radius: var(--radius-md, 12px);
    padding: var(--spacing-md, 24px);
    margin-bottom: var(--spacing-lg, 40px);
}

.toc-container .toc-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm, 16px);
    color: var(--color-primary, #1A7A6D);
}

.toc-container ol {
    padding-left: var(--spacing-md, 24px);
    margin: 0;
}

.toc-container li {
    margin-bottom: var(--spacing-xs, 8px);
    font-size: 15px;
}

.toc-container a {
    color: var(--color-text, #2C2C2C);
    text-decoration: none;
    transition: color var(--transition-base);
}

.toc-container a:hover {
    color: var(--color-primary, #1A7A6D);
}

/* ==========================================================================
   ENCART AUTEUR
   ========================================================================== */
.author-box {
    display: flex;
    gap: var(--spacing-md, 24px);
    align-items: center;
    background: var(--color-white, #FFFFFF);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-lg, 40px);
    margin: var(--spacing-xl, 64px) 0;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full, 50%);
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.author-box .author-bio {
    font-size: 15px;
    color: var(--color-gray, #9B9B9B);
    line-height: 1.6;
}

/* ==========================================================================
   CTA AFFILIATION INLINE
   ========================================================================== */
.cta-affiliation-inline {
    background: linear-gradient(135deg, rgba(26, 122, 109, 0.06) 0%, rgba(198, 122, 75, 0.06) 100%);
    border: 2px solid var(--color-gray-light, #E8E4DF);
    border-radius: var(--radius-md, 12px);
    padding: var(--spacing-lg, 40px);
    text-align: center;
    margin: var(--spacing-lg, 40px) 0;
}

.cta-affiliation-inline .cta-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs, 8px);
}

.cta-affiliation-inline .cta-text {
    font-size: 15px;
    color: var(--color-gray, #9B9B9B);
    margin-bottom: var(--spacing-md, 24px);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: var(--spacing-xs, 8px);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-section .newsletter-form input[type="email"] {
    flex: 1;
}

/* ==========================================================================
   TABLEAU COMPARATIF
   ========================================================================== */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin: var(--spacing-lg, 40px) 0;
}

.comparison-table thead {
    background-color: var(--color-primary, #1A7A6D);
    color: var(--color-white, #FFFFFF);
}

.comparison-table th {
    padding: var(--spacing-sm, 16px) var(--spacing-md, 24px);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.comparison-table td {
    padding: var(--spacing-sm, 16px) var(--spacing-md, 24px);
    font-size: 15px;
    border-bottom: 1px solid var(--color-gray-light, #E8E4DF);
}

.comparison-table tbody tr {
    background-color: var(--color-white, #FFFFFF);
    transition: background-color var(--transition-base);
}

.comparison-table tbody tr:hover {
    background-color: rgba(26, 122, 109, 0.04);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   GRILLE ARTICLES — Page d'accueil
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md, 24px);
}

.articles-grid .card-feature {
    grid-row: 1 / 3;
}

/* ==========================================================================
   GRILLE ARCHIVE
   ========================================================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md, 24px);
}

/* ==========================================================================
   CATÉGORIES NAVIGATION
   ========================================================================== */
.categories-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm, 16px);
}

.category-card {
    text-align: center;
    padding: var(--spacing-lg, 40px) var(--spacing-md, 24px);
    background: var(--color-white, #FFFFFF);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.category-card .category-icon {
    font-size: 40px;
    margin-bottom: var(--spacing-sm, 16px);
    display: block;
}

.category-card .category-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1rem;
    color: var(--color-text, #2C2C2C);
}

/* ==========================================================================
   PAGE 404
   ========================================================================== */
.page-404 {
    text-align: center;
    padding: var(--spacing-2xl, 120px) var(--spacing-md, 24px);
}

.page-404 .error-code {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary, #1A7A6D);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--spacing-sm, 16px);
}

.page-404 .error-message {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2rem;
    margin-bottom: var(--spacing-md, 24px);
}

.page-404 .error-text {
    font-size: 17px;
    color: var(--color-gray, #9B9B9B);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg, 40px);
}

/* ==========================================================================
   RESPONSIVE — MEDIA QUERIES
   ========================================================================== */

/* Tablette */
@media (max-width: 1024px) {
    .categories-nav {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .articles-grid .card-feature {
        grid-row: auto;
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .trust-bar {
        gap: var(--spacing-md, 24px);
    }

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

    .newsletter-section .newsletter-form {
        flex-direction: column;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}

/* Mobile petit */
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .categories-nav {
        grid-template-columns: 1fr;
    }

    .card-product {
        padding: var(--spacing-md, 24px);
    }

    .page-404 .error-code {
        font-size: 5rem;
    }
}

/* ==========================================================================
   PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card-depth:hover,
    .card-product:hover,
    .card-article:hover,
    .hover-levitate:hover,
    .category-card:hover {
        transform: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   HOMEPAGE — HERO SPLIT
   ========================================================================== */
.hp-hero {
    min-height: 92vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: var(--color-bg, #FAF7F2);
}

.hp-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px var(--spacing-md, 24px) 80px 0;
    max-width: 600px;
    margin-left: auto;
    z-index: 2;
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-primary, #1A7A6D);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: lmmHeroIn .8s .15s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--color-primary, #1A7A6D);
    border-radius: 2px;
    flex-shrink: 0;
}

.hp-hero-h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text, #2C2C2C);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: lmmHeroIn .8s .3s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-hero-h1 em {
    font-style: italic;
    color: var(--color-primary, #1A7A6D);
}

.hp-hero-sub {
    font-size: 18px;
    color: #6B7B7A;
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 44px;
    opacity: 0;
    transform: translateY(20px);
    animation: lmmHeroIn .8s .45s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: lmmHeroIn .8s .6s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-btn-hero {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 100px !important;
    padding: 14px 28px !important;
}

.hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary, #1A7A6D);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap .2s;
}

.hp-btn-ghost:hover { gap: 14px; text-decoration: none; color: var(--color-primary, #1A7A6D); }

/* Stats */
.hp-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(26,122,109,.12);
    opacity: 0;
    transform: translateY(20px);
    animation: lmmHeroIn .8s .75s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-stat { display: flex; flex-direction: column; gap: 4px; }

.hp-stat-num {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary, #1A7A6D);
}

.hp-stat-lbl { font-size: 12px; color: #6B7B7A; font-weight: 500; letter-spacing: .04em; }

/* Hero Right — Microbiome Visualization */
.hp-hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: lmmHeroIn 1s .5s cubic-bezier(.22,.61,.36,1) forwards;
}

.hp-hero-bg-shape {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse 70% 80% at 60% 50%, #1A7A6D 0%, #0f4a42 60%, #1E2A2A 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hp-cells-wrap {
    position: relative;
    z-index: 2;
    width: 420px;
    height: 420px;
}

.hp-cell {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    animation: lmmCellFloat linear infinite;
}

.hp-cell::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.hp-cell:nth-child(1)  { width:160px;height:160px;top:20px; left:60px; animation-duration:8s; animation-delay:0s;    background:rgba(255,255,255,.06); }
.hp-cell:nth-child(2)  { width:90px; height:90px; top:50px; left:230px;animation-duration:11s;animation-delay:-2s;   background:rgba(198,122,75,.25); }
.hp-cell:nth-child(3)  { width:120px;height:120px;top:170px;left:30px; animation-duration:9s; animation-delay:-4s;   }
.hp-cell:nth-child(4)  { width:60px; height:60px; top:200px;left:200px;animation-duration:7s; animation-delay:-1s;   background:rgba(255,255,255,.15); }
.hp-cell:nth-child(5)  { width:100px;height:100px;top:280px;left:100px;animation-duration:12s;animation-delay:-5s;   background:rgba(198,122,75,.18); }
.hp-cell:nth-child(6)  { width:50px; height:50px; top:310px;left:260px;animation-duration:6s; animation-delay:-3s;   }
.hp-cell:nth-child(7)  { width:140px;height:140px;top:140px;left:160px;animation-duration:10s;animation-delay:-6s;   background:rgba(255,255,255,.04); }
.hp-cell:nth-child(8)  { width:40px; height:40px; top:80px; left:340px;animation-duration:8s; animation-delay:-2.5s; background:rgba(255,255,255,.2); }
.hp-cell:nth-child(9)  { width:70px; height:70px; top:360px;left:320px;animation-duration:9s; animation-delay:-7s;   background:rgba(198,122,75,.22); }
.hp-cell:nth-child(10) { width:30px; height:30px; top:340px;left:60px; animation-duration:5s; animation-delay:-1.5s; background:rgba(255,255,255,.3); }

@keyframes lmmCellFloat {
    0%   { transform: translate(0,0) scale(1); }
    33%  { transform: translate(8px,-12px) scale(1.05); }
    66%  { transform: translate(-6px,8px) scale(.95); }
    100% { transform: translate(0,0) scale(1); }
}

@keyframes lmmHeroIn {
    to { opacity: 1; transform: translateY(0); }
}

.hp-cells-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}

/* Scroll hint */
.hp-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7B7A;
    z-index: 3;
    animation: lmmScrollHint 2s ease-in-out infinite;
}

.hp-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-primary, #1A7A6D), transparent);
}

@keyframes lmmScrollHint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
    50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Image placeholder (no thumbnail) */
.hp-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A7A6D 0%, #238a7a 40%, #0f5a50 100%);
    position: relative;
    overflow: hidden;
}

.hp-card-img-cells { position: absolute; inset: 0; overflow: hidden; }
.hp-card-img-cells span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
}
.hp-card-img-cells span:nth-child(1) { width:180px;height:180px;right:-40px;top:-40px; }
.hp-card-img-cells span:nth-child(2) { width:100px;height:100px;right:60px;top:80px;background:rgba(198,122,75,.2); }
.hp-card-img-cells span:nth-child(3) { width:60px; height:60px; left:40px;bottom:40px; }
.hp-card-img-cells span:nth-child(4) { width:140px;height:140px;left:-30px;top:60px; }

/* ==========================================================================
   HOMEPAGE — TRUST BAR
   ========================================================================== */
.hp-trust-bar {
    background: var(--color-dark, #1E2A2A);
    padding: 28px 0;
}

.hp-trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hp-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    font-weight: 500;
}

.hp-trust-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hp-trust-icon svg { width: 18px; height: 18px; stroke: var(--color-accent, #C67A4B); }

.hp-trust-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* ==========================================================================
   HOMEPAGE — SECTION HEADER
   ========================================================================== */
.hp-section-articles {
    padding: 100px 0;
}

.hp-section-categories {
    padding: 0 0 100px;
}

.hp-section-newsletter {
    padding: 0 0 120px;
}

.hp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    gap: 24px;
}

.hp-section-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-primary, #1A7A6D);
    margin-bottom: 10px;
}

.hp-section-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text, #2C2C2C);
    margin-bottom: 0;
}

.hp-section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #1A7A6D);
    white-space: nowrap;
    text-decoration: none;
    transition: gap .2s;
}

.hp-section-link:hover { gap: 10px; text-decoration: none; color: var(--color-primary, #1A7A6D); }

/* ==========================================================================
   HOMEPAGE — ARTICLES GRID (editorial)
   ========================================================================== */
.hp-articles-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

/* Featured card */
.hp-card-featured {
    grid-row: 1 / 3;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26,122,109,.08), 0 1px 4px rgba(0,0,0,.06);
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.hp-card-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26,122,109,.16), 0 4px 12px rgba(0,0,0,.08);
    text-decoration: none;
}

.hp-card-featured-img {
    height: 320px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hp-card-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.hp-card-img-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-accent, #C67A4B);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
}

.hp-card-featured-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hp-card-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary, #1A7A6D);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hp-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #6B7B7A;
    flex-shrink: 0;
}

.hp-card-date { font-size: 12px; color: #6B7B7A; }

.hp-card-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text, #2C2C2C);
    margin-bottom: 14px;
    transition: color .2s;
}

.hp-card-featured:hover .hp-card-title { color: var(--color-primary, #1A7A6D); }

.hp-card-excerpt { font-size: 15px; color: #6B7B7A; line-height: 1.65; flex: 1; margin-bottom: 0; }

.hp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(26,122,109,.1);
}

.hp-card-read-time { font-size: 12px; color: #6B7B7A; font-weight: 500; }

.hp-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26,122,109,.08);
    display: grid;
    place-items: center;
    transition: background .2s, transform .25s;
    flex-shrink: 0;
}

.hp-card-arrow svg { width: 16px; height: 16px; }
.hp-card-featured:hover .hp-card-arrow { background: var(--color-primary, #1A7A6D); transform: translateX(4px); }
.hp-card-featured:hover .hp-card-arrow svg { stroke: white; }

/* Small cards */
.hp-card-small {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26,122,109,.08), 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    text-decoration: none;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}

.hp-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26,122,109,.16), 0 4px 12px rgba(0,0,0,.08);
    text-decoration: none;
}

.hp-card-small-img {
    width: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hp-card-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.hp-card-img-warm { background: linear-gradient(160deg, #c67a4b 0%, #a5603a 100%); }
.hp-card-img-deep { background: linear-gradient(160deg, #1E2A2A 0%, #2d4040 100%); }

.hp-card-small-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.hp-card-small-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text, #2C2C2C);
    margin-bottom: 10px;
    transition: color .2s;
}

.hp-card-small:hover .hp-card-small-title { color: var(--color-primary, #1A7A6D); }

.hp-card-small-excerpt { font-size: 13px; color: #6B7B7A; line-height: 1.6; flex: 1; margin-bottom: 0; }

.hp-card-small-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    color: #6B7B7A;
}

/* Empty state */
.hp-empty-articles {
    text-align: center;
    padding: 80px var(--spacing-md, 24px);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 24px rgba(26,122,109,.08);
}

.hp-empty-icon { font-size: 56px; margin-bottom: 20px; display: block; }
.hp-empty-articles h3 { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 22px; margin-bottom: 12px; }
.hp-empty-articles p { color: #6B7B7A; margin-bottom: 28px; }

/* ==========================================================================
   HOMEPAGE — CATEGORIES GRID
   ========================================================================== */
.hp-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hp-cat-card {
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}

.hp-cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(26,122,109,.16); text-decoration: none; }

.hp-cat-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.hp-cat-1 { background: linear-gradient(145deg, #1A7A6D, #0f4a42); }
.hp-cat-2 { background: linear-gradient(145deg, #2d5c58, #1A7A6D); }
.hp-cat-3 { background: linear-gradient(145deg, #C67A4B, #a55c32); }
.hp-cat-4 { background: linear-gradient(145deg, #3a7a75, #1E4A46); }
.hp-cat-5 { background: linear-gradient(145deg, #1E2A2A, #2d4040); }

.hp-cat-icon { font-size: 28px; margin-bottom: 4px; }

.hp-cat-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.hp-cat-count { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 500; }
.hp-cat-card:hover .hp-cat-count { color: rgba(255,255,255,.85); }

/* ==========================================================================
   HOMEPAGE — AFFILIATION BANNER
   ========================================================================== */
.hp-affiliation {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: var(--color-dark, #1E2A2A);
    margin-bottom: 100px;
}

.hp-affiliation-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(198,122,75,.18) 0%, transparent 70%),
                radial-gradient(circle at 10% 50%, rgba(26,122,109,.25) 0%, transparent 50%);
}

.hp-affiliation-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding: 64px;
}

.hp-affiliation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent, #C67A4B);
    background: rgba(198,122,75,.15);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    display: inline-block;
}

.hp-affiliation-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 16px;
}

.hp-affiliation-sub {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 0;
}

.hp-btn-terra {
    display: inline-block;
    background: var(--color-accent, #C67A4B);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.hp-btn-terra:hover { background: #d4906a; transform: translateY(-2px); color: white; text-decoration: none; }

.hp-product-showcase {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-width: 220px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hp-product-placeholder-img {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-size: 40px;
}

.hp-product-showcase-name { font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.hp-product-showcase-stars { color: var(--color-accent, #C67A4B); font-size: 16px; margin-bottom: 4px; }
.hp-product-showcase-price { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 22px; color: var(--color-accent, #C67A4B); font-weight: 700; margin-bottom: 16px; }
.hp-affil-note { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 12px; margin-bottom: 0; }

/* ==========================================================================
   HOMEPAGE — NEWSLETTER CARD
   ========================================================================== */
.hp-newsletter-card {
    background: white;
    border-radius: 28px;
    padding: 80px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    box-shadow: 0 4px 24px rgba(26,122,109,.08), 0 1px 4px rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
}

.hp-newsletter-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,122,109,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hp-newsletter-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent, #C67A4B);
    margin-bottom: 12px;
}

.hp-newsletter-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text, #2C2C2C);
    margin-bottom: 16px;
}

.hp-newsletter-sub {
    font-size: 15px;
    color: #6B7B7A;
    line-height: 1.65;
    margin-bottom: 0;
}

.hp-newsletter-perks {
    list-style: none;
    margin-top: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-newsletter-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text, #2C2C2C);
    font-weight: 500;
    margin-bottom: 0;
}

.hp-perk-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(26,122,109,.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.hp-perk-check svg { width: 11px; height: 11px; stroke: var(--color-primary, #1A7A6D); }

.hp-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hp-newsletter-form input[type="text"],
.hp-newsletter-form input[type="email"] {
    padding: 14px 18px;
    border: 1.5px solid rgba(26,122,109,.15);
    border-radius: 8px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--color-text, #2C2C2C);
    background: var(--color-bg, #FAF7F2);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}

.hp-newsletter-form input:focus {
    border-color: var(--color-primary, #1A7A6D);
    box-shadow: 0 0 0 3px rgba(26,122,109,.1);
}

.hp-newsletter-form button {
    width: 100%;
    background: var(--color-primary, #1A7A6D);
    color: white;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 700;
    padding: 15px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .25s, box-shadow .25s;
}

.hp-newsletter-form button:hover {
    background: var(--color-primary-light, #238a7a);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,122,109,.25);
}

.hp-newsletter-legal {
    font-size: 11px;
    color: #6B7B7A;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0;
}

.hp-newsletter-legal a { color: var(--color-primary, #1A7A6D); }

/* ==========================================================================
   HOMEPAGE — RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hp-hero { grid-template-columns: 1fr; min-height: auto; }
    .hp-hero-right { display: none; }
    .hp-hero-left { padding: 80px var(--spacing-md, 24px); max-width: 100%; margin-left: 0; }
    .hp-articles-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hp-card-featured { grid-row: auto; }
    .hp-categories-grid { grid-template-columns: repeat(3, 1fr); }
    .hp-affiliation-inner { grid-template-columns: 1fr; }
    .hp-product-showcase { width: 100%; max-width: 360px; margin: 0 auto; }
    .hp-newsletter-card { grid-template-columns: 1fr; padding: 48px 36px; gap: 40px; }
    .hp-trust-inner { gap: 16px; }
    .hp-trust-divider { display: none; }
}

@media (max-width: 768px) {
    .hp-hero-left { padding: 60px var(--spacing-sm, 16px); }
    .hp-hero-h1 { font-size: 32px; }
    .hp-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-affiliation-inner { padding: 40px 28px; }
    .hp-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hp-scroll-hint { display: none; }
}

@media (max-width: 480px) {
    .hp-categories-grid { grid-template-columns: 1fr 1fr; }
    .hp-card-small { flex-direction: column; }
    .hp-card-small-img { width: 100%; height: 140px; }
    .hp-newsletter-card { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-eyebrow, .hp-hero-h1, .hp-hero-sub, .hp-hero-actions, .hp-hero-stats, .hp-hero-right { animation: none; opacity: 1; transform: none; }
    .hp-cell { animation: none; }
    .hp-scroll-hint { animation: none; }
}
