/* ==========================================================================
   Synergy Dental Implant Center – landing page styles
   Values taken from Figma (container widened to 1440px) "Creative-Designer" › node 1508:471
   ========================================================================== */

:root {
    /* Colors */
    --navy-950: #0b1524;
    --navy-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --sky-500: #0ea5e9;
    --sky-400: #38bdf8;
    --sky-100: #e0f2fe;
    --teal: #0098b9;
    --white: #ffffff;

    /* Typography */
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-serif: "Liberation Serif", "Times New Roman", Times, serif;

    /* Layout */
    --container: 1440px;
    --gutter: 32px;
    --section-y: 96px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);
    --radius-pill: 9999px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--slate-600);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.d-block {
    display: block;
}

.icon {
    display: block;
    flex-shrink: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 1000px;
}

/* ---------- Shared: headings ---------- */
.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 11px;
    line-height: 16.5px;
    font-weight: 700;
    letter-spacing: 2.75px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.eyebrow--light {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 2.4px;
    color: var(--sky-400);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.9px;
    text-transform: uppercase;
    color: var(--navy-950);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.section-title .hl {
    display: block;
    color: var(--primary);
}

.section-title--light {
    color: var(--white);
    text-transform: none;
}

.accent-bar {
    display: block;
    width: 48px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--primary);
}

.accent-bar--wide {
    width: 64px;
    border-radius: 4px;
}

.accent-bar--light {
    background: var(--sky-400);
}

/* "wide" variant used by the care model & key services headings */
.section-heading--wide {
    max-width: 672px;
}

.section-heading--wide .eyebrow {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 3px;
}

.section-heading--wide .section-title {
    padding-bottom: 8px;
}

.section-heading--wide .accent-bar {
    width: 64px;
    border-radius: 4px;
}

/* Intro heading is title-case and navy/primary */
.section-heading--intro {
    max-width: none;
    gap: 0;
}

.section-heading--intro .section-title {
    text-transform: none;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.section-heading--intro .eyebrow {
    margin-bottom: 12px;
}

/* ---------- Shared: buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn--primary {
    padding: 16px 32px;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover,
.btn--pill:hover {
    background: var(--primary-dark);
}

.btn--glass {
    gap: 10px;
    padding: 17px 29px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    text-transform: none;
}

.btn--glass:hover {
    background: rgba(255, 255, 255, .18);
}

.btn--pill {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0.65px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.btn--lg {
    gap: 12px;
    padding: 14px 24px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.7px;
    box-shadow: var(--shadow-lg);
}

.btn__circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .2);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--primary);
}

.link-arrow--sm {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

.link-arrow .icon {
    transition: transform .2s;
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.top-bar {
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px;
    line-height: 16px;
    text-transform: uppercase;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.top-bar__phone,
.top-bar__right,
.top-bar__referral {
    display: flex;
    align-items: center;
}

.top-bar__phone {
    gap: 10px;
}

.top-bar__right {
    gap: 24px;
}

.top-bar__label {
    font-weight: 500;
    letter-spacing: 0.55px;
    color: var(--slate-400);
}

.top-bar__right .top-bar__label {
    font-weight: 600;
}

.top-bar__number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--white);
}

.top-bar__referral {
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.55px;
    color: var(--slate-300);
}

.top-bar__referral:hover {
    color: var(--white);
}

.top-bar__divider {
    font-weight: 600;
    color: var(--slate-700);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    box-shadow: var(--shadow-sm);
}

.site-header {
    transition: box-shadow .25s, background-color .25s;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    transition: padding .25s;
}

/* Compact state once the page is scrolled (class toggled in main.js) */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-md);
}

