/*
 * Meridian Theme — Sections CSS
 *
 * Styles for all homepage sections (and reusable components used across pages).
 * Loaded globally — section components appear on subpages too.
 *
 * Table of Contents:
 *   1.  Section utilities
 *   2.  Hero
 *   3.  Case Study Cards
 *   4.  Service Cards
 *   5.  About Section
 *   6.  Testimonials
 *   7.  Clients / Logo Marquee
 *   8.  Pricing
 *   9.  Blog Cards
 *   10. Contact CTA
 *   11. CF7 Styles
 *   12. Responsive overrides
 */

/* ============================================================
   1. Section utilities
   ============================================================ */

.section-footer {
    margin-top: var(--sp-12);
    display: flex;
    justify-content: center;
}

/* ============================================================
   2. HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--sp-16);
    overflow: hidden;
}

/* ── Background layers ── */

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-behind);
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05); /* Subtle Ken Burns via GSAP */
    transition: transform 20s linear;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        165deg,
        rgba(6, 15, 18, 0.92) 0%,
        rgba(6, 15, 18, 0.75) 50%,
        rgba(2, 71, 81, 0.65) 100%
    );
}

/* Grid overlay removed */
.hero__grid {
    display: none;
}

/* ── Content ── */

.hero__container {
    position: relative;
    z-index: 10;
    padding-top: 48px;
}


.hero__eyebrow {
    margin-bottom: var(--sp-5);
}

.hero__heading {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: 1.0;
    color: var(--text-primary);
    margin-bottom: var(--sp-6);
}
#page-id-13 .hero__heading {
    font-size: 68px;
}
.hero__accent {
    font-style: normal;
    color: var(--accent);
    text-shadow: var(--glow-neon);
    position: relative;
    display: inline-block;
}

.hero__subheading {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 56ch;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-10);
}

.hero__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    margin-bottom: var(--sp-16);
}

/* ── Stats bar ── */

.hero__stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    background: var(--c-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    padding: var(--sp-5) var(--sp-8);
    gap: var(--sp-1);
    position: relative;
}

.hero__stat + .hero__stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    white-space: nowrap;
}

/* ── Scroll indicator ── */

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    opacity: 0.5;
    animation: bounce-y 2.5s var(--ease-in-out) infinite;
    z-index: 10;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient( to bottom, transparent, var(--accent) );
}

.hero__scroll-text {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   3. CASE STUDY CARDS
   ============================================================ */

.case-studies-section { background: var(--surface-0); }

.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

/* Featured card spans 2 columns (first position) */
.cs-card--featured {
    grid-column: span 2;
}

/* Homepage layout: 5 cards in 3-col grid
   Row 1: [featured: col 1-2] [card: col 3]
   Row 2: [card] [card] [card]
   This works naturally with grid auto-placement */

.cs-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition:
        border-color var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out),
        box-shadow var(--dur-slow) var(--ease-out);
}

.cs-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--glow-neon);
}

.cs-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.cs-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 900 / 476;
    flex-shrink: 0;
}

.cs-card--featured .cs-card__image-wrap {
    aspect-ratio: 900 / 476;
}

.cs-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slower) var(--ease-out);
}

.cs-card:hover .cs-card__image {
    transform: scale(1.04);
}

.cs-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 15, 18, 0.6) 0%,
        transparent 60%
    );
    opacity: 0.7;
    transition: opacity var(--dur-slow) var(--ease-out);
}

.cs-card:hover .cs-card__overlay { opacity: 0.9; }

.cs-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-6);
    flex-grow: 1;
}

.cs-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.cs-card__industry {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    background: var(--c-neon-dim);
    padding: 0.25em 0.75em;
    border-radius: var(--r-full);
}

.cs-card__year {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.cs-card__client {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--dur-base) var(--ease-out);
}

.cs-card:hover .cs-card__client { color: var(--accent); }

.cs-card__tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: none;
    margin: 0;
    line-height: var(--leading-snug);
}

.cs-card__results {
    display: flex;
    gap: var(--sp-6);
    margin-top: auto;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
}

.cs-card__result {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.cs-card__result-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
}

.cs-card__result-metric {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.cs-card__cta {
    margin-top: auto;
    font-size: var(--text-xs);
}

/* ============================================================
   4. SERVICE CARDS
   ============================================================ */

.services-section {
    background: var(--surface-1);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, var(--border), transparent );
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition:
        border-color var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out),
        background var(--dur-slow) var(--ease-out);
    --card-accent: var(--c-neon);
}

.service-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-3px);
    background: var(--bg-elevated);
}

.service-card__link {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--sp-8);
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 126, .08);
    border: 1px solid rgba(0, 212, 126, .18);
    border-radius: var(--r-lg);
    color: #00d47e !important;
    transition: background var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-spring);
}

