/**
 * Homepage sections: hero, Fields of Application grid, Products showcase, About Us.
 */

/* ==========================================================================
   VOSGES HERO SECTION (3-State Auto-Cycle: Company Intro, Fields Split, Products Split)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 93vh;
    min-height: 93vh;
    min-height: 93dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
    background-color: #0F2C4C;
    box-sizing: border-box;
}

/* Generic state wrapper — all 3 states share this fade/position mechanism. */
.hero-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-state.active {
    opacity: 1;
    visibility: visible;
}

/* State 1: Company Intro — single background image */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img-single {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Balanced semi-transparent black overlay wash to keep images vivid and text perfectly legible */
    background:
        radial-gradient(ellipse 90% 70% at 50% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.50) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

/* States 2 & 3: Divided 4-Tile Split (Fields / Products) — image-only tiles;
   title/subtitle render once via .hero-content, same as State 1. */
.hero-quadrant-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-quadrant {
    position: relative;
    overflow: hidden;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-quadrant:last-child {
    border-inline-end: none;
}

.hero-quadrant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-quadrant:hover img {
    transform: scale(1.08);
}

.quadrant-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.hero-quadrant:hover .quadrant-overlay {
    background: linear-gradient(180deg, rgba(15, 99, 161, 0.45) 0%, rgba(0, 0, 0, 0.92) 100%);
}

/* Hero Text & Button Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 3rem 1.5rem;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background-color: rgba(98, 178, 242, 0.2);
    border: 1px solid rgba(98, 178, 242, 0.4);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #F2F7FA;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--vosges-font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0 auto 2.25rem auto;
    max-width: 680px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-cta-wrapper {
    display: flex;
    justify-content: center;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3FA6F2 0%, #2D99EB 45%, #0F63A1 100%);
    color: #FFFFFF;
    font-family: var(--vosges-font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 0.9rem 2.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    box-shadow: var(--shadow-glow), 0 1px 0 rgba(255, 255, 255, 0.28) inset;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
    background: linear-gradient(135deg, #2D99EB 0%, #0F63A1 55%, #0C4C7C 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(45, 153, 235, 0.48), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn-text {
    transition: opacity 0.2s ease;
}

/* Responsive Grid for Hero Quadrants */
@media (max-width: 900px) {
    .hero-quadrant-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .hero-quadrant {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ==========================================================================
   BLOCK HIERARCHY COLOR DERIVATION (Top -> Bottom Spectrum)
   ========================================================================== */

/* Layer 1: Top Hero Section — deep brand base, not an ice tint, so white hero
   copy stays legible while imagery is loading/fading between states. */
.hero-section {
    background: var(--grad-deep);
}

/* Layer 1.5 Block: Partnerships Section (Directly after Hero - 4 Logos in Row) */
.partnerships-section {
    padding: 3rem 1.5rem;
    background-color: #FFFFFF;
    border-bottom: 1px solid #BCD6ED;
    text-align: center;
}

.partnerships-container {
    max-width: 1150px;
    margin: 0 auto;
}

.partnerships-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4A6A8A;
    margin-bottom: 1.8rem;
}

.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    align-items: center;
}

@media (max-width: 850px) {
    .partnerships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partnerships-grid {
        grid-template-columns: 1fr;
    }
}

.partner-card {
    background: #FAFCFE;
    border: 1px solid #E6F0FA;
    border-radius: 4px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 75px;
    box-shadow: 0 4px 14px rgba(15, 44, 76, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--rect-blue-3);
    box-shadow: 0 8px 20px rgba(15, 44, 76, 0.08);
}

.partner-logo-img {
    max-height: 42px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

.partner-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(45, 153, 235, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.partner-info {
    text-align: start;
}

.partner-info strong {
    display: block;
    font-size: 13.5px;
    color: #0F2C4C;
    line-height: 1.2;
}

.partner-info span {
    font-size: 11px;
    color: #4A6A8A;
}

/* Section Header Common Styles */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--rect-blue-4);
    background: linear-gradient(135deg, rgba(45, 153, 235, 0.16) 0%, rgba(15, 99, 161, 0.10) 100%);
    border: 1px solid rgba(45, 153, 235, 0.24);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--vosges-font-display);
    font-size: 2.3rem;
    color: var(--text-primary);
    margin: 0 0 0.8rem 0;
}

/* Short brand-gradient rule under section titles — ties each block back to the palette */
.section-header .section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.9rem auto 0 auto;
    background: var(--grad-brand);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Layer 2: Products Section — one shade stronger than Fields above it. */
.products-section {
    padding: 5rem 1rem;
    background-color: #DCEDFB;
    border-top: 1px solid #BFDCF4;
    border-bottom: 1px solid #A9D0F0;
}

/* Scoped to the homepage block so blog pages keep their own plain background-color. */
.products-section#products {
    background-image: linear-gradient(180deg, #E4F1FC 0%, #DCEDFB 45%, #CFE6FA 100%);
}

.products-section .section-title {
    color: var(--text-primary);
}

.products-section .section-subtitle {
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    background: var(--grad-surface);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rect-blue-3);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #F1F8FE 55%, #E3F0FB 100%);
    border-bottom: 1px solid var(--border-soft);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--rect-blue-4);
    background: linear-gradient(135deg, rgba(45, 153, 235, 0.16) 0%, rgba(15, 99, 161, 0.10) 100%);
    border: 1px solid rgba(45, 153, 235, 0.24);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.product-title {
    font-family: var(--vosges-font-display);
    font-size: 1.45rem;
    color: #0F2C4C;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.95rem;
    color: #4A6A8A;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #1B7EC4 0%, #0F63A1 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 99, 161, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-learn-more:hover {
    background: linear-gradient(135deg, #3FA6F2 0%, #2D99EB 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Layer 1.5: Fields of Application — lightest content band, must stay lighter
   than .products-section to keep the light -> strong ramp intact. */
.fields-section {
    padding: 5rem 1rem;
    background-color: #F0F7FE;
    border-top: 1px solid #DCEAF7;
    border-bottom: 1px solid #CBDFF0;
}

/* Homepage-scoped gradient (see note on .products-section#products) */
.fields-section#fields {
    background-image: linear-gradient(180deg, #FAFDFF 0%, #F0F7FE 55%, #E4F1FC 100%);
}

.fields-section .section-title {
    color: var(--text-primary);
}

.fields-section .section-subtitle {
    color: var(--text-secondary);
}

.fields-section .section-badge {
    color: var(--rect-blue-4);
    background: linear-gradient(135deg, rgba(15, 99, 161, 0.14) 0%, rgba(45, 153, 235, 0.10) 100%);
    border-color: rgba(15, 99, 161, 0.22);
}

.fields-grid {
    display: grid;
    /* Sized to match single-field.php's .field-apps-grid and the blog grid. */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1240px;
    margin: 0 auto;
}

.field-card {
    position: relative;
    background: var(--grad-surface);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.field-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rect-blue-3);
}

.field-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.field-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.field-card:hover .field-img-wrapper img {
    transform: scale(1.08);
}

.field-card-tag {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: linear-gradient(135deg, rgba(15, 99, 161, 0.92) 0%, rgba(11, 35, 61, 0.92) 100%);
    color: #CDE7FB;
    border: 1px solid rgba(138, 198, 244, 0.35);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.field-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.field-card-title {
    font-family: var(--vosges-font-display);
    font-size: 1.5rem;
    color: #0F2C4C;
    margin: 0 0 0.8rem 0;
}

.field-card-desc {
    font-size: 0.95rem;
    color: #4A6A8A;
    line-height: 1.65;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

/* About Us "Chiffres Clés" stat cards (core/group.vosges-card-box). height:100% fills
   the already-stretched .wp-block-columns row so cards with more text still match
   height. border/radius bring it in line with the site's other light cards. */
.vosges-card-box {
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
}

/* WP's default heading margins collapse rather than add — overridden explicitly
   since this gap is too small to rely on that behavior. */
.vosges-card-box h3 {
    margin-bottom: 0.3rem;
}

.vosges-card-box h4 {
    margin-top: 0;
}

.btn-field-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rect-blue-4);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-field-detail:hover {
    color: var(--rect-blue-3);
    transform: translateX(4px);
}

/* Layer 3: About Us Section — flat white. `background` (not `background-color`)
   so the shorthand clears any inherited background-image; the duplicate
   .about-section rule further down must stay white too or it wins the cascade. */
.about-section {
    position: relative;
    padding: 5rem 1rem;
    background: #FFFFFF;
    color: #0F2C4C;
    border: none;
}

.about-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 850px) {
    .about-container {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    /* display:contents makes .about-info's children direct flex items of
       .about-container, so each can get its own `order` without touching markup. */
    .about-info {
        display: contents !important;
    }

    .about-badge {
        order: 1;
        margin-bottom: 0 !important;
    }

    .about-logo-card {
        order: 2;
        width: 100% !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .about-title {
        order: 3;
        margin-bottom: 0 !important;
    }

    .about-text {
        order: 4;
        margin-bottom: 0 !important;
    }

    .about-info .btn-official {
        order: 5;
    }
}

.about-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FFFFFF;
    background: #0F63A1;
    border: 1px solid #0F63A1;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.about-title {
    font-family: var(--vosges-font-display);
    font-size: 2.2rem;
    color: #0F2C4C;
    margin: 0 0 1.25rem 0;
    line-height: 1.25;
}

.about-text {
    font-size: 1.05rem;
    color: #1E293B;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-logo-card {
    background: #FFFFFF;
    border: 1px solid #D1E4F5;
    border-radius: 4px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 44, 76, 0.08);
}

.distributor-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: none;
}

