/* ===========================================================================
   MEDIKET — Medical & Healthcare landing page
   ---------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives (container, section heads, eyebrow, titles)
   4.  Buttons
   5.  Animation engine (reveal, float, wiggle, preloader)
   6.  Topbar / Header / Navigation
   7.  Hero
   8.  Info cards
   9.  About
   10. Services
   11. Why choose us
   12. Treatments slider
   13. Doctors
   14. CTA band
   15. Appointment form
   16. Testimonials
   17. Marquee
   18. Blog
   19. Brands
   20. Footer
   21. Scroll-to-top ring
   22. Responsive
   23. Reduced motion
   =========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Palette — sampled directly from the reference design */
    --navy:        #041c33;
    --navy-header: #0b2540;
    --navy-panel:  #12283e;
    --navy-card:   #16293d;
    --blue:        #007eff;
    --blue-dark:   #0067d1;
    --blue-light:  #0495ff;
    --lime:        #dceaa2;
    --lime-dark:   #c9dc84;
    --ice:         #eef7ff;
    --ice-2:       #e6f2ff;
    --white:       #ffffff;

    --heading:     #041c33;
    --body:        #5b6b7c;
    --body-light:  rgba(255, 255, 255, .72);
    --line:        rgba(4, 28, 51, .10);
    --line-light:  rgba(255, 255, 255, .14);

    /* Type */
    --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Rubik', 'Segoe UI', system-ui, sans-serif;

    /* Metrics */
    --container: 1748px;
    --gutter: clamp(20px, 3.4vw, 64px);
    /* Distance from the viewport edge to the content column. Negating this on
       an element makes it bleed flush to the edge of the screen. */
    --bleed: calc((100vw - min(100vw, var(--container))) / 2 + var(--gutter));
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;

    /* Elevation */
    --shadow-sm: 0 6px 20px rgba(4, 28, 51, .06);
    --shadow:    0 18px 44px rgba(4, 28, 51, .09);
    --shadow-lg: 0 30px 70px rgba(4, 28, 51, .14);
    --shadow-blue: 0 16px 34px rgba(0, 126, 255, .32);

    /* Motion */
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --ease-out:  cubic-bezier(.16, 1, .3, 1);
    --dur:       .45s;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--heading);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s var(--ease);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    width: 1em;
    height: 1em;
    flex: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

::selection { background: var(--blue); color: #fff; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Honeypot field — visually removed but still reachable by bots */
.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.skip-link {
    position: absolute;
    top: -60px; left: 16px;
    z-index: 999;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    border-radius: 0 0 10px 10px;
    transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 3px;
}

/* Custom scrollbar (progressive enhancement) */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--ice); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }

/* Global scroll progress bar */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--lime));
    z-index: 200;
    transition: width .1s linear;
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-title {
    font-size: clamp(1.95rem, 2.85vw, 3.4rem);
}
.section-title--light  { color: var(--white); }
.section-title--center { text-align: center; }

.section-text {
    max-width: 46ch;
    margin-top: 22px;
    font-size: 1.05rem;
}
.section-text--light { color: var(--body-light); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--blue);
}
.eyebrow svg { width: 1.15em; height: 1.15em; }
.eyebrow--light  { color: var(--blue-light); }
.eyebrow--center { display: flex; justify-content: center; }

/* Section heading row: title left, action right */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 62px;
}

/* Thin rules */
.hr {
    display: block;
    height: 1px;
    margin: 34px 0;
    background: var(--line-light);
}
.hr--dark { background: var(--line); }

/* Check-mark lists */
.ticks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    font-size: 1.05rem;
    color: var(--body);
}
.ticks svg {
    width: 1.35em;
    height: 1.35em;
    color: var(--blue);
}
.ticks--light li { color: rgba(255, 255, 255, .85); }

/* Author / person chip */
.person {
    display: flex;
    align-items: center;
    gap: 18px;
}
.person img {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.person b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
}
.person span { font-size: .98rem; }

/* Circular icon buttons (slider arrows) */
.round-btn {
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    color: #fff;
    font-size: 20px;
    transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.round-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-4px) scale(1.06);
}
.round-btn:active { transform: scale(.94); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    --btn-bg: var(--blue);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .38s var(--ease), box-shadow .38s var(--ease),
                background .38s var(--ease), color .38s var(--ease);
}
.btn > span, .btn > svg { position: relative; z-index: 2; }
.btn svg { font-size: 1.05em; transition: transform .38s var(--ease); }

