/* YUKI HEALTH - Inner pages (Doctors, Services, THRIVE, Health Hub, Appointments). */

/* Page header */
.page-hero {
    padding-block: var(--space-7) var(--space-6);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-line);
}
.page-hero h1 { max-width: 22ch; }
.page-hero__lead { max-width: 60ch; font-size: var(--text-lg); color: var(--color-text-muted); }
.page-hero .btn-row { margin-top: var(--space-5); }

/* Team section headings */
.team-head { margin-bottom: var(--space-6); }
.team-head h2 { margin-bottom: var(--space-1); }
.team-head--center { max-width: 560px; margin-inline: auto; text-align: center; }

/* Profile card: ID-badge style - tinted cover band, photo overlapping it, centred details */
.profiles {
    display: grid;
    gap: var(--space-5);
}
/* Four per group: 1 / 2x2 / 4 across - never a lone card */
@media (min-width: 640px) { .profiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .profiles { grid-template-columns: repeat(4, 1fr); } }
.profile { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-5) var(--space-5);
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.profile__cover {
    align-self: stretch;
    height: 72px;
    margin-inline: calc(var(--space-5) * -1);
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.55) 0 18px, transparent 19px),
        radial-gradient(circle at 12% 110%, rgba(255, 255, 255, 0.35) 0 34px, transparent 35px),
        linear-gradient(135deg, var(--color-brand-soft), #FFD9C6);
}
/* THRIVE team: charcoal band with an orange accent, echoing the THRIVE artwork */
.profiles--thrive .profile__cover {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0 18px, transparent 19px),
        radial-gradient(circle at 12% 110%, rgba(252, 66, 1, 0.4) 0 34px, transparent 35px),
        linear-gradient(135deg, #4A413D, var(--color-dark));
}
.profile__photo {
    width: 112px;
    height: 112px;
    margin-top: -56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-brand-soft);
    border: 4px solid var(--color-surface);
    box-shadow: 0 0 0 1.5px var(--color-brand), var(--shadow-md);
}
.profile__name { margin: var(--space-4) 0 var(--space-1); font-size: var(--text-lg); }
.profile__role { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); }
/* Individual title: secondary to name and designation */
.profile__motto {
    margin: var(--space-3) 0 0;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-brand-ink);
}
.profile__motto::before { content: "\201C"; }
.profile__motto::after { content: "\201D"; }
.profile__quals { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.profile .hours { align-self: stretch; text-align: center; }
/* Narrow cards: label above time, each kept on one line */
.profile .hours div { flex-direction: column; align-items: center; gap: 0; }
.profile .hours dt { font-size: var(--text-xs); }
.profile .hours dd { text-align: center; white-space: nowrap; }
.profile__note { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.profile__cta { align-self: stretch; margin-top: auto; padding-inline: var(--space-3); font-size: var(--text-sm); }
/* Keep a gap above the button however tall the card content is */
.profile > :nth-last-child(2) { margin-bottom: var(--space-4); }

/* Hours box */
.hours {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    font-size: var(--text-sm);
}
.hours div { display: flex; justify-content: space-between; gap: var(--space-3); }
.hours dt { color: var(--color-text-muted); }
.hours dd { margin: 0; font-weight: var(--weight-semibold); text-align: right; }
.hours--unconfirmed { color: var(--color-text-muted); font-style: italic; }

/* Appreciation wall: nursing and support staff (no photos) */
.tributes {
    display: grid;
    gap: var(--space-4);
}
/* Five people: one row of five on wide screens */
@media (min-width: 640px) { .tributes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tributes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tributes { grid-template-columns: repeat(5, 1fr); } }
.tribute {
    padding: var(--space-5);
    background: var(--color-ivory);
    border: 1px solid var(--color-line);
    border-top: 3px solid var(--color-brand);
    border-radius: var(--radius-lg);
}
.tribute__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-brand);
    color: var(--color-brand-ink);
    font-weight: var(--weight-bold);
}
.tribute__name { margin: 0; font-size: var(--text-base); }
.tribute__role { margin: 2px 0 0; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.tribute[lang="ta"] .tribute__role { text-transform: none; letter-spacing: 0; font-size: var(--text-sm); }
.tribute__title {
    margin: var(--space-4) 0 0;
    padding-top: var(--space-3);
    border-top: 1px dashed var(--color-line);
    font-size: var(--text-sm);
    font-style: italic;
}

/* Informational notice (not an alert) */
.notice--info { margin-top: var(--space-5); border-left-color: var(--color-brand); }

/* Closing call-to-action strip */
.cta-strip {
    display: grid;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--color-brand-soft);
}
.cta-strip h2 { margin-bottom: var(--space-2); font-size: var(--text-xl); }
@media (min-width: 768px) {
    .cta-strip { grid-template-columns: 1fr auto; padding-inline: var(--space-7); }
}

