/* ===========================================================
   Arthryme — Design system
   Color palette anchored on a deep navy + electric cyan
   accent (logo-driven), with warm coral for primary CTAs.
   =========================================================== */

:root {
    /* Palette */
    --navy-900: #07153a;
    --navy-800: #0b1f4d;
    --navy-700: #142a66;
    --navy-600: #1d3fa8;
    --indigo-500: #3b5fd9;
    --cyan-400: #00d4ff;
    --cyan-300: #5ee9ff;
    --coral-500: #ff6b4a;
    --coral-600: #ef5532;
    --amber-400: #ffb547;

    /* Neutrals */
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-tint: #eef3fb;
    --header-bg: rgba(255, 255, 255, .85);
    --card-bg: #ffffff;

    /* Surfaces */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

    /* Radii & motion */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
}

/* ===========================================================
   Dark Theme System
   =========================================================== */
.dark-theme {
    --ink: #f8fafc;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --line: #223154;
    --bg: #090d16;
    --bg-soft: #0e1525;
    --bg-tint: #141f36;
    --header-bg: rgba(9, 13, 22, .85);
    --card-bg: #0e1629;
    
    /* Slightly customized dark tones */
    --navy-800: #0a1733;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
}

/* Smooth Transitions for Theme Switching */
body, section, footer, .card, .help-card, .why-card, .outcome-card, .principle-card, .site-header, .btn, .theme-toggle-btn, .ico-tile, .primary-nav li a, .dropdown, h1, h2, h3, h4, p, span, li, input, select, textarea {
    transition: background 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.dark-theme .brand-logo:not(.brand-logo-footer) {
    filter: brightness(0) invert(1);
    opacity: .95;
}

/* ===========================================================
   Theme Switcher Button
   =========================================================== */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    padding: 0;
    flex-shrink: 0;
    transition: all 0.25s var(--ease);
}
.theme-toggle-btn:hover {
    color: var(--navy-600);
    background: var(--bg-tint);
    transform: scale(1.05);
}
.dark-theme .theme-toggle-btn:hover {
    color: var(--cyan-300);
}
.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
}
.theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn .moon-icon { display: none; }

.dark-theme .theme-toggle-btn .sun-icon { display: none; }
.dark-theme .theme-toggle-btn .moon-icon { display: block; }

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--coral-500); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.muted { color: var(--muted); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy-800);
    color: #fff;
    padding: 12px 16px;
    z-index: 10000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===========================================================
   Header / Navbar
   =========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: var(--font-display);
}
.brand:hover { color: var(--ink); }
.brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.brand-logo-footer {
    height: 48px;
    /* The footer is dark — if your logo PNG isn't transparent or has dark text,
       this filter inverts dark inks to read against the navy background. Remove
       if your logo already works on dark surfaces. */
    filter: brightness(0) invert(1);
    opacity: .92;
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}
.primary-nav li { position: relative; }
.primary-nav li a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .95rem;
    transition: all .2s var(--ease);
}
.primary-nav li a:hover,
.primary-nav li.is-active > a {
    color: var(--navy-700);
    background: var(--bg-tint);
}
.primary-nav .caret { font-size: .7rem; opacity: .7; }

.dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s var(--ease);
    flex-direction: column;
    display: flex;
    gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a { width: 100%; padding: 10px 12px; }

.nav-cta { white-space: nowrap; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease) !important;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    color: #fff;
    box-shadow: 0 8px 22px rgba(239, 85, 50, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px rgba(239, 85, 50, .45); }

.btn-secondary {
    background: var(--navy-800);
    color: #fff;
}
.btn-secondary:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--navy-700);
    border-color: var(--navy-600);
}
.btn-outline:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