/* Sheen that sweeps across on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover  { transform: translateY(-4px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--pill { border-radius: 999px; }
.btn--lg   { padding: 19px 38px; font-size: 1.12rem; }

.btn--primary        { box-shadow: var(--shadow-blue); }
.btn--primary:hover   { background: var(--blue-dark); box-shadow: 0 22px 44px rgba(0, 126, 255, .42); }

.btn--dark            { --btn-bg: var(--navy); box-shadow: 0 16px 34px rgba(4, 28, 51, .3); }
.btn--dark:hover      { --btn-bg: #072a4b; }

.btn--ghost {
    --btn-bg: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
}
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--blue); }

.btn--outline-dark {
    --btn-bg: transparent;
    --btn-fg: var(--navy);
    border: 1px solid rgba(4, 28, 51, .35);
}
.btn--outline-dark:hover { --btn-bg: var(--navy); --btn-fg: #fff; }

.btn--soft {
    --btn-bg: var(--ice);
    --btn-fg: var(--heading);
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 500;
}
.btn--soft:hover { --btn-bg: var(--blue); --btn-fg: #fff; }

.btn--chip {
    --btn-bg: rgba(255, 255, 255, .1);
    --btn-fg: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: .95rem;
}
.btn--chip:hover { --btn-bg: var(--blue); }

/* ==========================================================================
   5. ANIMATION ENGINE
   ========================================================================== */

/* --- Scroll reveal: elements start hidden, JS adds .is-visible ----------- */
[data-anim] {
    opacity: 0;
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
    transition-delay: var(--anim-delay, 0ms);
    will-change: opacity, transform;
}
[data-anim="fade-up"]    { transform: translateY(46px); }
[data-anim="fade-down"]  { transform: translateY(-40px); }
[data-anim="fade-left"]  { transform: translateX(60px); }
[data-anim="fade-right"] { transform: translateX(-60px); }
[data-anim="zoom-in"]    { transform: scale(.9); }

[data-anim].is-visible {
    opacity: 1;
    transform: none;
}

/* --- Ambient floating --------------------------------------------------- */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
.float-slow { animation: float-y 5.5s ease-in-out infinite; }

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* --- Hero highlight letters gently wiggle in ---------------------------- */
@keyframes wiggle-in {
    0%   { opacity: 0; transform: translateY(24px) rotate(0deg); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
}
.wiggle {
    display: inline-block;
    --rot: 0deg;
    animation: wiggle-in .7s var(--ease-out) both;
    animation-delay: calc(600ms + var(--i) * 70ms);
}
.wiggle:nth-child(1) { --rot: -7deg; }
.wiggle:nth-child(2) { --rot:  4deg; }
.wiggle:nth-child(3) { --rot: -3deg; }
.wiggle:nth-child(4) { --rot:  6deg; }
.wiggle:nth-child(5) { --rot: -5deg; }
.wiggle:nth-child(6) { --rot:  3deg; }

/* --- Preloader ---------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: var(--navy);
    transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done {
    opacity: 0;
    visibility: hidden;
}
.preloader__pulse {
    font-size: 64px;
    color: var(--lime);
    animation: beat 1.1s ease-in-out infinite;
}
@keyframes beat {
    0%, 100% { transform: scale(1);    opacity: .85; }
    50%      { transform: scale(1.18); opacity: 1; }
}

/* ==========================================================================
   6. TOPBAR / HEADER / NAV
   ========================================================================== */
.topbar {
    display: flex;
    font-size: .98rem;
}
.topbar__left {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--gutter) 14px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    background: var(--lime);
    color: var(--navy);
}
.topbar__dot {
    width: 9px; height: 9px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    flex: none;
}
.topbar__right {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 42px;
    padding: 14px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 14px var(--gutter);
    background: var(--blue-light);
    color: #fff;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.topbar__item svg { font-size: 1.15em; }
.topbar__right a:hover { color: var(--lime); }

/* --- Header -------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--navy-header);
    transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-stuck {
    background: rgba(4, 28, 51, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 22px;
    transition: padding .4s var(--ease);
}
.header.is-stuck .header__inner { padding-block: 13px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.logo__mark {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--blue), #005fc4);
    color: var(--lime);
    font-size: 26px;
    transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.08); }

/* --- Navigation ---------------------------------------------------------- */
.nav { margin-inline: auto; }
.nav__list {
    display: flex;
    align-items: center;
    gap: 38px;
}
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .92);
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 4px;
    width: 100%; height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}
.nav__link:hover::after,
.nav__item.is-current > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: #fff; }
.nav__caret { font-size: .8em; transition: transform .35s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }
.nav__close { display: none; }

.dropdown {
    position: absolute;
    top: 100%; left: -18px;
    min-width: 218px;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}
