/* ==========================================================================
   Custom Home Page — HealthClinicMD
   Ported from approved static reference design. Namespaced with .hcmd-home /
   hcmd- prefixed classes throughout so nothing collides with shared site CSS
   (the reference used generic names like .hero, .container, .btn, .section).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.hcmd-home {
    --hcmd-navy: #171b4f;
    --hcmd-navy-dark: #222a67;
    --hcmd-blue: #40a6c1;
    --hcmd-blue-dark: #268da9;
    --hcmd-gold: #f5b21b;
    --hcmd-text: #27315f;
    --hcmd-muted: #6e748a;
    --hcmd-soft: #f4f4f4;
    --hcmd-border: #e3e5eb;
    --hcmd-shadow: 0 14px 35px rgba(25, 35, 80, .10);
    --hcmd-container: 1440px;
}

.hcmd-home,
.hcmd-home h1,
.hcmd-home h2,
.hcmd-home h3,
.hcmd-home h4,
.hcmd-home p,
.hcmd-home a,
.hcmd-home li,
.hcmd-home span,
.hcmd-home button {
    font-family: 'Panton', sans-serif !important;
}

.hcmd-home {
    color: var(--hcmd-text);
    line-height: 1.5;
    overflow-x: hidden;
}

.hcmd-home * {
    box-sizing: border-box;
}

.hcmd-home img {
    max-width: 100%;
    display: block;
}

.hcmd-home a {
    text-decoration: none;
    color: inherit;
}

.hcmd-home .hcmd-container {
    width: min(var(--hcmd-container), calc(100% - 40px));
    margin: auto;
}

.hcmd-home .hcmd-section {
    padding: 65px 0;
}

.hcmd-home .hcmd-section-title {
    margin: 0 0 10px;
    text-align: center;
    /* Matches PSD: Panton Bold, 65.9pt size, 67.77pt leading (~1.028
       ratio). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(30px, 5.5vw, 60px);
    line-height: 1.028;
    letter-spacing: -1px;
    color: var(--hcmd-navy) !important;
}

.hcmd-home .hcmd-text-blue {
    color: var(--hcmd-blue) !important;
}

.hcmd-home .hcmd-section-subtitle {
    max-width: 1300px;
    margin: 0 auto 34px;
    text-align: center;
    color: #8e8e8e !important;
    /* Matches PSD: Helvetica Regular, 28pt size, 42.18pt leading
       (~1.506 ratio), tracking 20 (+0.02em). */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(16px, 1.8vw, 28px);
    line-height: 1.506;
    letter-spacing: 0.02em;
}

.hcmd-home .hcmd-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 24px;
    /* border-radius: 3px; */
    font-weight: 700;
    transition: .25s ease;
    border: 0;
    cursor: pointer;
}

.hcmd-home .hcmd-btn-primary {
    background-color: #161a4b !important;
    color: #fff !important;
}
.hcmd-home .hcmd-btn-bc {
    background-color: var(--hcmd-blue-dark) !important;
    color: #fff !important;
}
.hcmd-home .hcmd-btn-primary:hover {
    background-color: #1d245b !important;
    transform: translateY(-2px);
}

.hcmd-home .hcmd-btn-cyan {
    background-color: var(--hcmd-blue) !important;
    color: #fff !important;
}

.hcmd-home .hcmd-btn-cyan:hover {
    background-color: var(--hcmd-blue-dark) !important;
    transform: translateY(-2px);
}

.hcmd-home .hcmd-btn-gold {
    background-color: var(--hcmd-gold) !important;
    color: var(--hcmd-navy-dark) !important;
}

.hcmd-home .hcmd-hero-left .hcmd-btn-primary {
    /* Matches the "What We Treat" text layer in the PSD: Panton Bold,
       39.88pt size, 42.57pt leading (~1.068 ratio), tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: 39.88px;
    line-height: 1.068;
    letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hcmd-home .hcmd-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(67, 170, 197, .22), transparent 32%),
        linear-gradient(135deg, #2e377c 0%, #222a67 100%);
    color: #fff;
    padding: 68px 0 56px;
    overflow: hidden;
    /* min-height: 65vh alone grows unbounded on tall viewports (e.g. a
       1366x1207 window), forcing a large empty gap below the hero content
       before the CTA cards — capped so it can't exceed what the content
       actually needs on typical screens. */
    min-height: min(65vh, 620px);
}

