/* ============================================================
   Application House — Homepage Preview
   Brand tokens + components + layout
   ============================================================ */

:root {
    /* Brand colour palette (from Brand Assets/Colour swatches) */
    --ah-red:    #eb3915;
    --ah-blue:   #00aeef;
    --ah-green:  #89d450;
    --ah-pink:   #f472d1;
    --ah-yellow: #ffc61b;
    --ah-grey:   #e8eaeb;
    --ah-navy:   #262262;
    --ah-purple: #432649;

    /* Semantic */
    --c-text:        var(--ah-navy);
    --c-text-soft:   #5a5a7a;
    --c-bg:          #ffffff;
    --c-bg-soft:     #f4f5f7;
    --c-bg-tint:     #eaf7fd;          /* pale blue */
    --c-border:      #e1e3eb;

    /* Type scale */
    --ff-heading: "CoHeadline", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs:   12px;
    --fs-sm:   14px;
    --fs-base: 16px;
    --fs-md:   18px;
    --fs-lg:   22px;
    --fs-xl:   28px;
    --fs-2xl:  36px;
    --fs-3xl:  44px;
    --fs-4xl:  56px;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --sp-9: 96px;

    /* Radii / shadows */
    --r-sm:  6px;
    --r-md:  12px;
    --r-lg:  20px;
    --r-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(38, 34, 98, 0.06);
    --shadow-md: 0 8px 24px rgba(38, 34, 98, 0.08);
    --shadow-lg: 0 18px 48px rgba(38, 34, 98, 0.12);

    /* Layout */
    --container: 1240px;
}

/* ---------- Brand fonts (Lato for body, CoHeadline for headings) ---------- */
/* Files in Brand Assets/Typeface/, referenced via relative paths */
@font-face {
    font-family: "CoHeadline";
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Co/CoHeadline_Light.ttf") format("truetype");
}
@font-face {
    font-family: "CoHeadline";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Co/CoHeadline_Reg.ttf") format("truetype");
}
@font-face {
    font-family: "CoHeadline";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Co/CoHeadline_Bold.ttf") format("truetype");
}
@font-face {
    font-family: "CoText";
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Co/CoText_Light.ttf") format("truetype");
}

@font-face {
    font-family: "Lato";
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-Light.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 300;
    font-style: italic;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-LightItalic.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-Italic.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 700;
    font-style: italic;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-BoldItalic.ttf") format("truetype");
}
@font-face {
    font-family: "Lato";
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url("../brand-assets/typeface/Lato/Lato-Black.ttf") format("truetype");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ah-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
    color: var(--ah-navy);
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }

/* Two-tone heading (e.g. "Welcome to the home of Salesforce") */
.heading-mixed .accent-blue   { color: var(--ah-blue); }
.heading-mixed .accent-green  { color: var(--ah-green); }
.heading-mixed .accent-pink   { color: var(--ah-pink); }
.heading-mixed .accent-yellow { color: var(--ah-yellow); }
.heading-mixed .accent-grey { color: var(--ah-grey); }
p.accent-grey { color: var(--ah-grey) !important; }