.btn-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: #0F63A1;
    font-weight: 600;
    font-size: 14px;
    padding: 0.85rem 1.6rem;
    border: 1px solid #2D99EB;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-official:hover {
    background-color: rgba(45, 153, 235, 0.1);
    color: #0F63A1;
    border-color: #0F63A1;
    transform: translateY(-2px);
}

/* ==========================================================================
   PRODUCT SPECIFICATION MODAL
   ========================================================================== */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 76, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #D1E4F5;
    max-width: 750px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 44, 76, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.product-modal-backdrop.active .product-modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4A6A8A;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #0F2C4C;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 650px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.modal-img-col {
    background: #FAFCFE;
    border: 1px solid #E6F0FA;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
}

.modal-img-col img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}

.modal-title {
    font-family: var(--vosges-font-display);
    font-size: 1.55rem;
    color: #0F2C4C;
    margin: 0.5rem 0 1rem 0;
}

.modal-desc {
    font-size: 0.95rem;
    color: #4A6A8A;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.modal-specs-list li {
    font-size: 0.9rem;
    color: #0F2C4C;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.modal-specs-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--rect-blue-3);
    font-weight: 700;
}

.blog-grid {
    display: grid;
    /* Sized to match single-field.php's .field-apps-grid. */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    .blog-grid,
    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .article-grid-layout {
        grid-template-columns: 1fr;
    }
    .article-sticky-toc {
        position: static;
    }
    .rbm-form-grid {
        grid-template-columns: 1fr;
    }
    .rbm-form-grid .full-width {
        grid-column: span 1;
    }
}

