/* ===================================
   css/home-polish.css
   Visual refinements for index.html only.
   Applied AFTER global.css / styles.css cascade.
   Incremental, reversible. Does not touch any other page.

   Goals: spacing consistency, visual hierarchy,
   section transitions, card rhythm, typography balance.
   NO redesign — branding and colors preserved exactly.
   =================================== */

/* ─────────────────────────────────────────────
   1. HERO SECTION  —  authority-first design
   ───────────────────────────────────────────── */

@keyframes hero-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50%       { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1); }
}

.page-header {
    /* Compact hero — tighter fold, content feels zoomed */
    padding: calc(80px + 1.25rem) 0 1.5rem;
    background-color: #060d1f;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 102, 255, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 30% 20% at 10% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 55%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

/* Hero badge — premium pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    animation: hero-badge-pulse 3s ease-in-out infinite;
}

/* Hero title */
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #ffffff;
    /* Subtle luxury depth — not neon */
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.18);
}

/* Hero accent — blue→purple gradient on “Consultancy Partner” */
.hero-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    padding-bottom: 0.05em;
}

.section-title {
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* Hero description */
.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #94a3b8;
}

.section-description { font-size: 1rem; line-height: 1.7; }

/* CTA row */
.hero-cta {
    margin-bottom: 0;
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Primary button glow */
.hero-cta .btn-primary {
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}
.hero-cta .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.55);
    transform: translateY(-2px);
}

/* Secondary CTA */
.btn-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Trust micro-signals row */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}
.hero-trust-row .sep { color: #2d3748; font-size: 1rem; }

/* ── Stats Bar / Trust Strip — original bright blue ── */
.trust-strip {
    min-height: 40px;
    background: linear-gradient(90deg, #0666e8, #0874f8);
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
}
.trust-strip-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2.25rem;
    align-items: center;
}
.trust-strip-inner span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}


/* ─────────────────────────────────────────────
   3. SERVICES SECTION  —  consistent vertical rhythm
   ───────────────────────────────────────────── */

/* Services section — cinematic hero→cards transition */
.services {
    padding: 3rem 0 5rem !important;
    background:
        /* Divider glow — very subtle blue shimmer at top edge */
        linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 60px),
        /* Warm off-white base — more premium than pure white */
        linear-gradient(180deg, #eef3ff 0%, #f8fafc 12%, #f8fafc 100%) !important;
    position: relative;
}

/* Force 3 equal columns on desktop, stretch to equal height */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Card — scaled up padding, stronger radius */
.service-card {
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 2px 8px rgba(15, 23, 42, 0.01);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Research card — mint green glow border */
.research-card {
    background: #f0fdf8 !important;
    border: 2px solid #6ee7b7 !important;
    box-shadow: 0 10px 36px rgba(16, 185, 129, 0.13), 0 0 0 1px rgba(110, 231, 183, 0.25) !important;
    animation: none !important;
}

/* Programming card — blue glow border */
.programming-card {
    background: #eff6ff !important;
    border: 2px solid #93c5fd !important;
    box-shadow: 0 10px 36px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(147, 197, 253, 0.25) !important;
    animation: none !important;
}

/* Exams card — peach/orange glow border */
.exams-card {
    background: #fff7ed !important;
    border: 2px solid #fdba74 !important;
    box-shadow: 0 10px 36px rgba(249, 115, 22, 0.13), 0 0 0 1px rgba(253, 186, 116, 0.25) !important;
    animation: none !important;
}

/* Glowing hover lifts — premium -6px lift */
.research-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(110, 231, 183, 0.45) !important;
    animation: none !important;
}
.programming-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(147, 197, 253, 0.45) !important;
    animation: none !important;
}
.exams-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 2px rgba(253, 186, 116, 0.45) !important;
    animation: none !important;
}

/* Service icon — slightly larger */
.service-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.service-card:hover .service-icon img {
    transform: scale(1.08);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}
.service-card:hover .service-icon {
    transform: scale(1.04) !important;
}

/* Service title — larger */
.service-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.015em;
}

/* Service description */
.service-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.4rem;
    text-align: center;
}