/* ---------- Layout primitives ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-5);
}
.section {
    padding: var(--sp-9) 0;
}
.section--tight     { padding: var(--sp-7) 0; }
.section--grey      { background: var(--c-bg-soft); }
.section--blue-tint { background: var(--c-bg-tint); }
.section--blue { background: var(--ah-blue); }
.section--white     { background: #fff; }
.section-head {
    text-align: center;
    text-align: -webkit-center;
    margin: auto;
    max-width: 820px;
}
.section-head h2 { padding-bottom: var(--sp-3); }
.section-head h2::after {
    content: "";
    display: block;
    width: 96px;
    height: 4px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--ah-blue) 0 33%, var(--ah-yellow) 33% 66%, var(--ah-pink) 66% 100%);
    margin: var(--sp-4) auto 0;
}
.section-head p { color: var(--c-text-soft); font-size: var(--fs-md); }

/* ---------- Buttons ---------- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 12px 26px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-base);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}
.btn-pill:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); box-shadow: var(--shadow-md); }
.btn-pill--blue   { background: var(--ah-blue); }
.btn-pill--green  { background: var(--ah-green); color: #fff; }
.btn-pill--navy   { background: var(--ah-navy); }
.btn-pill--red    { background: var(--ah-red); }
.btn-pill--pink   { background: var(--ah-pink); }
.btn-pill--yellow { background: var(--ah-yellow); color: var(--ah-navy); }
.btn-pill--outline {
    background: transparent;
    color: var(--ah-navy);
    border: 2px solid var(--ah-navy);
}
.btn-pill .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

/* ---------- Top contact bar ---------- */
.top-bar {
    background: var(--ah-navy);
    color: #fff;
    font-size: var(--fs-sm);
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    align-items: center;
    justify-content: space-between;
}
.top-bar .contact-list,
.top-bar .social-list {
    display: flex;
    gap: var(--sp-5);
    align-items: center;
    flex-wrap: wrap;
}
.top-bar a { color: #fff; }
.top-bar .flag { font-size: 14px; }
.social-list a {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: background 0.15s ease;
}
.social-list a:hover { background: var(--ah-pink); }
.social-list svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Header (logo row + menu row, with shrink-on-scroll) ---------- */
/* The sticky header collapses .header-top on scroll; that above-viewport height
   change would trigger scroll anchoring, which fights a slow scroll and makes the
   header flicker at the trigger point. Opt the page scroller out of anchoring. */
html,
body { overflow-anchor: none; }

.site-header {
    position: sticky;     /* whole header pinned so nav stays visible on scroll */
    top: 0;
    background: #fff;
    z-index: 50;
}

/* Top contact bar collapses on scroll */
.top-bar {
    overflow: hidden;
    max-height: 60px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Row 2: logo (left) + cta cluster + book a demo (right) — collapses on scroll */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: 16px var(--sp-5);
    overflow: hidden;
    max-height: 120px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-bottom: var(--sp-7);
}
.site-header.is-scrolled .header-top {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: var(--sp-6);
}
.logo { display: inline-flex; }
.logo img { height: 64px; width: auto; transition: height 0.3s ease; }
.header-top-right {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

/* Row 3: menu bar — v2 white styling; sticky behaviour handled by .site-header parent */
.header-nav-row {
    background: #fff;
    transition: box-shadow 0.3s ease;
    position: absolute;
    content: "";
    width: 100%;
    z-index: 99;
    background: transparent;
    left: 0;
    margin-top: -35px;
}
.site-header.is-scrolled .header-nav-row {
    box-shadow: var(--shadow-md);
}
.nav-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    padding: 10px 0;
    transition: max-width 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    position: relative;
    max-width: 1350px;
    padding: 15px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}

.container.nav-bar:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 6px;
    left: 6px;
    background: #fff;
    z-index: -2;
    border-radius: 10px;
    opacity: 0.3;
}

.container.nav-bar:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--color-white);
    z-index: -1;
    border-radius: 10px;
    box-shadow: 0px 0px 40px 0px rgba(0,0,0,.09);
}
/* Sticky state: break out of the 1240px container, span full width, hide content-width borders */
.site-header.is-scrolled .nav-bar.container {
    max-width: none;
    padding: 10px var(--sp-7);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0;
}

/* Menu items: left-aligned, natural width (NOT stretched edge-to-edge) */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex: 0 1 auto;
}

/* Mini-logo: hidden by default, becomes visible on scroll (sits left of menu) */
.logo--mini {
    display: none;
    align-items: center;
    margin-right: var(--sp-5);
    flex-shrink: 0;
}
.logo--mini img { height: 50px; width: auto; }