.service-card:hover .service-card__icon {
    background: rgba( var(--card-accent), 0.15 );
    transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--dur-base) var(--ease-out);
}

.service-card:hover .service-card__title { color: var(--card-accent); }

.service-card__tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: none;
    margin: 0;
    flex-grow: 1;
}

.service-card__cta {
    font-size: var(--text-xs);
    margin-top: auto;
}

/* ============================================================
   5. ABOUT SECTION
   ============================================================ */

.about-section {
    background: var(--surface-0);
    overflow: hidden;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-20);
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.about-content h2 { margin: 0; }

.about-body {
    max-width: none;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-4);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.about-stat__value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
}

.about-stat__label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ── About image ── */

.about-image-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}

/*
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: -16px -16px 16px 16px;
    border: 1px solid var(--border);
    border-radius: calc( var(--r-2xl) + 4px );
    z-index: -1;
    pointer-events: none;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    inset: -32px -32px 32px 32px;
    border: 1px solid rgba(0, 212, 126, 0.08);
    border-radius: calc( var(--r-2xl) + 8px );
    z-index: -2;
    pointer-events: none;
}*/

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--r-2xl);
    display: block;
   /* aspect-ratio: 6 / 7;*/
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: -var(--sp-6);
    right: -var(--sp-6);
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--r-xl);
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    box-shadow: var(--glow-neon), var(--shadow-lg);
    bottom: var(--sp-6);
    right: calc(-1 * var(--sp-6));
}

.about-image-badge__value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1;
}

.about-image-badge__label {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    opacity: 0.85;
    text-align: center;
    max-width: 80px;
}

/* ============================================================
   6. TESTIMONIALS
   ============================================================ */

.testimonials-section {
    background: var(--surface-1);
    overflow: hidden;
}

.testimonials-swiper {
    padding-bottom: var(--sp-12) !important;
    overflow: visible !important;
    margin-top: var(--sp-12);
}

.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

.testimonials-swiper .swiper-slide {
    height: auto;
    width: 520px;
    padding: 0 var(--sp-3);
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    transition:
        border-color var(--dur-slow) var(--ease-out),
        box-shadow var(--dur-slow) var(--ease-out);
}

.swiper-slide-active .testi-card {
    border-color: rgba(0, 212, 126, 0.25);
    box-shadow: var(--shadow-lg);
}

.testi-card__stars {
    display: flex;
    gap: var(--sp-1);
    color: var(--accent);
}

.testi-star--filled { color: var(--accent); }
.testi-star:not(.testi-star--filled) { color: var(--border); }

.testi-card__quote {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    flex-grow: 1;
}

.testi-card__quote p {
    font-size: var(--text-md);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    font-style: italic;
    max-width: none;
    margin: 0;
}

.testi-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.testi-card__author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
}

.testi-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.testi-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testi-card__name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-card__role {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.testi-card__logo {
    height: 28px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(1) brightness(2);
    flex-shrink: 0;
}

/* Navigation */
.testimonials-nav {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    margin-top: var(--sp-6);
}

.swiper-button-custom {
    width: 48px;
    height: 48px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--c-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        color var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out),
        background var(--dur-base) var(--ease-out);
}

.swiper-button-custom:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--c-neon-dim);
}

.swiper-button-custom:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-pagination.swiper-pagination {
    bottom: 0 !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--border);
    opacity: 1;
    transition: all var(--dur-base) var(--ease-out);
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 20px;
    border-radius: var(--r-full);
    box-shadow: var(--glow-neon-sm);
}

/* ============================================================
   7. CLIENTS / LOGO MARQUEE
   ============================================================ */

.clients-section {
    padding-block: var(--sp-16);
    background: var(--surface-0);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.clients-label {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--sp-10) !important;
    max-width: none;
}

.clients-marquee {
    position: relative;
    display: flex;
    gap: 0;
    overflow: hidden;
    /* Fade edges */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.clients-marquee__track {
    display: flex;
    gap: var(--sp-16);
    align-items: center;
    flex-shrink: 0;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* Performance: pause when not visible */
@media (prefers-reduced-motion: reduce) {
    .clients-marquee__track { animation: none; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.clients-marquee__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 var(--sp-4);
}

.clients-marquee__item img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(1) brightness(2);
    transition: opacity var(--dur-base) var(--ease-out),
                filter var(--dur-base) var(--ease-out);
}

.clients-marquee__item:hover img {
    opacity: 0.9;
    filter: none;
}

.clients-marquee__text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out);
}

.clients-marquee__item:hover .clients-marquee__text {
    opacity: 1;
    color: var(--text-secondary);
}

/* ============================================================
   8. PRICING
   ============================================================ */