.btn-light {
    background: #fff;
    color: var(--navy-800);
}
.btn-light:hover { transform: translateY(-2px); color: var(--coral-600); }

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ===========================================================
   Layout primitives
   =========================================================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(36px, 6vw, 64px) 0; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section-head .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-tint);
    color: var(--navy-700);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 212, 255, .25), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(255, 107, 74, .18), transparent 55%),
                linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
    color: #eaf0ff;
    padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 10vw, 110px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(800px 400px at 70% 30%, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

/* ----- Hero slider rail ----- */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-track {
    display: flex;
    transition: transform .65s cubic-bezier(.4, .15, .15, 1);
    will-change: transform;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: .25;
    transition: opacity .6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .25); transform: translateY(-50%) scale(1.05); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}
.hero-dots button {
    width: 28px; height: 4px;
    border-radius: 4px;
    border: 0;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background .2s, width .2s var(--ease);
}
.hero-dots button.is-active { background: var(--cyan-300); width: 44px; }

@media (max-width: 768px) {
    .hero-arrow { display: none; }
    .hero-dots { bottom: 14px; }
}

/* Stats band below the hero slider */
.hero-stats-band {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.hero-stats-grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy-800);
    font-weight: 700;
    line-height: 1.1;
}
.hero-stats-grid span { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 768px) {
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--cyan-300); }
.hero p.lead { font-size: 1.15rem; color: rgba(234, 240, 255, .85); max-width: 560px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, .25);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #fff;
}
.hero-stats div span { font-size: .85rem; color: rgba(234, 240, 255, .7); }

.hero-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    overflow: hidden;
}
.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-card .ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
}
.hero-card-1 { top: 10%; left: 6%; animation: float 6s ease-in-out infinite; }
.hero-card-2 { top: 42%; right: 6%; animation: float 7s ease-in-out infinite reverse; }
.hero-card-3 { bottom: 10%; left: 18%; animation: float 8s ease-in-out infinite; }

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

/* ===========================================================
   Page header (non-home)
   =========================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding: clamp(70px, 10vw, 110px) 0 clamp(60px, 8vw, 90px);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(0, 212, 255, .22), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(255, 107, 74, .14), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 800px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 720px; font-size: 1.1rem; }
.breadcrumbs {
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
    margin-bottom: 18px;
}
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* ===========================================================
   Cards
   =========================================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 34px rgba(59, 95, 217, 0.15);
    border-color: var(--indigo-500);
}
.dark-theme .card:hover {
    box-shadow: 0 14px 34px rgba(0, 212, 255, 0.18);
    border-color: var(--cyan-400);
}

.feature-card .ico-tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-700), var(--indigo-500));
    color: #fff;
    display: grid; place-items: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(29, 63, 168, .25);
}
.feature-card .ico-tile svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    display: block;
}
.feature-card.alt .ico-tile {
    background: linear-gradient(135deg, var(--coral-500), var(--amber-400));
    box-shadow: 0 8px 24px rgba(255, 107, 74, .3);
}
.feature-card.cool .ico-tile {
    background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
    box-shadow: 0 8px 24px rgba(0, 212, 255, .25);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin-bottom: 18px; }
.feature-card .more { font-weight: 600; color: var(--navy-700); }
.feature-card .more::after {
    content: " →";
    transition: margin .2s var(--ease);
    display: inline-block;
}
.feature-card:hover .more::after { margin-left: 6px; }

/* ===========================================================
   "We're ready to help" — premium 3-practice section
   Anchored on the logo's navy → cyan gradient identity.
   =========================================================== */
