/* Gessraha Pharmacies — v3 light restyle (31 Oct 2026).
   White, airy pages; large light headings; flat purple + green shapes from the logo; pill buttons. */
:root {
  --brand: #8E2B7D;
  --brand-dark: #7D1E6F;
  --brand-deep: #4E1145;
  --accent: #81BA59;
  --accent-dark: #3F7A22;
  --lilac: #D9B8D2;
  --ink: #2B1228;
  --muted: #6B5868;
  --line: #ECDDE8;
  --tint: #FAF3F8;
  --tint-green: #F1F7EB;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(43, 18, 40, .04), 0 12px 32px -12px rgba(43, 18, 40, .12);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--brand-deep); line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* ---------- top bar + header */
.topbar { background: var(--brand); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; padding-block: 8px; text-align: center; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.topbar a .icon { width: 16px; height: 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--brand-deep); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; border-color: var(--accent); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: var(--brand); }
.btn-green { background: var(--accent); color: var(--ink); }
.btn-green:hover { background: #8fc867; }
.btn-outline { border-color: var(--brand-deep); color: var(--brand-deep); background: transparent; }
.btn-outline:hover { background: var(--brand-deep); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--brand-deep); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow:hover { gap: 10px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }

/* ---------- type */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 14px; letter-spacing: .01em; }
.h-xl { font-weight: 300; font-size: clamp(32px, 3.9vw, 48px); letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* ---------- hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; min-height: 600px; }
.hero-copy { padding-block: 72px 88px; align-self: center; }
.hero h1 { font-weight: 300; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.15; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--brand); font-weight: 400; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 22px 0 32px; }
.live-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.live-line b { color: var(--accent-dark); font-weight: 600; }
.live-line .sep { opacity: .5; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(129, 186, 89, .6); }
.hero-figure { position: relative; align-self: stretch; min-height: 560px; }
.shape { position: absolute; display: block; }
.shape-q { inset-inline-start: 4%; bottom: 0; width: 74%; aspect-ratio: 1; background: var(--brand); border-start-start-radius: 100%; }
.shape-b { inset-inline-end: 0; bottom: 0; width: 40%; height: 44%; background: var(--accent); border-radius: 26px 26px 0 0; }
.hero-figure .cutout { position: absolute; bottom: 0; left: 0; right: 0; margin: 0 auto; width: min(88%, 470px); height: auto; max-height: 100%; object-fit: contain; object-position: bottom; }