.hcmd-home .hcmd-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.92fr;
    gap: 90px;
    align-items: center;
}


.hcmd-home .hcmd-eyebrow {
    color: var(--hcmd-gold);
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-size: 25px;
}

.hcmd-home .hcmd-hero h1 {
    margin: 0;
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    /* Matches the source PSD's Character panel: 116.26pt size, 99.69pt
       leading (~0.858 ratio), so it stays proportional at any viewport. */
    font-size: clamp(52px,  5.5vw, 116px);
    line-height: 1;
    letter-spacing: -3px;
    max-width: 835px;
    color: #fff !important;
}

.hcmd-home .hcmd-hero-line2 {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .hcmd-home .hcmd-hero-line2 {
        white-space: normal;
    }
}

.hcmd-home .hcmd-hero h1 .hcmd-gold {
    color: var(--hcmd-gold);
}

.hcmd-home .hcmd-hero p {
    margin: 40px 0 40px;
    /* max-width: 650px; */
    /* Matches the source PSD: Helvetica Regular, 28pt size, 38.83pt leading
       (~1.387 ratio). */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(16px, 1.6vw, 24px);
    line-height: 1.387;
    color: rgba(255, 255, 255, .9);
    letter-spacing: 0.2px;
}

.hcmd-home .hcmd-hero-panel {
    padding: 110px 105px;
    border-radius: 100px 0 0px 100px;;
    background: linear-gradient(120deg, rgba(53, 174, 200, .96), rgba(31, 20, 115, .95));
    box-shadow: 0 30px 70px rgba(0, 0, 0, .16);
    /* Pull just this column out to the true viewport right edge — the grid
       container itself (and therefore the text/left column) stays exactly
       where it is; only this side breaks out of the centered container.
       margin-right cancels the container's own right inset entirely (so
       this panel's right edge lands at the true viewport edge); the
       existing 48px base padding above keeps its content off the raw edge. */
    margin-right: calc(-1 * max(20px, (100vw - var(--hcmd-container)) / 2));
}

/* Tablet/mobile override for .hcmd-hero-panel lives in the consolidated
   "Responsive" section near the end of this file. */

.hcmd-home .hcmd-hero-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
}

.hcmd-home .hcmd-hero-panel li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 0px !important;
}

.hcmd-home .hcmd-hero-panel i {
    color: #6fd3e6;
    margin-top: 4px;
}

/* ---------- Quick / CTA cards ---------- */
.hcmd-home .hcmd-quick-wrap {
    margin-top: -1px;
    background: #fff;
    padding: 40px 0 40px;
}

.hcmd-home .hcmd-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.hcmd-home .hcmd-quick-card {
    border-radius: 35px;
    padding: 32px 36px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    box-shadow: var(--hcmd-shadow);
}

.hcmd-home .hcmd-quick-card.hcmd-cyan {
    background: var(--hcmd-blue);
}

.hcmd-home .hcmd-quick-card.hcmd-navy {
    background: #2e377c;
}

.hcmd-home .hcmd-quick-card-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    /* min-width:0 lets this flex child actually shrink below its content's
       natural width instead of forcing the row wider than the card — a
       long title like "Schedule an Urgent Care Visit" would otherwise
       push the "Book Now" button (flex-shrink:0) past the card's edge. */
    min-width: 0;
    flex: 1 1 auto;
}

.hcmd-home .hcmd-quick-card-left > div {
    min-width: 0;
}

.hcmd-home .hcmd-quick-icon {
    /* PSD's calendar/clock icon renders at ~53x52px. */
    font-size: 48px;
    line-height: 1;
    margin-top: 2px;
}