.nav__item { position: relative; }
.nav__item.has-drop:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 1rem;
    color: var(--heading);
    transition: background .28s var(--ease), color .28s var(--ease), padding-left .28s var(--ease);
}
.dropdown a:hover {
    background: var(--ice);
    color: var(--blue);
    padding-left: 22px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.burger {
    display: none;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 24px;
    place-items: center;
    transition: transform .35s var(--ease), background .35s var(--ease);
}
.burger:hover { transform: scale(1.08); background: var(--blue-dark); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(4, 28, 51, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
    position: relative;
    background: var(--navy);
    overflow: hidden;
}

/* --- Hero Background Image --- */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/assets/images/Arogya_hospital.png') center/cover no-repeat;
    opacity: .15;
    filter: blur(2px);
    pointer-events: none;
}

.hero__grid-lines {
    position: absolute;
    inset: 0 0 0 48%;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(90deg, transparent, #000 22%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
    z-index: 1;
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 660px;
    padding-block: 90px 0;
}

/* Vertical social rail on the far left edge */
.hero__rail {
    position: absolute;
    left: -46px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, .55);
}
.hero__rail-label {
    writing-mode: vertical-rl;
    letter-spacing: .28em;
    font-size: .74rem;
}
.hero__rail-line { width: 1px; height: 46px; background: rgba(255, 255, 255, .3); }
.hero__rail a {
    font-size: 17px;
    transition: color .3s var(--ease), transform .3s var(--ease);
}
.hero__rail a:hover { color: var(--lime); transform: scale(1.25); }

.hero__eyebrow {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--blue-light);
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(2.6rem, 4.3vw, 5.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
}
.hero__title .line { display: block; }
.hero__highlight {
    display: inline-block;
    color: var(--lime);
}
.hero__text {
    max-width: 48ch;
    margin-top: 28px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.12rem;
}
.hero__inner .btn { margin-top: 40px; }

.hero__meta {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 62px;
    padding-bottom: 90px;
}
.hero__call { display: flex; align-items: center; gap: 18px; }
.hero__call-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .4);
}
.hero__call-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .98rem;
    color: rgba(255, 255, 255, .72);
}
.hero__call-label i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--lime);
}
.hero__call-number {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
}
.hero__call-number:hover { color: var(--lime); }
.hero__divider { width: 1px; height: 54px; background: rgba(255, 255, 255, .2); }
.hero__since {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}
.hero__since svg { font-size: 1.1em; color: var(--lime); }

.hero__media {
    position: relative;
    align-self: end;
    margin-right: calc(var(--bleed) * -1);  /* run off the right edge */
}
/* The photo is feathered on every edge so it dissolves into the navy
   background instead of sitting in a visible rectangle. */
.hero__photo {
    position: relative;
    border-radius: 240px 240px 0 0;
    overflow: hidden;
    --feather:
        linear-gradient(180deg, #000 80%, transparent 100%),
        linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
    mask-image: var(--feather);
    -webkit-mask-image: var(--feather);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}
.hero__photo img {
    width: 100%;
    aspect-ratio: 9 / 10;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.02);
    transition: transform 1.2s var(--ease);
}
.hero__media:hover .hero__photo img { transform: scale(1.06); }
.hero__badge {
    position: absolute;
    top: 8%; left: -4%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: #fff;
    color: #e5342b;
    font-size: 44px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   8. INFO CARDS
   ========================================================================== */
.infocards {
    padding-block: 74px 96px;
    background: var(--ice);
}
.infocards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.icard {
    position: relative;
    min-height: 430px;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.icard:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.icard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.icard__head h3 { font-size: 1.75rem; color: inherit; }
.icard__icon { font-size: 30px; opacity: .9; }
.icard__body { padding: 34px 36px 36px; }

.icard--dark { background: var(--navy); color: #fff; }
.icard--blue { background: var(--blue); color: #fff; }
.icard--lime { background: var(--lime); color: var(--navy); }
.icard--lime .icard__head { border-color: rgba(4, 28, 51, .14); }

/* Schedule list */
.schedule { padding: 12px 36px 30px; }
.schedule li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .18);
    font-family: var(--font-head);
    font-weight: 500;
}
.schedule li:last-child { border-bottom: 0; }
.schedule b { font-weight: 500; }

/* Find-doctors card */
.avatars { display: flex; }
.avatars img {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue);
    margin-left: -14px;
    transition: transform .4s var(--ease);
}
.avatars img:first-child { margin-left: 0; }
.icard--blue:hover .avatars img:nth-child(1) { transform: translateY(-6px); }
.icard--blue:hover .avatars img:nth-child(2) { transform: translateY(-6px) scale(1.06); }
.icard--blue:hover .avatars img:nth-child(3) { transform: translateY(-6px); }

.icard__label { margin-top: 26px; font-size: 1.08rem; }
.icard__stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 2px 0 30px;
}
.icard__stat b {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.icard__stat span { font-size: 1.3rem; font-family: var(--font-head); }
.icard__photo {
    position: absolute;
    right: 0; bottom: 0;
    width: 47%;
    max-width: 240px;
    --feather:
        linear-gradient(90deg, transparent 0%, #000 34%),
        linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: var(--feather);
    -webkit-mask-image: var(--feather);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    transition: transform .6s var(--ease);
}
.icard--blue:hover .icard__photo { transform: translateY(-8px) scale(1.03); }

/* Appointment card */
.icard__text { font-size: 1.06rem; max-width: 34ch; }
.icard__call {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 34px 0 38px;
}
.icard__call-icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 26px;
    transition: transform .4s var(--ease);
}
.icard--lime:hover .icard__call-icon { transform: rotate(-12deg) scale(1.06); }
.icard__call-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .98rem;
}
.icard__call-label i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--navy);
}
.icard__call-number {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}
.icard__blob {
    position: absolute;
    right: -60px; bottom: -80px;
    width: 260px; aspect-ratio: 1;
    border: 30px solid rgba(4, 28, 51, .05);
    border-radius: 50%;
}

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about {
    position: relative;
    padding-block: 110px;
    background: linear-gradient(100deg, var(--ice) 0%, #fff 32%);
    overflow: hidden;
}
.about__grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr 1.4fr;
    gap: 56px;
    align-items: start;
}
.about__thumb {
    margin: 44px 0 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about__thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.about__thumb:hover img { transform: scale(1.07); }

.about__mid {
    padding-left: 56px;
    border-left: 1px solid var(--line);
}
.about__years {
    display: flex;
    align-items: center;
    gap: 26px;
}
.about__years-circle {
    display: grid;
    place-items: center;
    width: 122px; height: 122px;
    flex: none;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-head);
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -.03em;
    transition: transform .5s var(--ease);
}
.about__years:hover .about__years-circle { transform: scale(1.06) rotate(-6deg); }
.about__years h3 { font-size: 1.85rem; }