/* ==========================================================================
   Blog Comments (Blocksy's native .ct-comments + #respond) — restyled to match
   the site's card/form design language instead of Blocksy's bare defaults.
   Only vertical spacing is touched; .ct-comments is already width-constrained
   by the article container, so no max-width/side-padding here.
   ========================================================================== */
.ct-comments {
    padding: 3rem 0 2rem 0;
    margin-top: 1rem;
    border-top: 1px solid #D1E4F5;
}

/* Blocksy's .is-width-constrained leaves side gutters via its own container-width var — drop them on mobile. */
@media (max-width: 767px) {
    .ct-comments.is-width-constrained {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }
}

.ct-comments-title {
    font-family: var(--vosges-font-display);
    font-size: 1.7rem;
    color: #0F2C4C;
    margin: 0 0 1.5rem 0;
}

.ct-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #D1E4F5;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(15, 44, 76, 0.04);
    overflow: hidden;
}

.ct-comment-list li.comment {
    border-bottom: 1px solid #E6F0FA;
}

.ct-comment-list > li.comment:last-child {
    border-bottom: none;
}

.ct-comment-list ol {
    list-style: none;
    margin: 1.25rem 0 0 0;
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid #E6F0FA;
}

.ct-comment-list ol li.comment:last-child {
    border-bottom: none;
}

