/* Maharania Skin Clinic — sub-page + service-detail components.
   Loaded after style.css; reuses its fixed tokens (--clay, --green, --radius, …).
   No external runtime dependencies. */

/* Sub-page hero */
.subhero { position: relative; overflow: hidden; background: var(--sand); border-bottom: 1px solid var(--line); }
.subhero::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
    radial-gradient(55% 80% at 90% 0%, var(--glow) 0%, transparent 60%),
    radial-gradient(45% 70% at 0% 100%, var(--sand-deep) 0%, transparent 55%); opacity: .8; }
.subhero .container { position: relative; z-index: 1; padding: 60px 28px 56px; }
.subhero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin: 14px 0 0; letter-spacing: -.02em; }
.subhero h1 em { font-style: italic; color: var(--clay-dark); }
.subhero .lede { font-size: 1.18rem; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }

.breadcrumb { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 0 0 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb .sep { opacity: .45; }

/* Prose column */
.prose { max-width: 70ch; }
.prose p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* About: photo + intro */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: start; }
.about-grid .ag-photo { position: relative; }
.about-grid .ag-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/4.7; object-fit: cover; object-position: center top; }
.about-grid .ag-photo .ring { position: absolute; inset: -16px -16px 22px 22px; border: 1.5px solid var(--clay); border-radius: var(--radius-lg); z-index: -1; transition: border-radius .45s ease; }

/* Values / mission cards */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .v-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--clay-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.value .v-ico svg { width: 26px; height: 26px; color: var(--clay); }
.value h3 { font-size: 1.25rem; }
.value p { color: var(--muted); margin-top: 8px; font-size: .98rem; }

/* Awards / recognition strip */
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.award { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.award:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.award img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.award .cap { padding: 15px 18px; font-size: .92rem; color: var(--ink-soft); font-weight: 600; }

/* Consult: vertical numbered flow */
.flow { max-width: 720px; margin: 0 auto; }
.flow-step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding-bottom: 36px; position: relative; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step .fnum { width: 48px; height: 48px; border-radius: 50%; background: var(--clay); color: #fff; font-family: var(--serif); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 8px 18px -8px var(--clay); }
.flow-step::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: -4px; width: 2px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-step h3 { font-size: 1.3rem; }
.flow-step p { color: var(--muted); margin-top: 7px; }
.flow-step p strong { color: var(--ink-soft); }

/* Soft notice block */
.notice { background: var(--clay-soft); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 20px 24px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.notice strong { color: var(--ink); }

/* Pricing / fee cards (consult) */
.fee-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 720px; margin: 0 auto; }
.fee { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.fee .ft { font-weight: 700; color: var(--clay-dark); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.fee h3 { font-size: 1.35rem; margin-top: 6px; }
.fee p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* Services: search + categories */
.svc-search { position: sticky; top: 78px; z-index: 20; padding: 16px 0; margin-bottom: 8px;
  background: linear-gradient(var(--paper) 72%, transparent); }
.svc-search .wrap { position: relative; max-width: 560px; }
.svc-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.svc-search input { width: 100%; height: 54px; border-radius: var(--btn-radius); border: 1.5px solid var(--line); background: var(--white); padding: 0 22px 0 52px; font-size: 1.05rem; font-family: var(--sans); color: var(--ink); outline: none; box-shadow: var(--shadow-sm); transition: border-color .18s; }
.svc-search input:focus { border-color: var(--clay); }
.svc-cat { margin-top: 40px; }
.svc-cat:first-of-type { margin-top: 8px; }
.svc-cat .ch { display: flex; align-items: center; gap: 12px; }
.svc-cat h2 { font-size: 1.45rem; }
.svc-cat .count { font-size: .8rem; color: var(--muted); font-weight: 700; background: var(--sand); padding: 4px 11px; border-radius: 999px; }
.svc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 11px; margin-top: 18px; }
.svc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-weight: 600; color: var(--ink); transition: transform .16s, border-color .16s, box-shadow .16s, color .16s; }
.svc-item:hover { border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--clay-dark); }
.svc-item svg { width: 16px; height: 16px; opacity: .45; flex: 0 0 auto; }
.svc-empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }
.svc-empty.show { display: block; }

/* Gallery: masonry */
.gal-grid { columns: 3; column-gap: 18px; }
.gal-grid a { display: block; margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gal-grid img { width: 100%; display: block; transition: transform .45s ease; }
.gal-grid a:hover img { transform: scale(1.045); }
.gal-grid a { cursor: zoom-in; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(20,15,12,.82)); color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.gal-zoom { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.85); transition: .2s; }
.gal-zoom svg { width: 19px; height: 19px; }
.gal-grid a:hover .gal-zoom, .gal-grid a:focus-visible .gal-zoom { opacity: 1; transform: scale(1); }

/* Contact map */
.map-embed { width: 100%; height: 440px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }

/* Active nav link */
.site-nav a.navlink[aria-current="page"] { color: var(--ink); }
.site-nav a.navlink[aria-current="page"]::after { width: 100%; }
.site-nav a.btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--clay-soft); }

/* Responsive */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .ag-photo { max-width: 420px; }
  .values, .awards { grid-template-columns: 1fr; }
  .gal-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gal-grid { columns: 1; }
  .svc-items { grid-template-columns: 1fr; }
  .svc-search { top: 64px; }
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 52px; align-items: start; }
.detail-main { min-width: 0; }
.dsec { margin-bottom: 48px; }
.dsec:last-child { margin-bottom: 0; }
.dsec > h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-bottom: 8px; }
.dsec .dsec-intro { color: var(--muted); margin: 6px 0 22px; font-size: 1.05rem; }
.dsec > p { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.75; }
.dsec > p + p { margin-top: 16px; }