.about__quote {
    margin: 40px 0;
    padding-left: 24px;
    border-left: 3px solid var(--blue);
    font-size: 1.08rem;
}
.about__mid .ticks { margin-bottom: 34px; }
.about__mid .person {
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

/* Bleeds flush to the right edge of the viewport, as in the reference. */
.about__right {
    margin-right: calc(var(--bleed) * -1);
    border-radius: var(--radius) 0 0 var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about__right img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.about__right:hover img { transform: scale(1.06); }

/* ==========================================================================
   10. SERVICES
   ========================================================================== */
.services {
    padding-block: 108px;
    background: var(--navy);
}
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.services__photo {
    margin-top: 52px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(150deg, var(--blue-light), var(--blue));
}
.services__photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: .95;
    transition: transform 1s var(--ease), mix-blend-mode .4s;
}
.services__photo:hover img { transform: scale(1.06); mix-blend-mode: normal; }

.services__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.service {
    position: relative;
    display: flex;
    gap: 26px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--navy-card);
    transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.service::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(0, 126, 255, .5), rgba(220, 234, 162, .4)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .5s var(--ease);
}
.service:hover {
    transform: translateX(10px);
    background: #1b3350;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .3);
}
.service:hover::after { opacity: 1; }

.service__thumb {
    flex: none;
    width: 148px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.service__thumb img {
    width: 100%; height: 100%;
    min-height: 148px;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.service:hover .service__thumb img { transform: scale(1.1); }

.service__body { padding-right: 60px; }
.service__body h3 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 10px;
}
.service__body p {
    color: rgba(255, 255, 255, .62);
    font-size: .99rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.service__icon {
    position: absolute;
    top: 26px; right: 26px;
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--lime);
    font-size: 24px;
    transition: transform .5s var(--ease), background .5s var(--ease);
}
.service:hover .service__icon {
    background: var(--lime);
    color: var(--navy);
    transform: rotate(12deg) scale(1.08);
}

/* ==========================================================================
   11. WHY CHOOSE US
   ========================================================================== */
.why {
    position: relative;
    padding-block: 110px;
    background: linear-gradient(160deg, #f2f8ff, #eaf3fd 60%, #f7fbff);
    overflow: hidden;
}
.why__swoosh {
    position: absolute;
    top: -18%; right: -8%;
    width: 62%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .9), transparent 62%);
    pointer-events: none;
}
.why__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr .82fr;
    gap: 66px;
    align-items: start;
}
.why__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 56px;
    margin-top: 12px;
}
.feature {
    display: flex;
    gap: 22px;
    transition: transform .45s var(--ease);
}
.feature:hover { transform: translateY(-6px); }
.feature__icon {
    display: grid;
    place-items: center;
    width: 76px; height: 76px;
    flex: none;
    border-radius: 50%;
    background: var(--navy);
    color: var(--lime);
    font-size: 30px;
    transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease);
}
.feature:hover .feature__icon {
    background: var(--blue);
    color: #fff;
    transform: rotate(-10deg) scale(1.07);
}
.feature h3 { font-size: 1.4rem; margin-bottom: 8px; }
.feature p  { font-size: .99rem; line-height: 1.65; }

