/*
 * Site design system (loaded on every page by layouts/site/head.blade.php).
 * Originally built for the homepage, hence the .hm prefix: wrap page content in
 * <div class="hm"> to get the base typography and tokens.
 * Colours come from the Coral Reef logo: blue #1577bb, green #3fb24a.
 */

.hm {
    --hm-navy: #0a1b30;
    --hm-navy-2: #0f2a4a;
    --hm-blue: #1577bb;
    --hm-blue-600: #0f5f97;
    --hm-blue-300: #6fb4e6;
    --hm-green: #3fb24a;
    --hm-green-300: #8fd897;
    --hm-ink: #0f1d2e;
    --hm-text: #3d4b5c;
    --hm-muted: #66768a;
    --hm-line: #e2e8f0;
    --hm-soft: #f3f7fb;
    --hm-white: #ffffff;
    --hm-radius: 18px;
    --hm-radius-sm: 12px;
    --hm-shadow: 0 1px 2px rgba(15, 29, 46, .06), 0 8px 24px rgba(15, 29, 46, .06);
    --hm-shadow-lg: 0 2px 4px rgba(15, 29, 46, .06), 0 24px 48px rgba(15, 29, 46, .12);
    --hm-ease: cubic-bezier(.2, .7, .2, 1);

    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--hm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hm :where(h1, h2, h3, h4) {
    font-family: inherit;
    color: var(--hm-ink);
    letter-spacing: -.02em;
    margin: 0;
}

.hm :where(p) { margin: 0; }

.hm :where(a) { text-decoration: none; }

.hm :where(img) { max-width: 100%; }

.hm-section {
    padding: clamp(64px, 9vw, 112px) 0;
    scroll-margin-top: 72px;
}

.hm-section--soft { background: var(--hm-soft); }

/* ---------- Section headings ---------- */

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hm-blue);
    margin-bottom: 16px;
}

.hm-eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hm-green), var(--hm-blue));
}

.hm-head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.hm-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hm-head--center .hm-eyebrow { justify-content: center; }

.hm-title {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.hm-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--hm-blue), var(--hm-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-lead {
    margin-top: 16px;
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--hm-muted);
}

/* ---------- Buttons ---------- */

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid transparent;
    transition: transform .2s var(--hm-ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
    white-space: nowrap;
}

.hm-btn:hover { text-decoration: none; transform: translateY(-2px); }

.hm-btn:focus-visible,
.hm-link:focus-visible,
.hm-card:focus-within {
    outline: 3px solid var(--hm-blue-300);
    outline-offset: 3px;
}

.hm-btn i { font-size: .9em; transition: transform .2s var(--hm-ease); }
.hm-btn:hover i { transform: translateX(3px); }

.hm-btn--primary {
    background: var(--hm-green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(63, 178, 74, .35);
}
.hm-btn--primary:hover { background: #36a141; color: #fff; }

.hm-btn--ghost {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.hm-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.hm-btn--blue {
    background: var(--hm-blue);
    color: #fff;
}
.hm-btn--blue:hover { background: var(--hm-blue-600); color: #fff; }

.hm-btn--light {
    background: #fff;
    color: var(--hm-navy);
}
.hm-btn--light:hover { color: var(--hm-blue); }

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--hm-blue);
    border-radius: 4px;
}
.hm-link i { transition: transform .2s var(--hm-ease); }
.hm-link:hover { color: var(--hm-blue-600); text-decoration: none; }
.hm-link:hover i { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hm-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(21, 119, 187, .45), transparent 60%),
        radial-gradient(700px 420px at 10% 100%, rgba(63, 178, 74, .22), transparent 60%),
        linear-gradient(160deg, var(--hm-navy) 0%, var(--hm-navy-2) 100%);
    color: #c9d6e6;
    padding: calc(70px + clamp(56px, 8vw, 104px)) 0 clamp(72px, 9vw, 120px);
}

/* faint data grid */
.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hm-hero .particles-js {
    opacity: .28;
    z-index: 0;
}

.hm-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.hm-hero .hm-eyebrow { color: var(--hm-green-300); }

.hm-hero__title {
    color: #fff !important;
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -.03em;
}

.hm-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, #6fc6ff, var(--hm-green-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-hero__text {
    margin-top: 22px;
    max-width: 560px;
    font-size: clamp(16px, 1.5vw, 18.5px);
    color: #b8c7da;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hm-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #9fb2c8;
}