/* Scroll-state CTA: pushed to far right when visible */
.nav-cta--scroll {
    display: none;
    margin-left: auto;
    padding: 8px 18px;
    font-size: 14px;
    flex-shrink: 0;
}
.site-header.is-scrolled .logo--mini { display: inline-flex; }
.site-header.is-scrolled .nav-cta--scroll { display: inline-flex; }
.nav-item { position: relative; }
.nav-item > a {
    color: var(--ah-navy);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.nav-item > a:hover { color: var(--ah-blue); text-decoration: none; }
.nav-item .caret { font-size: 10px; }

.dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
}
.nav-item:hover > .dropdown,
.nav-item.open > .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--ah-navy);
    font-size: var(--fs-sm);
    border-radius: var(--r-sm);
}
.dropdown a:hover { background: var(--c-bg-soft); color: var(--ah-blue); text-decoration: none; }

.nav-cta { margin-left: auto; }

/* Floating green CTA cluster (per v2 JPG) */
.cta-cluster {
    display: flex;
    gap: 6px;
    margin-left: var(--sp-3);
}
.cta-cluster a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ah-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
.cta-cluster a:hover { transform: translateY(-2px); background: #6ec434; }
.cta-cluster svg { width: 20px; height: 20px; fill: #fff; }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--ah-navy);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
    background: var(--c-bg-tint);
    padding: var(--sp-8) 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--ah-pink);
    opacity: 0.08;
    top: -180px;
    left: -180px;
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: var(--ah-blue);
    opacity: 0.07;
    bottom: -140px;
    right: 4%;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-track {
    position: relative;
    min-height: 480px;
}
.hero-slide {
    display: none;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-7);
    align-items: center;
}
.hero-slide.is-active { display: grid; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-eyebrow {
    color: var(--ah-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-3);
}
.hero-slide h1 { font-size: var(--fs-3xl); }
.hero-slide p  { font-size: var(--fs-md); color: var(--c-text-soft); max-width: 540px; }
.hero-trust {
    display: flex;
    gap: var(--sp-4);
    color: var(--ah-navy);
    font-weight: 700;
    margin-top: var(--sp-4);
    align-items: center;
    flex-wrap: wrap;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .dot { color: var(--ah-green); }
.hero-cta { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Inline Contact Form 7 email-capture form on hero slide 1 (replaces the CTA button) */
.hero-form { margin-top: var(--sp-5); max-width: 520px; }
.hero-form .wpcf7 { margin: 0; }
.hero-form .wpcf7-form { margin: 0; }
/* CF7 wraps a single-line form body in one <p>; lay that (or an explicit .hero-form-row) out as the input+button row. */
.hero-form-row,
.hero-form .wpcf7-form > p {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
    margin: 0;
}
.hero-form .wpcf7-form-control-wrap { flex: 1 1 220px; margin: 0; }
.hero-form input[type="email"],
.hero-form input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--ah-navy);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-form input::placeholder { color: var(--c-text-soft); opacity: 1; }
.hero-form input[type="email"]:focus,
.hero-form input[type="text"]:focus {
    outline: none;
    border-color: var(--ah-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}
.hero-form input.wpcf7-submit,
.hero-form input[type="submit"] {
    padding: 14px 30px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-base);
    color: #fff;
    background: var(--ah-blue);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.hero-form input.wpcf7-submit:hover,
.hero-form input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: var(--shadow-md);
}
.hero-form .wpcf7-spinner { margin: 0 0 0 8px; }
.hero-form .wpcf7-response-output {
    flex-basis: 100%;
    width: 100%;
    margin: var(--sp-3) 0 0;
    padding: 10px 14px;
    font-size: var(--fs-sm);
    border-radius: var(--r-md);
}
@media (max-width: 560px) {
    .hero-form-row { flex-direction: column; align-items: stretch; }
    .hero-form input.wpcf7-submit,
    .hero-form input[type="submit"] { width: 100%; }
}

/* Single enabled slide → static banner (no dots/autoplay), so don't reserve carousel height */
.hero--static .hero-track { min-height: auto; }

.hero-visual { position: relative; text-align: center; min-height: 380px; }
.hero-visual img { max-height: 420px; margin: 0 auto; position: relative; z-index: 2; }
.hero-visual::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--ah-yellow);
    border-radius: 50%;
    top: 4%;
    right: 4%;
    opacity: 0.55;
    z-index: 0;
}
.hero-visual::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    background: var(--ah-pink);
    border-radius: 50%;
    bottom: 6%;
    left: 4%;
    opacity: 0.85;
    z-index: 1;
}
.hero-deco-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.hero-deco-dot--green {
    width: 72px; height: 72px;
    background: var(--ah-green);
    top: 48%; right: 0;
}
.hero-deco-dot--blue {
    width: 44px; height: 44px;
    background: var(--ah-blue);
    top: 14%; left: 6%;
}
.hero-deco-dot--red {
    width: 28px; height: 28px;
    background: var(--ah-red);
    top: 36%; left: 18%;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-6);
}
.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-border);
    transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dots button.is-active {
    background: var(--ah-blue);
    transform: scale(1.2);
}