.journey {
    position: relative;
    margin-top: 96px;
    padding: 62px 44px 52px;
    border-radius: var(--radius-lg);
    background: var(--navy-panel);
    text-align: center;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
/* Faint chevron texture behind the card */
.journey::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, .04) 47% 53%, transparent 54%),
        linear-gradient(45deg,  transparent 46%, rgba(255, 255, 255, .04) 47% 53%, transparent 54%);
    background-size: 180px 180px;
}
.journey > * { position: relative; }
.journey__star {
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--navy);
    font-size: 40px;
}
.journey h3 { font-size: 2rem; color: #fff; margin-bottom: 18px; }
.journey p  { color: rgba(255, 255, 255, .7); margin-bottom: 38px; }

/* ==========================================================================
   12. TREATMENTS SLIDER
   ========================================================================== */
.treatments {
    padding-block: 104px;
    background: var(--navy);
    overflow: hidden;
}
.treatments__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.tslider { overflow: hidden; }
.tslider__track {
    display: flex;
    gap: 26px;
    transition: transform .75s var(--ease-out);
}
.tcard {
    position: relative;
    flex: 0 0 calc(50% - 13px);
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
}
.tcard img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.tcard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(4, 28, 51, .82));
}
.tcard:hover img { transform: scale(1.08); }
.tcard__tag,
.tcard__title { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); }
.tcard__tag {
    bottom: 90px;
    padding: 8px 24px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--navy);
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 500;
    white-space: nowrap;
}
.tcard__title {
    bottom: 34px;
    width: 100%;
    padding-inline: 16px;
    text-align: center;
    font-size: 1.6rem;
    color: #fff;
    transition: transform .5s var(--ease);
}
.tcard:hover .tcard__title { transform: translate(-50%, -6px); }

.tslider__nav { display: flex; gap: 16px; margin-top: 42px; }

.treatments__intro { position: relative; }
.stat-badge {
    position: absolute;
    right: 0; bottom: -30px;
    width: 250px;
    padding: 30px 26px;
    border-radius: var(--radius);
    background: var(--lime);
    color: var(--navy);
    text-align: center;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .28);
}
.stat-badge__icon { display: block; font-size: 44px; margin-bottom: 8px; }
.stat-badge b {
    display: block;
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}
.stat-badge > span:last-child { font-size: 1.02rem; }

/* ==========================================================================
   13. DOCTORS
   ========================================================================== */
.doctors {
    padding-block: 110px;
    background: linear-gradient(180deg, #f4faff, #eaf4ff);
}
.doctors__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.doctor {
    padding: 34px 30px 30px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .55), #fff 55%);
    text-align: center;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doctor:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}
.doctor__photo {
    width: 74%;
    max-width: 300px;
    margin: 0 auto 30px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(4, 28, 51, .1);
}
.doctor__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}
.doctor:hover .doctor__photo img { transform: scale(1.09); }
.doctor h3 { font-size: 1.6rem; margin-bottom: 16px; }
.doctor__role {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: .95rem;
    transition: background .35s var(--ease);
}
.doctor:hover .doctor__role { background: var(--navy); }
.doctor__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.doctor__socials a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--heading);
    font-size: 16px;
    transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.doctor__socials a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-4px);
}

/* ==========================================================================
   14. CTA BAND
   ========================================================================== */