.hm-hero__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-hero__facts i { color: var(--hm-green-300); }

/* Hero visual: real outline of Pakistan (Natural Earth) with the Lahore head office.
   Markup: resources/views/site/partials/home/hero-map.blade.php */
.hm-map {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 0 0 auto;
}

.hm-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hm-map__outline {
    fill: none;
    stroke: #6fb4e6;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: hm-draw 2.4s var(--hm-ease) .2s backwards;
}

@keyframes hm-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

.hm-map__dot {
    fill: var(--hm-green);
    stroke: #fff;
    stroke-width: 3;
}

.hm-map__pulse {
    fill: var(--hm-green-300);
    transform-box: fill-box;
    transform-origin: center;
    animation: hm-pulse 2.6s ease-out infinite;
}

.hm-map__pulse--late { animation-delay: 1.3s; }

/* label pinned beside the Lahore marker; --x / --y come from the map projection */
.hm-map__pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    color: var(--hm-ink);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    transform: translate(calc(-100% - 22px), -50%);
}

.hm-map__pin i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #fff;
    background: var(--hm-green);
    font-size: 14px;
}

.hm-map__pin strong { display: block; font-size: 14px; }
.hm-map__pin span { color: var(--hm-muted); }

/* a short pointer from the label to the marker */
.hm-map__pin::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
}

.hm-map__note {
    position: absolute;
    left: 0;
    top: 4%;
    max-width: 230px;
    padding-left: 14px;
    border-left: 2px solid var(--hm-green-300);
    font-size: 13px;
    line-height: 1.5;
    color: #b8c7da;
}

/* ---------- Client logos ---------- */

.hm-logos {
    padding: 40px 0;
    border-bottom: 1px solid var(--hm-line);
    background: #fff;
}

.hm-logos__label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hm-muted);
    margin-bottom: 26px;
}

.hm-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hm-marquee__track {
    display: flex;
    width: max-content;
    animation: hm-marquee 32s linear infinite;
}

.hm-marquee:hover .hm-marquee__track { animation-play-state: paused; }

.hm-marquee__group {
    display: flex;
    align-items: center;
    gap: clamp(48px, 6vw, 88px);
    padding-right: clamp(48px, 6vw, 88px);
    margin: 0;
    list-style: none;
}

.hm-marquee__group img {
    display: block;
    height: var(--logo-h, 44px);
    width: auto;
    max-width: 170px;
    object-fit: contain;
    transition: transform .3s var(--hm-ease);
}

.hm-marquee__group img:hover { transform: scale(1.06); }

@keyframes hm-marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Practices ---------- */

.hm-practices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.hm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    overflow: hidden;
    transition: transform .3s var(--hm-ease), box-shadow .3s var(--hm-ease), border-color .3s;
}

.hm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hm-shadow-lg);
    border-color: transparent;
}

/* whole card is clickable through the link's ::after */
.hm-card .hm-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hm-practice__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hm-soft);
}

.hm-practice__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--hm-ease);
}

.hm-card:hover .hm-practice__media img { transform: scale(1.05); }

.hm-practice__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 26px 28px;
}

.hm-practice__num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--hm-green);
}

.hm-practice__title {
    margin-top: 8px !important;
    font-size: 22px;
    font-weight: 700;
}

.hm-practice__text {
    margin: 12px 0 22px !important;
    font-size: 15.5px;
    flex: 1;
}

/* ---------- Solutions ---------- */

.hm-solutions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hm-solution {
    padding: 30px 28px;
}

.hm-solution__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 22px;
    color: var(--hm-blue);
    background: linear-gradient(135deg, rgba(21, 119, 187, .12), rgba(63, 178, 74, .12));
    transition: background .3s, color .3s, transform .3s var(--hm-ease);
}