/* ---------- blocks */
.block { padding-block: 96px; }
.band { background: var(--tint); padding-block: 96px; }
.flush { padding-bottom: 0; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 34px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--lilac); box-shadow: var(--shadow); }
.blocks { width: 76px; height: 76px; margin-bottom: 26px; }
.blocks rect { mix-blend-mode: multiply; opacity: .88; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* rx band: accordion + chat mock */
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.steps-acc { margin-top: 32px; border-top: 1px solid var(--line); }
.steps-acc details { border-bottom: 1px solid var(--line); }
.steps-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: 19px; font-weight: 500; color: var(--brand-deep); }
.steps-acc summary::-webkit-details-marker { display: none; }
.steps-acc summary::after { content: "+"; margin-inline-start: auto; font-size: 24px; font-weight: 300; color: var(--brand); transition: transform .25s; }
.steps-acc details[open] summary::after { transform: rotate(45deg); }
.steps-acc .n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lilac); display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--brand); flex: none; }
.steps-acc details[open] .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-acc details p { color: var(--muted); padding-bottom: 20px; padding-inline-start: 50px; }
.band .link-arrow { margin-top: 26px; }
.rx-promise { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.rx-promise .icon { width: 28px; height: 28px; color: var(--accent-dark); }

.phone { justify-self: center; width: 100%; max-width: 380px; background: #fff; border-radius: 34px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(78, 17, 69, .35); overflow: hidden; }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--brand-deep); color: #fff; }
.phone-head b { display: block; font-size: 16px; }
.phone-head span { font-size: 13px; opacity: .75; }
.ph-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff url("logos/gessraha-icon.svg") center/70% no-repeat; flex: none; }
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 22px; background: #F6EFF4; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.6; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.msg.in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg.out { align-self: flex-end; background: #E2F2D4; border-start-end-radius: 4px; }
.rx-thumb { width: 150px; height: 92px; border-radius: 10px; background: #fff; border: 1px solid #d5e8c4; padding: 12px; margin-bottom: 8px; display: grid; gap: 7px; align-content: start; }
.rx-thumb i { display: block; height: 6px; border-radius: 3px; background: #E7DCE4; }
.rx-thumb i:nth-child(2) { width: 75%; } .rx-thumb i:nth-child(3) { width: 55%; }
.phone-note { text-align: center; font-size: 12px; color: var(--muted); padding: 10px; border-top: 1px solid var(--line); }

/* map card */
.map-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; align-items: center; background: #fff; }
.branch-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.branch-list a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, background-color .2s; }
.branch-list a:hover { border-color: var(--brand); background: var(--tint); }
.branch-list b { color: var(--brand-deep); font-weight: 600; }
.branch-list span { color: var(--muted); font-size: 15px; }
.branch-list .tel { color: var(--brand); font-weight: 600; justify-self: start; }
.map-art { position: relative; background: var(--tint-green); border-radius: 22px; padding: 18px; }
.gmap { width: 100%; height: auto; overflow: visible; }
.gmap .gov { fill: #fff; stroke: var(--lilac); stroke-width: 2; stroke-dasharray: 6 6; }
.gmap .nile { fill: none; stroke: #A9CFE8; stroke-width: 7; stroke-linecap: round; }
.gmap .gov-label { font: 300 26px var(--font); fill: var(--lilac); text-anchor: middle; }
.gmap .pin circle:not(.pulse) { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.gmap .pin .pulse { fill: var(--brand); opacity: .15; }
.gmap .pin text { font: 600 17px var(--font); fill: var(--brand-deep); text-anchor: middle; }
.map-note { position: absolute; bottom: 12px; inset-inline-start: 16px; font-size: 12px; color: var(--muted); }
.map-shell { position: relative; border-radius: 22px; overflow: hidden; min-height: 420px; background: var(--tint-green); height: 100%; }
.map-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.map-fallback .pin { width: 40px; height: 40px; color: var(--brand); margin: 0 auto 8px; }
.map-chip { position: absolute; bottom: 16px; inset-inline-start: 16px; }

/* alternating rows */
.rows { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.row-copy p { color: var(--muted); font-size: 18px; margin-bottom: 22px; max-width: 520px; }
.row-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--tint); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.service { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.service h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.service p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.badge { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.badge .icon { width: 24px; height: 24px; }
.more { margin-top: 26px; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.svc-detail { display: flex; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; scroll-margin-top: 120px; }
.svc-detail h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.svc-short { color: var(--brand-deep); font-weight: 500; margin-bottom: 8px; }
.svc-detail p:not(.svc-short) { color: var(--muted); font-size: 16px; }

/* branch proof stats */
.proof { border-block: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: 30px 24px; border-inline-start: 1px solid var(--line); display: grid; gap: 4px; }
.proof .wrap > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.proof strong { font-size: 32px; font-weight: 300; color: var(--brand-deep); line-height: 1.2; }
.proof span { color: var(--muted); font-size: 15px; }

/* products shelf */
.shelf { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.shelf li { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.shelf-note { margin-top: 22px; color: var(--muted); }

/* facts table */
.facts { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 16px; }
.facts th, .facts td { text-align: start; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 36%; padding-inline-end: 12px; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 500; color: var(--brand-deep); display: flex; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-inline-start: auto; font-size: 24px; font-weight: 300; color: var(--brand); line-height: 1; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 20px; }

/* beauty */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--brand-deep); font-weight: 500; transition: border-color .2s, background-color .2s; }
.cat:hover { border-color: var(--brand); background: var(--tint); }
.cat .icon { color: var(--brand); width: 24px; height: 24px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; scroll-margin-top: 120px; }
.cat-card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 8px; }
.cat-card p { color: var(--muted); font-size: 15.5px; }
.mini-tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tags li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--brand-deep); }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.brand { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.brand header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.brand h3 { font-size: 24px; font-weight: 400; }
.brand header span { color: var(--muted); font-size: 14px; }
.brand p { color: var(--muted); font-size: 15.5px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); margin-top: 80px; padding-block: 22px; direction: ltr; }
.marquee-inner { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.marquee li { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.marquee b { font-size: 26px; font-weight: 300; color: var(--brand-deep); }
.marquee span { font-size: 14px; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* final cta */
.final { padding-block: 110px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); scroll-margin-top: 100px; }
.final-mark { margin: 0 auto 22px; width: 84px; height: auto; }
.final h2 { font-weight: 300; font-size: clamp(36px, 4.6vw, 58px); }
.final p { color: var(--muted); font-size: 19px; margin: 14px auto 34px; max-width: 560px; }
.note { color: var(--muted); font-size: 15px; padding-block: 28px; text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 120px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 16px; }
.site-footer h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.site-footer a { color: var(--brand-deep); }
.foot-links { margin-top: 12px; }
.fineprint { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* mobile action bar */
.action-bar { display: none; }

/* ---------- motion (site.js adds .motion unless reduced motion is requested) */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .shape-q { animation: grow 1.1s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 100% 100%; }
.motion .shape-b { animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both, bob 7s 1.4s ease-in-out infinite alternate; }
.motion .hero-figure .slide.on .cutout { animation: fadeup 1.1s .35s cubic-bezier(.2, .7, .2, 1) both; }
.motion .dot { animation: ping 2.4s ease-out infinite; }
.motion .gmap .pulse { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.motion .msg { animation: fadeup .6s cubic-bezier(.2, .7, .2, 1) both; }
.motion .phone:not(.in) .msg { animation-play-state: paused; }
.motion .msg:nth-child(2) { animation-delay: .5s; } .motion .msg:nth-child(3) { animation-delay: 1.1s; }
.motion .msg:nth-child(4) { animation-delay: 1.7s; } .motion .msg:nth-child(5) { animation-delay: 2.3s; }
@keyframes grow { from { transform: scale(.6); opacity: 0; } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
@keyframes bob { to { translate: 0 -10px; } }
@keyframes fadeup { from { transform: translateY(24px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(129, 186, 89, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(129, 186, 89, 0); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marquee-inner { animation: none; } html { scroll-behavior: auto; } }

/* ---------- responsive */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px; }
  .logo img { height: 40px; }
  .nav { order: 3; width: calc(100% + 48px); margin: 6px -24px 0; padding: 0 24px 8px; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .header-cta { display: block; margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-block: 44px 36px; }
  .hero .lead { font-size: 17px; }
  .hero-figure { min-height: 0; height: min(100vw, 430px); max-width: 460px; width: 100%; margin-inline: auto; }
  .block, .band { padding-block: 64px; }
  .flush { padding-bottom: 0; }
  .cards, .services, .svc-list, .cats, .cat-grid, .brand-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .band-grid, .map-card, .row, .faq { grid-template-columns: 1fr; gap: 36px; }
  .map-card { padding: 24px; border-radius: 22px; }
  .row.flip .row-copy { order: 0; }
  .rows { gap: 64px; }
  .row-img { order: -1; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof .wrap > div { padding: 20px 14px; border-top: 1px solid var(--line); }
  .proof .wrap > div:nth-child(-n+2) { border-top: 0; }
  .proof .wrap > div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .proof strong { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .final { padding-block: 72px; }
  .marquee { margin-top: 56px; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 48px; padding: 0 12px; }
  .steps-acc details p { padding-inline-start: 0; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .nav { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
  .cats { grid-template-columns: 1fr; }
  .btn { padding: 0 20px; }
  .header-cta .btn { padding: 0 14px; }
}
.faq > *, .row > *, .band-grid > *, .map-card > *, .hero-grid > * { min-width: 0; }
.facts td { overflow-wrap: anywhere; }
.faq-list summary { display: block; position: relative; padding-inline-end: 40px; }
.faq-list summary::after { position: absolute; inset-inline-end: 0; top: 18px; }

/* photo band (wide scene image with overlaid copy) */
.photo-band { padding-block: 24px 96px; }
.pb-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--tint); }
.pb-frame img { width: 100%; height: 100%; object-fit: cover; }
.pb-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(43, 18, 40, .78) 0%, rgba(43, 18, 40, .35) 45%, rgba(43, 18, 40, 0) 70%); }
.pb-copy { position: absolute; z-index: 1; inset-inline-start: 0; bottom: 0; top: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 520px; color: #fff; }
.pb-copy h2 { color: #fff; font-weight: 300; font-size: clamp(28px, 3.4vw, 44px); }
.pb-copy p { margin-top: 12px; font-size: 18px; opacity: .9; }
.pb-cap { position: absolute; z-index: 1; bottom: 12px; inset-inline-end: 16px; font-size: 12px; color: rgba(255, 255, 255, .75); }
img.blocks { object-fit: contain; width: 88px; height: 88px; margin-bottom: 20px; }
.branch-list .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.branch-list .stars { color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.motion .pb-frame img { transform: scale(1.06); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.motion .pb-frame.in img { transform: none; }
@media (max-width: 900px) {
  .photo-band { padding-block: 8px 64px; }
  .pb-frame { aspect-ratio: 4 / 5; }
  .pb-frame::after { background: linear-gradient(0deg, rgba(43, 18, 40, .85) 0%, rgba(43, 18, 40, .3) 55%, rgba(43, 18, 40, 0) 75%); }
  .pb-copy { top: auto; padding: 24px; }
}

/* hero slideshow: cut-out portrait, then storefront photos (crossfade + slow zoom) */
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide-photo { inset: 6% 0 0 8%; border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(78, 17, 69, .45); }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.motion .slide-photo.on img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translateX(2%); } to { transform: none; } }
.slide-dots { position: absolute; z-index: 3; bottom: 16px; inset-inline-end: 16px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
.slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--lilac); cursor: pointer; transition: width .3s, background-color .3s; }
.slide-dots button[aria-current] { width: 22px; background: var(--brand); }
.slide-photo .pb-cap { bottom: 12px; inset-inline-start: 14px; inset-inline-end: auto; }

/* ---------------------------------------------------------------- v3.1: branch cards, chooser sheet, FAQ, blog */
.bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; text-align: start; max-width: 980px; margin: 0 auto; }
.bc-grid > * { min-width: 0; }
.bc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.bc h3 { font-size: 22px; font-weight: 500; }
.bc h3 a { color: var(--brand-deep); text-decoration: none; }
.bc p { margin: 0 !important; font-size: 16px !important; color: var(--muted); max-width: none !important; }
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bc-meta a { color: var(--ink); text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.bc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.bc-btns .btn { justify-content: center; width: 100%; }
.bc-links { font-size: 14px !important; }
.bc-links a { color: var(--brand); }
.bc-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 0; font-size: 15px; }
.bc-facts dt { color: var(--muted); }
.bc-facts dd { margin: 0; color: var(--ink); }
.bc-facts a { color: var(--brand-deep); }

.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(43, 18, 40, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-panel { background: #fff; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(43, 18, 40, .2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-size: 18px; color: var(--brand-deep); }
.sheet-x { border: 0; background: var(--tint); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--brand-deep); }
.sheet-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); margin-top: 10px; }
.sheet-row:hover { background: var(--tint); }
.sheet-row > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sheet-row small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-num { font-weight: 600; color: var(--brand-deep); }
.sheet-row svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

.page-hero { padding: 64px 0 28px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.page-hero h1 { font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); color: var(--brand-deep); margin: 10px 0 12px; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 680px; }
.tight-top { padding-top: 24px !important; }
.h-lg { font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); color: var(--brand-deep); margin-bottom: 18px; }
.h3 { font-size: 20px; font-weight: 500; color: var(--brand-deep); margin: 0 0 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--brand-deep); text-decoration: none; font-size: 15px; }
.toc a:hover { background: var(--lilac); }
.faq-page { max-width: 860px; }
.faq-group { margin-bottom: 44px; scroll-margin-top: 100px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-grid > * { min-width: 0; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.post-card .post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 20px; font-weight: 500; color: var(--brand-deep); line-height: 1.5; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-tag { align-self: flex-start; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--tint-green); color: var(--accent-dark); }
.post-meta { font-size: 14px; color: var(--muted); }

.post { padding: 56px 0 80px; }
.narrow { max-width: 760px; }
.post-head h1 { font-weight: 300; font-size: clamp(32px, 4.2vw, 52px); color: var(--brand-deep); margin: 12px 0; line-height: 1.35; }
.post-cover { margin: 28px 0 8px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
.post-cover figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose { font-size: 18px; line-height: 1.95; color: var(--ink); }
.prose .post-lead { font-size: 20px; color: var(--brand-deep); }
.prose h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); color: var(--brand-deep); margin: 40px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 500; color: var(--brand-deep); margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose ol.steps-list { counter-reset: s; list-style: none; padding: 0; }
.prose ol.steps-list > li { counter-increment: s; position: relative; padding-inline-start: 46px; margin-bottom: 14px; }
.prose ol.steps-list > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand); font-weight: 600; display: grid; place-items: center; font-size: 15px; }
.prose ul.warn { background: #FFF5F5; border: 1px solid #F6D5D5; border-radius: var(--radius); padding: 18px 40px 18px 22px; padding-inline-start: 40px; }
.prose .compare { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.prose .compare th, .prose .compare td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose .compare th { background: var(--tint); color: var(--brand-deep); font-weight: 500; }
.prose a { color: var(--brand); }
.disclaimer { font-size: 14px; color: var(--muted); background: var(--tint); border-radius: var(--radius); padding: 14px 18px; margin-top: 28px; }
.post-cta { margin-top: 36px; padding: 28px; border-radius: var(--radius-lg); background: var(--brand-deep); color: #fff; }
.post-cta h2 { color: #fff; font-weight: 300; font-size: 28px; margin: 0 0 8px; }
.post-cta p { color: rgba(255, 255, 255, .8); }
.post-cta .bc-btns { max-width: 420px; }
@media (max-width: 600px) {
  .bc { padding: 22px; }
  .page-hero { padding: 40px 0 16px; }
  .prose { font-size: 17px; }
}

/* v3.2 comparison posts: mini reviews */
.prose .rv-grid { display: grid; gap: 16px; margin: 8px 0 18px; }
.prose .rv { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.prose .rv h3 { margin: 0 0 2px; font-size: 18px; }
.prose .rv-kind { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.prose .rv dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 16px; line-height: 1.7; }
.prose .rv dt { color: var(--brand-deep); font-weight: 500; }
.prose .rv dd { margin: 0; }
.prose .stock-note { font-size: 15px; color: var(--muted); background: var(--tint-green); border-radius: var(--radius); padding: 10px 14px; }
@media (max-width: 600px) { .prose .rv dl { grid-template-columns: 1fr; gap: 0 0; } .prose .rv dd { margin-bottom: 8px; } }
img.post-cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* v3.3 English version: language switch + direction-aware icons */
.lang-switch { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.lang-switch:hover { background: rgba(255, 255, 255, .12); }
html[dir="ltr"] .icon-dir { transform: scaleX(-1); }
@media (max-width: 900px) {
  .lang-switch { margin-inline-start: auto; height: 32px; padding: 0 12px; }
  .lang-switch + .header-cta { margin-inline-start: 8px; }
}