.cta {
    position: relative;
    padding-block: 60px;
    background:
        linear-gradient(90deg, rgba(0, 126, 255, .96), rgba(0, 126, 255, .88)),
        url('https://images.pexels.com/photos/8460372/pexels-photo-8460372.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
    color: #fff;
}
.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    flex-wrap: wrap;
}
.cta h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.7rem);
    color: #fff;
}
.cta__rating {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cta__star { font-size: 54px; }
.cta__rating b {
    font-family: var(--font-head);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}
.cta__rating-label { font-size: 1.02rem; line-height: 1.4; }

/* ==========================================================================
   15. APPOINTMENT FORM
   ========================================================================== */
.appointment {
    padding-block: 110px;
    background: var(--navy);
}
.appointment__grid {
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    gap: 46px;
    align-items: center;
}
.appointment__media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.appointment__media img {
    width: 100%;
    aspect-ratio: 7 / 6;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.appointment__media:hover img { transform: scale(1.05); }

.appointment__panel {
    padding: 52px 54px 58px;
    border-radius: var(--radius-lg);
    background: var(--navy-panel);
    box-shadow: var(--shadow-lg);
}
.appointment__panel .section-title { margin-bottom: 34px; }

.aform__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.field { position: relative; }
.field__icon {
    position: absolute;
    left: 22px; top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    color: var(--blue-light);
    font-size: 20px;
    pointer-events: none;
    transition: color .3s var(--ease);
}
.field input,
.field select {
    width: 100%;
    padding: 20px 22px 20px 76px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.02rem;
    transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field input::placeholder { color: rgba(255, 255, 255, .55); }
.field input:focus,
.field select:focus {
    outline: none;
    background: rgba(255, 255, 255, .1);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 126, 255, .18);
}
.field input:focus + label + .field__error { color: inherit; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 26px center;
    background-size: 18px;
    padding-right: 56px;
    cursor: pointer;
}
.field select option { background: var(--navy-panel); color: #fff; }
/* Native date picker indicator, tinted to match */
.field input[type="date"] { color-scheme: dark; }

.field.is-invalid input,
.field.is-invalid select { border-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.field__error {
    display: block;
    margin: 7px 0 0 26px;
    font-size: .84rem;
    color: #ff8f8f;
}
.field__error--block { margin-left: 0; }

.check {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 12px;
    margin: 26px 0 30px;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    user-select: none;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
    width: 22px; height: 22px;
    flex: none;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: background .3s var(--ease), transform .3s var(--ease);
}
.check__box::after {
    content: '';
    position: absolute;
    left: 7px; top: 3px;
    width: 6px; height: 11px;
    border: solid var(--navy);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .28s var(--ease);
}
.check input:checked + .check__box { background: var(--lime); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.check:hover .check__box { transform: scale(1.08); }
.check.is-invalid .check__box { box-shadow: 0 0 0 3px rgba(255, 107, 107, .5); }

/* Inline feedback banners */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: .98rem;
    animation: pop-in .5s var(--ease-out) both;
}
.alert svg { font-size: 20px; margin-top: 2px; }
.alert--success { background: rgba(220, 234, 162, .14); border: 1px solid var(--lime); color: var(--lime); }
.alert--error   { background: rgba(255, 107, 107, .12); border: 1px solid #ff6b6b; color: #ff9d9d; }
@keyframes pop-in {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */
.testimonials {
    padding-block: 0 90px;
    background: linear-gradient(160deg, #f4faff, #eaf4ff);
    overflow: hidden;
}
.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 66px;
    align-items: center;
}
.testimonials__media {
    position: relative;
    align-self: end;
    margin-left: calc(var(--bleed) * -1);   /* bleed to the left viewport edge */
}
.testimonials__media img {
    width: 100%;
    aspect-ratio: 9 / 10;
    object-fit: cover;
    object-position: top center;
    mask-image: linear-gradient(180deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
}
.testimonials__pin {
    position: absolute;
    top: 8%; left: 26%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    border-radius: 50% 50% 50% 6px;
    background: var(--navy);
    color: var(--lime);
    font-size: 40px;
    transform: rotate(-45deg);
}
.testimonials__pin svg { transform: rotate(45deg); }

.glass-stat {
    position: absolute;
    left: 46%; bottom: 12%;
    z-index: 2;
    width: 260px;
    padding: 30px 24px 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .5s var(--ease);
}
.glass-stat:hover { transform: translateY(-8px); }
.glass-stat__icon {
    display: grid;
    place-items: center;
    width: 66px; height: 66px;
    margin: -56px auto 14px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 28px;
}
.glass-stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--heading);
}
.glass-stat > span:last-child { font-size: 1rem; }

.quotes { position: relative; margin-top: 40px; }
.quote {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.quote.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
}
.quote__mark {
    display: block;
    font-size: 54px;
    color: var(--blue);
    margin-bottom: 8px;
}
.quote__text {
    font-size: 1.12rem;
    line-height: 1.95;
    padding: 0 40px 30px 0;
}
.quote__stars {
    display: flex;
    gap: 5px;
    font-size: 22px;
    color: #ffb400;
    padding-bottom: 34px;
}
/* Card background + speech-bubble tail */
.quotes::before {
    content: '';
    position: absolute;
    inset: -40px -30px 46px -40px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .35));
    box-shadow: var(--shadow-sm);
    z-index: -1;
}
.quote__author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 34px;
}
.quote__author img {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.quote__author b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading);
}
.quotes__dots { display: flex; gap: 10px; margin-top: 30px; }
.quotes__dots button {
    width: 11px; height: 11px;
    border-radius: 999px;
    background: rgba(4, 28, 51, .22);
    transition: width .4s var(--ease), background .4s var(--ease);
}
.quotes__dots button.is-active { width: 34px; background: var(--blue); }

/* ==========================================================================
   17. MARQUEE
   ========================================================================== */
.marquee {
    padding-block: 26px;
    background: var(--blue);
    overflow: hidden;
}
.marquee__track {
    display: flex;
    align-items: center;
    gap: 54px;
    width: max-content;
    animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__word {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 2.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: .01em;
    color: #fff;
    white-space: nowrap;
}
.marquee__sep {
    font-size: 30px;
    color: rgba(255, 255, 255, .85);
    animation: spin-slow 9s linear infinite;
}

/* ==========================================================================
   18. BLOG
   ========================================================================== */
.blog {
    padding-block: 108px;
    background: var(--ice);
}
.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.post {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}
.post__thumb { overflow: hidden; }
.post__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .9s var(--ease);
}
.post:hover .post__thumb img { transform: scale(1.08); }
.post__meta {
    display: flex;
    gap: 34px;
    padding: 14px 30px;
    background: var(--lime);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--navy);
}
.post__body { padding: 32px 30px 34px; }
.post__body h3 {
    font-size: 1.55rem;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
    transition: color .35s var(--ease);
}
.post:hover .post__body h3 { color: var(--blue); }

