/* ===================================================================
   home-extra.css — Homepage visual enhancements
   Builds on tokens.css + home.css. Adds depth, trust band,
   feature-card polish, animated CTA and RWD refinements.
   Reuses --primary / --home-coral / --shadow-* / --radius / --ease.
   =================================================================== */

/* ===== Section rhythm + soft separators ===== */
.section--warm {
    position: relative;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--home-coral) 4%, transparent), transparent 40%),
        var(--surface-warm);
}
.section__head {
    max-width: 680px;
    margin-inline: auto;
}
.section__head h2 {
    position: relative;
    text-wrap: balance;
}
.section__head p {
    text-wrap: pretty;
    color: var(--muted-foreground);
}

/* ===== Eyebrow kicker (shared) ===== */
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    margin-bottom: 14px;
    border-radius: var(--radius-pill);
    background: var(--home-coral-tint);
    color: var(--home-coral-ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-kicker);
}
.home-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-coral);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-coral) 24%, transparent);
}

/* ===== Trust band ===== */
.trust-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--home-coral) 35%, var(--border));
}
.trust-item__check {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 800;
}
.trust-item__text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.35;
}

/* ===== Feature cards — depth + animated icon ===== */
.feature-card {
    position: relative;
    height: 100%;
    padding: 28px 26px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-coral), color-mix(in srgb, var(--home-coral) 45%, #ffd9c9));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.3s var(--ease);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--home-coral) 30%, var(--border));
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--home-coral-tint);
    font-size: 1.55rem;
    line-height: 1;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.feature-card:hover .feature-card__icon {
    transform: translateY(-2px) rotate(-4deg) scale(1.05);
    background: var(--home-coral-tint-strong);
}
.feature-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--muted-foreground);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-kicker);
}
.feature-card h3 {
    font-size: 1.12rem;
    margin: 0 0 8px;
    letter-spacing: var(--tracking-tight);
}
.feature-card p {
    color: var(--muted-foreground);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Testimonials polish ===== */
.testimonial {
    height: 100%;
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.testimonial__quote {
    position: relative;
    flex: 1;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--foreground);
}
.testimonial__quote::before {
    content: "\201C";
    display: block;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    line-height: 0.5;
    color: var(--home-coral-soft);
    margin-bottom: 10px;
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}
.testimonial__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--home-coral-tint-strong);
    font-size: 1.25rem;
}
.testimonial__author small { color: var(--muted-foreground); }

/* ===== Enhanced CTA band ===== */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 64px);
    border-radius: calc(var(--radius) * 1.6);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #ffd9c9 38%, transparent), transparent 55%),
        radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 55%),
        linear-gradient(135deg, var(--home-coral), var(--home-coral-hover));
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
    z-index: -1;
    animation: ctaFloat 9s var(--ease) infinite alternate;
    pointer-events: none;
}
@keyframes ctaFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.12); }
}
.cta-band h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.12;
    margin: 0 0 12px;
    text-wrap: balance;
    color: #fff;
}
.cta-band p {
    max-width: 560px;
    margin: 0 auto 26px;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    text-wrap: pretty;
}
.cta-band__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-band .btn--primary {
    background: #fff;
    color: var(--home-coral-ink);
    border: none;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.cta-band .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.4);
}
.cta-band__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.cta-band__ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.85);
}
.cta-band__note {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Hero CTA micro-interaction ===== */
.home-hero__cta .btn--primary {
    position: relative;
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--home-coral) 75%, transparent);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.home-hero__cta .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--home-coral) 80%, transparent);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .trust-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .trust-band { grid-template-columns: 1fr; gap: 10px; }
    .trust-item { padding: 14px 16px; }
    .feature-card { padding: 22px 20px; }
    .feature-card__icon { width: 46px; height: 46px; font-size: 1.4rem; }
    .cta-band__actions { flex-direction: column; align-items: stretch; width: min(100%, 340px); margin-inline: auto; }
    .cta-band .btn--primary,
    .cta-band__ghost { width: 100%; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .cta-band::after { animation: none; }
    .feature-card,
    .feature-card::before,
    .feature-card__icon,
    .trust-item,
    .testimonial,
    .cta-band .btn--primary,
    .home-hero__cta .btn--primary { transition: none; }
}

/* ===== Touch devices: drop hover-only motion ===== */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .trust-item:hover,
    .testimonial:hover { transform: none; }
}