.site-header.is-scrolled .site-header__inner {
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header.is-scrolled .brand__logo {
    height: 40px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand__logo {
    display: block;
    width: auto;
    height: 52px;
    transition: height .25s;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 0 8px;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: var(--slate-700);
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
    background: var(--slate-100);
    color: var(--navy-950);
}

.main-nav__chevron {
    transition: transform .2s;
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: var(--slate-700);
}

.dropdown a:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.has-dropdown:hover .main-nav__chevron,
.has-dropdown.is-open .main-nav__chevron {
    transform: rotate(180deg);
}

.nav-toggle {
    display: none;
}

/* Drawer-only parts are hidden on desktop; the CTA stays inline in the nav */
.nav-overlay,
.main-nav__head,
.main-nav__phone {
    display: none;
}

.main-nav__foot {
    display: contents;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 720px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--slate-200);
    overflow: hidden;
}

.hero__media,
.hero__media::before,
.hero__media::after {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__media::before {
    content: "";
    background: linear-gradient(to right, rgba(2, 6, 23, .9), rgba(2, 6, 23, .75) 50%, rgba(15, 23, 42, .6));
    z-index: 1;
}

.hero__media::after {
    content: "";
    background: linear-gradient(to top, rgba(2, 6, 23, .8), rgba(2, 6, 23, 0) 50%, rgba(2, 6, 23, .4));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 157.75px;
    padding-bottom: 141.75px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 11px;
    line-height: 16.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--white);
}

.hero__badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky-400);
    flex-shrink: 0;
}

.hero__eyebrow {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 3.92px;
    text-transform: uppercase;
    color: var(--sky-400);
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 54px;
    line-height: 54px;
    color: var(--white);
}

.hero__title-line:first-child {
    letter-spacing: -1.35px;
}

.hero__title em {
    color: var(--sky-400);
}

.hero__text {
    max-width: 672px;
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 28px;
    color: var(--slate-200);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Trust strip along the bottom of the hero */
.hero__features {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(to bottom, rgba(2, 6, 23, .72), rgba(2, 6, 23, .88));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}



.hero__features-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero__feature {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    transition: background-color .25s;
}

.hero__feature+.hero__feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 28px;
    width: 1px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .14);
}

.hero__feature:hover {
    background: rgba(255, 255, 255, .03);
}

.hero__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 10px;
    background: rgba(56, 189, 248, .1);
    transition: transform .25s, background-color .25s;
}

.hero__feature:hover .hero__feature-icon {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, .18);
}

.hero__feature-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .1px;
    color: var(--white);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
    padding: 79px 0 81px;
    background: var(--slate-100);
    border-bottom: 1px solid var(--slate-200);
}

.intro__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: var(--slate-600);
}

/* ==========================================================================
   Meet the doctors
   ========================================================================== */
.doctors {
    padding: 95px 0 97px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.doctors__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
    margin-top: 56px;
    align-items: start;
}

.doctors__list {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 23px 0;
}

.doctor-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.doctor-tab:hover {
    border-color: var(--slate-300);
    box-shadow: var(--shadow-md);
}

.doctor-tab.is-active {
    padding: 16px;
    border: 2px solid var(--primary);
    background: #f0f9ff;
    box-shadow: 0 8px 20px -10px rgba(2, 132, 199, .35);
}

.doctor-tab__chevron {
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform .25s;
}

.doctor-tab:hover .doctor-tab__chevron,
.doctor-tab.is-active .doctor-tab__chevron {
    transform: translateX(3px);
}

.doctor-tab__info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.doctor-tab__avatar {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 1px;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: var(--slate-100);
    overflow: hidden;
}

/* Round crop that places the photo's focus point (--fx, --fy) at the centre, without showing edges */
.doctor-tab__photo {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
}

.doctor-tab__photo img {
    position: absolute;
    max-width: none;
    height: calc(100% * var(--zoom, 1));
    width: calc(100% * var(--zoom, 1) * var(--ratio, 1.5));
    left: clamp(calc(100% - 100% * var(--zoom, 1) * var(--ratio, 1.5)), calc(50% - 100% * var(--zoom, 1) * var(--ratio, 1.5) * var(--fx, .5)), 0%);
    top: clamp(calc(100% - 100% * var(--zoom, 1)), calc(50% - 100% * var(--zoom, 1) * var(--fy, .5)), 0%);
}

.doctor-tab__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.doctor-tab__name {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: var(--navy-900);
}

.doctor-tab__title {
    font-size: 11px;
    line-height: 16.5px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: var(--slate-500);
}

.doctor-tab.is-active .doctor-tab__title {
    font-weight: 700;
    color: var(--primary);
}

.doctor-tab .chevron-active,
.doctor-tab.is-active .chevron-idle {
    display: none;
}

.doctor-tab.is-active .chevron-active {
    display: block;
}