/* ---------- Appointments ---------- */
.page-hero--compact { padding-block: var(--space-6) var(--space-5); }
.booking { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 960px) {
    .booking { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); }
    .booking__aside { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
.booking__form { display: grid; gap: var(--space-5); padding: var(--space-5); }
@media (min-width: 640px) { .booking__form { padding: var(--space-6); } }
.booking__aside { display: grid; gap: var(--space-4); }
.h-small { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.booking__aside .btn { margin-top: var(--space-3); }

.field { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-weight: var(--weight-semibold); padding: 0; }
.field__optional { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.field__hint { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .field-row .field--narrow { max-width: 160px; }
    .field-row:has(.field--narrow) { grid-template-columns: 1fr auto; }
}
#when-fields { display: grid; gap: var(--space-5); }
#when-fields[hidden] { display: none; }

.booking input[type="text"],
.booking input[type="number"],
.booking input[type="date"],
.booking input[type="time"],
.booking select,
.booking textarea {
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: var(--text-base); /* 16px stops iOS zooming into fields */
}
.booking textarea { resize: vertical; }
.booking select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B605A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 20px;
    text-overflow: ellipsis;
}
/* Long option text must never widen the layout */
.booking > *, .booking__form > *, .field-row > * { min-width: 0; }
.booking select, .booking input { max-width: 100%; }
.booking input:hover, .booking select:hover, .booking textarea:hover { border-color: #D8CBBB; }
.booking input:focus-visible, .booking select:focus-visible, .booking textarea:focus-visible {
    outline: none;
    border-color: var(--color-brand-strong);
    box-shadow: 0 0 0 3px var(--color-brand-tint);
}
.booking [aria-invalid="true"] { border-color: var(--color-status-alert); }
.booking select:disabled { color: var(--color-text-muted); background: var(--color-bg); }

/* Large choice buttons */
.choice-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.choice {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: var(--space-3) var(--space-4) var(--space-3) 2.75rem;
    border: 1.5px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-weight: var(--weight-medium);
    cursor: pointer;
}
.choice input {
    position: absolute;
    left: var(--space-4);
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-brand-strong);
}
.choice:hover { border-color: #D8CBBB; }
.choice:has(input:checked) { border-color: var(--color-brand-strong); background: var(--color-brand-soft); }
.choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }

.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-brand-strong); }

/* Availability panel */
.availability {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-left: 4px solid var(--color-brand);
    font-size: var(--text-sm);
}
.availability p { margin: 0; }
.availability__title { font-weight: var(--weight-semibold); margin-bottom: var(--space-2) !important; }
.availability__list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.availability__list li { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.availability__list span { color: var(--color-text-muted); }
.availability__note { margin-top: var(--space-2) !important; color: var(--color-brand-ink); }

/* Errors and confirmation */
.field-error { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-status-alert); }
.field-error::before { content: "⚠ "; }
.form-errors {
    padding: var(--space-4) var(--space-5);
    border: 1.5px solid var(--color-status-alert);
    border-radius: var(--radius-md);
    background: #FDF1F0;
    font-size: var(--text-sm);
}
.form-errors p { margin: 0 0 var(--space-2); font-weight: var(--weight-semibold); }
.form-errors ul { margin: 0; padding-left: 1.25rem; }
.form-errors a { color: var(--color-status-alert); }
.booking-done {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    background: #EEF6EE;
    border: 1.5px solid var(--color-status-good);
    font-size: var(--text-sm);
}
.booking-done p:last-child { margin-bottom: 0; }

.info-list--compact { margin-top: var(--space-5); font-size: var(--text-sm); }
.info-list--compact div { grid-template-columns: 6.5rem 1fr; }

/* ---------- Services ---------- */