.help-section {
    background:
        radial-gradient(900px 420px at 95% -5%, rgba(0, 212, 255, .08), transparent 60%),
        radial-gradient(700px 360px at -5% 110%, rgba(29, 63, 168, .08), transparent 60%),
        linear-gradient(180deg, #fff, var(--bg-soft));
}

.text-gradient {
    background: linear-gradient(120deg, var(--navy-700) 10%, var(--indigo-500) 55%, var(--cyan-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.help-grid { gap: 28px; }

.help-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.help-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-600), var(--cyan-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.help-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 50px rgba(59, 95, 217, 0.2);
    border-color: var(--cyan-400);
}
.dark-theme .help-card:hover {
    box-shadow: 0 24px 50px rgba(0, 212, 255, 0.22);
}
.help-card:hover::before { transform: scaleX(1); }

.help-card-num {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .25em;
    color: var(--cyan-400);
    margin-bottom: 14px;
}
.help-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(11, 31, 77, .28);
    margin-bottom: 20px;
}
.help-card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.help-card > p { color: var(--muted); margin-bottom: 16px; }

.help-list { list-style: none; padding: 0; margin: 0 0 24px; }
.help-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: .93rem;
}
.help-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 2px;
    background: var(--cyan-400);
    border-radius: 2px;
}

.help-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--navy-700);
}
.help-more::after { content: "→"; display: inline-block; transition: transform .2s var(--ease); }
.help-card:hover .help-more::after { transform: translateX(4px); }

/* Featured middle card: full brand-gradient surface */
.help-card.is-featured {
    background:
        radial-gradient(400px 250px at 90% 10%, rgba(0, 212, 255, .25), transparent 60%),
        linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(11, 31, 77, .28);
}
.help-card.is-featured::before {
    background: linear-gradient(90deg, var(--cyan-400), var(--cyan-300));
    transform: scaleX(1);
}
.help-card.is-featured:hover { box-shadow: 0 26px 60px rgba(11, 31, 77, .38); }
.help-card.is-featured h3 { color: #fff; }
.help-card.is-featured > p { color: rgba(255, 255, 255, .82); }
.help-card.is-featured .help-card-num { color: var(--cyan-300); }
.help-card.is-featured .help-icon {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: none;
}
.help-card.is-featured .help-list li { color: rgba(255, 255, 255, .88); }
.help-card.is-featured .help-list li::before { background: var(--cyan-300); }
.help-card.is-featured .help-more { color: var(--cyan-300); }

/* ===========================================================
   "Why Choose Us" — sticky intro + stacked reason cards
   Same brand palette, different layout from the help-section.
   =========================================================== */
.why-section {
    position: relative;
    background: var(--bg);
}
.why-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 360px at 0% 100%, rgba(0, 212, 255, .07), transparent 60%),
        radial-gradient(600px 300px at 100% 0%, rgba(29, 63, 168, .06), transparent 60%);
    pointer-events: none;
}
.why-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.why-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.why-intro p { color: var(--muted); margin-bottom: 24px; }

.why-stats {
    display: flex;
    gap: 28px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--bg-tint), var(--card-bg));
    border-left: 3px solid var(--cyan-400);
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.why-stats div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1;
}
.why-stats div span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-top: 6px;
}

.why-cards { display: flex; flex-direction: column; gap: 18px; }

.why-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.why-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--navy-700), var(--cyan-400));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s var(--ease);
}
.why-card:hover {
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(59, 95, 217, 0.15);
    border-color: var(--cyan-400);
}
.dark-theme .why-card:hover {
    box-shadow: 0 18px 40px rgba(0, 212, 255, 0.15);
}
.why-card:hover::after { transform: scaleY(1); }

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(11, 31, 77, .25);
}
.why-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.why-card p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; gap: 36px; }
    .why-intro { position: static; }
}
@media (max-width: 480px) {
    .why-stats { flex-wrap: wrap; gap: 18px; }
}

/* ===========================================================
   "Our Core Features" — dark navy section
   Strongest deployment of the logo gradient on the page.
   =========================================================== */
