/*--------------------------------------------------------------
# Ember Impact — bespoke landing page
# Extends the theme's existing brand components (service-card colour blocks,
# navy form-box, pill buttons, dot-grid accents, two-tone headlines) so the
# page reads as Ember Group. Scoped under .impact-page. Brand tokens come from
# ember-group.css :root (--color-orange/blue/teal/yellow, Montserrat).
--------------------------------------------------------------*/

.impact-page { overflow-x: hidden; }

.impact-page .container-fluid {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 4rem);
}

/* Shared --------------------------------------------------------------- */
.impact-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin: 0 0 0.5rem;
}

.impact-section-title {
    font-size: var(--font-size-secondary-heading);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.impact-section-lede {
    font-size: var(--font-size-body);
    line-height: 1.6;
    max-width: 52ch;
    margin-inline: auto;
    opacity: 0.85;
}

/* Pill buttons (match the theme's rounded buttons) --------------------- */
.impact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.1rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.impact-btn--navy  { background: var(--color-blue); color: #fff; }
.impact-btn--navy:hover  { background: var(--color-orange); transform: translateY(-2px); }
.impact-btn--ghost { background: transparent; color: var(--color-orange); border-color: var(--color-orange); }
.impact-btn--ghost:hover { background: var(--color-orange); color: #fff; transform: translateY(-2px); }

/* ============================ HERO ============================ */
.impact-hero {
    position: relative;
    background: transparent;
    padding-top: clamp(3rem, 6vw, 6em);
    padding-bottom: clamp(3rem, 7vw, 6rem);
    isolation: isolate;
    overflow: hidden;
}
.impact-hero .impact-dots {
    position: absolute;
    top: 4.5rem;
    right: clamp(1rem, 4vw, 4rem);
    color: var(--color-orange);
    fill: currentColor;
    opacity: 0.45;
    z-index: -1;
}
.impact-hero__pie {
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 320px;
    height: 320px;
    background: var(--color-yellow);
    opacity: 0.28;
    border-radius: 320px 0 0 0;
    z-index: -1;
}

.impact-chevrons {
    display: block;
    color: var(--color-orange);
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.impact-hero__title {
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: var(--font-size-primary-heading);
}

.impact-hero__tagline {
    font-style: italic;
    font-weight: 600;
    color: var(--color-orange);
    font-size: var(--font-size-cta);
    margin: 0.85rem 0 1.5rem;
}

.impact-hero__lede {
    font-size: 1.2rem;
    line-height: 1.65;
    max-width: 50ch;
    opacity: 0.9;
}

.impact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.impact-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(62, 65, 108, 0.15);
    color: var(--color-blue);
    font-size: 1.05rem;
    font-weight: 500;
}
.impact-hero__stats strong {
    font-size: 2.4rem;
    font-weight: 700;
    margin-right: 0.5rem;
    line-height: 1;
}
.impact-hero__stats .impact-stat { display: inline-flex; align-items: baseline; }

/* ===================== FOUR PRACTICE AREAS ==================== */
.impact-practice { background: transparent; }
.impact-practice .impact-section-title,
.impact-tracks .impact-section-title,
.impact-apply .impact-section-title { /* centered headers like the home page */ }

/* Full-bleed colour blocks: reuse .service-card, just make room for copy */
.impact-practice .service-cards-wrapper {
    width: 100%;
    margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}
.impact-practice .service-card {
    height: auto;
    min-height: 17em;
    padding: 2.75em 2.25em 4em;
}
.impact-pcard__copy {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0.85rem 0 0;
    opacity: 0.92;
    max-width: 28ch;
}
/* keep the white arrow visible on the yellow card */
.impact-practice .service-card[style*="--color-yellow"] .arrow-btn svg path { fill: var(--color-blue); }
.impact-practice .service-card[style*="--color-yellow"] .cl-white { color: var(--color-blue) !important; }

/* ================= TWO TRACKS, ONE STANDARD ================== */
.impact-tracks {
    background: #f5e9e1;
    padding-block: clamp(3.5rem, 8vw, 7rem);
}
.impact-tracks .impact-cards { margin-top: clamp(2rem, 5vw, 3.25rem); gap: 1.5rem 0; }
.impact-tracks .impact-card-col { display: flex; margin-bottom: 1.5rem; }

.impact-track {
    width: 100%;
    padding: clamp(1.9rem, 3vw, 2.9rem);
    border-radius: 40px;
    text-align: left;
    box-shadow: 0 18px 40px -26px rgba(62, 65, 108, 0.55);
    transition: transform .2s ease;
}
.impact-track:hover { transform: translateY(-6px); }
.impact-track__copy { font-size: 1.05rem; line-height: 1.6; opacity: 0.92; margin: 0 0 1.25rem; }

.impact-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--color-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.impact-track.bg-orange .impact-badge { color: var(--color-orange); }

.impact-spec {
    margin: 1.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 1.25rem;
}
.impact-spec > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 0.55rem 0; }
.impact-spec dt {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}
.impact-spec dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* ========================= WORK WITH US ====================== */
.impact-apply {
    background: transparent;
    padding-block: clamp(3.5rem, 8vw, 7rem) 0;
}
.impact-apply .impact-section-lede { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* Reuse the navy .form-box, but round all corners and left-align labels so a
   17-field application stays readable (the global brand style centres labels,
   which suits the short contact form but not a long intake). */
/* The theme positions .form-box absolutely (it overlaps the contact image);
   reset that here so the standalone application form sits in normal flow. */
.impact-apply .form-box {
    position: static;
    bottom: auto;
    right: auto;
    border-radius: 40px;
}
/* Labels: left-aligned blocks (override the contact form's centred column) */
.impact-apply .gform_wrapper.gravity-theme .gfield { text-align: left; }
.impact-apply .gform_wrapper.gravity-theme .gfield_label {
    display: block !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem;
}
.impact-apply .gform_wrapper.gravity-theme .gfield_description {
    text-align: left !important;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 0.35rem;
}

/* Section dividers */
.impact-apply .gform_wrapper.gravity-theme .gsection {
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    margin-top: 1.25rem;
    text-align: left;
}
.impact-apply .gform_wrapper.gravity-theme .gsection_title { color: #fff; font-size: var(--font-size-quartary-heading); text-align: left; }

/* Inputs: full-width solid boxes (override the contact form's transparent underline) */
.impact-apply .gform_wrapper .ginput_container { width: 100%; }
.impact-apply .gform_wrapper .ginput_container input,
.impact-apply .gform_wrapper .gfield_select,
.impact-apply .gform_wrapper select,
.impact-apply .gform_wrapper textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
}
.impact-apply .gform_wrapper select option { color: var(--impact-ink, #2c2e4a); }
.impact-apply .gform_wrapper input::placeholder,
.impact-apply .gform_wrapper textarea::placeholder { color: rgba(255, 255, 255, 0.6) !important; }
.impact-apply .gform_wrapper .gchoice label { color: #fff; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 768px) {
    .impact-hero__actions { flex-direction: column; align-items: stretch; }
    .impact-btn { width: 100%; }
    .impact-spec > div { grid-template-columns: 1fr; gap: 0.15rem; }
    .impact-hero__pie { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .impact-page * { transition: none !important; }
}