.hm-solution:hover .hm-solution__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--hm-blue), var(--hm-green));
    transform: rotate(-6deg);
}

.hm-solution__title {
    margin-top: 22px !important;
    font-size: 19px;
    font-weight: 700;
}

.hm-solution__text {
    margin: 10px 0 20px !important;
    font-size: 15px;
    flex: 1;
}

.hm-tag {
    position: absolute;
    top: 30px;
    right: 28px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--hm-blue);
    background: rgba(21, 119, 187, .08);
}

.hm-tag--tech {
    color: #2b8f35;
    background: rgba(63, 178, 74, .1);
}

/* ---------- Milansaar spotlight ---------- */

.hm-spotlight {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 400px at 90% 50%, rgba(63, 178, 74, .18), transparent 65%),
        radial-gradient(700px 500px at 0% 0%, rgba(21, 119, 187, .35), transparent 60%),
        var(--hm-navy);
    color: #b8c7da;
}

.hm-spotlight__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hm-spotlight .hm-title { color: #fff; }
.hm-spotlight .hm-eyebrow { color: var(--hm-green-300); }
.hm-spotlight .hm-lead { color: #b8c7da; }

.hm-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin: 32px 0 36px;
    padding: 0;
    list-style: none;
}

.hm-checks li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.hm-checks i {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 11px;
    color: var(--hm-navy);
    background: var(--hm-green-300);
}

.hm-checks strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.hm-spotlight__badge {
    position: relative;
    width: min(100%, 380px);
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 14px rgba(255, 255, 255, .05), 0 0 0 28px rgba(255, 255, 255, .03), 0 40px 80px rgba(0, 0, 0, .4);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hm-spotlight__badge img {
    width: 100%;
    height: auto;
}

/* ---------- Why Coral Reef ---------- */

.hm-why {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.hm-why__intro .hm-btn { margin-top: 32px; }

.hm-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hm-feature {
    padding: 26px 24px;
    border-radius: var(--hm-radius);
    background: #fff;
    border: 1px solid var(--hm-line);
}

.hm-feature i {
    font-size: 22px;
    color: var(--hm-green);
}

.hm-feature h3 {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
}

.hm-feature p {
    margin-top: 8px;
    font-size: 14.5px;
}

.hm-industries {
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 36px;
    border-top: 1px solid var(--hm-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
}

.hm-industries__label {
    margin-right: 10px !important;
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-ink);
}

.hm-industries span:not(.hm-industries__label) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hm-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
}

.hm-industries i { color: var(--hm-blue); font-size: 13px; }

/* ---------- Process ---------- */

.hm-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: hm-step;
}

/* connecting line behind the numbers */
.hm-steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--hm-blue), var(--hm-green));
    opacity: .3;
}

.hm-step { position: relative; }

.hm-step__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--hm-blue);
    color: var(--hm-blue);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 0 0 8px var(--hm-soft);
}

.hm-step:nth-child(even) .hm-step__num {
    border-color: var(--hm-green);
    color: var(--hm-green);
}

.hm-step h3 {
    margin-top: 24px;
    font-size: 19px;
    font-weight: 700;
}

.hm-step p {
    margin-top: 10px;
    font-size: 15px;
}

/* ---------- Closing CTA ---------- */

.hm-cta-wrap { padding: 0 0 clamp(64px, 9vw, 112px); }

.hm-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(40px, 6vw, 64px);
    border-radius: 28px;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(63, 178, 74, .45), transparent 60%),
        linear-gradient(120deg, var(--hm-blue) 0%, var(--hm-navy-2) 100%);
    color: #d6e4f3;
}

.hm-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .06);
    pointer-events: none;
}

.hm-cta > * { position: relative; z-index: 1; }

.hm-cta h2 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 620px;
}

.hm-cta p {
    margin-top: 12px;
    font-size: 17px;
    max-width: 560px;
}

.hm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.hm-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--hm-ease), transform .7s var(--hm-ease);
    transition-delay: var(--d, 0s);
}

