/* ============================================================
   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;
    /* The size scale. Every font size, space and corner in the site comes from here, in rem
       (1rem = 16px, and it follows the visitor's browser text size). Phones get smaller
       values for the same names in the 860px block near the end of the file.
       Headings: h1 4xl, h2 3xl, h3 xl, h4 lg; they match 360smsapp.com (Oct 2026). */
    --fs-xs:   0.75rem;    /* 12px */
    --fs-sm:   0.875rem;   /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-md:   1.125rem;   /* 18px */
    --fs-lg:   1.25rem;    /* 20px */
    --fs-xl:   1.625rem;   /* 26px */
    --fs-2xl:  1.75rem;    /* 28px */
    --fs-3xl:  2rem;       /* 32px */
    --fs-4xl:  2.875rem;   /* 46px */

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

    /* Radii / shadows */
    --r-sm:  0.375rem;     /* 6px */
    --r-md:  0.75rem;      /* 12px */
    --r-lg:  1.25rem;      /* 20px */
    --r-pill: 999px;       /* fully round */
    --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: 77.5rem;  /* 1240px */
}

/* The top bar, header and footer keep the sizes they were designed with, on every screen.
   The scale above (and its phone values) is for page content only. */
.top-bar,
.site-header,
.site-footer {
    --fs-lg:  1.375rem;    /* 22px */
    --fs-xl:  1.75rem;     /* 28px */
    --fs-2xl: 2.25rem;     /* 36px */
    --fs-3xl: 2.75rem;     /* 44px */
    --fs-4xl: 3.5rem;      /* 56px */
    --sp-6: 2rem;          /* 32px */
    --sp-7: 3rem;          /* 48px */
    --sp-8: 4rem;          /* 64px */
    --sp-9: 6rem;          /* 96px */
}
.site-header .btn-pill { font-size: var(--fs-base); }

/* ---------- 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%; height: auto; display: block; } /* height auto: images with a width and height keep their shape */
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); }
.heading-mixed .accent-red { color: var(--ah-red); }
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-7) 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::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-3) auto 0;
}
.section-head p { color: var(--c-text-soft); font-size: var(--fs-base); }
/* No heading and no description typed: the empty heading box takes no space */
.section-head:not(:has(*)) { display: none; }

.section-bottom-cta {
    text-align: center;
    margin-top: var(--sp-7);
}
.section-bottom-cta-text {
    margin: 0 auto var(--sp-4);
    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-sm);
    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);
}

/* ---------- Header CTA button ---------- */
.btn-green {
    background: var(--ah-green);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--r-pill);
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: filter 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-green:hover { filter: brightness(0.9); transform: translateY(-1px); text-decoration: none; }

/* ---------- Header (logo + CTA + nav + contact icons) ---------- */
/* Structure ported from the businesscardscan theme: a single sticky white bar
   with the logo left, the CTA + flat primary menu centre, contact icons right.
   No top contact bar, no second nav row, no shrink-on-scroll. */
.site-header {
    padding: 12px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}
.logo, .custom-logo-link { display: inline-flex; }
.logo img, .custom-logo-link img { width: 230px; height: auto; }
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-left: 20px;
    list-style: none;
}
.nav-links li { list-style: none; }
.nav-links > li {
    padding: var(--sp-2) var(--sp-2) var(--sp-1);
}
.nav-links a {
    color: var(--ah-navy);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}
.nav-links a:hover { color: var(--ah-green); text-decoration: none; }
.header-icons { display: flex; gap: 6px; }
.h-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.h-icon svg { width: 25px; height: 25px; fill: #fff; }
.h-icon.green { background: var(--ah-green); }
.h-icon.blue  { background: var(--ah-blue); }
.h-icon.navy  { background: var(--ah-navy); }

/* ---------- Social icon list (contact page) ---------- */
.social-list {
    display: flex;
    gap: var(--sp-5);
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}
.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, .social-list img { width: 14px; height: 14px; fill: #fff; }

/* ---------- Header enable sub-menu ----------- */

.nav-links .menu-item-has-children {
    position: relative;
}
.nav-links .sub-menu {
    visibility: hidden;
    opacity: 0;
    left: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    row-gap: var(--sp-2);
    text-wrap: nowrap;
    padding: var(--sp-2) var(--sp-8) var(--sp-5) var(--sp-2);
    position: absolute;
    background: #fff;
    transition: all 0.3s ease-in-out;
}
.nav-links .menu-item-has-children:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}
.nav-links .menu-item-has-children::after {
    content: ' ';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: var(--ah-green);
    transition: all 0.2s ease-in-out;
}
.nav-links .menu-item-has-children:hover::after {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--c-bg-tint);
    padding: var(--sp-7) 0 var(--sp-6);
    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; }