.hcmd-home .hcmd-quick-card h3 {
    margin: 0 0 15px;
    /* PSD specifies 37pt/35.71pt leading, but at that size the title
       doesn't fit on one line within this card's actual width once the
       icon and "Book Now" button take their share — sized down to what
       the layout can hold. Forcing white-space:nowrap here caused a worse
       problem: a longer title ("Schedule an Urgent Care Visit") would
       refuse to wrap and instead push the flex-shrink:0 button past the
       card's edge. Letting it wrap normally is the safe fallback — but the
       PSD's tight 0.965 leading was tuned for a single line with no second
       line to space out; once wrapped, two lines that close together read
       as cramped, so this uses a looser ratio instead. */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff !important;
}

.hcmd-home .hcmd-quick-card p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    /* Matches PSD: Helvetica Regular, 24pt size, 33.47pt leading
       (~1.394 ratio), tracking 0. */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 20px;
    line-height: 1.394;
}

.hcmd-home .hcmd-quick-card .hcmd-btn {
    /* Matches PSD "Book Now" text: Panton Bold, 27.73pt size, 29.6pt
       leading (~1.067 ratio), tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 600 !important;
    font-size: 27.73px;
    line-height: 1;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    align-self: flex-end;
    min-height: 54px;
    padding: 12px 26px;
}

.hcmd-home .hcmd-quick-subtext {
    display: block;
    margin-top: 10px;
    color: #6fd3e6;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Service cards ---------- */
.hcmd-home .hcmd-care-section {
    background: #f2f2f2;
}

.hcmd-home .hcmd-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hcmd-home .hcmd-service-card {
    background: #fff;
    /* border: 1px solid var(--hcmd-border); */
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 31, 75, .05);
    display: flex;
    flex-direction: column;
}

.hcmd-home .hcmd-service-icon {
    height: 80px;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hcmd-blue);
    /* PSD's icon renders at ~44-50px. */
    font-size: 38px;
}

.hcmd-home .hcmd-service-content {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hcmd-home .hcmd-service-card h3 {
    margin: 0 0 12px;
    /* Matches PSD: Panton Bold, 37pt size, 35.71pt leading (~0.965 ratio),
       tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    color: var(--hcmd-navy) !important;
    font-size: clamp(18px, 2.4vw, 30px);
    line-height: 0.965;
    letter-spacing: 1px;
}

.hcmd-home .hcmd-service-card p {
    color: var(--hcmd-muted) !important;
    margin: 0 0 14px;
    /* Matches PSD: Helvetica Regular, 24pt size, tracking 0 (leading not
       legible in the PSD panel — using the ~1.4 ratio consistent with the
       other Helvetica body text in this design). */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 22px;
    line-height: 28px;
}

.hcmd-home .hcmd-service-card ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    /* display: grid; */
    /* gap: 10px;
    color: #656b80;
    font-size: 13px; */
}

.hcmd-home .hcmd-service-card li {
    padding-left: 15px;
    position: relative;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
     font-weight: 400 !important;
    font-size: 20px;
    line-height: 30px;
    color: #656b80;
    /* font-size: 20px; */
    text-decoration: none !important;
}

.hcmd-home .hcmd-service-card li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--hcmd-gold);
}

.hcmd-home .hcmd-service-card .hcmd-btn {
    /* margin-top: auto (not a fixed 25px) pushes the button to the bottom
       of the card's flex column regardless of how many lines the
       description/bullet list above it wraps to — otherwise cards with
       shorter text end up with their button sitting higher than cards
       with longer wrapped text, as seen at tablet widths. */
    margin-top: auto;
    align-self: center;
    min-height: 40px;
    padding: 7px 18px;
    font-size: 22px;
}

/* ---------- Info cards ---------- */
.hcmd-home .hcmd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hcmd-home .hcmd-info-card {
    background: #f2f2f2;
    border-radius: 22px;
    padding: 28px;
    text-align: left;
    /* Grid items already stretch to equal height by default; making the
       card a flex column lets the button below use margin-top:auto to
       pin itself to the bottom regardless of how many lines the
       description above wraps to (otherwise "Explore Medications" sits
       higher/lower than "Shop Supplements"/"Meet the Team" depending on
       each card's text length). */
    display: flex;
    flex-direction: column;
}