.svc-list { display: grid; gap: var(--space-4); }
.svc {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2) var(--space-4);
    align-items: start;
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.svc .icon-badge { margin: 0; }
.svc__body h3, .svc__body .h3-like { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.svc__body p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.svc__who { margin-top: var(--space-2) !important; color: var(--color-text) !important; }
.svc__who span { color: var(--color-text-muted); }
.svc__who a { font-weight: var(--weight-semibold); }
.svc__hours li { white-space: nowrap; }
.svc__hours { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.svc__hours span { color: var(--color-text-muted); font-weight: var(--weight-regular); }
.svc__tag { margin-top: var(--space-2) !important; color: var(--color-brand-ink) !important; font-weight: var(--weight-semibold); }
.svc__cta { grid-column: 1 / -1; justify-self: stretch; }
@media (min-width: 640px) {
    .svc { grid-template-columns: auto 1fr auto; align-items: center; }
    .svc__cta { grid-column: auto; justify-self: end; }
}
.svc--feature { border-color: var(--color-brand); background: linear-gradient(135deg, var(--color-surface), var(--color-brand-soft)); }

/* ---------- THRIVE ---------- */
/* THRIVE hero: like the homepage - text first on phones, artwork on the right on desktop */
.thrive-hero {
    display: flex;
    flex-direction: column;
    background: #FFF9F2;
    border-bottom: 1px solid var(--color-line);
    overflow: hidden;
}
.thrive-hero__inner { order: 1; padding-block: var(--space-6) var(--space-5); }
.thrive-hero__art { order: 2; display: block; }
.thrive-hero__art img { width: 100%; height: auto; }
.thrive-hero__logo { width: min(100%, 400px); margin: var(--space-2) 0 var(--space-4); }
.thrive-hero__title { margin: 0 0 var(--space-2); font-size: var(--text-2xl); font-weight: var(--weight-bold); letter-spacing: -0.02em; }
.thrive-hero .btn-row { margin-top: var(--space-5); }
@media (min-width: 960px) {
    .thrive-hero { display: grid; align-items: center; min-height: clamp(520px, 42vw, 640px); }
    .thrive-hero__inner, .thrive-hero__art { grid-area: 1 / 1; }
    .thrive-hero__art { justify-self: end; align-self: stretch; width: 55%; }
    .thrive-hero__art img {
        height: 100%;
        object-fit: cover;
        object-position: 40% 50%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
        mask-image: linear-gradient(90deg, transparent 0, #000 24%);
    }
    .thrive-hero__inner { padding-block: var(--space-7); }
    .thrive-hero__content { max-width: 46%; }
}

/* Our approach strip */
.journey-band__title { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.journey { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.journey li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
}
.journey li:last-child { border-color: var(--color-brand); background: var(--color-brand-soft); }
.journey span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-dark);
    color: #fff;
    font-size: var(--text-sm);
}
.journey li:last-child span { background: var(--color-brand-strong); }
@media (min-width: 960px) { .journey { grid-template-columns: repeat(5, 1fr); } }

.life-stage { margin: 0 0 var(--space-2) !important; color: var(--color-brand-ink) !important; font-weight: var(--weight-semibold); }

.depts { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .depts { grid-template-columns: repeat(2, 1fr); } }
.dept {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-top: 4px solid var(--color-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.dept h3 { margin-bottom: var(--space-2); }
.dept__team { display: grid; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--color-line); }
.dept__team li { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.dept__team img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dept__team span { display: grid; color: var(--color-text-muted); font-size: var(--text-xs); }
.dept__team strong { color: var(--color-text); font-size: var(--text-sm); }
.dept .btn { margin-top: auto; }

.conditions { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .conditions { grid-template-columns: repeat(3, 1fr); } }
.conditions__group h3 { padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-brand); font-size: var(--text-base); }
.conditions__group ul { display: grid; gap: var(--space-3); }
.conditions__group li { font-weight: var(--weight-medium); }
.conditions__group li span { display: block; font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--color-text-muted); }

.family { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .family { grid-template-columns: 1fr 1fr; gap: var(--space-7); } .family .facts { grid-template-columns: 1fr; } }


/* ---------- Contact ---------- */
.contact-actions { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-action {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: 76px;
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    text-decoration: none;
}
.contact-action:hover { border-color: var(--color-brand); color: var(--color-text); }
.contact-action .icon-badge { flex: none; margin: 0; }
.contact-action span:last-child { display: grid; font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
.contact-action strong { color: var(--color-text); font-size: var(--text-base); }

.contact-visit { display: grid; gap: var(--space-6); align-items: stretch; }
.contact-address { margin: var(--space-3) 0; font-size: var(--text-lg); line-height: 1.5; }
.contact-visit .btn-row { margin-top: var(--space-5); }
@media (min-width: 900px) { .contact-visit { grid-template-columns: 0.9fr 1.1fr; } }

.hours-grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .hours-grid { grid-template-columns: 1fr 1.3fr; } }
.hours-grid .hours { margin-top: var(--space-3); }
.hours-grid .hours dd { text-align: right; }
.hours-note { margin-top: var(--space-4) !important; font-size: var(--text-sm); }

/* ---------- Long-form text (Privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin: var(--space-6) 0 var(--space-3); font-size: var(--text-xl); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text); line-height: 1.7; }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
.prose li + li { margin-top: var(--space-2); }
.why-list h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }

/* Therapy card illustration + "coming soon" card */
.dept__img {
    width: calc(100% + var(--space-5) * 2);
    max-width: none;
    margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.dept { overflow: hidden; }
.dept--soon { border-top-color: var(--color-line); border-style: dashed; }
.dept--soon .dept__img { filter: saturate(0.6); opacity: 0.85; }
.dept__soon { margin: 0 0 var(--space-2); color: var(--color-brand-ink); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.svc--soon { border-style: dashed; box-shadow: none; background: var(--color-bg); }
.svc--soon .icon-badge { background: var(--color-ivory); color: var(--color-text-muted); }

/* Brand signature: faint orange/navy waves along the bottom-right of inner-page headers */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -30px;
    width: min(70%, 760px);
    aspect-ratio: 3 / 1;
    background: url("../img/art/abstract-1600.jpg") right bottom / contain no-repeat;
    mix-blend-mode: multiply;   /* the artwork's cream background disappears into the header */
    opacity: 0.32;
    pointer-events: none;
}
@media (max-width: 639px) {
    .page-hero::after { width: 90%; opacity: 0.22; bottom: -20px; }
}

/* Real clinic photo on the Contact page */
.contact-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-line);
}
/* Very small phones: let long timings wrap instead of widening the card */
.svc__body { min-width: 0; }
@media (max-width: 379px) { .svc__hours li { white-space: normal; } }