/* Every slide sits in the same spot and only the active one is visible, so the banner always
   has the height of its tallest slide and does not jump when the slides change. No height is
   reserved (docs/standards/size-standard-research.md). */
.hero-track {
    position: relative;
    display: grid;
}
.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-7);
    align-items: center;
    visibility: hidden;
}
.hero-slide.is-active { visibility: visible; 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 p  { font-size: var(--fs-md); color: var(--c-text-soft); max-width: 540px; }
/* Slides after the first have an h2 heading (one h1 per page), at the h1 size */
.hero-slide h2.heading-mixed { font-size: var(--fs-4xl); }
/* No hero slide: the page title is the h1, centred, with the first section right under it */
.page-title { padding-bottom: 0; text-align: center; }
.page-title h1 { margin: 0; }
.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%; }
}

.hero-visual { position: relative; text-align: center; }
.hero-visual img { width: auto; 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 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 { width: auto; 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 {
    color: var(--ah-blue);
    font-weight: 700;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ---------- Blob / circular image with accent shapes ----------
   The picture is never taller than the text beside it, as on 360smsapp
   (docs/standards/size-standard-research.md). The wrap takes its height from the row, which the
   text sets (container-type: size makes it ignore the picture inside), and is square; the circle
   is the smallest of the wrap's width, its height and 460px. The accent shapes are sized in %,
   so they stay in place on any size of circle. */
.img-blob {
    position: relative;
    width: min(100cqw, 100cqh, 28.75rem); /* 28.75rem = 460px */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-bg-tint);
}
.img-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-blob-wrap {
    position: relative;
    container-type: size;
    align-self: stretch;
    justify-self: center;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    min-width: 0; /* text beside the picture can never widen its column */
    min-height: 15rem; /* 240px, so a short text still gets a picture */
    padding: var(--sp-6);
    text-align: center;
}
.img-blob-wrap::before {
    content: "";
    position: absolute;
    width: 21%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    bottom: 0;
    left: 0;
    z-index: 2;
}
.img-blob-wrap::after {
    content: "";
    position: absolute;
    width: 13%;
    aspect-ratio: 70 / 36;
    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, block-stats.php, About, category hubs) ----------
   4 stats to a row (2 below 1100px); a row that is not full is centred. */
.stat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-6);
    text-align: center;
}
.stat-grid > * { flex: 0 1 calc((100% - 3 * var(--sp-6)) / 4); }
.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 ---------- */
/* 4 plan cards to a row (2 below 1100px, 1 below 520px); a row that is not full is centred. */
.plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-5);
}
.plan-grid > * { flex: 0 1 calc((100% - 3 * var(--sp-5)) / 4); }
.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;
    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;
}
.plan-card .btn-pill {
    justify-content: center
}

/* ---------- Testimonial carousel ---------- */
.testimonial-track {
    position: relative;
}
.testimonial-slide {
    display: none;
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    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);
}

/* ---------- Form ---------- */
.form-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    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);
}
.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; }