/* ---------- Card grids ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-7);
    align-items: center;
}

/* ---------- Generic card ---------- */
.card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* border-top: 5px solid var(--ah-blue); */
}
.card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--ah-blue);
    opacity: 0.08;
    bottom: -60px;
    right: -60px;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scale(1.4); }

/* Rotate card top-border + accent blob through brand colours */
.grid-3 > .card:nth-child(3n+1) { border-top-color: var(--ah-blue); }
.grid-3 > .card:nth-child(3n+1)::after { background: var(--ah-blue); }
.grid-3 > .card:nth-child(3n+2) { border-top-color: var(--ah-green); }
.grid-3 > .card:nth-child(3n+2)::after { background: var(--ah-green); }
.grid-3 > .card:nth-child(3n)   { border-top-color: var(--ah-pink); }
.grid-3 > .card:nth-child(3n)::after   { background: var(--ah-pink); }

.grid-4 > .card:nth-child(4n+1) { border-top-color: var(--ah-blue); }
.grid-4 > .card:nth-child(4n+1)::after { background: var(--ah-blue); }
.grid-4 > .card:nth-child(4n+2) { border-top-color: var(--ah-green); }
.grid-4 > .card:nth-child(4n+2)::after { background: var(--ah-green); }
.grid-4 > .card:nth-child(4n+3) { border-top-color: var(--ah-pink); }
.grid-4 > .card:nth-child(4n+3)::after { background: var(--ah-pink); }
.grid-4 > .card:nth-child(4n)   { border-top-color: var(--ah-yellow); }
.grid-4 > .card:nth-child(4n)::after   { background: var(--ah-yellow); }

/* Card icon backgrounds — solid brand colour with white icon */
.grid-3 > .card:nth-child(3n+1) .card-icon { background: var(--ah-blue); }
.grid-3 > .card:nth-child(3n+2) .card-icon { background: var(--ah-green); }
.grid-3 > .card:nth-child(3n)   .card-icon { background: var(--ah-pink); }
/* .card .card-icon img { filter: brightness(0) invert(1); } */

