/* =============================================================================
   SUVA — Service / Specialty page (Plastic & Reconstructive, Internal Medicine)
   Uses design tokens from styles.css.
   ========================================================================== */

/* Breadcrumb ---------------------------------------------------------------- */
.breadcrumb { font-size: calc(.875rem + 1px); color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-ink); }
.breadcrumb [aria-current="page"] { color: var(--pink-ink); font-weight: 600; }
.breadcrumb svg { width: .85rem; height: .85rem; color: #cbd5e1; }

/* Hero ---------------------------------------------------------------------- */
.svc-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg-alt)); }
.svc-hero::before {
    content: ""; position: absolute; right: -8%; top: -35%; width: 46%; height: 150%;
    background: radial-gradient(closest-side, rgba(255,92,168,.12), transparent 70%); pointer-events: none;
}
.svc-hero-inner {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem);
}
.svc-hero h1 { margin: 1rem 0 0; }
.svc-hero h1 .accent-pink { color: var(--pink-ink); }
.svc-hero h1 .accent-teal { color: var(--teal-ink); }
.svc-hero__lead { margin-top: 1.1rem; font-size: calc(1.1rem + 1px); color: var(--text); max-width: 34rem; }
.svc-hero__lotus { width: 2.4rem; margin-top: 1.4rem; }
.svc-hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .7rem; }

.svc-hero__figure {
    position: relative; aspect-ratio: 5/4.4; border-radius: var(--r-panel) 90px var(--r-panel) var(--r-panel);
    overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-lg);
    background: linear-gradient(160deg, var(--light-pink), var(--soft-teal));
}
.svc-hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.svc-hero__docchip {
    position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 12px;
    padding: .55rem .8rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .55rem;
}
.svc-hero__docchip .ic { width: 2rem; height: 2rem; border-radius: 8px; background: var(--light-pink); color: var(--pink-ink); display: grid; place-items: center; flex: none; }
.svc-hero__docchip b { display: block; font-size: calc(.82rem + 1px); color: var(--ink); }
.svc-hero__docchip span { font-size: calc(.7rem + 1px); color: var(--muted); }

/* Intro strip --------------------------------------------------------------- */
.svc-intro { max-width: 60rem; }
.svc-intro p { color: var(--text); font-size: calc(1.05rem + 1px); }

/* Category grid ------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4dde7; }
.svc-card__body { padding: 1.5rem 1.5rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.svc-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.svc-num { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--soft-teal); color: var(--teal-ink);
    font-weight: 700; font-size: calc(1rem + 1px); display: grid; place-items: center; flex: none; }
.svc-card__title { font-size: calc(1.15rem + 1px); line-height: 1.3; margin: 0; min-height: 2.6em; display: flex; align-items: center; }
.svc-list { display: grid; gap: .55rem; margin-bottom: 1.35rem; }
.svc-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: calc(.92rem + 1px); color: var(--ink); }
.svc-list .ck { width: 1.25rem; height: 1.25rem; flex: none; color: var(--pink-ink); margin-top: .05rem; }
.svc-grid--teal .svc-list .ck { color: var(--teal-ink); }

/* Before / After (single combined image with baked BEFORE|AFTER labels) ----- */
.ba { margin-top: auto; }
.ba figure {
    position: relative; margin: 0; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-alt); line-height: 0;
}
.ba img { width: 100%; height: auto; display: block; }
.ba figcaption {
    line-height: 1.4; font-size: calc(.72rem + 1px); color: var(--muted); text-align: center;
    padding: .5rem .5rem 0;
}

/* Before / After pair — separate photos normalised to a matching square crop
   so the two halves always align regardless of source aspect ratios. */