.core-features-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(0, 212, 255, .18), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(94, 233, 255, .10), transparent 60%),
        linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--navy-600));
    color: rgba(255, 255, 255, .9);
}
.core-features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(800px 480px at 50% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(800px 480px at 50% 30%, #000, transparent 75%);
    pointer-events: none;
}
.core-features-section .container { position: relative; z-index: 1; }

.core-head h2 { color: #fff; }
.core-head p  { color: rgba(255, 255, 255, .75); }
.core-head .eyebrow {
    background: rgba(255, 255, 255, .1);
    color: var(--cyan-300);
}

.text-gradient-light {
    background: linear-gradient(120deg, #fff 10%, var(--cyan-300) 55%, var(--cyan-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.core-card {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition:
        transform .25s var(--ease),
        background .3s var(--ease),
        border-color .25s var(--ease);
}
.core-card.core-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.core-card-content {
    position: relative;
    z-index: 2;
}
.core-card-visual {
    position: relative;
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Bento leadership visual */
.bento-ring-visual {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ring-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--cyan-400);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cyan-400);
}
.ring-orbit {
    position: absolute;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}
.ring-orbit-1 { width: 56px; height: 56px; }
.ring-orbit-2 { width: 88px; height: 88px; animation-duration: 30s; animation-direction: reverse; }
@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bento checks visual */
.bento-checks-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 85%;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}
.chk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chk-green { background: #10b981; box-shadow: 0 0 10px #10b981; }
.chk-cyan { background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400); }
.chk-pulse { 
    background: #ffb547; 
    box-shadow: 0 0 10px #ffb547; 
    animation: pulseDot 1.6s ease-in-out infinite; 
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Responsive updates for Bento */
@media (max-width: 900px) {
    .core-card.core-card-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .core-card-visual {
        display: none;
    }
}
.core-card::before {
    content: "";
    position: absolute;
    top: -55%;
    right: -35%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, .3), transparent 60%);
    opacity: 0;
    transition: opacity .45s var(--ease);
    pointer-events: none;
}
.core-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(94, 233, 255, .4);
}
.core-card:hover::before { opacity: 1; }

.core-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .25em;
    color: rgba(255, 255, 255, .32);
}

.core-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan-400), var(--indigo-500));
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 14px 28px rgba(0, 212, 255, .3);
    transition: transform .25s var(--ease);
}
.core-card:hover .core-icon { transform: scale(1.06) rotate(-3deg); }

.core-card h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.08rem;
    /* Leave room for the absolutely-positioned number badge */
    padding-right: 28px;
}
.core-card p {
    color: rgba(255, 255, 255, .72);
    font-size: .93rem;
    margin: 0;
}

@media (max-width: 900px) { .core-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .core-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   About page — overview visual block
   =========================================================== */
.about-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}
.about-visual-inner { position: absolute; inset: 0; }
.av-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(94, 233, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 233, 255, .08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(500px 320px at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(500px 320px at 50% 50%, #000, transparent 75%);
}
.av-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 160px; height: 160px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 212, 255, .4), transparent 60%);
    filter: blur(8px);
    animation: avPulse 3.5s ease-in-out infinite;
}
@keyframes avPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);  opacity: .6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: .9; }
}

.av-card {
    position: absolute;
    background: var(--card-bg);
    opacity: 0.96;
    color: var(--ink);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(7, 21, 58, .35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 110px;
}
.av-card small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.av-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-top: 4px; color: var(--navy-800); }
.av-card-1 { top: 10%;  left: 8%;  animation: avFloat 6s ease-in-out infinite; }
.av-card-2 { top: 12%;  right: 8%; animation: avFloat 7.5s ease-in-out infinite reverse; }
.av-card-3 { bottom: 14%; left: 10%; animation: avFloat 8s ease-in-out infinite; }
.av-card-4 { bottom: 12%; right: 8%; animation: avFloat 6.8s ease-in-out infinite reverse; }
@keyframes avFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===========================================================
   Mission + Vision dual-card
   =========================================================== */
.mv-section { background: var(--bg-soft); }

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.mv-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 40px;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mv-card:hover { transform: translateY(-4px); }