/* ==========================================================================
   19. BRANDS
   ========================================================================== */
.brands {
    padding-block: 90px 100px;
    background: var(--ice);
}
.brands .section-title { margin-bottom: 46px; }
.brands__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 46px;
    border-top: 1px solid var(--line);
}
.brand {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 1.7vw, 1.85rem);
    font-weight: 600;
    color: rgba(4, 28, 51, .26);
    filter: grayscale(1);
    transition: color .4s var(--ease), transform .4s var(--ease), opacity .4s var(--ease);
}
.brand:hover {
    color: var(--blue);
    transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.footer {
    padding-top: 92px;
    background: var(--navy);
    color: rgba(255, 255, 255, .68);
}
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-light);
}
.footer__award {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2vw, 2.35rem);
    font-weight: 800;
    color: #fff;
}
.footer__award-line { width: 58px; height: 2px; background: #fff; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.5fr;
    gap: 56px;
    padding-block: 62px 70px;
}
.footer__col h3 {
    font-size: 1.85rem;
    color: #fff;
    margin-bottom: 28px;
}
.footer__text { margin-bottom: 30px; max-width: 40ch; }
.footer__address {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
}
.footer__link {
    display: block;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.footer__link:hover { color: var(--lime); }

.footer__list li { margin-bottom: 14px; }
.footer__list a {
    position: relative;
    display: inline-block;
    font-size: 1.06rem;
    transition: transform .35s var(--ease), color .35s var(--ease);
}
.footer__list a:hover { color: var(--lime); transform: translateX(8px); }

.footer__col--wide { position: relative; }
.footer__note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 42ch;
}
.footer__bell {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--blue-light);
    font-size: 22px;
}

.subscribe {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 540px;
    border: 1px solid var(--line-light);
    border-radius: 10px;
    transition: border-color .35s var(--ease);
}
.subscribe:focus-within { border-color: var(--blue); }
.subscribe input {
    flex: 1;
    padding: 22px 70px 22px 26px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 1.02rem;
}
.subscribe input:focus { outline: none; }
.subscribe input::placeholder { color: rgba(255, 255, 255, .55); }
.subscribe button {
    position: absolute;
    right: 14px;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
    transition: transform .35s var(--ease), background .35s var(--ease);
}
.subscribe button:hover { transform: scale(1.12) translateX(3px); background: var(--blue-dark); }
.subscribe__msg { margin-top: 12px; font-size: .95rem; }
.subscribe__msg--ok  { color: var(--lime); }
.subscribe__msg--err { color: #ff9d9d; }

.footer__socials { display: flex; gap: 12px; margin-top: 28px; }
.footer__socials a {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    color: #fff;
    font-size: 17px;
    transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.footer__socials a:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-5px);
}


.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-block: 30px;
    border-top: 1px solid var(--line-light);
    font-size: .98rem;
}
.footer__bottom ul { display: flex; gap: 40px; letter-spacing: .05em; }
.footer__bottom a:hover { color: var(--lime); }

/* ==========================================================================
   21. SCROLL-TO-TOP RING
   ========================================================================== */
.to-top {
    position: fixed;
    right: 26px; bottom: 26px;
    z-index: 130;
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.to-top__ring circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}
.to-top__bg  { stroke: rgba(4, 28, 51, .1); }
.to-top__bar { stroke: var(--blue); transition: stroke-dashoffset .1s linear; }
.to-top__pct {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--heading);
}

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */
@media (max-width: 1400px) {
    .hero__rail  { display: none; }
    .about__grid { grid-template-columns: 1fr 1.2fr; }
    .about__right {
        grid-column: 1 / -1;
        border-radius: var(--radius);
    }
    .about__right img { aspect-ratio: 21 / 9; }
    .stat-badge { position: static; margin-top: 40px; }
}