.hm-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .hm-hero__inner,
    .hm-spotlight__inner,
    .hm-why {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-map {
        max-width: 460px;
        margin: 0 auto;
    }

    .hm-practices,
    .hm-solutions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-practices > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .hm-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 44px;
    }

    .hm-steps::before { display: none; }

    .hm-spotlight__badge { width: min(100%, 300px); }
}

@media (max-width: 767.98px) {
    .hm .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hm-practices,
    .hm-solutions,
    .hm-features,
    .hm-checks,
    .hm-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-practices > :last-child:nth-child(odd) { grid-column: auto; }

    .hm-map__note { display: none; }
    .hm-map__pin { padding: 8px 12px 8px 8px; font-size: 12px; }
    .hm-map__pin i { width: 28px; height: 28px; font-size: 12px; }

    .hm-hero__actions .hm-btn { flex: 1 1 100%; }

    .hm-cta { flex-direction: column; align-items: flex-start; }
    .hm-cta__actions, .hm-cta__actions .hm-btn { width: 100%; }

    .hm-marquee__group img { height: calc(var(--logo-h, 44px) * .82); }
}

@media (prefers-reduced-motion: reduce) {
    .hm *,
    .hm *::before,
    .hm *::after {
        animation: none !important;
        transition: none !important;
    }

    .hm-js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    /* without the scroll animation the logo row wraps instead */
    .hm-marquee { -webkit-mask-image: none; mask-image: none; }
    .hm-marquee__track { width: auto; justify-content: center; }
    .hm-marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; row-gap: 28px; }
    .hm-marquee__group[aria-hidden="true"] { display: none; }
}

/* =====================================================================
 * Trust, proof and conversion sections (content from config/site.php)
 * ===================================================================== */

/* Placeholders only render with SITE_PREVIEW_PLACEHOLDERS=true */
.hm .is-placeholder {
    outline: 2px dashed #e0a100;
    outline-offset: 6px;
}

/* ---------- Stats strip (overlaps the bottom of the hero) ---------- */

.hm-hero--with-stats { padding-bottom: calc(clamp(72px, 9vw, 120px) + 64px); }

.hm-stats {
    position: relative;
    z-index: 2;
    margin-top: -88px;
}

.hm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
    box-shadow: var(--hm-shadow-lg);
    overflow: hidden;
}

.hm-stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 30px 28px;
    text-align: center;
}

.hm-stat + .hm-stat { border-left: 1px solid var(--hm-line); }

.hm-stat__value {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, var(--hm-blue), var(--hm-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.hm-stat__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-muted);
}

/* ---------- Testimonials ---------- */

.hm-quotes__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hm-quotes__track.is-single {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.is-slider .hm-quotes__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 10px;
}

.is-slider .hm-quotes__track::-webkit-scrollbar { display: none; }
.is-slider .hm-quote { scroll-snap-align: start; }

.hm-quotes__track:focus-visible {
    outline: 3px solid var(--hm-blue-300);
    outline-offset: 4px;
    border-radius: var(--hm-radius);
}

.hm-quote {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 34px 32px 30px;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.hm-quote__mark {
    font-size: 28px;
    color: var(--hm-green);
}

.hm-quote__text {
    flex: 1;
    margin: 18px 0 24px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--hm-ink);
}

.hm-quote__by {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--hm-line);
    font-size: 14.5px;
}

.hm-quote__by strong { display: block; color: var(--hm-ink); }
.hm-quote__by span span { color: var(--hm-muted); }

.hm-quote__logo {
    width: auto;
    height: 32px;
    max-width: 96px;
    object-fit: contain;
}

.hm-slider__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hm-slider__btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--hm-line);
    background: #fff;
    color: var(--hm-blue);
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}

