/* ============================================================
   Stasio Medical Centre — stylesheet
   Palette: clinical navy & blue on white, sky-blue sections,
   signage colours come from the database per department.
   Type: Bricolage Grotesque (display) + Inter (body).
   ============================================================ */

:root {
    --navy:  #093A52;
    --blue:  #006EA1;
    --blue-dark: #005580;
    --sky:   #EAF4F9;
    --white: #FFFFFF;
    --ink:   #1E2B36;
    --mist:  #5A6B7A;
    --line:  #D5E4EC;
    --amber: #FB9A2F;
    --amber-ink: #B36D0E;
    --red:   #C9362F;
    --green: #1F8A4C;

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body:    "Inter", system-ui, sans-serif;

    --radius: 10px;
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; }

a { color: var(--blue-dark); }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0 0 0.5em;
    color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 0.75rem;
}
.eyebrow--light { color: #9FC5E8; }

.section__lead {
    max-width: 56ch;
    color: var(--mist);
    margin-top: -0.25rem;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn--emergency { background: var(--red); color: var(--white); }
.btn--emergency:hover { background: #A82A24; }

.btn--small { padding: 0.45rem 1rem; font-size: 0.875rem; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Contact strip ---------- */

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    background: var(--navy);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    text-align: center;
}
.contact-strip__label { font-weight: 600; color: #9FC5E8; }
.contact-strip__link {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-strip__sep { color: #9FC5E8; }

/* ---------- Header & nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.75rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-right: auto;
}

.brand__logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand__cross {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.brand__name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.2;
}
.brand__sub { display: block; font-size: 0.75rem; color: var(--mist); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue-dark); }
.site-nav .btn { color: var(--white); }

.open-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mist);
}
.open-status__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--mist);
}
.open-status.is-open  .open-status__dot { background: var(--green); }
.open-status.is-open  .open-status__text { color: var(--green); }
.open-status.is-closed .open-status__dot { background: var(--red); }

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

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__lead {
    font-size: 1.15rem;
    color: var(--mist);
    max-width: 46ch;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.today-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--amber);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 16px 40px -24px rgba(14, 58, 93, 0.35);
}

.today-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0 0 1rem;
}

.today-card__rows { margin: 0 0 1.25rem; }
.today-card__rows > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.55rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
}
.today-card__rows dt { font-weight: 600; color: var(--navy); }
.today-card__rows dd { margin: 0; text-align: right; color: var(--mist); font-variant-numeric: tabular-nums; }
.today-card__always { color: var(--red) !important; font-weight: 700; }

.today-card__note {
    font-size: 0.8rem;
    color: var(--mist);
    text-align: center;
    margin: 0.75rem 0 0;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--sky {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M20 14h4v6h6v4h-6v6h-4v-6h-6v-4h6z' fill='%23006EA1' fill-opacity='0.045'/%3E%3C/svg%3E"),
        var(--sky);
}
.section--navy { background: var(--navy); color: #DCE9F5; }
.section--navy h2 { color: var(--white); }
.section--navy a { color: #9FC5E8; }

/* ---------- Departments: wayfinding signage ---------- */

.signage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.sign {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 6px solid var(--sign-colour);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sign:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(14, 58, 93, 0.35);
}

.sign__code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--sign-colour);
    min-width: 2.4rem;
}

.sign__body h3 { margin-bottom: 0.15rem; }
.sign__body p { margin: 0; font-size: 0.85rem; color: var(--mist); }

.sign__arrow {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--sign-colour);
}

.sign-chip {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: var(--sign-colour);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
}

/* ---------- Doctors ---------- */

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.doctor-card {
    display: flex;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.doctor-card__monogram {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sign-colour);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.doctor-card h3 { margin-bottom: 0.1rem; }
.doctor-card__title { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); }
.doctor-card__bio { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--mist); }
.doctor-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8rem;
    color: var(--mist);
}

/* ---------- Hours & emergency ---------- */

.hours__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.hours-table th,
.hours-table td {
    text-align: left;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; color: var(--navy); }
.hours-table td { font-variant-numeric: tabular-nums; color: var(--mist); }

.hours__note { font-size: 0.875rem; color: var(--mist); }

.emergency-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--red);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.emergency-card__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.5rem;
}
.emergency-card__big {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 0.75rem;
}
.emergency-card p { color: var(--mist); }
.emergency-card .btn { margin-top: 0.5rem; }

/* ---------- News ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--mist);
}
.news-card__category {
    background: var(--sky);
    color: var(--blue-dark);
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.news-card h3 { margin-bottom: 0.4rem; }
.news-card p:last-child { margin: 0; font-size: 0.9rem; color: var(--mist); }

/* ---------- Booking ---------- */