.sym-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 30px; }
.sym-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 1.05rem; }
.sym-list li svg { width: 22px; height: 22px; color: var(--clay); flex: 0 0 auto; margin-top: 2px; }

.info-card { background: var(--clay-soft); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 26px 30px; }
.info-card h3 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--clay-dark); flex: 0 0 auto; }
.info-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.info-card li { padding-left: 24px; position: relative; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.55; }
.info-card li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--clay-dark); font-weight: 700; }

.expect { display: grid; gap: 14px; }
.expect .ex { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.expect .ex .n { width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--serif); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.expect .ex h4 { font-size: 1.12rem; }
.expect .ex p { color: var(--muted); font-size: 1rem; margin-top: 4px; line-height: 1.6; }

.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.faq-item summary .mk { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--clay-soft); color: var(--clay-dark); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary .mk { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.7; font-size: 1.04rem; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-weight: 700; color: var(--ink); transition: transform .16s, border-color .16s, box-shadow .16s, color .16s; }
.rel-card:hover { border-color: var(--clay); color: var(--clay-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rel-card svg { width: 18px; height: 18px; opacity: .5; flex: 0 0 auto; }

/* sticky aside CTA */
.detail-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.cta-card { background: var(--green); color: #eaf0e8; border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 10%, rgba(192,101,60,.30), transparent 60%); }
.cta-card > * { position: relative; }
.cta-card h3 { color: #fff; font-size: 1.4rem; }
.cta-card p { color: #cdd9cf; margin-top: 10px; font-size: .98rem; line-height: 1.6; }
.cta-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.cta-card .call { display: block; text-align: center; margin-top: 14px; color: #eaf0e8; font-weight: 700; }
.cta-card .call:hover { color: #fff; text-decoration: underline; }
.aside-mini { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 24px; box-shadow: var(--shadow-sm); }
.aside-mini .am-row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.aside-mini .am-row:last-child { border-bottom: 0; }
.aside-mini .am-row svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.aside-mini .am-row .t { font-weight: 700; color: var(--ink); font-size: .95rem; }
.aside-mini .am-row .d { color: var(--muted); font-size: .9rem; margin-top: 1px; }

/* ===== Trust band (about) ===== */
.trust-band { background: var(--green); color: #eaf0e8; }
.trust-band .tb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.tb-stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.tb-stat .l { color: #cdd9cf; font-weight: 600; margin-top: 10px; font-size: .95rem; }
.tb-verify { margin-top: 42px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; }
.tb-verify .v { display: flex; gap: 10px; align-items: center; color: #dfe7dd; font-weight: 600; font-size: .96rem; }
.tb-verify .v svg { width: 20px; height: 20px; color: #a6d6af; flex: 0 0 auto; }

/* ===== Hours (contact) ===== */
.hours { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.hours h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.hours h3 svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }
.hours table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.hours td { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.hours tr:last-child td { border-bottom: 0; }
.hours td.day { font-weight: 700; color: var(--ink); width: 42%; }
.hours td.time { color: var(--ink-soft); text-align: right; font-weight: 600; }
.hours td.time small { display: block; color: var(--muted); font-weight: 500; }
.hours td.closed { color: var(--clay-dark); text-align: right; font-weight: 600; }
.hours .hnote { margin-top: 16px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20,15,12,.93); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; font-weight: 600; font-size: 1rem; padding: 0 80px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .16s; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 28px; color: #fff; font-weight: 600; opacity: .8; }

/* ===== Service-detail / trust / lightbox responsive ===== */
@media (max-width: 920px) {
  .detail { grid-template-columns: 1fr; gap: 38px; }
  .detail-aside { position: static; }
  .sym-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .trust-band .tb-stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 16px; }
  .lightbox .lb-cap { padding: 0 16px; bottom: 12px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lightbox .lb-btn { width: 46px; height: 46px; }
}

/* ===== Emergency / urgent condition styling ===== */
.emerg-banner {
  display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start;
  background: #FBE9E2; border: 1px solid #EFC3B3; border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 40px;
}
.emerg-banner .eb-ico { width: 30px; height: 30px; color: #B23217; }
.emerg-banner h2 { font-size: 1.3rem; color: #8A2B16; margin: 0; }
.emerg-banner p { color: var(--ink-soft); margin-top: 8px; line-height: 1.6; font-size: 1.05rem; }
.emerg-banner p strong { color: #8A2B16; }

.info-card.danger { background: #FBE9E2; border-color: #EFC3B3; }
.info-card.danger h3 { color: #8A2B16; }
.info-card.danger h3 svg { color: #B23217; }
.info-card.danger li::before { content: "!"; font-weight: 800; color: #B23217; }

.cta-card.emergency { background: #8A2B16; }
.cta-card.emergency::before { background: radial-gradient(60% 80% at 90% 10%, rgba(255,255,255,.14), transparent 60%); }
.cta-card.emergency h3 { color: #fff; }
.cta-card.emergency p { color: #f4dcd2; }
.cta-card.emergency .btn-light { border-color: rgba(255,255,255,.7); }
.cta-card.emergency .call { color: #fff; }