.hm-slider__btn:hover:not(:disabled) { background: var(--hm-blue); color: #fff; }
.hm-slider__btn:disabled { opacity: .4; cursor: default; }
.hm-slider__btn:focus-visible { outline: 3px solid var(--hm-blue-300); outline-offset: 3px; }

/* ---------- Case studies ---------- */

.hm-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hm-case {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.hm-case__tag {
    position: static;
    align-self: flex-start;
}

.hm-case__title {
    margin-top: 16px !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hm-case__steps {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 0;
}

.hm-case__steps dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-muted);
}

.hm-case__steps dt i { color: var(--hm-blue); }

.hm-case__steps dd {
    margin: 6px 0 0;
    font-size: 15px;
}

.hm-case__result {
    margin-top: auto;
    padding: 16px;
    border-radius: var(--hm-radius-sm);
    background: rgba(63, 178, 74, .1);
}

.hm-case__result dt i { color: var(--hm-green); }
.hm-case__result dd { color: var(--hm-ink); font-weight: 600; }

.hm-cases__more {
    margin-top: 32px;
    text-align: center;
}

/* ---------- Milansaar community CTA ---------- */

.hm-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hm-community {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 18px;
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--hm-radius);
    background: rgba(255, 255, 255, .04);
    font-size: 14.5px;
}

.hm-community strong { color: #fff; }

.hm-community__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--hm-navy);
    background: var(--hm-green-300);
}

.hm-community__btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; }

/* ---------- Coverage map ---------- */

.hm-coverage__inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hm-coverage__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.hm-coverage__list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hm-ink);
}

.hm-coverage__list i { color: var(--hm-blue); width: 16px; text-align: center; }
.hm-coverage__list li.is-hq i { color: var(--hm-green); }

.hm-coverage__hq {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    color: #2b8f35;
    background: rgba(63, 178, 74, .12);
}

.hm-coverage__map svg {
    display: block;
    width: 100%;
    max-width: 580px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.hm-city__dot {
    fill: var(--hm-blue);
    stroke: #fff;
    stroke-width: 3;
}

.hm-city--hq .hm-city__dot { fill: var(--hm-green); }

.hm-city__pulse {
    fill: var(--hm-green);
    opacity: .35;
    transform-box: fill-box;
    transform-origin: center;
    animation: hm-pulse 2.4s ease-out infinite;
}

.hm-city__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    fill: var(--hm-ink);
    paint-order: stroke;
    stroke: #f3f7fb;
    stroke-width: 5px;
    stroke-linejoin: round;
}

@keyframes hm-pulse {
    from { transform: scale(.8); opacity: .45; }
    to { transform: scale(2.6); opacity: 0; }
}

/* ---------- Data quality & methodology ---------- */

.hm-quality {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-quality__item {
    padding: 28px 26px;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
}

.hm-quality__item h3 {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.hm-quality__item p {
    margin-top: 8px;
    font-size: 15px;
}

/* ---------- Leadership ---------- */

.hm-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
}

.hm-person__photo {
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hm-blue), var(--hm-green));
}

.hm-person__photo img,
.hm-person__initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.hm-person__initials {
    display: grid;
    place-items: center;
    background: var(--hm-soft);
    color: var(--hm-blue);
    font-size: 34px;
    font-weight: 800;
}

.hm-person__name {
    margin-top: 20px !important;
    font-size: 18px;
    font-weight: 700;
}

.hm-person__role {
    margin-top: 4px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-blue);
}

.hm-person__bio {
    margin-top: 12px !important;
    font-size: 14.5px;
}

.hm-person__in {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 18px;
    border-radius: 10px;
    color: #0a66c2;
    background: rgba(10, 102, 194, .08);
    transition: background-color .2s, color .2s;
}

.hm-person__in:hover { color: #fff; background: #0a66c2; }
.hm-person__in:focus-visible { outline: 3px solid var(--hm-blue-300); outline-offset: 3px; }

/* ---------- Request a proposal ---------- */

.hm-lead__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}

.hm-lead__channels {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.hm-lead__channels li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15.5px;
    font-weight: 600;
}

.hm-lead__channels a { color: var(--hm-ink); border-radius: 4px; }
.hm-lead__channels a:hover { color: var(--hm-blue); }
.hm-lead__channels a:focus-visible { outline: 3px solid var(--hm-blue-300); outline-offset: 3px; }