.ba--pair {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
    background: var(--border); overflow: hidden;
}
.ba-half { position: relative; overflow: hidden; background: var(--bg-alt); line-height: 0; }
.ba-half img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ba-half__label {
    position: absolute; top: .45rem; left: .45rem; z-index: 1;
    font-size: calc(.62rem + 1px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .2rem .5rem; border-radius: var(--r-pill); color: #fff;
    background: rgba(26,43,60,.82);
}
.ba-half__label--after { background: var(--teal-cta); }

/* Graphic clinical photos — blurred + desaturated until the viewer opts in. */
.svc-card.is-sensitive .ba img {
    filter: blur(16px) saturate(.55);
    transform: scale(1.06);
    transition: filter .35s var(--ease), transform .35s var(--ease);
}
.svc-card.is-sensitive.is-revealed .ba img { filter: blur(0) saturate(.9); transform: none; }
.svc-card__reveal {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .3rem; cursor: pointer;
    background: rgba(26,43,60,.45); border: 0; color: #fff; text-align: center; padding: 1rem;
    line-height: 1.3; /* parent sets line-height:0 for the image; reset it here */
    transition: opacity .3s var(--ease), visibility .3s;
}
.svc-card__reveal svg { width: 1.5rem; height: 1.5rem; }
.svc-card__reveal b { font-size: calc(.85rem + 1px); font-weight: 600; }
.svc-card__reveal span { font-size: calc(.74rem + 1px); opacity: .85; }
.svc-card__reveal:hover { background: rgba(26,43,60,.55); }
.svc-card.is-revealed .svc-card__reveal { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    .svc-card.is-sensitive .ba img { transition: none; }
}

/* Card with icon + bottom image (General Medicine variant) ------------------ */
.svc-card__head--med { align-items: flex-start; justify-content: space-between; }
.svc-head-main { display: flex; align-items: center; gap: .85rem; }
.svc-card__ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; flex: none; }
.svc-card__ic svg { width: 1.35rem; height: 1.35rem; }
.svc-cardimg { margin-top: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.svc-cardimg img { width: 100%; height: 175px; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.svc-card:hover .svc-cardimg img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .svc-card:hover .svc-cardimg img { transform: none; } }

/* Doctor connection strip --------------------------------------------------- */
.doc-connect {
    display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-panel);
    box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 3vw, 2rem);
}
.doc-connect__photo { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border-soft); }
.doc-connect__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-connect__photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--teal); z-index: 1; }
.doc-connect__info h3 { font-size: calc(1.5rem + 1px); color: var(--teal-ink); margin-bottom: .25rem; }
.doc-connect__info .qual { font-weight: 600; color: var(--ink); margin-bottom: .9rem; }
.doc-connect__roles { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.doc-connect__roles span { font-size: calc(.82rem + 1px); color: var(--text); background: var(--soft-teal); border: 1px solid #cdeeeb; padding: .28rem .7rem; border-radius: var(--r-pill); }
.doc-connect__exp { color: var(--muted); font-size: calc(.95rem + 1px); margin-bottom: 1.25rem; }
.doc-connect__exp b { color: var(--ink); }
.doc-connect__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.doc-connect--pink .doc-connect__photo::before { background: var(--pink); }
.doc-connect--pink .doc-connect__info h3 { color: var(--pink-ink); }
.doc-connect--pink .doc-connect__roles span { background: var(--light-pink); border-color: #f6d4e6; }
@media (max-width: 620px) {
    .doc-connect { grid-template-columns: 1fr; }
    .doc-connect__photo { max-width: 200px; }
    .doc-connect__actions .btn { flex: 1 1 auto; }
}

/* Responsible-use note ------------------------------------------------------ */
.svc-disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 12px; font-size: calc(.85rem + 1px); color: var(--muted); display: flex; gap: .65rem; align-items: flex-start; }
.svc-disclaimer svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--teal-ink); margin-top: .1rem; }

/* CTA (shared split) -------------------------------------------------------- */
.cta-split { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--soft-teal);
    border: 1px solid var(--border); padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-split__lotus { position: absolute; left: -1.5rem; bottom: -2rem; width: 11rem; opacity: .4; pointer-events: none; }
.cta-split__text { position: relative; z-index: 1; }
.cta-split__text h2 { margin-bottom: .35rem; }
.cta-split__text p { color: var(--text); margin: 0; }
.cta-split__actions { position: relative; z-index: 1; display: flex; gap: .7rem; flex-wrap: wrap; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .svc-hero-inner { grid-template-columns: 1fr; }
    /* Mobile only: move the CTA buttons below the doctor photo instead of
       above it. display:contents lifts .svc-hero__copy's children up to be
       direct grid items so they can be individually reordered against the
       figure — desktop keeps its original two-column layout untouched. */
    .svc-hero__copy { display: contents; }
    .svc-hero__copy > .breadcrumb { order: 1; }
    .svc-hero__copy > h1 { order: 2; }
    .svc-hero__copy > .svc-hero__lead { order: 3; }
    .svc-hero__copy > .svc-hero__lotus { order: 4; }
    .svc-hero__figure { order: 5; max-width: 480px; }
    .svc-hero__copy > .svc-hero__cta { order: 6; margin-top: 1.5rem; justify-content: center; }
}
@media (max-width: 620px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card__title { min-height: 0; }
    .cta-split { flex-direction: column; align-items: flex-start; }
    .cta-split__actions { width: 100%; }
    .cta-split__actions .btn { flex: 1 1 auto; }
}