.ct-comment-inner {
    padding: 1.5rem 1.75rem;
}

.ct-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E6F0FA;
}

.ct-comment-author {
    font-family: var(--vosges-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #0F2C4C;
    margin: 0;
}

.ct-comment-author cite {
    font-style: normal;
}

.ct-comment-meta-data {
    font-size: 0.82rem;
    color: #7A93AC;
}

.ct-comment-meta-data a {
    color: #7A93AC;
    text-decoration: none;
}

.ct-comment-meta-data a:hover {
    color: #0F63A1;
}

.ct-comment-content {
    font-size: 0.98rem;
    color: #33597D;
    line-height: 1.65;
}

.ct-comment-content p:last-child {
    margin-bottom: 0;
}

.comment-respond {
    margin-top: 2.5rem;
}

.comment-reply-title {
    font-family: var(--vosges-font-display);
    font-size: 1.35rem;
    color: #0F2C4C;
    margin: 0 0 1rem 0;
}

.comment-form .logged-in-as,
.comment-form .required-field-message {
    font-size: 0.85rem;
    color: #7A93AC;
    margin-bottom: 1.25rem;
}

.comment-form .logged-in-as a {
    color: #0F63A1;
}

.comment-form .required-field-message .required {
    color: #B84A3F;
}

.comment-form label {
    display: block;
    font-family: var(--vosges-font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: #0F2C4C;
    margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #D1E4F5;
    border-radius: 4px;
    font-family: var(--vosges-font-body);
    font-size: 14.5px;
    color: #0F2C4C;
    background: #F8FAFC;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rect-blue-3);
    background-color: #FFFFFF;
}

.comment-form .form-submit {
    margin: 0.5rem 0 0 0;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    background-color: var(--rect-blue-4);
    color: #FFFFFF;
    font-family: var(--vosges-font-body);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .submit:hover {
    background-color: var(--rect-blue-3);
}

@media (max-width: 600px) {
    .ct-comment-inner {
        padding: 1.25rem 1.1rem;
    }
}

/* ==========================================================================
   Taste-Skill Anti-Slop Scroll Reveal & Micro Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Image subtle zoom inside cards on hover */
.field-img-wrapper img, .product-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.clickable-card:hover .field-img-wrapper img,
.clickable-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

/* Hero Badge Micro-Pulse */
@keyframes badgeGlowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 153, 235, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(45, 153, 235, 0); }
}

.hero-badge, .section-badge {
    animation: badgeGlowPulse 4s infinite ease-in-out;
}

/* ==========================================================================
   Smooth Scroll Offset & Mobile Responsiveness System
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* Scroll lower when navigating to sections */
#fields, #products, #about, #hero {
    scroll-margin-top: calc(var(--header-h) + 38px);
}