/* Mission — full navy gradient (logo identity) */
.mv-mission {
    background:
        radial-gradient(500px 300px at 90% 10%, rgba(0, 212, 255, .25), transparent 60%),
        linear-gradient(155deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
    color: #fff;
    box-shadow: 0 20px 50px rgba(11, 31, 77, .3);
}
.mv-mission .mv-icon {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--cyan-300);
}
.mv-mission h3 { color: #fff; }
.mv-mission p  { color: rgba(255, 255, 255, .82); }
.mv-mission .mv-tag { color: var(--cyan-300); }

/* Vision — white card with cyan accent */
.mv-vision {
    background: var(--card-bg);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.mv-vision::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-700), var(--cyan-400));
}
.mv-vision .mv-icon {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    box-shadow: 0 12px 26px rgba(11, 31, 77, .25);
}
.mv-vision .mv-tag { color: var(--navy-700); }

.mv-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: grid; place-items: center;
    margin-bottom: 22px;
}
.mv-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .78rem;
    letter-spacing: .25em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mv-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.mv-card p { margin: 0; }

@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Principles grid — light variant for the about page
   (Distinct from homepage's dark "core features" treatment.)
   =========================================================== */
.principles-section {
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(0, 212, 255, .07), transparent 60%),
        var(--bg);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.principle-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.principle-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--navy-700), var(--cyan-400));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ease);
}
.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 31, 77, .1);
    border-color: transparent;
}
.principle-card:hover::before { transform: scaleY(1); }

.principle-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bg-tint), var(--card-bg));
    color: var(--navy-700);
    display: grid; place-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.dark-theme .principle-icon {
    color: var(--cyan-300);
}
.principle-card:hover .principle-icon {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    border-color: transparent;
}
.principle-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.principle-card p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0;
}

@media (max-width: 900px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Team / leadership cards
   =========================================================== */
.team-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 31, 77, .1);
    border-color: transparent;
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy-800), var(--cyan-400));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(11, 31, 77, .25);
}
.team-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.team-card p  { font-size: .92rem; margin: 0; }

/* ===========================================================
   Non-IT services — industries chip cloud + sector cards
   =========================================================== */
.industries-strip {
    background:
        radial-gradient(700px 300px at 50% -20%, rgba(0, 212, 255, .08), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.industries-label {
    text-align: center;
    margin: 0 0 18px;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.industries-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .87rem;
    font-weight: 500;
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.industry-chip-ico {
    display: inline-grid;
    place-items: center;
    width: 22px; height: 22px;
    color: var(--navy-700);
    transition: color .2s var(--ease);
}
.industry-chip:hover {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 31, 77, .2);
}
.industry-chip:hover .industry-chip-ico { color: var(--cyan-300); }

/* ----- Sector cards ----- */
.sectors-section {
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(0, 212, 255, .06), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(29, 63, 168, .06), transparent 60%),
        var(--bg);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.sector-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 30px 28px;
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 16px);
    transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.sector-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-600), var(--cyan-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(11, 31, 77, .12);
    border-color: transparent;
}
.sector-card:hover::before { transform: scaleX(1); }
.sector-card:target { /* anchor jump highlight */
    border-color: var(--cyan-400);
    box-shadow: 0 22px 50px rgba(0, 212, 255, .18);
}

.sector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sector-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 26px rgba(11, 31, 77, .25);
    transition: transform .25s var(--ease);
}
.sector-card:hover .sector-icon { transform: scale(1.06) rotate(-3deg); }
.sector-num {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .25em;
    color: var(--cyan-400);
}
.sector-name { font-size: 1.18rem; margin-bottom: 8px; }
.sector-desc { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }

.sector-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}
.sector-list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: .9rem;
}
.sector-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 10px; height: 2px;
    background: var(--cyan-400);
    border-radius: 2px;
}

.sector-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--navy-700);
    font-size: .92rem;
    transition: color .2s var(--ease);
}
.sector-cta:hover { color: var(--coral-500); }

@media (max-width: 900px) {
    .sectors-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .sector-list { grid-template-columns: 1fr; }
}