/* Card meta tag — brand colour pill */
.grid-3 > .card:nth-child(3n+1) .card-meta,
.grid-4 > .card:nth-child(4n+1) .card-meta { background: var(--ah-blue); color: #fff; }
.grid-3 > .card:nth-child(3n+2) .card-meta,
.grid-4 > .card:nth-child(4n+2) .card-meta { background: var(--ah-green); color: var(--ah-navy); }
.grid-3 > .card:nth-child(3n)   .card-meta,
.grid-4 > .card:nth-child(4n+3) .card-meta { background: var(--ah-pink); color: #fff; }
.grid-4 > .card:nth-child(4n)   .card-meta { background: var(--ah-yellow); color: var(--ah-navy); }

.card > * { position: relative; z-index: 1; }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card p  { color: var(--c-text-soft); font-size: var(--fs-sm); flex: 1; }
.card-header {   
    display: flex;
    align-items: center;
    column-gap: 10px;
}
.card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ah-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
.card .card-icon-blue {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ah-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
/* .card .card-icon img { width: 36px; height: 36px; object-fit: contain; } */
.card .card-image {
    height: 160px;
    margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) var(--sp-5);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    background: var(--c-bg-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .card-image img { max-height: 100%; max-width: 80%; object-fit: contain; }
.card .card-meta {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--c-bg-tint);
    color: var(--ah-blue);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: var(--sp-3);
    align-self: flex-start;
}
.card a.card-link {
    margin-top: var(--sp-4);
    color: var(--ah-blue);
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ---------- Blob / circular image with accent shapes ---------- */
.img-blob {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-bg-tint);
    max-width: 460px;
    margin: 20px auto;
}
.img-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-blob-wrap {
    position: relative;
    padding: var(--sp-6);
    text-align: center;
}
.img-blob-wrap::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.img-blob-wrap::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 36px;
    border-radius: var(--r-pill);
    top: var(--sp-3);
    right: var(--sp-3);
    z-index: 2;
}
.img-blob-wrap--yellow::before { background: var(--ah-yellow); }
.img-blob-wrap--yellow::after  { background: var(--ah-green); }
.img-blob-wrap--pink::before   { background: var(--ah-pink); }
.img-blob-wrap--pink::after    { background: var(--ah-blue); }
.img-blob-wrap--blue::before   { background: var(--ah-blue); }
.img-blob-wrap--blue::after    { background: var(--ah-yellow); }
.img-blob-wrap--green::before  { background: var(--ah-green); }
.img-blob-wrap--green::after   { background: var(--ah-pink); }

/* ---------- Stats (Accreditations) ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    text-align: center;
}
.stat-block { padding: var(--sp-5); }
.stat-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--sp-4);
    border-radius: 50%;
    background: var(--ah-blue);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-icon img { width: 54px; height: 54px; object-fit: contain; filter: brightness(0) invert(1); }

/* Rotate stat icons through 4 brand colours */
.stat-grid > .stat-block:nth-child(1) .stat-icon { background: var(--ah-blue); }
.stat-grid > .stat-block:nth-child(2) .stat-icon { background: var(--ah-pink); }
.stat-grid > .stat-block:nth-child(3) .stat-icon { background: var(--ah-green); }
.stat-grid > .stat-block:nth-child(4) .stat-icon { background: var(--ah-yellow); }
.stat-grid > .stat-block:nth-child(1) .stat-number { color: var(--ah-blue); }
.stat-grid > .stat-block:nth-child(2) .stat-number { color: var(--ah-pink); }
.stat-grid > .stat-block:nth-child(3) .stat-number { color: var(--ah-green); }
.stat-grid > .stat-block:nth-child(4) .stat-number { color: var(--ah-yellow); }

.stat-number {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--ah-blue);
    line-height: 1;
    margin-bottom: var(--sp-2);
}
.stat-label {
    font-weight: 700;
    color: var(--ah-navy);
    margin-bottom: var(--sp-2);
}
.stat-desc {
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
}

/* ---------- Plan cards ---------- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
}
.plan-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--ah-grey);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan-card.is-featured { border-color: var(--ah-blue); transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.plan-card.is-featured::before { background: var(--ah-blue); height: 12px; }
.plan-card.is-popular  { border-color: var(--ah-pink); }
.plan-card.is-popular::before  { background: var(--ah-pink); height: 12px; }
.plan-grid > .plan-card:nth-child(1)::before { background: var(--ah-green); }
.plan-grid > .plan-card:nth-child(3)::before { background: var(--ah-yellow); }
.plan-badge {
    position: absolute;
    top: -14px;
    right: var(--sp-5);
    background: var(--ah-blue);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.plan-card.is-popular .plan-badge { background: var(--ah-pink); }
.plan-name {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-2);
}
.plan-hours {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    margin-bottom: var(--sp-4);
    font-weight: 700;
}
.plan-features,
.plan-features-rich ul {
    margin: var(--sp-4) 0;
    flex: 1;
}
.plan-features li,
.plan-features-rich ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: var(--fs-sm);
    color: var(--c-text);
    border-bottom: 1px dashed var(--c-border);
}
.plan-features li::before,
.plan-features-rich ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ah-green);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

/* ---------- Testimonial carousel ---------- */
.testimonial-track {
    position: relative;
}
.testimonial-slide {
    display: none;
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-7);
    box-shadow: var(--shadow-sm);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-slide.is-active { display: block; animation: fadeIn 0.4s ease; }
.testimonial-quote-mark {
    font-size: 64px;
    line-height: 1;
    color: var(--ah-blue);
    font-family: Georgia, serif;
    margin-bottom: var(--sp-3);
}
.testimonial-body {
    font-size: var(--fs-md);
    color: var(--c-text);
    font-style: italic;
    margin-bottom: var(--sp-5);
}
.testimonial-source {
    font-weight: 700;
    color: var(--ah-navy);
}
.testimonial-link {
    display: inline-block;
    margin-top: var(--sp-3);
    color: var(--ah-blue);
    font-size: var(--fs-sm);
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: #fff;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ah-navy);
    margin: 0 auto var(--sp-5);
}
.verified-badge svg { width: 18px; height: 18px; fill: var(--ah-blue); }

/* ---------- Logo grids (Global clients, Industries) ---------- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-5);
    align-items: center;
    justify-items: center;
}
.logo-grid--4 { grid-template-columns: repeat(4, 1fr); }
.logo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: var(--sp-3);
    text-align: center;
}

/* ---------- Feature subsection (deep-dive) ---------- */
.feature-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}
.feature-item {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
}
.feature-item h4 {
    color: var(--ah-blue);
    margin-bottom: var(--sp-3);
}
.feature-item p { color: var(--c-text-soft); font-size: var(--fs-sm); margin: 0; }