@media (max-width: 768px) {
    .quadrant-overlay {
        display: flex !important;
        opacity: 1 !important;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.88) 100%) !important;
        padding: 0.9rem 0.8rem !important;
    }

    .hero-section {
        padding: calc(var(--header-h) + 38px) 1.25rem 50px 1.25rem !important;
        height: 93vh !important;
        min-height: 93vh !important;
        min-height: 93dvh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .hero-content {
        padding: 1.5rem 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1.1rem !important;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85) !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.55 !important;
        max-width: 95% !important;
        margin-bottom: 2.2rem !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
    }

    /* .partners-grid is defined in 04-sections-blog.css; kept here with the other
       grid selectors since this rule predates the split and touches all four. */
    .fields-grid, .products-grid, .partners-grid, .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* Matches .field-apps-grid's mobile row gap (single-field.php); products/partners unchanged. */
    .fields-grid, .blog-grid {
        gap: 2rem !important;
    }

    .products-grid, .partners-grid {
        padding: 0 1rem !important;
    }

    .field-card, .product-card {
        width: 100% !important;
        box-sizing: border-box;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: calc(var(--header-h) + 23px) 1rem 40px 1rem !important;
        height: 93vh !important;
        min-height: 93vh !important;
        min-height: 93dvh !important;
    }
    .hero-title {
        font-size: 1.85rem !important;
        margin-bottom: 1rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 2rem !important;
    }
    .hero-cta-btn {
        width: 100%;
        max-width: 290px;
        justify-content: center;
        padding: 0.9rem 1.6rem !important;
        font-size: 15px !important;
    }
    .nav-logo {
        height: 64px;
    }
}

/* ==========================================================================
   PRODUCT SECTION — CARDLESS EDITORIAL SHOWCASE (STRICT UI-UX IDENTITY SYSTEM)
   NEW ARA comes from Left | SUPER CATALYZER comes from Right
   ========================================================================== */

.products-section {
    padding: 6rem 1rem;
    background-color: #E6F2FC; /* Progressively stronger Layer 1 -> Layer 2 tint */
    border-top: none !important;
    border-bottom: none !important;
    overflow: hidden;
}

.about-section {
    padding: 5rem 1rem;
    background-color: #FFFFFF;
    border-top: none !important;
    border-bottom: none !important;
}

.product-showcase-container {
    max-width: 1240px;
    margin: 3.5rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .product-showcase-container {
        gap: 4rem;
    }
}

/* Slide Animations */
.reveal-from-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-from-left.is-revealed,
.reveal-from-right.is-revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Cardless Showcase Row Layout */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
    background: transparent; /* No card box! */
}

.showcase-row.reverse {
    grid-template-columns: 1.15fr 1fr;
}

@media (max-width: 960px) {
    .showcase-row, .showcase-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Both products lead with the product picture on stacked layouts */
    .showcase-row.reverse .showcase-media-side {
        order: -1;
    }
}

/* Halo Image Media Container */
.showcase-media-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.showcase-halo-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 153, 235, 0.18) 0%, rgba(230, 242, 252, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.showcase-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(15, 44, 76, 0.12));
    transition: transform 0.3s ease;
}

.showcase-row:hover .showcase-img {
    transform: scale(1.05);
}

/* Showcase Editorial Content Side */
.showcase-content-side {
    display: flex;
    flex-direction: column;
}

.showcase-tag-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid #D1E4F5;
    color: #0F63A1;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: max-content;
    font-family: var(--vosges-font-body);
}

.showcase-title {
    font-family: var(--vosges-font-display) !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0F2C4C !important;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .showcase-title {
        font-size: 1.7rem;
    }
}

.showcase-lead {
    font-family: var(--vosges-font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: #1E293B;
    margin: 0 0 1.5rem 0;
}

.showcase-lead strong {
    color: #0F172A;
}

/* Metrics Bar */
.showcase-metrics-bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: fit-content;
    max-width: 100%;
    /* No global border-box reset in this sheet — set it here so the mobile
       width:100% stays inside the content column instead of overflowing right. */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #D1E4F5;
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--vosges-font-body);
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F63A1;
    line-height: 1.2;
}