.pricing-section {
    background: var(--surface-1);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    align-items: start;
    margin-top: var(--sp-4);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    position: relative;
    transition:
        border-color var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out),
        box-shadow var(--dur-slow) var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card--featured {
    border-color: var(--accent);
    background: linear-gradient( 135deg, var(--bg-elevated), var(--bg-card) );
    box-shadow: var(--shadow-xl), var(--glow-neon);
    transform: scale(1.02);
}

.pricing-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 0.3em 1.2em;
    border-radius: var(--r-full);
    white-space: nowrap;
    box-shadow: var(--glow-neon-sm);
}

.pricing-card__header {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
}

.pricing-card__tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: none;
    margin: 0;
    line-height: var(--leading-snug);
}

.pricing-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    flex-grow: 1;
}

.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-snug);
}

.pricing-card__feature--excluded {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-card__feature-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card__feature:not(.pricing-card__feature--excluded) .pricing-card__feature-icon {
    color: var(--accent);
}

.pricing-card__feature--excluded .pricing-card__feature-icon {
    color: var(--text-muted);
}

.pricing-card__cta {
    margin-top: auto;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.pricing-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    max-width: none;
    margin-top: var(--sp-10);
}

/* ============================================================
   9. BLOG CARDS
   ============================================================ */

.blog-section { background: var(--surface-0); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition:
        border-color var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out),
        box-shadow var(--dur-slow) var(--ease-out);
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.blog-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slower) var(--ease-out);
}

.blog-card:hover .blog-card__image { transform: scale(1.04); }

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-6);
    flex-grow: 1;
}

.blog-card__category {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--dur-base) var(--ease-out);
}

.blog-card__category:hover { opacity: 0.7; }

.blog-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: var(--leading-snug);
}

.blog-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

.blog-card:hover .blog-card__title a { color: var(--accent); }

.blog-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: none;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    margin-top: auto;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
}

/* ============================================================
   10. CONTACT CTA SECTION
   ============================================================ */

.contact-cta-section {
    background: var(--surface-1);
    position: relative;
    overflow: hidden;
}

/* Decorative ambient glow */
.contact-cta-section::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 126, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.contact-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-20);
    align-items: start;
}

.contact-cta-copy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    position: sticky;
    top: calc( 72px + var(--sp-8) );
}

.contact-cta-copy h2 { margin: 0; }

.contact-cta-copy > p {
    font-size: var(--text-md);
    color: var(--text-secondary);
    max-width: 42ch;
    line-height: var(--leading-relaxed);
}

.contact-cta-assurances {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.contact-cta-assurances li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.contact-cta-assurances svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-cta-direct {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-top: var(--sp-2);
}

.contact-cta-direct__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

.contact-cta-direct__item:hover { color: var(--accent); }
.contact-cta-direct__item svg { color: var(--accent); flex-shrink: 0; }

.contact-cta-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: var(--sp-10);
}

/* ============================================================
   11. CF7 STYLES
   Overrides Contact Form 7 output to match Meridian design.
   ============================================================ */

/* CF7 wrapper */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

/* CF7 field wrappers */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

/* CF7 inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition:
        border-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--c-neon-dim);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 140px;
}

/* CF7 submit button */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.875em 2.25em;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
    width: 100%;
    transition:
        box-shadow var(--dur-base) var(--ease-out),
        transform var(--dur-fast) var(--ease-spring);
}

.wpcf7 input[type="submit"]:hover {
    box-shadow: var(--glow-neon);
    transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* CF7 response messages */
.wpcf7-response-output {
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--text-sm);
    margin-top: var(--sp-4) !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: var(--c-neon-dim) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-aborted {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #f87171 !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
}

.wpcf7-validation-errors {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* CF7 per-field errors */
.wpcf7-not-valid-tip {
    font-size: var(--text-xs);
    color: #f87171;
    margin-top: var(--sp-1);
    display: block;
}

.wpcf7-not-valid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1) !important;
}

/* Spinner */
.wpcf7-spinner {
    display: none;
}

/* Placeholder form (before CF7 is configured) */
.cf7-placeholder {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.cf7-placeholder__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    background: var(--c-neon-dim);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    border-left: 2px solid var(--accent);
    max-width: none;
    margin: 0;
}

.placeholder-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

/* ============================================================
   12. RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 1200px) {

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

    .cs-card--featured {
        grid-column: span 2;
    }

    .pricing-grid {
        gap: var(--sp-4);
    }

    .about-inner {
        gap: var(--sp-12);
    }
}

@media (max-width: 1024px) {

    .hero__heading { font-size: var(--text-3xl); }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
        max-width: 480px;
        margin-inline: auto;
    }

    .about-image-badge {
        right: var(--sp-4);
    }

    .contact-cta-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-12);
    }

    .contact-cta-copy {
        position: static;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }

    .pricing-card--featured {
        transform: none;
        order: -1;
    }

    .pricing-card--featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {

    .hero__container {
        text-align: center;
    }

    .hero__heading { font-size: var(--text-4xl); }

    .hero__subheading {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        width: 100%;
        justify-content: center;
    }

    .hero__stat {
        padding: var(--sp-4) var(--sp-5);
    }

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

    .cs-card--featured {
        grid-column: span 1;
    }

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

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .testimonials-swiper .swiper-slide {
        width: calc(100vw - 2 * var(--gutter) - var(--sp-6));
    }

    .contact-cta-form {
        padding: var(--sp-6);
    }

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

@media (max-width: 480px) {

    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .hero__stat-value { font-size: var(--text-xl); }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ══════════════════════════════════════════════════ */