/* Feature list */
.service-features {
    flex: 1;
    margin-bottom: 1.75rem;
}

/* Feature list items */
.service-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
    text-align: left;
}

/* CTA button — solid blue with visible white border outline */
.service-btn {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 50px;
    text-align: center;
    background: linear-gradient(135deg, #1d6aff, #0047d9);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 20px rgba(0, 100, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: var(--transition-base);
    margin-top: auto;
    text-decoration: none;
}

.service-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 32px rgba(0, 100, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.service-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Service Card CTA Actions */
.service-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}
.service-actions .service-btn {
    flex: 1;
    margin-top: 0 !important;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
}
.service-btn-secondary {
    background: transparent !important;
    color: #1e293b !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: none !important;
}
.service-btn-secondary:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.05) !important;
}


/* ─────────────────────────────────────────────
   4. ABOUT SECTION  —  full-width, 2×2 grid
   ───────────────────────────────────────────── */

.about {
    padding: var(--section-padding-desktop);  /* reduced from 5rem — balanced with adjacent sections */
}

.about .section-title .gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #000000 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% auto !important;
    animation: shimmer 3s ease-in-out infinite !important;
}

/* Remove the 1000px cap — use full container width */
.about-content {
    max-width: 100%;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    opacity: 0.92;
    max-width: 860px;   /* readable measure for centered text block */
    margin-left: auto;
    margin-right: auto;
}

/* Force 2×2 grid — 4 equal feature cards, full container width */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Feature card — solid visible on blue bg, no backdrop bleed */
.about-feature {
    display: flex;
    align-items: flex-start;
    padding: 1.75rem;
    gap: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.about-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-feature:hover .feature-icon {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
}

.feature-content p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}


/* ─────────────────────────────────────────────
   5. SECTION TRANSITIONS  —  shadow dividers
   ───────────────────────────────────────────── */

/* Soft shadow below About before Testimonials (white) */
.about {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* Testimonials — luxury spacing + atmospheric background */
#testimonials {
    padding: 5rem 0 5.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 100, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 10% 20%, rgba(16, 185, 129, 0.025) 0%, transparent 60%),
        #f9fafb !important;
}

/* Section header — consistent rhythm */
.section-header {
    margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────────
   6. TESTIMONIALS  —  3-col grid + card system
   ───────────────────────────────────────────── */

/* Testimonial grid — luxury gaps */
#testimonials .container > div:nth-child(2) {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
    margin-top: 0 !important;
}

/* Testimonial card — more generous padding + depth */
.tcard {
    transition: var(--transition-base) !important;
    cursor: default;
    position: relative;
    border: 1px solid #e8edf5 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), 0 1px 4px rgba(15, 23, 42, 0.02) !important;
    overflow: hidden;
    padding: 2.25rem !important;
}

/* Large quote mark overlay */
.tcard::after {
    content: '\201C';
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(0, 102, 255, 0.05);
    line-height: 1;
    pointer-events: none;
}

.tcard:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03) !important;
    border-color: #d1d9e8 !important;
}

/* Featured gradient card */
.tcard[style*="linear-gradient"] {
    border: none !important;
    box-shadow: 0 16px 36px rgba(0, 102, 255, 0.14) !important;
    padding: 2.25rem !important;
}

.tcard[style*="linear-gradient"]::after {
    color: rgba(255, 255, 255, 0.1);
}

.tcard[style*="linear-gradient"]:hover {
    box-shadow: 0 24px 48px rgba(0, 102, 255, 0.22) !important;
    transform: translateY(-6px) !important;
}

/* ── SVG Star Rating ── */
.t-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.t-stars svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(245,158,11,0.3));
}

/* ── Credibility Stat Bar ── */
.t-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 1.75rem auto 0;
    padding: 1rem 2rem;
    background: #f1f5f9;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    max-width: 640px;
}

.t-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0 2rem;
    text-align: center;
}

.t-stat-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    font-family: var(--font-display);
}

.t-stat-item span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.t-stat-item.t-stat-stars strong { display: none; }