.hcmd-home .hcmd-info-icon {
    /* PSD's icon renders at ~44-46px. Fixed square box with the glyph
       centered inside it — FontAwesome icons like fa-capsules have an
       asymmetric bounding box within their own glyph, so without this the
       icon visually leans instead of sitting centered above the text.
       margin: 0 auto centers the box itself across the full card width,
       while the title/description below stay left-aligned. */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 44px;
    color: #282E6F;
    margin: 0 auto 16px;
}

.hcmd-home .hcmd-info-card h3 {
    /* Matches PSD: Panton Bold, 37pt size, 35.71pt leading (~0.965 ratio),
       tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    color: var(--hcmd-blue) !important;
    margin: 0 0 12px;
    font-size: clamp(20px, 2.6vw, 27px);
    line-height: 0.965;
    letter-spacing: 0.5px;
}

.hcmd-home .hcmd-info-card p {
    margin: 0 0 18px;
    color: #666d80 !important;
    /* Matches PSD: Helvetica Regular, 24pt size, 31.8pt leading
       (~1.325 ratio), tracking 0. */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 20px;
    line-height: 1.325;
}

.hcmd-home .hcmd-info-card .hcmd-btn {
    /* Matches PSD "Explore Medications" text: Panton Bold, 27.73pt size,
       29.6pt leading (~1.067 ratio), tracking 20 (+0.02em). Centered
       across the card width (title/description stay left-aligned) by
       switching from the base inline-flex to a block-level flex with
       auto side margins. */
    display: flex;
    margin: auto auto 0;
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    min-height: 40px;
    padding: 7px 14px;
    font-size: 22px;
    line-height: 1.067;
    letter-spacing: 0.02em;
    max-width: 235px;
}

/* ---------- Steps ---------- */
.hcmd-home .hcmd-steps-section {
    background: var(--hcmd-blue);
    color: #fff;
    text-align: center;
}

.hcmd-home .hcmd-steps-section .hcmd-section-title,
.hcmd-home .hcmd-steps-section .hcmd-section-subtitle {
    color: #fff !important;
}

.hcmd-home .hcmd-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 38px 0 48px;
}

.hcmd-home .hcmd-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .16);
    font-size: 22px;
    font-weight: 800;
}

.hcmd-home .hcmd-step h3 {
    margin: 0 0 8px;
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: 25px;
    color: #fff !important;
}

.hcmd-home .hcmd-step p {
    margin: 0;
    color: rgba(255, 255, 255, .9) !important;
    /* Matches PSD: Helvetica Regular, 24pt size, 31.8pt leading
       (~1.325 ratio), tracking 0. */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 24px;
    line-height: 1.325;
}

.hcmd-home .hcmd-goal {
    margin-top: 10px;
}

.hcmd-home .hcmd-goal h3 {
    /* Matches PSD: Panton Bold, 65.9pt size, 67.77pt leading (~1.028
       ratio), tracking 0. */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(28px, 5.5vw, 55px);
    line-height: 1.028;
    margin: 0 0 8px;
    color: #fff !important;
}

.hcmd-home .hcmd-goal p {
    color: rgba(255, 255, 255, .9) !important;
    margin: 0 0 22px;
    /* Matches PSD: Helvetica Regular, 28pt size, 42.18pt leading
       (~1.506 ratio), tracking 20 (+0.02em). */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.506;
    letter-spacing: 0.02em;
}