.doctor-card {
    grid-column: span 8;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
    padding: 41px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.doctor-card__media {
    grid-column: span 5;
}

.doctor-card__photo {
    position: relative;
    padding: 1px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.doctor-card__photo img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: opacity .25s ease, transform .4s ease;
}

.doctor-card__body {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity .25s ease, transform .25s ease;
}

.doctor-card__name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.75px;
    color: var(--navy-950);
}

.doctor-card__title {
    margin-top: -12px;
    /* 4px gap to name in design */
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--primary);
}

.doctor-card__bio {
    font-size: 16px;
    line-height: 24px;
    color: var(--slate-600);
}

.doctor-card__bio:empty {
    display: none;
}

.doctor-card .link-arrow {
    padding: 14px 0 2px;
}

.doctor-card.is-switching .doctor-card__photo img {
    opacity: 0;
    transform: scale(1.02);
}

.doctor-card.is-switching .doctor-card__body {
    opacity: 0;
    transform: translateY(6px);
}

/* ==========================================================================
   On-site lab & anesthesia
   ========================================================================== */
.lab {
    padding: 96px 0 97px;
    background: var(--navy-950);
    border-bottom: 1px solid var(--slate-800);
}

.lab__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.lab__media {
    position: relative;
    margin: 0;
    padding: 0 24px 24px 0; /* room for the offset frame */
}

/* Thin outline frame offset behind the photo */
.lab__media::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 20px;
}

.lab__photo {
    position: relative;
    padding: 1px;
    border: 1px solid rgba(51, 65, 85, .6);
    border-radius: 16px;
    background: var(--navy-900);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.lab__photo img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.lab__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, .7), rgba(2, 6, 23, 0) 50%, rgba(2, 6, 23, 0));
    pointer-events: none;
}

.lab__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lab__content .section-title {
    margin-bottom: 8px;
}

.lab__text {
    margin: 24px 0;
    color: var(--slate-300);
}

.lab__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--slate-200);
}

.lab__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab__list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky-400);
}

/* ==========================================================================
   Care model
   ========================================================================== */
.care-model {
    padding: 96px 0 97px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}

.care-model__card {
    max-width: calc(1000px + 84px);
    /* image max 1000px + padding & border */
    margin: 64px auto 0;
    padding: 41px;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.care-model__card img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}

/* Card version of the care model – replaces the graphic below 900px, styled like the live site */
.care-pillars {
    display: none;
}

@media (max-width: 899px) {
    .care-model__card {
        display: none;
    }

    .care-pillars {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin: 40px auto 0;
    }

    .care-pillar {
        padding: 0 28px 40px;
        text-align: center;
    }

    /* divider lines: vertical between the two columns, horizontal between the rows */
    .care-pillar:nth-child(odd) {
        border-right: 1px solid var(--slate-200);
    }

    .care-pillar:nth-child(n+3) {
        padding-top: 40px;
        border-top: 1px solid var(--slate-200);
    }

    .care-pillar__media {
        position: relative;
        width: 200px;           /* icon size (live site uses the full column width) */
        max-width: 100%;
        margin: 0 auto 48px;
    }

    .care-pillar__icon {
        display: block;
        width: 100%;
        height: auto;
    }

    /* white ring with navy outline and a filled navy centre, overlapping the icon's bottom edge */
    .care-pillar__marker {
        position: absolute;
        left: 50%;
        bottom: -26px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        transform: translateX(-50%);
        border: 1px solid #142f4c;
        border-radius: 50%;
        background: var(--white);
        box-shadow: 0 0 0 9px var(--white);
    }

    .care-pillar__marker::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: #142f4c;
    }

    .care-pillar__marker span {
        font-family: var(--font-serif);
        font-size: 20px;
        line-height: 20px;
        font-weight: 600;
        color: #142f4c;
    }

    .care-pillar__title {
        margin-bottom: 10px;
        font-family: var(--font-serif);
        font-weight: 600;
        font-size: 17px;
        line-height: 22px;
        color: #383838;
    }

    .care-pillar__text {
        font-size: 17px;
        line-height: 30.6px;
        font-weight: 300;
        letter-spacing: 1.02px;
        color: #383838;
    }
}