.booking__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.booking__alt { font-size: 0.9rem; }

.booking-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--ink);
}

.form-row { margin-bottom: 1.1rem; }
.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.optional { font-weight: 400; color: var(--mist); }

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 116, 197, 0.18);
}

.booking-form textarea { resize: vertical; }

.booking-form__fineprint {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--mist);
    text-align: center;
}

.form-flash {
    background: #E7F5EC;
    border: 1px solid #BCE3C9;
    color: var(--green);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0 0 1.25rem;
}

.form-errors {
    background: #FBEAE9;
    border: 1px solid #F0C2BF;
    color: var(--red);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}
.form-errors p { margin: 0 0 0.35rem; font-weight: 700; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: #B9CEDF;
    padding-block: 3rem 1.5rem;
    font-size: 0.9rem;
}
.site-footer a { color: #DCE9F5; }

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin: 0 0 0.5rem;
}
.site-footer__heading {
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem;
}
.site-footer__legal { padding-top: 1.25rem; font-size: 0.8rem; }

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

@media (max-width: 880px) {
    .hero__grid,
    .hours__grid,
    .booking__grid { grid-template-columns: 1fr; }

    .site-header__inner { gap: 0.75rem 1rem; }
    .open-status { order: 2; margin-left: auto; }
    .site-nav { order: 3; width: 100%; }
}

@media (max-width: 560px) {
    .form-row--split { grid-template-columns: 1fr; }
    .site-nav { gap: 0.75rem 1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sign,
    .btn { transition: none; }
    .sign:hover { transform: none; }
}

/* ---------- Additions: GP surgery layout ---------- */

.hero__strapline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--amber-ink);
    margin-top: 1rem;
}

.btn--whatsapp { background: #1FA855; color: var(--white); }
.btn--whatsapp:hover { background: #178A45; }
.btn--block-gap { display: block; text-align: center; margin-top: 0.6rem; }

/* About + values */
.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.values-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.values-card__heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem;
}
.values-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}
.values-list li {
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 1.1rem;
    position: relative;
}
.values-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--amber-ink);
    font-weight: 800;
}

/* Services accordion */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.service {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 6px solid var(--sign-colour);
    border-radius: var(--radius);
}
.service__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}
.service__summary::-webkit-details-marker { display: none; }
.service__heading { display: flex; flex-direction: column; }
.service__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
}
.service__tagline { font-size: 0.85rem; color: var(--mist); }
.service__chevron {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sign-colour);
    transition: transform 0.15s ease;
}
.service[open] .service__chevron { transform: rotate(45deg); }
.service__list {
    margin: 0;
    padding: 0 1.25rem 1.2rem 1.4rem;
    columns: 1;
    font-size: 0.92rem;
    color: var(--mist);
}
.service__list li { margin-bottom: 0.3rem; }

/* Team */
.team__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: start;
}
.doctor-card--feature { padding: 1.75rem; }
.doctor-card__monogram--team { background: var(--blue); }

/* Medical aid */
.aid-grid {
    list-style: none;
    margin: 2rem 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.9rem;
}


/* Why us + future */
.why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.check-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.check-list li {
    padding: 0.45rem 0 0.45rem 1.8rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0.25rem;
    color: var(--green);
    font-weight: 700;
}
.future-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.future-card h3 { font-size: 1.4rem; }
.future-list { margin: 0.5rem 0 1.25rem; padding-left: 1.2rem; color: var(--mist); }
.future-list li { margin-bottom: 0.3rem; }
.mission-block {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: var(--mist);
}
.mission-block strong { color: var(--navy); }

/* Contact + map */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 1.5rem;
    align-items: stretch;
}
.map-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--white);
}
.map-card iframe {
    width: 100%;
    flex: 1;
    min-height: 320px;
    border: 0;
}
.map-card__address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--mist);
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
}
.contact-form {
    border: 1px solid var(--line);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1FA855;
    color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.whatsapp-float:hover { background: #178A45; transform: scale(1.06); }

.site-footer__small { font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 880px) {
    .about__grid,
    .services-grid,
    .team__grid,
    .why__grid,
    .contact__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .service__chevron { transition: none; }
    .whatsapp-float:hover { transform: none; }
}

/* ---------- Additions: single service feature, aid logos, hero motif ---------- */

.hero { position: relative; overflow: hidden; }
.hero__motif {
    position: absolute;
    top: -30px;
    right: -40px;
    width: clamp(180px, 26vw, 320px);
    height: auto;
    opacity: 0.14;
    pointer-events: none;
}
.hero__grid { position: relative; }

/* Single service feature card */
.service-feature-wrap { margin-top: 2rem; }
.service-feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 6px solid var(--sign-colour);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 16px 40px -28px rgba(9, 58, 82, 0.35);
}
.service-feature__head h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    margin-bottom: 0.2rem;
}
.service-feature__head p {
    margin: 0 0 1.25rem;
    color: var(--mist);
}
.service-feature__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 2rem;
}
.service-feature__list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.97rem;
    padding: 0.35rem 0;
}
.service-feature__list svg { flex: none; }