.t-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .t-stat-row { gap: 0.5rem; padding: 0.85rem 1rem; }
    .t-stat-item { padding: 0 1rem; }
    .t-stat-divider { display: none; }
}

/* Avatar ring */
.tcard div[style*="width:42px"] {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.12) !important;
    border: 2.5px solid #ffffff !important;
}

.tcard[style*="linear-gradient"] div[style*="width:42px"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.35) !important;
}

/* Rating stars */
.tcard div[style*="⭐⭐⭐⭐⭐"] {
    font-size: 0.9rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 1.1rem !important;
}

#testimonials > .container > div:last-child {
    margin-top: 3rem;
}

/* Section title — consistent size with global .section-title. */
#testimonials .section-title {
    color: #0f172a;
}

#testimonials .section-description {
    color: #475569;
}

/* ── Mobile/Tablet Carousel via Scroll Snap ── */
@media (max-width: 900px) {
    #testimonials .container > div:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 1.25rem !important;
        padding: 0.5rem 0.5rem 2rem !important;
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        scrollbar-width: none; /* Firefox */
    }
    
    #testimonials .container > div:nth-child(2)::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }
    
    .tcard {
        flex: 0 0 310px !important;
        scroll-snap-align: start !important;
    }
}

@media (max-width: 480px) {
    .tcard {
        flex: 0 0 280px !important;
    }
}

/* ─────────────────────────────────────────────
   CONTACT SECTION  —  dark background colour fixes
   CRITICAL: .section-title defaults to color:#1a1a1a (dark) which is
   invisible on the contact section's dark gradient background.
   ───────────────────────────────────────────── */
.contact .section-title {
    color: #ffffff;             /* white on dark — WCAG AA pass */
    letter-spacing: -0.015em;   /* match global section-title tracking */
}

.contact .section-description {
    color: rgba(255, 255, 255, 0.75);  /* legible on dark bg, not harsh */
}


/* ─────────────────────────────────────────────
   7. CONTACT SECTION  —  tighter vertical rhythm
   ───────────────────────────────────────────── */

.contact {
    padding: 3.5rem 0 4rem;   /* was section-padding-desktop — too tall */
}

.contact-content {
    max-width: 760px;
}

.contact-item {
    padding: 1.35rem 1.5rem;
    gap: 1.25rem;
}

.contact-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.contact-details a {
    font-size: 0.95rem;
}

.contact-cta {
    margin-top: 1.75rem;
}

.contact-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
}


/* ─────────────────────────────────────────────
   8. FOOTER FEATURES  —  cleaner layout
   ───────────────────────────────────────────── */

.footer-features {
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;          /* gap managed by footer-content margin-top */
}

.footer-features-title {
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    margin-bottom: 0.65rem;
}

.footer-features-desc {
    font-size: 0.875rem;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    opacity: 0.88;
}

.features-grid {
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);  /* lock 4-col on desktop */
}

.feature-card {
    padding: 1.1rem;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.15);
}

.feature-card .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.feature-card h3 {
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.82;
}


/* ─────────────────────────────────────────────
   9. FOOTER BRAND + LINKS  —  hierarchy & rhythm
   ───────────────────────────────────────────── */

/* 4 link columns (Services / Quick Links / Contact / Legal).
   Brand col gets 1.4fr so slogan fits on one line at 1200px container. */