/* ===========================================================
   Contact page — quick contact strip + form panel + offices
   =========================================================== */
.quick-contact-strip {
    background:
        radial-gradient(700px 320px at 50% 100%, rgba(0, 212, 255, .07), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.qc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.qc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 24px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.qc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 31, 77, .1);
    border-color: transparent;
    color: var(--ink);
}
.qc-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: #fff;
    display: grid; place-items: center;
    margin-bottom: 6px;
    box-shadow: 0 8px 18px rgba(11, 31, 77, .22);
}
.qc-icon-green {
    background: linear-gradient(135deg, #1da859, #25d366);
    box-shadow: 0 8px 18px rgba(37, 211, 102, .25);
}
.qc-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    font-weight: 600;
}
.qc-value {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy-800);
    word-break: break-word;
}

@media (max-width: 900px) { .qc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .qc-grid { grid-template-columns: 1fr; } }

/* ----- Form + sidebar layout ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-panel {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.contact-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-700), var(--cyan-400));
}
.contact-form-head { margin-bottom: 28px; }
.contact-form-head h2 { margin-bottom: 8px; }
.contact-form-head p  { color: var(--muted); margin: 0; }

.req { color: var(--coral-500); font-weight: 700; }

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.form-foot { margin: 0; font-size: .82rem; }

/* ----- Sidebar ----- */
.contact-side { display: flex; flex-direction: column; gap: 14px; }

.contact-side-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.contact-side-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.contact-side-card h4 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy-700);
}
.contact-side-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 6px; font-size: .94rem; color: var(--ink-soft); }

.contact-side-feature {
    position: relative;
    background:
        radial-gradient(400px 250px at 90% 0%, rgba(0, 212, 255, .25), transparent 60%),
        linear-gradient(155deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
    color: #fff;
    border: none;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(11, 31, 77, .25);
}
.contact-side-feature h3 { color: #fff; font-size: 1.5rem; }
.contact-side-feature p  { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.csf-glow {
    position: absolute;
    top: -50%; right: -30%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 233, 255, .35), transparent 60%);
    pointer-events: none;
    animation: csfPulse 4s ease-in-out infinite;
}
@keyframes csfPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: .9;  transform: scale(1.1); }
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 28px; }
}

/* ----- Office locations ----- */
.offices-list { max-width: 980px; margin: 0 auto; }

.office-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: stretch;
    padding-top: 8px;
}
.office-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(11, 31, 77, .08);
    min-height: 260px;
}
.office-map iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    display: block;
    /* Soft brand wash without breaking the map labels */
    filter: saturate(1.05);
}
@media (max-width: 700px) {
    .office-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Trust strip — slim credibility band right under the hero
   =========================================================== */
.trust-strip {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    position: relative;
}
.trust-strip::before {
    content: "";
    position: absolute;
    inset: auto 0 100% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    opacity: .35;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px;
    border-right: 1px solid var(--line);
}
.trust-cell:last-child { border-right: 0; }
.trust-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bg-tint), var(--bg));
    color: var(--navy-700);
    display: grid; place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
}
.trust-cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy-800);
    line-height: 1.15;
}
.trust-cell span {
    font-size: .82rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .trust-cell:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-cell { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .trust-cell:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ===========================================================
   Selected Outcomes — anonymous case tiles (replaces fake testimonials)
   =========================================================== */
.outcomes-section {
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(0, 212, 255, .06), transparent 60%),
        radial-gradient(700px 360px at 0% 100%, rgba(29, 63, 168, .05), transparent 60%),
        var(--bg-soft);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.outcome-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.outcome-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--navy-700), var(--cyan-400));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ease);
}
.outcome-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 50px rgba(59, 95, 217, 0.18);
    border-color: var(--cyan-400);
}
.dark-theme .outcome-card:hover {
    box-shadow: 0 22px 50px rgba(0, 212, 255, 0.2);
}
.outcome-card:hover::before { transform: scaleY(1); }