/* Contact Form 7 renders its own markup instead of the .form-field structure. */
.form-card .wpcf7-form { display: grid; gap: var(--sp-2); }
.form-card .wpcf7-form > p { margin: 0; }
.form-card .wpcf7-form label {
    display: block;
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--ah-navy);
    margin-bottom: 6px;
}
.form-card .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.form-card .wpcf7-form input[type="text"],
.form-card .wpcf7-form input[type="email"],
.form-card .wpcf7-form input[type="tel"],
.form-card .wpcf7-form 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-card .wpcf7-form textarea { min-height: 130px; resize: vertical; }
.form-card .wpcf7-form input:focus,
.form-card .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--ah-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}
.form-card .wpcf7-form input[type="submit"] {
    border: 0;
    border-radius: var(--r-pill);
    padding: 13px 28px;
    color: #fff;
    background: var(--ah-blue);
    font-family: inherit;
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.form-card .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: var(--shadow-md);
}
.form-card .wpcf7-response-output {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
}

.form-card .wpcf7 form .wpcf7-response-output { margin: 0; }
.form-card .wpcf7 .wpcf7-spinner { position: absolute; }

/* ---------- 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 h3 {
    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 ---------- */
/* Structure ported from the businesscardscan theme: a navy three-column grid
   (Quick links / More info / Follow us) over a centred copyright line. */
.site-footer {
    background-color: var(--ah-navy);
    color: #fff;
    padding: 44px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-6);
    text-align: center;
    margin-bottom: 28px;
}
.footer-col h3 {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-4);
    color: #fff;
}
.site-footer li { list-style: none; }
.footer-col a {
    display: block;
    font-size: var(--fs-base);
    margin-bottom: 6px;
    color: rgba(255,255,255,0.85);
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
}
.s-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* .s-icon.li { background: var(--ah-blue); }
.s-icon.yt { background: var(--ah-red); }
.s-icon.fb { background: var(--ah-navy); }
.s-icon.x  { background: var(--ah-purple); } */
.s-icon svg, .s-icon img { width: 18px; height: 18px; fill: #fff; }

/* Optional footer logo — only rendered when set in Site Settings */
.footer-brand { text-align: center; margin-bottom: var(--sp-6); }
.footer-brand img.footer-logo { display: inline-block; height: 56px; width: auto; }
.copyright { text-align: center; font-size: var(--fs-base); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid > * { flex-basis: calc((100% - var(--sp-6)) / 2); }
    .plan-grid > * { flex-basis: calc((100% - var(--sp-5)) / 2); }
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
    .logo img, .custom-logo-link img { width: 190px; }
    .nav-links { gap: var(--sp-4); margin-left: var(--sp-4); }
}
@media (max-width: 860px) {
    /* Phones and small tablets: the same size scale, smaller. */
    :root {
        --fs-xl:  1.375rem;    /* 22px */
        --fs-2xl: 1.5rem;      /* 24px */
        --fs-3xl: 1.75rem;     /* 28px */
        --fs-4xl: 2rem;        /* 32px */
        --sp-6: 1.5rem;        /* 24px */
        --sp-7: 2rem;          /* 32px */
        --sp-8: 2.5rem;        /* 40px */
        --sp-9: 3.5rem;        /* 56px */
    }
    .logo img, .custom-logo-link img { width: 170px; }
    /* Like businesscardscan, the header has no mobile drawer — the flat menu is
       dropped and the CTA + contact icons carry navigation on small screens. */
    .nav-links { display: none; }
    .hero-slide { grid-template-columns: 1fr; }
    /* 220px banner picture, like Give Clarity's on phones (docs/standards/size-standard-research.md). */
    .hero-visual img { max-height: 13.75rem; }
    .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-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    /* Stat boxes stay 2 per row and logos 3 per row (the rules above), like 360smsapp's phone
       stats strip (docs/standards/size-standard-research.md). */
    .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .plan-grid > * { flex-basis: 100%; }
    .header-inner { flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
    .h-icon { width: 42px; height: 42px; }
    .h-icon svg { width: 21px; height: 21px; }
}

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


/* flex alignments */
.j-center {
    justify-content: center;
}
.j-end {
    justify-content: flex-end;
}
.j-start {
    justify-content: flex-start;
}
.j-between {
    justify-content: space-between;
}
.j-around {
    justify-content: space-around;
}

.a-center {
    align-items: center;
}
.a-start {
    align-items: flex-start;
}
.a-end {
    align-items: flex-end;
}
/* end flex alignments */

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.faq-list input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.faq-list__item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ah-grey);
}
.faq-list__question {
    font-weight: 700;
    padding: var(--sp-4);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    transition: all 0.3s ease-in-out;
}
.faq-list__question .outer-acc-anim {
    background: var(--c-bg);
    border-radius: 8px;
    margin: 0;
    width: 30px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}