@media (max-width: 599px) {
    .care-pillars {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    /* stacked: a horizontal line between each item */
    .care-pillar,
    .care-pillar:nth-child(odd),
    .care-pillar:nth-child(n+3) {
        padding: 36px 8px;
        border-right: 0;
        border-top: 1px solid var(--slate-200);
    }

    .care-pillar:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .care-pillar:last-child {
        padding-bottom: 0;
    }

    .care-pillar__media {
        width: 180px;
    }
}

/* ==========================================================================
   Key services timeline
   ========================================================================== */
.key-services {
    padding: 97px 20px;
    background: var(--slate-100);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 64px;
}

.timeline {
    /* Line geometry is measured from the first to the last pin in main.js */
    --line-x: 50%;
    --line-top: 40px;
    --line-height: calc(100% - 80px);
    --progress: 0;
}

.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: var(--line-top);
    left: var(--line-x);
    width: 2px;
    height: var(--line-height);
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--slate-300);
}

/* Scroll-driven fill that "draws" the line between the numbered pins */
.timeline::after {
    width: 4px;
    background: linear-gradient(to bottom, var(--sky-400), var(--primary));
    box-shadow: 0 0 12px rgba(14, 165, 233, .45);
    transform: translateX(-50%) scaleY(var(--progress));
    transform-origin: top;
}

.timeline__item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.timeline__media {
    grid-column: 1 / span 5;
    grid-row: 1;
    padding: 13px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.timeline__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    /* service images are ~square; 5:4 keeps most of each image */
    object-fit: cover;
    border-radius: 12px;
}

.timeline__pin {
    grid-column: 6 / span 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--sky-500);
    box-shadow: var(--shadow-md);
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: var(--white);
    transition: background-color .35s, color .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}

/* ---- Scroll animation states (only when JS is running) ---- */
.js .timeline__pin {
    background: var(--white);
    color: var(--slate-400);
    box-shadow: 0 0 0 2px var(--slate-300), var(--shadow-sm);
}

.js .timeline__item.is-active .timeline__pin {
    background: var(--sky-500);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(14, 165, 233, .18), var(--shadow-md);
}

.js .timeline__media,
.js .timeline__content {
    opacity: 0;
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

.js .timeline__media {
    transform: translateX(-40px);
}

.js .timeline__content {
    transform: translateX(40px);
    transition-delay: .1s;
}

.js .timeline__item--reverse .timeline__media {
    transform: translateX(40px);
}

.js .timeline__item--reverse .timeline__content {
    transform: translateX(-40px);
}

.js .timeline__item.is-visible .timeline__media,
.js .timeline__item.is-visible .timeline__content {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .js .timeline__media,
    .js .timeline__content {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .timeline__pin,
    .timeline::after {
        transition: none;
    }
}

.timeline__content {
    grid-column: 8 / span 5;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.timeline__item--reverse .timeline__media {
    grid-column: 8 / span 5;
}

.timeline__item--reverse .timeline__content {
    grid-column: 1 / span 5;
}

.timeline__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: var(--navy-950);
}

.timeline__text {
    color: var(--slate-600);
}

.timeline__content .link-arrow {
    padding-top: 8px;
}

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
    padding: 95px 0 97px;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}

.services-grid__text {
    max-width: 672px;
    margin: 8px auto 0;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: var(--slate-600);
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 64px;
}

.pill-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 78px;
    padding: 17px 25px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-pill);
    background: var(--slate-50);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05));
    transition: background-color .2s, border-color .2s, transform .2s;
}

.pill-card:hover {
    background: var(--white);
    border-color: var(--sky-400);
    transform: translateY(-2px);
}

.pill-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sky-100);
    border-radius: 50%;
    background: var(--white);
}

.pill-card__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.pill-card__label {
    font-size: 10px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.pill-card__title {
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 700;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: var(--white);
    transition: transform .2s;
}

.pill-card:hover .pill-card__arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 65px 0 48px;
    background: var(--navy-950);
    border-top: 1px solid var(--slate-800);
    font-size: 12px;
    line-height: 19.5px;
    color: var(--slate-400);
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 49px;
    border-bottom: 1px solid var(--slate-800);
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Social icons (single-colour SVGs used as masks so they follow the text colour) */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social-links__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    color: var(--slate-300);
    transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}