.outcome-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.outcome-sector {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-tint);
    color: var(--navy-700);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.outcome-year {
    font-family: var(--font-display);
    font-size: .8rem;
    letter-spacing: .15em;
    color: var(--muted);
    font-weight: 600;
}
.outcome-brief {
    color: var(--ink-soft);
    font-size: .96rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.outcome-metric {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}
.outcome-metric strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1;
    background: linear-gradient(120deg, var(--navy-700) 10%, var(--cyan-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}
.outcome-metric span {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.outcomes-foot {
    text-align: center;
    margin: 0;
}

@media (max-width: 800px) { .outcomes-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Stats / counters
   =========================================================== */
.stats {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ink);
    line-height: 1;
}
.stat span { color: var(--muted); font-size: .95rem; margin-top: 6px; display: block; }

/* ===========================================================
   Testimonials slider
   =========================================================== */
.testimonials { background: var(--bg-soft); }
.t-slider {
    position: relative;
    overflow: hidden;
}
.t-track {
    display: flex;
    transition: transform .5s var(--ease);
}
.t-slide {
    min-width: 100%;
    padding: 8px;
}
.t-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.t-card blockquote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.5;
}
.t-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.t-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-600), var(--cyan-400));
    color: #fff; display: grid; place-items: center; font-weight: 700;
}
.t-author small { color: var(--muted); display: block; font-weight: 400; }
.t-author strong { display: block; font-size: .95rem; }

.t-controls {
    display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.t-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line); border: 0; cursor: pointer;
    transition: background .2s, transform .2s;
}
.t-dot.is-active { background: var(--navy-700); transform: scale(1.2); }
.dark-theme .t-dot.is-active { background: var(--cyan-300); }

/* ===========================================================
   FAQ accordion
   =========================================================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--card-bg);
    overflow: hidden;
    transition: box-shadow .2s var(--ease);
}
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-q {
    width: 100%;
    background: none;
    border: 0;
    text-align: left;
    padding: 20px 24px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-display);
}
.faq-q .plus {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-tint);
    color: var(--navy-700);
    display: grid; place-items: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform .25s var(--ease), background .2s, color .2s;
}
.faq-item.is-open .plus { transform: rotate(45deg); background: var(--navy-700); color: #fff; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
    color: var(--muted);
    padding: 0 24px;
}
.faq-a-inner { padding-bottom: 22px; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--navy-900), var(--indigo-500));
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 90% 50%, rgba(0, 212, 255, .25), transparent 60%);
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .75);
    padding: 72px 0 0;
}
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .5); }
.site-footer h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.site-footer .muted { color: rgba(255, 255, 255, .55); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 56px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, .7); }
.footer-col a:hover { color: var(--cyan-300); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    display: grid; place-items: center;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: all .2s var(--ease);
}
.socials a:hover { background: var(--cyan-400); color: var(--navy-900); transform: translateY(-2px); }

.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter input {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter input:focus { outline: 2px solid var(--cyan-400); outline-offset: 0; }
.newsletter .btn { grid-column: 1 / -1; }
.newsletter-msg { grid-column: 1 / -1; font-size: .85rem; color: var(--cyan-300); margin: 4px 0 0; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    font-size: .88rem;
}
.footer-bottom p { color: rgba(255, 255, 255, .85); margin: 0; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .65); }

/* ===========================================================
   Forms
   =========================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
    display: block;
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: var(--card-bg);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 4px rgba(29, 63, 168, .12);
}

.form-status {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: .95rem;
}
.form-status.ok    { background: #e7f7ee; color: #15803d; border: 1px solid #bbf7d0; }
.form-status.error { background: #fdecec; color: #b91c1c; border: 1px solid #fecaca; }

/* ===========================================================
   Floating widgets
   =========================================================== */