.hcmd-home .hcmd-goal .hcmd-btn {
    /* Matches PSD "Schedule a Consultation" text: Panton Bold, 27.73pt
       size, 29.6pt leading (~1.067 ratio), tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20.73px;
    line-height: 1.067;
    letter-spacing: 0.02em;
    min-height: 20px;
    padding: 14px 30px;
    background-color: rgba(0, 0, 0, .16) !important;
    max-width: 319px;
}

/* ---------- Employer ---------- */
.hcmd-home .hcmd-employer {
    background: #262c69;
    color: #fff;
}

.hcmd-home .hcmd-employer-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.hcmd-home .hcmd-employer h2 {
    /* Matches PSD: Panton Bold, 65.9pt size, 69.83pt leading (~1.06
       ratio), tracking 0. */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(32px, 5.5vw, 62px);
    line-height: 1.06;
    margin: 0 0 18px;
    color: #fff !important;
}

.hcmd-home .hcmd-employer h2 span {
    color: var(--hcmd-gold) !important;
}

.hcmd-home .hcmd-employer p {
    color: rgba(255, 255, 255, .9) !important;
    /* Matches PSD: Helvetica Regular, 28pt size, 38.83pt leading
       (~1.387 ratio), tracking 0. */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(16px, 1.9vw, 23px);
    line-height: 1.387;
    max-width: 550px;
}

.hcmd-home .hcmd-employer .hcmd-btn-primary {
    /* Matches PSD "Explore Employer Partnerships" text: Panton Bold,
       36.66pt size, 39.13pt leading (~1.067 ratio), tracking 0. */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(18px, 2.4vw, 33px);
    line-height: 1.067;
}

.hcmd-home .hcmd-benefit-list {
    display: grid;
    gap: 25px;
}

.hcmd-home .hcmd-benefit-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 30px;
}

.hcmd-home .hcmd-benefit-item i {
    color: var(--hcmd-blue);
    font-size: 23px;
    margin-top: 4px;
}

.hcmd-home .hcmd-benefit-item h3 {
    margin: 0 0 12px;
    /* Matches PSD: Panton Bold, 37pt size, 35.71pt leading (~0.965 ratio),
       tracking 20 (+0.02em). */
    font-family: 'Panton', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(18px, 2vw, 27px);
    line-height: 0.965;
    letter-spacing: 0.02em;
    color: #fff !important;
}

.hcmd-home .hcmd-benefit-item p {
    margin: 0;
    /* Matches PSD: Helvetica Regular, 24pt size, 31.8pt leading
       (~1.325 ratio), tracking 0. */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 23px;
    line-height: 1.325;
    color: rgba(255, 255, 255, .84) !important;
}

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

/* Laptop tier: headings/titles/paragraphs/buttons sized down a notch from
   desktop — desktop itself (>1400px) is untouched. */
@media (max-width: 1400px) {
    .hcmd-home .hcmd-eyebrow {
        font-size: 20px;
    }

    .hcmd-home .hcmd-hero h1 {
        font-size: clamp(44px, 5vw, 88px);
        /* Base -3px letter-spacing is tuned for the 116px desktop size —
           proportionally scaled down here so smaller text doesn't crush
           together. */
        letter-spacing: -2px;
    }

    .hcmd-home .hcmd-hero p {
        font-size: clamp(15px, 1.5vw, 20px);
    }

    .hcmd-home .hcmd-section-title {
        font-size: clamp(26px, 4.5vw, 48px);
    }

    .hcmd-home .hcmd-section-subtitle {
        font-size: clamp(15px, 1.6vw, 22px);
    }

    .hcmd-home .hcmd-quick-card h3 {
        font-size: clamp(18px, 2vw, 24px);
    }

    .hcmd-home .hcmd-quick-card p {
        font-size: 17px;
    }

    .hcmd-home .hcmd-service-card h3 {
        font-size: clamp(16px, 2.1vw, 26px);
    }

    .hcmd-home .hcmd-service-card p,
    .hcmd-home .hcmd-service-card li {
        font-size: 17px;
    }

    .hcmd-home .hcmd-info-card h3 {
        font-size: clamp(18px, 2.2vw, 23px);
    }

    .hcmd-home .hcmd-info-card p {
        font-size: 17px;
    }

    .hcmd-home .hcmd-step h3 {
        font-size: 21px;
    }

    .hcmd-home .hcmd-step p {
        font-size: 19px;
    }

    .hcmd-home .hcmd-goal h3 {
        font-size: clamp(24px, 4.5vw, 44px);
    }

    .hcmd-home .hcmd-goal p {
        font-size: clamp(15px, 1.6vw, 19px);
    }

    .hcmd-home .hcmd-employer h2 {
        font-size: clamp(28px, 4.5vw, 50px);
    }

    .hcmd-home .hcmd-employer p {
        font-size: clamp(15px, 1.6vw, 19px);
    }

    .hcmd-home .hcmd-benefit-item h3 {
        font-size: clamp(16px, 1.8vw, 22px);
    }

    .hcmd-home .hcmd-benefit-item p {
        font-size: 19px;
    }

    .hcmd-home .hcmd-btn {
        font-size: 15px;
        padding: 12px 22px;
    }

    .hcmd-home .hcmd-hero-left .hcmd-btn-primary {
        font-size: 32px;
    }

    .hcmd-home .hcmd-quick-card .hcmd-btn {
        font-size: 22px;
    }

    .hcmd-home .hcmd-service-card .hcmd-btn,
    .hcmd-home .hcmd-info-card .hcmd-btn {
        font-size: 18px;
    }

    .hcmd-home .hcmd-goal .hcmd-btn {
        font-size: 18px;
    }

    .hcmd-home .hcmd-employer .hcmd-btn-primary {
        font-size: clamp(16px, 2vw, 27px);
    }
}