/* Medical aid logo cards */
.aid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 110px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.aid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -18px rgba(9, 58, 82, 0.3);
}
.aid-card img {
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
}
.aid-card__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--blue-dark);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
}
.aid-card__name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
}
.aid-card--more {
    background: transparent;
    border-style: dashed;
}
.aid-card--more .aid-card__name { color: var(--mist); font-weight: 500; }

@media (max-width: 640px) {
    .service-feature__list { grid-template-columns: 1fr; }
    .hero__motif { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aid-card { transition: none; }
    .aid-card:hover { transform: none; }
}

/* ---------- Chatbot ---------- */
.bot__launcher {
    position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 60;
    display: grid; place-items: center; width: 56px; height: 56px;
    border: 0; border-radius: 50%; cursor: pointer;
    background: var(--blue); color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}
.bot__launcher:hover { background: var(--blue-dark); }
.bot__panel {
    position: fixed; right: 1.25rem; bottom: 9.5rem; z-index: 70;
    width: min(360px, calc(100vw - 2rem));
    background: var(--white); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(9,58,82,0.45);
    display: flex; flex-direction: column; max-height: min(540px, 75vh);
}
.bot__header { position: relative; background: var(--navy); color: var(--white); padding: 0.9rem 2.5rem 0.9rem 1.1rem; }
.bot__title { margin: 0; font-family: var(--font-display); font-weight: 700; }
.bot__note { margin: 0.15rem 0 0; font-size: 0.72rem; color: #9FC5E8; }
.bot__close {
    position: absolute; top: 0.5rem; right: 0.6rem;
    background: none; border: 0; color: var(--white);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bot__messages { padding: 1rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.bot__msg { max-width: 85%; padding: 0.6rem 0.8rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.bot__msg--bot { background: var(--sky); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bot__msg--user { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.bot__action {
    display: block; margin-top: 0.55rem; padding: 0.45rem 0.7rem;
    background: var(--white); border: 1.5px solid var(--blue);
    border-radius: 8px; text-align: center;
    font-weight: 600; font-size: 0.85rem;
    color: var(--blue-dark); text-decoration: none;
}
.bot__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.bot__chip {
    border: 1.5px solid var(--line); background: var(--white);
    border-radius: 999px; padding: 0.35rem 0.75rem;
    font-size: 0.78rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.bot__chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.bot__chip--human { border-color: var(--amber); color: var(--amber-ink); }
.bot__form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--line); }
.bot__form input {
    flex: 1; font: inherit; font-size: 0.9rem;
    border: 1.5px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem;
}
.bot__send {
    width: 42px; border: 0; border-radius: 8px;
    background: var(--blue); color: var(--white);
    font-size: 1.1rem; cursor: pointer;
}
@media (max-width: 480px) { .bot__panel { right: 1rem; bottom: 9rem; } }

.bot__panel[hidden] { display: none; }

.bot__msg--typing { letter-spacing: 3px; animation: botPulse 1s infinite; }
@keyframes botPulse { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .bot__msg--typing { animation: none; } }

/* ---------- Chatbot: mobile full-screen ---------- */
@media (max-width: 480px) {
    /* Panel fills the whole screen like an app */
    .bot__panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    /* Keep hidden working — explicit, so it always wins */
    .bot__panel[hidden] { display: none; }

    /* Roomier header with space for the back arrow */
    .bot__header { padding: 1rem 1rem 1rem 3.2rem; }

    /* Turn the × into a ← back arrow, top-left, easy to tap */
    .bot__close {
        top: 50%;
        left: 0.5rem;
        right: auto;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 0; /* hide the × glyph */
    }
    .bot__close::before {
        content: "\2190"; /* ← */
        font-size: 1.6rem;
        line-height: 1;
    }

    /* Messages fill the space and scroll */
    .bot__messages { flex: 1; }

    /* Input bar pinned at the bottom, with safe-area padding for notched phones */
    .bot__form {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    /* When chat is open, hide the floating buttons behind it */
    body:has(.bot__panel:not([hidden])) .bot__launcher,
    body:has(.bot__panel:not([hidden])) .whatsapp-float {
        display: none;
    }
}