.footer-content {
    grid-template-columns: 1.4fr 2.6fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

/* Brand column */
.footer-brand img {
    width:  60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.65;
    opacity: 0.85;
    max-width: 260px;   /* enough room for the full slogan on one line */
    white-space: normal;
}

/* Links section — 4 equal columns, tighter gap */
.footer-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

/* Column headings — clear separator from link text */
.footer-column h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #94a3b8;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Links — readable size, transform hover (no layout-shift) */
.footer-column a {
    font-size: 0.875rem;
    padding: 0.28rem 0;
    line-height: 1.6;
    color: #cbd5e1;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    transform-origin: left center;
}

.footer-column a:hover {
    color: #c4b5fd;
    transform: translateX(4px);
    padding-left: 0 !important;
}

/* Footer bottom bar — subdued, tertiary info */
.footer-bottom {
    font-size: 0.8rem;
    padding: 1.25rem 0 0.75rem;
    letter-spacing: 0.01em;
    opacity: 0.75;
    color: #64748b;
}

.footer-bottom a {
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-bottom a:hover {
    color: #c4b5fd;
    opacity: 1;
}


/* ─────────────────────────────────────────────
   10. RESPONSIVE REFINEMENTS (index only)
   ───────────────────────────────────────────── */

@media (min-width: 601px) and (max-width: 900px) {
    /* Tablet: 2-column layout — prevents awkward 1-col collapse at mid-widths */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Third card spans full width when alone in 2-col grid */
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Footer: feature grid 2-col on tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer content: brand + links side-by-side until 600px */
    .footer-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }

    /* Collapse 4 link columns → 2 on tablet */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    /* Small mobile: force single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: calc(72px + 0.75rem) 0 1rem;
    }

    .hero-title {
        letter-spacing: -0.01em;
    }

    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .services {
        padding: 1.5rem 0 3rem !important;
    }

    .service-card {
        padding: 2rem;
    }

    .service-title {
        font-size: 1.35rem;
    }

    #testimonials {
        padding: 3rem 0 !important;
    }

    /* Testimonials — 2-col on tablet */
    #testimonials .container > div:nth-child(2) {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* About: keep 2×2 down to 768px, then stack */
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .about { padding: 3rem 0; }
    .contact { padding: 3rem 0; }

    .contact-content { max-width: 100%; }

    /* Footer features — 2-col on mobile */
    .footer-features { padding: 2rem 0 1.5rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer content — stack brand above links */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand p { max-width: 100%; white-space: normal; }

    /* Footer links — 2-col on mobile */
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 1rem;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    /* About: single column on small mobile */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Testimonials: single column on small mobile */
    #testimonials .container > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }

    .feature-card {
        padding: 1rem;
    }

    /* Footer: single column everything at 480px */
    .features-grid { grid-template-columns: repeat(2, 1fr); }  /* keep 2-col — 1-col too sparse */
    .footer-links { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Footer bottom: pipe separators may wrap — allow natural wrap */
    .footer-bottom { line-height: 1.8; }

    /* How It Works: stack on mobile */
    .hiw-grid { grid-template-columns: 1fr !important; }
    .hiw-connector { display: none !important; }

    /* Trust badges: single column on mobile */
    .trust-badges-grid { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════ */

.how-it-works {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.hiw-title { color: #0f172a !important; }

.hiw-accent {
    color: #0066FF;
}

.how-it-works .section-description {
    color: #64748b;
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin: 3rem 0 2.5rem;
}

/* Step card */
.hiw-step {
    background: #f8faff;
    border: 1px solid #e8efff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-step:hover {
    background: #ffffff;
    border-color: #c7d9ff;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.08);
    transform: translateY(-4px);
}

/* Step number badge */
.hiw-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #006BFF, #0047d9);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.hiw-icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    display: block;
}

.hiw-step h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.hiw-step p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* Arrow connectors between steps */
.hiw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    margin-top: 3rem;
    color: #c7d9ff;
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
}

/* CTA below steps */
.hiw-cta {
    text-align: center;
    margin-top: 0.5rem;
}


/* ═══════════════════════════════════════════════════
   TRUST BADGES SECTION
   ═══════════════════════════════════════════════════ */

.trust-badges-section {
    background: linear-gradient(135deg, #0a1428 0%, #0f1e3d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trust-badge-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trust-badge-text strong {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
}

.trust-badge-text span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive: 2-col at tablet */
@media (max-width: 900px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .hiw-connector {
        display: none;
    }
}

@media (max-width: 600px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }

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

/* ── Premium Contact Card Clickable Buttons ── */
.contact-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.email-btn-primary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

.email-btn-gmail:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
}

.wa-btn-usa:hover {
    background: rgba(37, 211, 102, 0.1) !important;
    border-color: rgba(37, 211, 102, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}

.wa-btn-kenya:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