@media (max-width: 1200px) {
    body { font-size: 16px; }
    .infocards__grid,
    .doctors__grid,
    .blog__grid { grid-template-columns: repeat(2, 1fr); }
    .icard--lime { grid-column: 1 / -1; }
    .doctor:last-child,
    .post:last-child { grid-column: 1 / -1; }
    .services__grid,
    .treatments__grid,
    .appointment__grid,
    .testimonials__grid,
    .why__grid { grid-template-columns: 1fr; gap: 50px; }
    .journey { margin-top: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col--wide { grid-column: 1 / -1; }
    .footer__nurse { display: none; }
    .treatments__grid { direction: rtl; }
    .treatments__grid > * { direction: ltr; }
}

@media (max-width: 1024px) {
    /* Mobile navigation drawer */
    .burger { display: grid; }
    .nav {
        position: fixed;
        top: 0; right: 0;
        z-index: 119;
        width: min(340px, 86vw);
        height: 100dvh;
        margin: 0;
        padding: 90px 30px 40px;
        background: var(--navy-header);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .45s var(--ease);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nav.is-open { transform: none; }
    .nav__close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 24px; right: 24px;
        width: 44px; height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
        color: #fff;
        font-size: 20px;
        transition: background .3s var(--ease), transform .3s var(--ease);
    }
    .nav__close:hover {
        background: rgba(255, 255, 255, .2);
        transform: rotate(90deg);
    }
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav__link {
        justify-content: space-between;
        padding: 14px 4px;
        border-bottom: 1px solid var(--line-light);
        font-size: 1.05rem;
    }
    .nav__link::after { display: none; }
    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 6px 0 10px 14px;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav__item.is-open .dropdown { 
        display: block; 
        animation: pop-in .35s var(--ease-out) both; 
    }
    .nav__item.is-open .nav__caret { transform: rotate(180deg); }
    .dropdown a { 
        color: rgba(255, 255, 255, .75);
        padding: 12px 16px;
        border-radius: 8px;
    }
    .dropdown a:hover { 
        background: rgba(255, 255, 255, .07); 
        color: #fff;
        padding-left: 22px;
    }

    .header__actions .btn { display: none; }
    .hero__inner { grid-template-columns: 1fr; padding-top: 60px; }
    .hero__media { max-width: 520px; margin-inline: auto; }
    .hero__meta { padding-bottom: 40px; }
    .hero__ring { display: none; }
    .about__grid { grid-template-columns: 1fr; }
    .about__mid { padding-left: 0; border-left: 0; }
    .glass-stat { position: static; width: auto; max-width: 300px; margin: -70px auto 0; }
    .testimonials__media { align-self: center; }
    .testimonials { padding-top: 70px; }
    .service__body { padding-right: 0; }
    .service__icon { position: static; margin-left: auto; }
}

@media (max-width: 860px) {
    /* Stop the full-bleed images from bleeding once the grids stack */
    .about__right    { margin-right: 0; border-radius: var(--radius); }
    .testimonials__media { margin-left: 0; }

    .topbar { flex-direction: column; }
    .topbar__left,
    .topbar__right {
        justify-content: center;
        text-align: center;
        padding-inline: var(--gutter);
    }
    .topbar__right { gap: 22px; flex-wrap: wrap; }
    .infocards__grid,
    .doctors__grid,
    .blog__grid,
    .why__features,
    .footer__grid { grid-template-columns: 1fr; }
    .icard--lime,
    .doctor:last-child,
    .post:last-child { grid-column: auto; }
    .tcard { flex: 0 0 100%; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .appointment__panel { padding: 36px 26px 42px; }
    .aform__row { grid-template-columns: 1fr; }
    .cta__inner { flex-direction: column; text-align: center; align-items: center; }
    .footer__bottom { justify-content: center; text-align: center; }
    .quote__text { padding-right: 0; }
    .about__years-circle { width: 100px; height: 100px; font-size: 2rem; }
    .service { flex-direction: column; }
    .service__thumb { width: 100%; }
    .service__thumb img { min-height: 190px; }
}

@media (max-width: 560px) {
    :root { --gutter: 18px; }
    .infocards { padding-block: 50px 60px; }
    .header__inner{
        justify-content: space-between;
    }
    .about, .services, .why, .treatments, .doctors, .appointment, .blog { padding-block: 70px; }
    .hero__meta { gap: 20px; }
    .hero__divider { display: none; }
    .field input,
    .field select { padding: 17px 20px 17px 66px; }
    .field__icon { left: 18px; padding-right: 12px; }
    .brands__row { justify-content: center; gap: 28px; }
    .footer__bottom ul { gap: 20px; }
    .to-top { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   23. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-anim] { opacity: 1 !important; transform: none !important; }
    .marquee__track { animation: none; }
}