/* ---------- Form ---------- */
.form-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-7);
    box-shadow: var(--shadow-md);
    max-width: 780px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.form-row--single { grid-template-columns: 1fr; }
.form-field label {
    display: block;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--ah-navy);
    margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--ah-navy);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--ah-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-submit { text-align: center; margin-top: var(--sp-5); }

/* ---------- Offices ---------- */
.office-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-5);
}
.office-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
}
.office-card h4 {
    color: var(--ah-blue);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-2);
}
.office-card p { color: var(--c-text-soft); font-size: var(--fs-sm); margin: 0; }

.footer-offices {
    background: #F3F4F6;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ah-purple);
    color: #fff;
    padding: var(--sp-9) 0 var(--sp-5);
    position: relative;
    overflow: hidden;
}
.site-footer .container { position: relative; }
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 1fr);
    gap: var(--sp-6);
    margin-bottom: var(--sp-7);
}
.footer-col h4 {
    color: var(--ah-pink);
    font-size: var(--fs-md);
    margin-bottom: var(--sp-4);
}
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col a {
    color: rgba(255,255,255,0.85);
    font-size: var(--fs-sm);
}
.footer-col a:hover { color: #fff; }
.footer-about p {
    color: rgba(255,255,255,0.78);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
}
.footer-about img.footer-logo {
    height: 60px;
    margin-bottom: var(--sp-4);
}
.footer-about .need-help h4 { margin-top: var(--sp-4); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: var(--sp-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.7);
}
.footer-bottom ul.social-list {
    display: flex;
    gap: inherit;
}
.footer-bottom .social-list a {
    background: var(--ah-pink);
    width: 32px;
    height: 32px;
}
.footer-bottom .social-list svg { width: 15px; height: 15px; }
.footer-bottom .legal a { color: rgba(255,255,255,0.85); margin-left: var(--sp-4); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav-list { display: none; }
    .nav-list.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: var(--sp-4);
        box-shadow: var(--shadow-lg);
        align-items: stretch;
        gap: 0;
        z-index: 60;
    }
    .nav-list.is-open .nav-item { width: 100%; border-bottom: 1px solid var(--c-border); padding: 8px 0; }
    .nav-list.is-open .dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; padding-left: var(--sp-4); background: transparent; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-nav-row .nav-bar { position: relative; }
}
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }
    .section { padding: var(--sp-7) 0; }
    .logo img { height: 48px; }
    .header-top-right .cta-cluster { display: none; }
    .hero-slide { grid-template-columns: 1fr; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .feature-block { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .office-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .grid-4, .plan-grid, .stat-grid, .footer-cols, .logo-grid { grid-template-columns: 1fr; }
    .top-bar .container { justify-content: center; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