.theme-light .section-header h2,
.theme-light .section-header p {
    color: var(--text-primary);
}

.theme-light .section-header .eyebrow {
    color: var(--text-secondary);
}

/* CS archive grid */
.theme-light .cs-card {
    border-color: var(--border);
}

.theme-light .cs-card__client {
    color: var(--text-primary);
}

.theme-light .cs-card__tagline {
    color: var(--text-secondary);
}

.theme-light .cs-card__result-metric {
    color: var(--text-secondary);
}

/* Blog cards */
.theme-light .blog-card {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: none;
}

.theme-light .blog-card__body {
    background: var(--bg-card);
}

.theme-light .blog-card__meta {
    color: var(--text-secondary);
}

/* Services homepage grid */
.theme-light .service-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.theme-light .service-card__title {
    color: var(--text-primary);
}

.theme-light .service-card__desc {
    color: var(--text-secondary);
}

/* Testimonials */
.theme-light .testimonial-carousel__track .testi-card,
.theme-light .testi-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.theme-light .testi-card__quote {
    color: var(--text-primary);
}

.theme-light .testi-card__name {
    color: var(--text-primary);
}

.theme-light .testi-card__role {
    color: var(--text-secondary);
}

/* Stat bar */
.theme-light .hero-stats {
    border-color: var(--border);
}

.theme-light .hero-stat {
    border-color: var(--border);
}

/* CTA section */
.theme-light .cta-section {
    background: var(--surface-1);
}

.theme-light .cta-section__heading {
    color: var(--text-primary);
}

.theme-light .cta-section__desc {
    color: var(--text-secondary);
}

/* Process steps */
.theme-light .process-step__num {
    color: var(--text-secondary);
    border-color: var(--border);
}

.theme-light .process-step__title {
    color: var(--text-primary);
}

.theme-light .process-step__desc {
    color: var(--text-secondary);
}

/* Footer */
.theme-light .site-footer {
    background: var(--surface-1);
    border-color: var(--border);
}

.theme-light .site-footer__brand p {
    color: var(--text-secondary);
}

.theme-light .footer-nav__heading {
    color: var(--text-primary);
}

.theme-light .footer-nav__link {
    color: var(--text-secondary);
}

.theme-light .footer-bottom {
    border-color: var(--border);
    color: var(--text-secondary);
}

/* Project cards */
.theme-light .project-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.theme-light .project-card__title {
    color: var(--text-primary);
}

.theme-light .project-card__tagline {
    color: var(--text-secondary);
}

/* Insights/blog section on homepage */
.theme-light .blog-section {
    background: var(--surface-0);
}

/* ================================================================
   BOOKING / QUICK CONSULTATION SECTION
   ================================================================ */

.booking-section {
    background: var(--surface-1);
}

/* Header — centred */
.booking-section__header {
    text-align: center;
    margin: 0 auto var(--sp-10);
}

.booking-section__heading {
    font-size: var(--text-4xl);
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
    line-height: 1.15;
    margin: 0 0 var(--sp-4);
}

.booking-section__heading em {
    font-style: normal;
    color: var(--accent);
}

.booking-section__desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 auto;
    max-width: 52ch;
}

/* Person card — centred vertical stack */
.booking-section__person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-2);
    padding: var(--sp-8) var(--sp-6);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border);
    background: var(--surface-2);
    margin: 0 auto var(--sp-10);
}

.booking-section__avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--r-full);
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: var(--sp-2);
}

.booking-section__name {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
}

.booking-section__role {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--sp-3);
}

.booking-section__contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-4);
}

.booking-section__contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.booking-section__contact-link:hover {
    color: var(--accent);
}

.booking-section__contact-link svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* CTA button inside card */
.booking-section__cta {
    margin-top: var(--sp-5);
    display: flex;
    justify-content: center;
}

.booking-section__cta button,
.booking-section__cta .calendar-scheduling-button button {
    color: #000 !important;
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-section__heading {
        font-size: var(--text-3xl);
    }

    .booking-section__contact-links {
        flex-direction: column;
        align-items: center;
    }

    .booking-section__iframe-wrap iframe {
        min-height: 480px;
    }
}