.faq-list__question .inner-acc-anim {
    background: var(--ah-blue);
    border-radius: 50%;
    color: var(--c-bg);
    margin: 0;
    width: 14px;
    height: auto;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease-in-out;
}
.faq-list input:checked ~ .faq-list__question .outer-acc-anim {
    background: var(--ah-blue);
}
.faq-list input:checked ~ .faq-list__question .inner-acc-anim {
    background: var(--c-bg);
    color: var(--ah-blue);
}
.faq-list__answer {
    padding: var(--sp-0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s;
}
.faq-list__answer .answered {
    padding: var(--sp-4);
    font-size: var(--fs-sm);
}
.faq-list input:checked ~ .faq-list__answer {
  max-height: 10rem;
  transition: max-height 0.35s;
}
.faq-list input:checked ~ .faq-list__question {
    background: var(--c-bg);
    border-radius: 8px;
        color: var(--ah-blue);
}

/* end FAQ Accordion */

/* ---------- Tabbed content (template-parts/sections/block-tabbed-content.php) ----------
   Layout follows the compact use-case tabs on 360smsapp.com; all sizes come from the scale. */
.section-head .tabbed__eyebrow {
    color: var(--c-text-soft);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.tabbed__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
    margin: var(--sp-5) 0;
}
.tabbed__tab {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ah-navy);
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}
.tabbed__tab:hover { border-color: var(--ah-blue); }
.tabbed__tab[aria-selected="true"] {
    background: var(--ah-blue);
    border-color: var(--ah-blue);
    color: #fff;
}
.tabbed__icon { width: 1.2em; height: 1.2em; object-fit: contain; }

.tabbed__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.tabbed__panel[hidden] { display: none; }
.tabbed__panel--no-image { grid-template-columns: 1fr; }
.tabbed__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--sp-6);
}
.tabbed__badge {
    margin-bottom: var(--sp-3);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-sm);
    background: var(--c-bg-tint);
    color: var(--ah-blue);
    font-size: var(--fs-xs);
    font-weight: 700;
}
.tabbed__text { color: var(--c-text-soft); font-size: var(--fs-sm); line-height: 1.7; }
.tabbed__text p { margin-bottom: var(--sp-4); }
.tabbed__points {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    list-style: none;
    margin: 0 0 var(--sp-5);
    padding: 0;
}
.tabbed__points li {
    position: relative;
    padding-left: 2em;
    font-size: var(--fs-sm);
    line-height: 1.5;
}
/* Blue circle with a white tick. Sized in em from its own (smaller) text, so it scales with
   the bullet: at 14px text the circle is 18px and the tick 9px. */
.tabbed__points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--ah-blue);
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    line-height: 2em;
    text-align: center;
}
.tabbed__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    align-self: stretch;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}
.tabbed__value {
    display: block;
    color: var(--ah-blue);
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.5;
}
.tabbed__label { color: var(--c-text-soft); font-size: var(--fs-xs); }
.tabbed__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-5);
    background: var(--c-bg-tint);
}
/* A tall image must not stretch the panel. */
.tabbed__media img { max-width: 100%; max-height: 27.5rem; width: auto; height: auto; border-radius: var(--r-md); }

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

/* ---------- CTA call-out strip (template-parts/sections/block-cta.php) ----------
   The editor picks a Strip Style (light band, navy, blue) and a Button Position (bottom, top,
   right, left). On the defaults, light band and bottom, the two wrappers take no part in the
   layout (display: contents), so the section looks exactly as the CTA band did before. */
.cta-strip__text,
.cta-strip__buttons { display: contents; }
/* Two buttons: a little space round each, so they stay apart and centred when they wrap on a phone.
   One button keeps no margin, as before. */
.cta-strip__buttons:has(.btn-pill + .btn-pill) .btn-pill { margin: var(--sp-1) var(--sp-2); }