.social-links__link:hover,
.social-links__link:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.social-links__icon {
    display: block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.footer-brand {
    display: block;
    align-self: flex-start;
    width: auto;
    height: 48px;
}

.site-footer__text {
    max-width: 260px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.site-footer__heading {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--white);
}

.site-footer__phone {
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: var(--sky-400);
}

.site-footer__phone:hover,
.site-footer__directions:hover {
    color: var(--white);
}

.site-footer__note {
    line-height: 16px;
}

.site-footer__lines {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: var(--slate-300);
}

address.site-footer__lines {
    text-transform: uppercase;
}

.site-footer__directions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    line-height: 16px;
    color: var(--sky-400);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-footer__links a:hover {
    color: var(--white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
    .main-nav__link {
        padding: 8px 8px;
    }

    .main-nav__list {
        gap: 0;
        padding: 0;
    }

    .site-header__cta {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 1300px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border-radius: 8px;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background: var(--navy-950);
        border-radius: 2px;
        transition: transform .2s, opacity .2s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---- Off-canvas drawer ---- */
    .site-header {
        /* backdrop-filter would trap the fixed-position drawer inside the header */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 190;
        display: block;
        background: rgba(2, 6, 23, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s ease, visibility .35s;
    }

    .nav-overlay[hidden] {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(340px, 86vw);
        height: 100vh;
        height: 100dvh;
        padding: 0;
        background: var(--white);
        box-shadow: -12px 0 40px rgba(2, 6, 23, .18);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .4s cubic-bezier(.22, 1, .36, 1), visibility .4s;
    }

    .main-nav.is-open {
        transform: none;
        visibility: visible;
    }

    .nav-is-open .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .nav-is-open,
    .nav-is-open body {
        overflow: hidden;
    }

    .main-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 20px;
        border-bottom: 1px solid var(--slate-200);
    }

    .main-nav__logo {
        width: auto;
        height: 38px;
    }

    .main-nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--slate-100);
        color: var(--navy-950);
        transition: background-color .2s, transform .2s;
    }

    .main-nav__close:hover {
        background: var(--slate-200);
        transform: rotate(90deg);
    }

    .main-nav__list {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-nav__item {
        border-bottom: 1px solid var(--slate-200);
    }

    .main-nav__link {
        width: 100%;
        justify-content: space-between;
        padding: 15px 20px;
        border-radius: 0;
        font-size: 16px;
        line-height: 22px;
        font-weight: 600;
        color: var(--navy-950);
        text-align: left;
    }

    .main-nav__link:hover,
    .main-nav__link:focus-visible {
        background: var(--slate-50);
        color: var(--primary);
    }

    .main-nav__chevron {
        width: 11px;
        height: auto;
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px;
        border: 0;
        border-radius: 0;
        background: var(--slate-50);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown a {
        padding: 11px 20px 11px 32px;
        border-radius: 0;
        font-size: 15px;
        font-weight: 500;
        color: var(--slate-600);
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .has-dropdown:hover .main-nav__chevron {
        transform: none;
    }

    .has-dropdown.is-open .main-nav__chevron {
        transform: rotate(180deg);
    }

    .has-dropdown.is-open>.main-nav__link {
        color: var(--primary);
    }

    .main-nav__foot {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--slate-200);
    }

    .site-header__cta {
        justify-content: center;
        padding: 14px 24px;
        border-radius: 10px;
    }

    .main-nav__phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 16px;
        line-height: 22px;
        font-weight: 600;
        color: var(--navy-950);
    }

    .main-nav__phone:hover {
        color: var(--primary);
    }
}

@media (max-width: 991px) {
    .hero__feature {
        gap: 10px;
        padding: 16px 8px;
    }

    .hero__feature-label {
        font-size: 13px;
        line-height: 18px;
    }

    :root {
        --section-y: 72px;
    }

    .doctors__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doctors__list,
    .doctor-card {
        grid-column: auto;
    }

    .doctors__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
    }

    .doctor-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .doctor-card__media,
    .doctor-card__body {
        grid-column: auto;
    }

    .doctor-card__photo img {
        height: 380px;
    }

    .lab__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lab__photo img {
        height: 380px;
    }


    .timeline {
        --line-x: 24px;
    }

    .js .timeline__media,
    .js .timeline__content,
    .js .timeline__item--reverse .timeline__media,
    .js .timeline__item--reverse .timeline__content {
        transform: translateY(24px);
    }

    .timeline__item,
    .timeline__item--reverse {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 24px;
        row-gap: 20px;
    }

    .timeline__pin {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
    }

    .timeline__media,
    .timeline__item--reverse .timeline__media {
        grid-column: 2;
        grid-row: 1;
    }

    .timeline__content,
    .timeline__item--reverse .timeline__content {
        grid-column: 2;
        grid-row: 2;
    }

    .key-services {
        padding-left: 0;
        padding-right: 0;
    }

    .pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 16px;
    }

    html {
        scroll-padding-top: 90px;
    }

    .top-bar__right {
        display: none;
    }

    .top-bar__inner {
        justify-content: center;
    }

    .site-header__inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand__logo,
    .site-header.is-scrolled .brand__logo {
        height: 38px;
    }

    .hero {
        min-height: 0;
    }

    .hero__content {
        padding-top: 72px;
        padding-bottom: 64px;
    }

    .hero__badge {
        font-size: 9.5px;
        letter-spacing: 1.2px;
        line-height: 14px;
        border-radius: 16px;
    }

    .hero__eyebrow {
        font-size: 12px;
        letter-spacing: 2.6px;
    }

    .hero__title {
        font-size: 38px;
        line-height: 42px;
    }

    .hero__text {
        font-size: 16px;
        line-height: 26px;
    }

    .hero__actions {
        width: 100%;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .hero__features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__feature {
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 12px;
    }

    .hero__feature+.hero__feature::before {
        display: none;
    }

    .hero__feature:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, .1);
    }

    .hero__feature:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .hero__feature-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .hero__feature-label {
        font-size: 12.5px;
        line-height: 17px;
    }

    .hero__features-list.container {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        font-size: 25px;
        line-height: 32px;
        letter-spacing: -0.6px;
    }

    .eyebrow {
        letter-spacing: 1.8px;
    }

    .intro {
        padding: 56px 0;
    }

    .intro__body {
        font-size: 16px;
        line-height: 26px;
    }

    .doctors,
    .lab,
    .care-model,
    .key-services,
    .services-grid {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .doctors__layout {
        margin-top: 40px;
    }

    /* Doctor tabs become one swipeable row */
    .doctors__list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }

    .doctors__list::-webkit-scrollbar {
        display: none;
    }

    .doctor-tab {
        flex: 0 0 auto;
        width: auto;
        max-width: 280px;
        scroll-snap-align: start;
    }

    .doctor-tab__chevron {
        display: none;
    }

    .doctor-card {
        padding: 16px;
    }

    .doctor-card__photo img {
        height: 320px;
    }

    .doctor-card__name {
        font-size: 26px;
        line-height: 32px;
    }

    .lab__photo img {
        height: 260px;
    }

    .lab__media {
        padding: 0 14px 14px 0;
    }

    .lab__media::before {
        top: 14px;
        left: 14px;
        border-radius: 16px;
    }

    .lab__list li {
        align-items: flex-start;
    }

    .lab__list li::before {
        margin-top: 8px;
    }

    .care-model__card {
        margin-top: 40px;
        padding: 12px;
        border-radius: 16px;
    }

    .timeline {
        margin-top: 40px;
        gap: 48px;
    }

    .timeline {
        --line-x: 18px;
    }

    .timeline__item,
    .timeline__item--reverse {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 16px;
    }

    .timeline__pin {
        width: 36px;
        height: 36px;
        border-width: 3px;
        font-size: 15px;
    }

    .timeline__media {
        padding: 8px;
    }



    .services-grid__text {
        font-size: 16px;
        line-height: 26px;
    }

    .pill-grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 40px;
    }

    .pill-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .site-footer {
        padding-top: 48px;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__links {
        flex-wrap: wrap;
        gap: 12px 16px;
    }
}