.float-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: grid; place-items: center;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .4);
    z-index: 90;
    animation: pulseGreen 2.5s infinite;
    transition: transform .2s var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 12px 28px rgba(37, 211, 102, .4); }
    50%      { box-shadow: 0 12px 36px rgba(37, 211, 102, .65); }
}

.float-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy-800);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
    z-index: 90;
    font-size: 1.1rem;
}
.float-top.is-visible {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.float-top:hover { background: var(--coral-500); }

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===========================================================
   Two-column content
   =========================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.split.image-right .split-image { order: 2; }

.split-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-700), var(--cyan-400));
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.split-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px);
    background-size: 18px 18px;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 14px;
    color: var(--ink-soft);
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 1px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy-700);
    color: #fff;
    display: grid; place-items: center;
    font-size: .75rem;
    font-weight: 700;
}

/* ===========================================================
   Pill chips & badges
   =========================================================== */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-tint);
    color: var(--navy-700);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ===========================================================
   Service / training detail
   =========================================================== */
.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 40px;
}
.meta-tile {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.meta-tile small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.meta-tile strong { display: block; font-size: 1.05rem; color: var(--ink); margin-top: 4px; }

/* ===========================================================
   Blog / posts
   =========================================================== */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy-700), var(--cyan-400));
    position: relative;
}
.post-thumb.alt { background: linear-gradient(135deg, var(--coral-500), var(--amber-400)); }
.post-thumb.cool { background: linear-gradient(135deg, var(--indigo-500), var(--cyan-400)); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-body small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.post-body h3 { margin: 8px 0 10px; font-size: 1.18rem; }
.post-body p { color: var(--muted); flex: 1; }
.post-body a.read { color: var(--navy-700); font-weight: 600; }

/* ===========================================================
   Job cards
   =========================================================== */
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    background: var(--card-bg);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.job-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--navy-600); }
.job-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.job-card .meta { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); }

/* ===========================================================
   Legal page
   =========================================================== */
.prose {
    max-width: 800px;
    margin: 0 auto;
}
.prose h2 { margin-top: 36px; }
.prose ul, .prose ol { margin: 0 0 1em 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid .footer-col:nth-child(4),
    .footer-grid .footer-col:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split.image-right .split-image { order: 0; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-meta { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height .3s var(--ease), padding .3s var(--ease), visibility .3s var(--ease), border-color .3s var(--ease);
        box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
        border-top: 1px solid transparent;
    }
    .primary-nav.is-open {
        max-height: calc(100vh - var(--header-h));
        padding: 20px;
        visibility: visible;
        border-top-color: var(--line);
        overflow-y: auto;
    }
    .primary-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }
    .primary-nav li a { width: 100%; padding: 14px 12px; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding-left: 18px;
        padding-top: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s var(--ease);
    }
    .has-dropdown.is-open .dropdown { max-height: 400px; }
    .nav-cta { width: 100%; margin-top: 8px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats { padding: 28px; }

    .hero-stats { gap: 18px; flex-wrap: wrap; }
    .cta-band-inner { text-align: center; justify-content: center; }

    /* Mobile view styling fixes for index.php */
    .hero-visual { display: none; }
    .card, .help-card, .why-card, .outcome-card, .core-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; }
    .float-whatsapp { width: 50px; height: 50px; right: 16px; bottom: 16px; }
    .float-top { right: 16px; bottom: 78px; }

    /* Mobile buttons styling: stack full-width */
    .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
    .hero-actions .btn { width: 100%; text-align: center; }

    /* Balanced 3-item statistics on mobile */
    .why-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 18px;
        text-align: center;
    }
    .why-stats div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .why-stats div:last-child {
        grid-column: span 2;
    }

    /* Stack why-card icons and center text on mobile */
    .why-card {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .why-icon {
        margin: 0 auto;
    }

    /* Stacking outcome metrics vertically */
    .outcome-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* FAQ accordion padding on small viewports */
    .faq-q { padding: 16px 18px; }
    .faq-a { padding: 0 18px; }
}



@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