/* Navy and blue strips: a coloured box across the page width. */
.cta-strip--navy,
.cta-strip--blue { max-width: none; padding: var(--sp-6) var(--sp-7); border-radius: var(--r-lg); }
.cta-strip--navy { background: var(--ah-navy); }
.cta-strip--navy h2 { color: #fff; }
.cta-strip--navy p { color: var(--c-bg-tint); }
.cta-strip--navy .btn-pill--outline { color: #fff; border-color: #fff; }
.cta-strip--navy .btn-pill--navy { background: #fff; color: var(--ah-navy); }
.cta-strip--blue { background: var(--ah-blue); }
.cta-strip--blue p { color: var(--ah-navy); }
.cta-strip--blue .accent-blue { color: #fff; }
.cta-strip--blue .btn-pill--blue { background: #fff; color: var(--ah-blue); }

/* Buttons above the text, or beside it: the wrappers become a row (or column) of two blocks.
   Beside the text, the buttons sit in the middle of its height. */
.cta-strip--top,
.cta-strip--right,
.cta-strip--left { display: flex; align-items: center; gap: var(--sp-5); }
.cta-strip--top { flex-direction: column-reverse; }
.cta-strip--right,
.cta-strip--left { max-width: none; gap: var(--sp-6); text-align: left; }
.cta-strip--left { flex-direction: row-reverse; }
.cta-strip--right h2::after,
.cta-strip--left h2::after { margin-left: 0; }
.cta-strip--top .cta-strip__text,
.cta-strip--right .cta-strip__text,
.cta-strip--left .cta-strip__text { display: block; flex: 1; }
.cta-strip--top .cta-strip__buttons,
.cta-strip--right .cta-strip__buttons,
.cta-strip--left .cta-strip__buttons { display: flex; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
    /* Phones: buttons under the text (Right) or above it (Left), all centred. */
    .cta-strip--right { flex-direction: column; text-align: center; }
    .cta-strip--left  { flex-direction: column-reverse; text-align: center; }
    .cta-strip--right h2::after,
    .cta-strip--left h2::after { margin-left: auto; }
}

/* ---------- Flow diagrams (template-parts/sections/block-flow-diagrams.php) ----------
   One card per workflow: a coloured header, numbered steps joined by a line, a note. The tab row
   above the cards is the Tabbed content one (.tabbed__list). */
.flow__card { margin-top: var(--sp-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.flow__header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); background: var(--ah-navy); color: #fff; }
.flow__header--blue { background: var(--ah-blue); }
.flow__icon { width: 3em; height: 3em; padding: 0.5em; border-radius: var(--r-md); background: #fff; object-fit: contain; }
.flow__titles { flex: 1; }
.flow__titles h3 { margin: 0; color: #fff; font-size: var(--fs-lg); }
.flow__titles p { margin: 0; color: #fff; opacity: 0.8; font-size: var(--fs-sm); }
.flow__badge { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.2); font-size: var(--fs-sm); font-weight: 700; }

/* Steps side by side; each step draws the line from its circle to the next one. */
.flow__steps { display: flex; margin: 0; padding: var(--sp-6); list-style: none; }
.flow__steps li { position: relative; flex: 1; padding: 0 var(--sp-3); text-align: center; }
.flow__steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25em; left: 50%; width: 100%; height: 2px; background: var(--ah-blue); }
.flow__number { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.5em; height: 2.5em; margin-bottom: var(--sp-3); border-radius: 50%; background: var(--ah-blue); color: #fff; font-weight: 700; }
.flow__steps strong { display: block; color: var(--c-text); }
.flow__steps p { margin: var(--sp-1) 0 0; color: var(--c-text-soft); font-size: var(--fs-sm); }
.flow__image { padding: var(--sp-6); text-align: center; }
.flow__image img { max-width: 100%; height: auto; }
.flow__note { margin: 0; padding: var(--sp-3) var(--sp-6); background: var(--c-bg-tint); color: var(--ah-navy); font-size: var(--fs-sm); }

@media (max-width: 860px) {
    /* Phones: the steps go one under the other, the line runs down beside the circles. */
    .flow__steps { flex-direction: column; gap: var(--sp-5); }
    .flow__steps li { padding: 0 0 0 3.5em; text-align: left; }
    .flow__number { position: absolute; top: 0; left: 0; }
    .flow__steps li:not(:last-child)::after { left: 1.25em; width: 2px; height: calc(100% + var(--sp-5)); }
}

/* ---------- Compare / Plans Table (template-parts/sections/block-compare-plans.php) ----------
   The Comparison table layout; the Cards layout uses the Plan cards styles above. The column of
   the Featured plan takes the Highlight Colour (--compare): solid in the header, a light shade
   below. On narrow screens the table scrolls sideways inside its box. */
.compare-table-wrap { overflow-x: auto; margin-top: var(--sp-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.compare-table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: center; --compare: var(--c-bg-tint); }
.compare-table--blue   { --compare: var(--ah-blue); }
.compare-table--green  { --compare: var(--ah-green); }
.compare-table--pink   { --compare: var(--ah-pink); }
.compare-table--yellow { --compare: var(--ah-yellow); }
.compare-table th,
.compare-table td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); color: var(--c-text); }
.compare-table thead th { font-weight: 700; }
.compare-table tbody th { text-align: left; font-weight: 700; }
.compare-table tfoot td { border-bottom: 0; padding-top: var(--sp-4); }
.compare-table .is-featured { background: color-mix(in srgb, var(--compare) 15%, #fff); }
.compare-table thead .is-featured { background: var(--compare); color: #fff; }
.compare-table--light-blue .is-featured,
.compare-table--light-blue thead .is-featured { background: var(--c-bg-tint); color: var(--ah-navy); }
.compare-table--yellow thead .is-featured { color: var(--ah-navy); }
.compare-table__hours { display: block; font-weight: 400; font-size: var(--fs-sm); opacity: 0.8; }
.compare-table__badge { display: table; margin: 0 auto var(--sp-1); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--ah-navy); color: #fff; font-size: var(--fs-xs); }
.compare-table__yes { color: var(--ah-green); font-weight: 700; }
.compare-table__no  { color: var(--ah-red); font-weight: 700; }

/* ---------- Cards content (template-parts/sections/block-cards-content.php) ----------
   The four Card Styles, the Columns and the Icon Position. The cards use the markup the Box,
   Icon Box, Icon and Texts sections had; the page stylesheets (app-single.css …) style that
   markup for their own FAQ and Intro sections too, so they stay, and these rules give the cards
   the same looks on every page, Home and About included. "section." and the grid class make
   these rules win over the page stylesheets where the editor picked a different look. */
section.cards-content .card-icon img,
section.cards-content .feat-ico img { width: 2rem; height: 2rem; object-fit: contain; filter: brightness(0) invert(1); }
/* A brand icon is a finished design (pale circle and symbol): no colour circle, no white filter. */
section.cards-content [class^="grid-"] > .card:nth-child(n) .icon--brand,
section.cards-content .feat-rows > .feat-irow:nth-child(n) .icon--brand,
section.cards-content .feat-cols .icon--brand { background: none; }
section.cards-content [class^="grid-"] > .card .icon--brand img,
section.cards-content .feat-ico.icon--brand img { width: 100%; height: 100%; filter: none; }

/* Card with colour top border (box) */
section.cards-content--box [class^="grid-"] > .card { flex-direction: column; border-top: 5px solid var(--ah-blue); }
section.cards-content--box [class^="grid-"] > .card:nth-child(3n+2) { border-top-color: var(--ah-green); }
section.cards-content--box [class^="grid-"] > .card:nth-child(3n) { border-top-color: var(--ah-pink); }

/* Card with icon (card) */
section.cards-content--card [class^="grid-"] > .card { flex-direction: row; align-items: flex-start; gap: var(--sp-4); border-top: 0; }
section.cards-content .card-body { display: flex; flex-direction: column; }
section.cards-content .card-icon { flex: 0 0 4rem; background: var(--ah-blue); }
section.cards-content .card:nth-child(2n) .card-icon { background: var(--ah-green); }

/* No card: icon rows (rows) and rows with divider lines (lines); 2 columns unless chosen */
section.cards-content .feat-rows,
section.cards-content .feat-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-8); margin-top: var(--sp-6); }
section.cards-content--cols-3 .feat-rows,
section.cards-content--cols-3 .feat-cols { grid-template-columns: repeat(3, 1fr); }
section.cards-content--cols-4 .feat-rows,
section.cards-content--cols-4 .feat-cols { grid-template-columns: repeat(4, 1fr); }
section.cards-content .feat-irow { display: flex; gap: var(--sp-4); align-items: flex-start; }
section.cards-content .feat-ico { flex: 0 0 3rem; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ah-blue); display: inline-flex; align-items: center; justify-content: center; }
section.cards-content .feat-ico img { width: 1.5rem; height: 1.5rem; }
section.cards-content .feat-irow:nth-child(4n+2) .feat-ico { background: var(--ah-green); }
section.cards-content .feat-irow:nth-child(4n+3) .feat-ico { background: var(--ah-pink); }
section.cards-content .feat-irow:nth-child(4n+4) .feat-ico { background: var(--ah-yellow); }
section.cards-content .feat-cols { gap: var(--sp-5) var(--sp-8); }
section.cards-content .feat-row { padding-bottom: var(--sp-5); border-bottom: 1px dashed var(--c-border); }
/* Card titles are h3 under the section's h2; icon rows, and Overview's divider lines, at the h4 size */
section.cards-content .feat-irow h3 { margin-bottom: var(--sp-1); color: var(--ah-navy); font-size: var(--fs-lg); }
section.overview .feat-row h3 { margin-bottom: var(--sp-2); color: var(--ah-navy); font-size: var(--fs-lg); }
section.cards-content .feat-irow p,
section.cards-content .feat-row p { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }

/* Icon Position: top left (above the title), left (top-aligned) or left, vertically centred */
section.cards-content--icon-top [class^="grid-"] > .card,
section.cards-content--icon-top .feat-irow { flex-direction: column; }
section.cards-content--icon-top .card-icon { margin-bottom: var(--sp-4); }
section.cards-content--icon-left [class^="grid-"] > .card:has(> .card-icon),
section.cards-content--icon-centre [class^="grid-"] > .card:has(> .card-icon) { flex-direction: row; gap: var(--sp-4); }
section.cards-content--icon-left .card:has(> .card-icon) .card-icon,
section.cards-content--icon-centre .card:has(> .card-icon) .card-icon { margin-bottom: 0; }
section.cards-content--icon-centre [class^="grid-"] > .card,
section.cards-content--icon-centre .feat-irow { align-items: center; }

@media (max-width: 860px) {
    section.cards-content .feat-rows,
    section.cards-content .feat-cols { grid-template-columns: 1fr; }
}

/* ---------- Overview (template-parts/sections/block-overview.php) ----------
   A text half beside the round Side Image (left or right), the heading above both halves or at
   the top of the text half, and Card Boxes in their own row below. The Card Boxes take the Cards
   content rules above: the section carries the same cards-content--* classes. */
section.overview .container > [class^="grid-"] { margin-top: var(--sp-6); }
section.overview .section-head + .overview__main { margin-top: var(--sp-6); }
section.overview .overview__text h3 { margin-bottom: var(--sp-3); }
section.overview--image-left .overview__main > .img-blob-wrap { order: -1; }

@media (max-width: 860px) {
    /* One column: the text, then the picture, whichever side it is on. */
    section.overview--image-left .overview__main > .img-blob-wrap { order: 0; }
}

/* ---------- Cards grid link (template-parts/sections/block-cards-grid-link.php) ----------
   Card Boxes that lead to a page. They take the Cards content rules above (style "card"): the
   picture or the icon above the heading, or the icon beside it. Here: the Navy Card Colour, a
   heading that is the link, and the CTA Button under the cards. */
section.cards-grid-link .card h3 a { color: inherit; }
section.cards-grid-link .card-image { align-self: stretch; }
section.cards-grid-link--navy [class^="grid-"] > .card { background: var(--ah-navy); }
section.cards-grid-link--navy .card h3,
section.cards-grid-link--navy .card p { color: var(--ah-grey); }
.cards-grid-link__cta { margin-top: var(--sp-6); text-align: center; }

/* ---------- Logos (template-parts/sections/block-logos.php) ----------
   The logo grid above (.logo-grid, 6 columns, 4 on tablets, 3 on phones) with the Columns choice
   3 / 4 / 5 / 6. A Large logo takes 2 columns and 2 rows at its place in the order; the order is
   kept exactly (no gap filling), so the editor arranges large logos by moving them. */
section.logos .logo-grid--3 { grid-template-columns: repeat(3, 1fr); }
section.logos .logo-grid--5 { grid-template-columns: repeat(5, 1fr); }
section.logos .logo-placeholder--large { grid-column: span 2; grid-row: span 2; align-self: stretch; aspect-ratio: auto; }
section.logos .logo-placeholder a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
section.logos .section-note { margin-top: var(--sp-5); text-align: center; color: var(--c-text-soft); font-size: var(--fs-sm); }

@media (max-width: 1100px) {
    section.logos .logo-grid--5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
    section.logos .logo-grid--5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Stats (template-parts/sections/block-stats.php) ----------
   Layout "Text beside the stats": the text on the left, the Stats stacked on the right (the
   case study Results). Layout "Stats under the text" is the stat grid above. */
section.stats--beside .stats__beside { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
section.stats--beside .stat-grid { flex-direction: column; }
section.stats--beside .stat-grid > * { flex-basis: auto; }

@media (max-width: 860px) {
    section.stats--beside .stats__beside { grid-template-columns: 1fr; }
}

/* ---------- FAQ (template-parts/sections/block-faq.php) ----------
   Display "Two columns": questions and answers in two columns with dashed lines, on every page
   (the App and Service page stylesheets had this for their own pages only). Display "Accordion"
   is the FAQ Accordion block above. */
section.faq--columns .feat-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-8); margin-top: var(--sp-6); }
section.faq--columns .feat-row { padding-bottom: var(--sp-5); border-bottom: 1px dashed var(--c-border); }
/* Questions are h3 under the section's h2, at the h4 size */
section.faq--columns .feat-row h3 { margin-bottom: var(--sp-2); color: var(--ah-navy); font-size: var(--fs-lg); }
section.faq--columns .feat-row p { margin: 0; color: var(--c-text-soft); font-size: var(--fs-sm); }

@media (max-width: 860px) {
    section.faq--columns .feat-cols { grid-template-columns: 1fr; }
}

/* ---------- Editor text: bullets (ah_render_card_boxes() in inc/template-helpers.php, hero.php) ----------
   The base ul rule hides bullets for menus; a list the editor makes in a card's text or the
   hero text shows its bullets. Tick lists (plan-features) keep their ticks. Hero bullet lines
   match the hero paragraph. */
.card ul, .feat-irow ul, .feat-row ul, .hero-slide ul { list-style: disc; padding-left: var(--sp-5); }
.plan-features, .plan-features-rich ul { list-style: none; padding-left: 0; }
.hero-slide li { font-size: var(--fs-md); color: var(--c-text-soft); }

/* ---------- Links in text (the main content of every template) ----------
   A link in a paragraph or list is underlined, not shown by colour alone. Buttons and card
   links have a class and keep their look; :where() keeps this rule weak, so a list's own
   style (blog sidebar categories) still wins. */
:where(main p, main li) a:not([class]) { text-decoration: underline; }

/* ---------- Buttons: Button 2 and the "Text link" style (ah_render_cta(), ah_render_bottom_cta(), hero.php) ----------
   Every button Style select has "Text link": the same link and arrow without the pill. A Bottom
   CTA's two buttons sit side by side, centred, and wrap on phones (the hero's .hero-cta already
   does). A Cards Grid Link card's CTA sits under the card's text and link. */
.cta-text-link { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: var(--fs-sm); color: var(--ah-blue); text-decoration: underline; }
.section-bottom-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-3); }
.card-cta { margin-top: var(--sp-3); }