@media (max-width: 1024px) {
    .hcmd-home .hcmd-hero-grid,
    .hcmd-home .hcmd-employer-grid {
        grid-template-columns: 1fr;
    }

    .hcmd-home .hcmd-services-grid,
    .hcmd-home .hcmd-info-grid,
    .hcmd-home .hcmd-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* The hero grid has already stacked to one column at this width, so
       the full-bleed-to-viewport-edge treatment and its oversized desktop
       padding/radius no longer make sense — same reduced treatment the
       768px breakpoint already applies, just starting a bit earlier so
       there's no in-between range with a huge asymmetric panel sitting
       full-width. */
    .hcmd-home .hcmd-hero-panel {
        margin-right: 0;
        border-radius: 40px;
        padding: 48px 40px;
    }

    /* A two-column quick-card (icon + text + "Book Now" button all in one
       row) needs far more width than half of a ~1024px-or-narrower
       container provides — at e.g. 820px (iPad Air) this was overflowing
       the card/viewport entirely. Stack to one column starting here
       instead of waiting until 768px. */
    .hcmd-home .hcmd-quick-grid {
        grid-template-columns: 1fr;
    }

    .hcmd-home .hcmd-quick-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hcmd-home .hcmd-quick-card .hcmd-btn {
        align-self: flex-start;
        margin-top: 16px;
    }

    /* Tablet tier: a further step down from the laptop tier above (this
       block comes later in the file, so it wins at ≤1024px). */
    .hcmd-home .hcmd-eyebrow {
        font-size: 17px;
    }

    .hcmd-home .hcmd-hero h1 {
        font-size: clamp(36px, 5.5vw, 60px);
        letter-spacing: -1px;
    }

    .hcmd-home .hcmd-hero p {
        font-size: 16px;
    }

    .hcmd-home .hcmd-section-title {
        font-size: clamp(24px, 4.5vw, 38px);
    }

    .hcmd-home .hcmd-section-subtitle {
        font-size: 15px;
    }

    .hcmd-home .hcmd-quick-card h3 {
        font-size: 19px;
    }

    .hcmd-home .hcmd-quick-card p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-service-card h3 {
        font-size: 19px;
    }

    .hcmd-home .hcmd-service-card p,
    .hcmd-home .hcmd-service-card li {
        font-size: 15px;
    }

    .hcmd-home .hcmd-info-card h3 {
        font-size: 19px;
    }

    .hcmd-home .hcmd-info-card p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-step h3 {
        font-size: 18px;
    }

    .hcmd-home .hcmd-step p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-goal h3 {
        font-size: clamp(22px, 4.5vw, 32px);
    }

    .hcmd-home .hcmd-goal p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-employer h2 {
        font-size: clamp(24px, 4.5vw, 36px);
    }

    .hcmd-home .hcmd-employer p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-benefit-item h3 {
        font-size: 17px;
    }

    .hcmd-home .hcmd-benefit-item p {
        font-size: 15px;
    }

    .hcmd-home .hcmd-btn {
        font-size: 14px;
        padding: 11px 20px;
    }

    .hcmd-home .hcmd-hero-left .hcmd-btn-primary {
        font-size: 24px;
    }

    .hcmd-home .hcmd-quick-card .hcmd-btn {
        font-size: 18px;
    }

    .hcmd-home .hcmd-service-card .hcmd-btn,
    .hcmd-home .hcmd-info-card .hcmd-btn {
        font-size: 16px;
    }

    .hcmd-home .hcmd-goal .hcmd-btn {
        font-size: 16px;
    }

    .hcmd-home .hcmd-employer .hcmd-btn-primary {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hcmd-home .hcmd-section {
        padding: 54px 0;
    }

    .hcmd-home .hcmd-container {
        width: min(100% - 26px, var(--hcmd-container));
    }

    .hcmd-home .hcmd-quick-grid,
    .hcmd-home .hcmd-info-grid,
    .hcmd-home .hcmd-steps-grid {
        grid-template-columns: 1fr;
    }

    .hcmd-home .hcmd-quick-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hcmd-home .hcmd-quick-card .hcmd-btn {
        align-self: flex-start;
        margin-top: 16px;
    }

    .hcmd-home .hcmd-hero {
        padding-top: 48px;
    }

    .hcmd-home .hcmd-hero h1 {
        font-size: 40px;
        /* Base -3px letter-spacing is way too aggressive at this size —
           was previously left unchanged here, crushing/clipping letters. */
        letter-spacing: -0.5px;
    }
    .hcmd-home .hcmd-hero-panel li {
        font-size: 18px;
    }
    .hcmd-home .hcmd-hero-panel {
        border-radius: 34px;
        padding: 30px 24px;
    }

    .hcmd-home .hcmd-services-grid {
        grid-template-columns: 1fr;
    }
    .hcmd-home .hcmd-hero-grid {
        gap: 50px;
}
    /* Mobile tier: smallest step, one more notch down from tablet. */
    .hcmd-home .hcmd-eyebrow {
        font-size: 15px;
    }

    .hcmd-home .hcmd-hero p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-section-title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .hcmd-home .hcmd-section-subtitle {
        font-size: 18px;
    }

    .hcmd-home .hcmd-quick-card h3 {
        font-size: 22px;
    }
    .hcmd-home .hcmd-quick-card {
        padding: 30px 15px;
    }
    .hcmd-home .hcmd-quick-card-left {
        gap: 38px;

    }
    .hcmd-home .hcmd-quick-icon {
    font-size: 40px;

    }
    .hcmd-home .hcmd-quick-card p {
        font-size: 18px;
    }
    

    .hcmd-home .hcmd-service-card h3 {
        font-size: 22px;
    }

    .hcmd-home .hcmd-service-card p,
    .hcmd-home .hcmd-service-card li {
        font-size: 18px;
    }

    .hcmd-home .hcmd-info-card h3 {
        font-size: 22px;
    }

    .hcmd-home .hcmd-info-card p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-step h3 {
        font-size: 20px;
    }

    .hcmd-home .hcmd-step p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-goal h3 {
        font-size: clamp(20px, 6vw, 26px);
    }

    .hcmd-home .hcmd-goal p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-employer h2 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .hcmd-home .hcmd-employer p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-benefit-item h3 {
        font-size: 22px;
    }

    .hcmd-home .hcmd-benefit-item p {
        font-size: 18px;
    }

    .hcmd-home .hcmd-btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    .hcmd-home .hcmd-hero-left .hcmd-btn-primary {
        font-size: 18px;
    }

    .hcmd-home .hcmd-quick-card .hcmd-btn {
        font-size: 15px;
    }

    .hcmd-home .hcmd-service-card .hcmd-btn,
    .hcmd-home .hcmd-info-card .hcmd-btn {
        font-size: 14px;
    }

    .hcmd-home .hcmd-goal .hcmd-btn {
        font-size: 14px;
    }

    .hcmd-home .hcmd-employer .hcmd-btn-primary {
        font-size: 15px;
    }
}