.metric-lbl {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
    margin-top: 0.2rem;
}

.metric-divider {
    width: 1px;
    height: 32px;
    background-color: #CBDFF0;
}

/* Mobile: keep the metrics bar horizontal, evenly split across the full width */
@media (max-width: 600px) {
    .showcase-metrics-bar {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.85rem 0.6rem;
    }
    .metric-item {
        flex: 1;
        min-width: 0;
        align-items: center;
        text-align: center;
    }
    .metric-val {
        font-size: 1.05rem;
    }
    .metric-lbl {
        font-size: 0.66rem;
        line-height: 1.25;
    }
    .metric-divider {
        flex: 0 0 1px;
        height: 34px;
    }
}

@media (max-width: 360px) {
    .metric-val {
        font-size: 0.95rem;
    }
    .metric-lbl {
        font-size: 0.6rem;
    }
}

/* Tech Bullet Points */
.showcase-tech-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.showcase-tech-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.93rem;
    color: #4A6A8A;
    line-height: 1.5;
    font-family: var(--vosges-font-body);
}

.showcase-tech-bullets li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    color: #0D9488;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Showcase CTA Group */
.showcase-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tablet + mobile: the CTA button spans the same width as the metrics bar
   above it, so the stacked column reads as one aligned block. */
@media (max-width: 960px) {
    .showcase-metrics-bar {
        width: 100%;
    }
    .showcase-cta-group {
        width: 100%;
    }
    .showcase-cta-group .btn-sharp-primary {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}

/* Tablet only: centre the metrics bar and the button within the column. */
@media (min-width: 601px) and (max-width: 960px) {
    .showcase-metrics-bar {
        justify-content: space-around;
        margin-left: auto;
        margin-right: auto;
    }
    .metric-item {
        align-items: center;
        text-align: center;
    }
    .showcase-cta-group {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Technical Separator */
.showcase-tech-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

@media (max-width: 960px) {
    .showcase-tech-separator {
        margin: 1.5rem 0;
    }
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D1E4F5 50%, transparent 100%);
}

.separator-icon {
    font-size: 1.1rem;
    color: #2D99EB;
    background: #FFFFFF;
    border: 1px solid #D1E4F5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reverse layout for alternating row on desktop */
@media (min-width: 900px) {
    .product-feature.reverse {
        grid-template-columns: 1.2fr 1fr;
    }
    .product-feature.reverse .pf-media {
        order: 2;
    }
    .product-feature.reverse .pf-info {
        order: 1;
    }
}

@media (max-width: 899px) {
    .product-feature, .product-feature.reverse {
        grid-template-columns: 1fr;
    }
}

.pf-media {
    background: linear-gradient(135deg, #E6F2FC 0%, #F0F7FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    border-right: 1px solid #E6F2FC;
}

.product-feature.reverse .pf-media {
    border-right: none;
    border-left: 1px solid #E6F2FC;
}

@media (max-width: 899px) {
    .pf-media, .product-feature.reverse .pf-media {
        border: none;
        border-bottom: 1px solid #D1E4F5;
        padding: 2rem 1.5rem;
    }
}

.pf-media img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(15, 44, 76, 0.12));
}

.product-feature:hover .pf-media img {
    transform: scale(1.04);
}

.pf-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 600px) {
    .pf-info {
        padding: 1.5rem;
    }
}

.pf-eyebrow {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #E6F2FC;
    color: #0F63A1;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    width: max-content;
    font-family: var(--vosges-font-body);
}

.pf-title {
    font-family: var(--vosges-font-display) !important;
    font-size: 2rem;
    font-weight: 700;
    color: #0F2C4C !important;
    margin: 0 0 0.8rem 0;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .pf-title {
        font-size: 1.6rem;
    }
}

.pf-desc {
    font-family: var(--vosges-font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4A6A8A;
    margin: 0 0 1.5rem 0;
}

.pf-desc strong {
    color: #0F2C4C;
}