.hm-lead__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--hm-blue);
    background: #fff;
    border: 1px solid var(--hm-line);
}

.hm-lead__icon--wa { color: #1fa855; font-size: 18px; }

.hm-lead__card {
    padding: clamp(24px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 24px;
    box-shadow: var(--hm-shadow-lg);
}

.hm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.hm-field--full { grid-column: 1 / -1; }

.hm-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-ink);
}

.hm-field__req { color: #c62828; margin-left: 2px; }
.hm-field__opt { color: var(--hm-muted); font-weight: 500; margin-left: 4px; }

.hm-field input,
.hm-field select,
.hm-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid #d5dee8;
    border-radius: var(--hm-radius-sm);
    background: #fff;
    color: var(--hm-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.hm-field textarea { min-height: 120px; resize: vertical; }

.hm-field input::placeholder,
.hm-field textarea::placeholder { color: #8a98a9; }

.hm-field input:focus,
.hm-field select:focus,
.hm-field textarea:focus {
    outline: none;
    border-color: var(--hm-blue);
    box-shadow: 0 0 0 4px rgba(21, 119, 187, .15);
}

.hm-select { position: relative; }

.hm-select select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.hm-select i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--hm-muted);
    pointer-events: none;
}

.hm-field.has-error input,
.hm-field.has-error select,
.hm-field.has-error textarea { border-color: #c62828; }

.hm-field.has-error input:focus,
.hm-field.has-error select:focus,
.hm-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }

.hm-field__error {
    margin-top: 6px !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #c62828;
}

.hm-form__alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--hm-radius-sm);
    background: #fdecec;
    color: #9b1c1c;
    font-size: 14.5px;
    font-weight: 600;
}

/* Honeypot: off-screen rather than display:none, which some bots skip */
.hm-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hm-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 26px;
}

.hm-form__submit { border: 0; }
.hm-form__submit:disabled { opacity: .75; cursor: progress; transform: none; }
.hm-form__submit.is-busy i { animation: hm-nudge .8s ease-in-out infinite alternate; }

@keyframes hm-nudge { to { transform: translateX(5px); } }

.hm-form__note {
    flex: 1 1 220px;
    font-size: 13.5px;
    color: var(--hm-muted);
}

.hm-form__note a { color: var(--hm-blue); text-decoration: underline; }

.hm-lead__success {
    padding: 28px 8px;
    text-align: center;
}

.hm-lead__success:focus { outline: none; }

.hm-lead__success-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--hm-green), var(--hm-blue));
}

.hm-lead__success h3 {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
}

.hm-lead__success p {
    margin: 10px auto 0;
    max-width: 380px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .hm-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-stat:nth-child(3) { border-left: 0; }
    .hm-stat:nth-child(n + 3) { border-top: 1px solid var(--hm-line); }

    .hm-cases__grid,
    .hm-quality { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hm-coverage__inner,
    .hm-lead__inner { grid-template-columns: minmax(0, 1fr); }

    .hm-coverage__map { max-width: 520px; width: 100%; margin: 0 auto; }

    .is-slider .hm-quotes__track { grid-auto-columns: 82%; }
}

@media (max-width: 767.98px) {
    .hm-stats { margin-top: -64px; }
    .hm-hero--with-stats { padding-bottom: calc(clamp(72px, 9vw, 120px) + 40px); }
    .hm-stat { padding: 22px 14px; }

    .hm-quotes__track,
    .hm-cases__grid,
    .hm-quality,
    .hm-form__grid { grid-template-columns: minmax(0, 1fr); }

    .is-slider .hm-quotes__track { grid-template-columns: none; grid-auto-columns: 88%; }

    .hm-quote { padding: 26px 22px 24px; }
    .hm-quote__text { font-size: 16.5px; }

    .hm-community { grid-template-columns: auto minmax(0, 1fr); }
    .hm-community__btn { grid-column: 1 / -1; width: 100%; }

    .hm-form__submit { width: 100%; }
}

@media (max-width: 575.98px) {
    /* the city list carries the names; labels would be unreadably small */
    .hm-city__label { display: none; }
}