/* ==========================================================================
   Inner pages: title banner + legal content (privacy-policy.php, terms-conditions.php)
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    text-align: center;
}

.page-hero__media,
.page-hero__media::after {
    position: absolute;
    inset: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.page-hero__media::after {
    content: "";
    background: linear-gradient(to bottom, rgba(2, 6, 23, .82), rgba(11, 21, 36, .92));
}

.page-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 88px;
    padding-bottom: 80px;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--slate-300);
}

.breadcrumb a { color: var(--sky-400); }
.breadcrumb a:hover { color: var(--white); }

.page-hero__cta { margin-top: 10px; }

.legal {
    padding: 72px 0 96px;
    background: var(--white);
}

.legal-content {
    font-size: 16px;
    line-height: 28px;
    color: var(--slate-600);
}

.legal-content > * + * { margin-top: 18px; }

.legal-content__updated {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--sky-100);
    border-radius: var(--radius-pill);
    background: #f0f9ff;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--primary-dark);
}

.legal-content h2 {
    margin-top: 44px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-200);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: var(--navy-950);
}

.legal-content h3 {
    margin-top: 26px;
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    color: var(--navy-900);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.legal-content a:hover { color: var(--primary-dark); }

.legal-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content ul li {
    position: relative;
    padding-left: 22px;
}

.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sky-500);
}

.legal-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: step;
}

.legal-steps > li {
    position: relative;
    padding: 18px 20px 18px 64px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
    counter-increment: step;
}

.legal-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.legal-steps h3 { margin-top: 0; }
.legal-steps p { margin-top: 4px; }

@media (max-width: 767px) {
    .page-hero__content { padding-top: 56px; padding-bottom: 52px; }
    .page-hero__title { font-size: 32px; }
    .legal { padding: 48px 0 64px; }
    .legal-content h2 { margin-top: 36px; font-size: 20px; line-height: 28px; }
    .legal-steps > li { padding: 16px 16px 16px 56px; }
    .legal-steps > li::before { left: 14px; top: 16px; }
}

/* ==========================================================================
   Animations
   Uses animation (not transition) with "backwards" fill so hover effects
   on the same elements keep working once an element has animated in.
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@keyframes stripIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

main {
    overflow-x: clip;
}

/* keeps sideways slide-ins from causing a horizontal scrollbar */

/* ---- Hero: plays once on page load ---- */
.js .hero__media img {
    animation: heroZoom 2.4s cubic-bezier(.22, 1, .36, 1) both;
}

.js .hero__content>* {
    animation: fadeUp .9s cubic-bezier(.22, 1, .36, 1) backwards;
}

.js .hero__content> :nth-child(1) {
    animation-delay: .15s;
}

.js .hero__content> :nth-child(2) {
    animation-delay: .3s;
}

.js .hero__content> :nth-child(3) {
    animation-delay: .42s;
}

.js .hero__content> :nth-child(4) {
    animation-delay: .6s;
}

.js .hero__content> :nth-child(5) {
    animation-delay: .75s;
}

.js .hero__features {
    animation: stripIn .8s cubic-bezier(.22, 1, .36, 1) .7s backwards;
}

.js .hero__feature {
    animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) backwards;
}

.js .hero__feature:nth-child(1) {
    animation-delay: .95s;
}

.js .hero__feature:nth-child(2) {
    animation-delay: 1.05s;
}

.js .hero__feature:nth-child(3) {
    animation-delay: 1.15s;
}

.js .hero__feature:nth-child(4) {
    animation-delay: 1.25s;
}

/* ---- Scroll reveal: elements with data-reveal (class toggled in main.js) ---- */
.js [data-reveal]:not(.is-revealed) {
    opacity: 0;
}

.js [data-reveal].is-revealed {
    animation: fadeUp .85s cubic-bezier(.22, 1, .36, 1) var(--delay, 0ms) backwards;
}

.js [data-reveal="left"].is-revealed {
    animation-name: fadeLeft;
}

.js [data-reveal="right"].is-revealed {
    animation-name: fadeRight;
}

.js [data-reveal="zoom"].is-revealed {
    animation-name: zoomIn;
    animation-duration: 1s;
}

@media (max-width: 767px) {

    /* sideways slides can cause overflow on narrow screens – rise up instead */
    .js [data-reveal="left"].is-revealed,
    .js [data-reveal="right"].is-revealed {
        animation-name: fadeUp;
    }
}

@media (prefers-reduced-motion: reduce) {

    .js .hero__media img,
    .js .hero__content>*,
    .js .hero__features,
    .js .hero__feature,
    .js [data-reveal].is-revealed {
        animation: none;
    }

    .js [data-reveal]:not(.is-revealed) {
        opacity: 1;
    }
}