/*
Theme Name: Dr. Rohit Barnabas
Theme URI: https://rohitbarnabas.com
Author: Website team
Description: Custom block theme for Dr. Rohit Barnabas, Consultant Endocrinologist, Diabetologist & Thyroid Specialist, Mumbai. Pages are built from editable blocks; health articles are WordPress posts.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dr-rohit-barnabas
*/

/* Layout: calm consultant's practice — serif name and headings, teal ink, a single gold hairline as the signature detail. Single light theme by choice (clinic brand). */
:root {
  --ink: #0E2F37;
  --teal: #0B5566;
  --teal-dark: #083F4C;
  --gold: #B08A4A;
  --paper: #F5F6F4;
  --white: #FFFFFF;
  --text: #11262D;
  --muted: #4A5F65;
  --line: #DDE3E1;
  --tint: #E8F1EF;
  --serif: 'Poppins', Arial, Helvetica, sans-serif;
  --sans: 'Poppins', Arial, Helvetica, sans-serif;
  --accent: #E0762B;
  --accent-dark: #C4611C;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); font-weight: 600; line-height: 1.25; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.9rem; font-weight: 500; color: var(--accent); }
.rule { width: 48px; height: 3px; background: var(--accent); border: 0; margin: 0; border-radius: 2px; }

/* Top bar */
.topbar { background: var(--teal); color: #E3F0EE; font-size: 0.85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #FFFFFF; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.brand-name span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 0.95rem; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { background: var(--accent); border-color: var(--accent); color: var(--white); padding: 10px 18px; border-radius: 6px; }
.nav .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.brand-name strong { font-family: var(--sans); font-weight: 600; }
.brand-name span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.78rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--teal); background: var(--teal); color: var(--white); cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); }
.btn-outline:hover { background: var(--tint); color: var(--teal-dark); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: 72px; }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #D5E6E4; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .eyebrow { color: #8FD3CF; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 56px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 14px; }

/* Home slider (1240×550 slides) */
.slider-band { background: var(--ink); }
.slider { position: relative; max-width: 1240px; margin: 0 auto; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 52px; }
.hero-photo img, .about-grid .portrait img { height: auto; }
.slider-dots a { background: rgba(255,255,255,0.6) !important; }
.slider-dots a[aria-current="true"] { background: var(--accent) !important; }

/* Quick action tiles, overlapping the slider */
.quick { position: relative; z-index: 2; margin-top: -40px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--white); border-radius: 10px; box-shadow: 0 12px 32px rgba(14,47,55,0.14); overflow: hidden; }
.quick-tile { display: flex; align-items: center; gap: 14px; padding: 22px 24px; text-decoration: none; color: var(--teal); border-right: 1px solid var(--line); min-width: 0; }
.quick-tile:last-child { border-right: 0; }
.quick-tile:hover { background: var(--tint); color: var(--teal-dark); }
.quick-tile:first-child { background: var(--accent); color: var(--white); }
.quick-tile:first-child:hover { background: var(--accent-dark); color: var(--white); }
.quick-tile:first-child small { color: #FFE9D9; }
.quick-tile strong { display: block; color: inherit; font-size: 1rem; font-weight: 600; }
.quick-tile small { display: block; color: var(--muted); font-size: 0.85rem; }
.quick-tile svg { flex: none; }

/* Doctor profile */
.profile { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.profile-photo { flex: 1 1 300px; max-width: 420px; }
.profile-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; border-radius: 10px; }
.clinic-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: 8px; }
.clinic-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.clinic-gallery img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) { .clinic-gallery { grid-template-columns: minmax(0, 1fr); } }
.profile-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.profile-role { color: var(--teal); font-weight: 500; font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 8px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn-light:hover { background: var(--tint); color: var(--teal-dark); border-color: var(--tint); }

/* Stats band */
.stats-band { background: var(--teal); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-block: 36px; }
.stat { text-align: center; padding: 8px 12px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.95rem; color: #D5E9EB; }

/* Centered section titles */
.title-center { text-align: center; max-width: 640px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.title-center h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.title-center p { color: var(--muted); }
.center-btn { display: flex; justify-content: center; margin-top: 32px; }

/* Specialities */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.spec { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--white); overflow: hidden; }
.spec-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.spec-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.spec:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(14,47,55,0.08); color: var(--text); }
.spec-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.spec strong { font-weight: 600; color: var(--ink); }
.spec small { color: var(--muted); font-size: 0.88rem; }

/* Hospitals */
.hosp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hosp { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.hosp strong { color: var(--ink); font-weight: 600; }
.hosp span { color: var(--muted); font-size: 0.9rem; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.award { border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.award strong { color: var(--ink); font-weight: 600; }
.award span { color: var(--muted); font-size: 0.9rem; }

/* Article tags */
.tag { align-self: flex-start; background: var(--tint); color: var(--teal-dark); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

/* Appointment band */
.appt-band { background: var(--ink); color: #D5E6E4; }
.appt-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; }
.appt-band h2 { color: var(--white); }

@media (max-width: 640px) {
  .quick { margin-top: 0; }
  .quick-grid { border-radius: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-tile { flex-direction: column; text-align: center; padding: 16px 10px; border-bottom: 1px solid var(--line); }
  .slider-dots { bottom: 10px; }
  .stat { border-right: 0; }
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.slide img { width: 100%; height: auto; aspect-ratio: 1240 / 550; object-fit: cover; }
.slider-dots { display: flex; justify-content: center; gap: 10px; padding-top: 14px; }
.slider-dots a { width: 12px; height: 12px; border-radius: 50%; background: var(--line); display: block; }
.slider-dots a[aria-current="true"] { background: var(--teal); width: 28px; border-radius: 999px; }

/* Home hero */
.hero { background: var(--white); padding-block: 56px 64px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-photo { flex: 1 1 300px; max-width: 420px; margin: 0 auto; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 20px; }
.hero-badge { position: absolute; left: -12px; bottom: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 28px rgba(14, 47, 55, 0.14); display: flex; flex-direction: column; }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }
.hero-badge strong { font-size: 1rem; color: var(--ink); }
.creds { font-weight: 600; color: var(--ink); }
.hospitals { font-size: 0.95rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.fact { border-top: 1px solid var(--gold); padding-top: 10px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* Cards / grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card a.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover .card { border-color: var(--teal); }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 48px; padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.service:first-of-type { border-top: 0; }
.service ul { margin: 0; padding-left: 20px; color: var(--muted); }
.service .stack p { color: var(--muted); }
@media (max-width: 760px) { .service { grid-template-columns: minmax(0, 1fr); } }

/* Clinics */
.clinic { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.days { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: var(--tint); color: var(--teal-dark); }
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.day { border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.day strong { font-size: 1rem; }
.day-g { background: var(--teal); color: var(--white); }
.day-t { background: #EFE5D3; color: #5A4213; }
@media (max-width: 640px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.about-grid .portrait { flex: 1 1 260px; max-width: 340px; }
.about-grid .portrait img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; width: 100%; }
.about-grid .bio { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.timeline li span { font-family: var(--serif); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.timeline li p { color: var(--muted); }
.timeline li strong { color: var(--ink); display: block; }

/* Articles */
.article-body { max-width: 68ch; display: flex; flex-direction: column; gap: 18px; font-size: 1.05rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 12px; }
.article-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article-meta { font-size: 0.9rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: var(--white); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: var(--tint); }
td { font-variant-numeric: tabular-nums; }
.note { background: var(--tint); border-radius: 12px; padding: 16px 18px; font-size: 0.95rem; color: var(--text); }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin-top: 10px; color: var(--muted); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #B9CCC9; border-radius: 12px; min-height: 48px; background: var(--white); color: var(--text); width: 100%; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot p { font-size: 0.85rem; color: var(--muted); max-width: 46ch; }
.form-status { grid-column: 1 / -1; }

/* CTA band */
.cta { background: var(--teal); color: #D5E9EB; border-radius: 22px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: var(--white); }
.cta .btn { background: var(--white); color: var(--teal); border-color: var(--white); }
.cta .btn-outline { background: transparent; color: var(--white); border-color: #8FC0C6; }
.cta .btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* Footer */
.site-footer { background: var(--ink); color: #C9DCDA; padding-block: 48px 28px; font-size: 0.93rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.foot-grid h3 { color: var(--white); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid #2E5560; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }

/* ---- Max-style additions ---- */
.topbar-note { opacity: 0.95; }
.topbar-links { align-items: center; }
.tb-wa { font-weight: 600; }
.tb-callback { background: var(--accent); color: #FFFFFF; padding: 4px 12px; border-radius: 4px; font-weight: 600; }
.tb-callback:hover { background: var(--accent-dark); text-decoration: none !important; }

/* Appointment strip */
.appt-strip { padding-block: 32px 8px; }
.appt-form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) auto; gap: 14px 16px; align-items: end; box-shadow: 0 6px 20px rgba(14,47,55,0.06); }
.appt-form-title h2 { font-size: 1.2rem; }
.appt-form-title p { font-size: 0.88rem; color: var(--muted); }
.appt-form .field input, .appt-form .field select { min-height: 46px; padding: 10px 12px; border-radius: 8px; }
.appt-status { grid-column: 1 / -1; }
@media (max-width: 980px) { .appt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .appt-form-title, .appt-form .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .appt-form { grid-template-columns: minmax(0, 1fr); } }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 600; font-size: 0.98rem; padding: 10px 22px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.cond-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cond-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; background: var(--white); min-height: 52px; }
.cond-list a::after { content: "›"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.cond-list a:hover { border-color: var(--teal); background: var(--tint); }

/* Reviews band */
.reviews-band { background: var(--tint); }
.reviews-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.reviews-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.reviews-text p { color: var(--muted); max-width: 52ch; }
.reviews-cards { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.review-card strong { color: var(--ink); font-weight: 600; }
.review-card span { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.review-card:hover { border-color: var(--teal); }

/* Footer */
.foot-disclaimer { margin: 28px 0 0; font-size: 0.82rem; color: #9DB8B6; max-width: 90ch; }
.foot-legal a { color: #FFFFFF; }

/* Floating contact buttons */
.floating { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.floating a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; box-shadow: 0 8px 20px rgba(0,0,0,0.22); }
.fl-wa { background: #1FA855; }
.fl-call { background: var(--accent); }
.fl-top { background: var(--ink); width: 44px !important; height: 44px !important; align-self: center; }
.floating a:hover { color: #FFFFFF; filter: brightness(1.08); }

/* ---- Header fit (v1.0.1) ---- */
.topbar .wrap, .site-header .wrap { max-width: 1280px; }
.topbar { font-size: 0.8rem; }
.topbar .wrap { align-items: center; flex-wrap: nowrap; gap: 6px 16px; }
.topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-links { flex-wrap: nowrap; gap: 4px 14px; white-space: nowrap; flex: none; }
.site-header .wrap { flex-wrap: nowrap; padding-block: 12px; }
.brand { flex: none; }
.brand svg { width: 42px; height: 42px; }
.brand-name strong { font-size: 1.05rem; }
.brand-name span { font-size: 0.74rem; }
.nav { flex-wrap: nowrap; justify-content: flex-end; gap: 4px 18px; font-size: 0.93rem; }
.nav a { white-space: nowrap; }
.nav .btn { margin-left: 4px; }
@media (max-width: 1120px) {
  .brand-name span { display: none; }
  .nav { gap: 4px 14px; font-size: 0.9rem; }
}
@media (max-width: 900px) {
  .topbar .wrap { flex-wrap: wrap; justify-content: center; }
  .topbar-note { display: none; }
  .site-header .wrap { flex-wrap: wrap; justify-content: center; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
}
@media (max-width: 480px) {
  .topbar-links a:not(.tb-callback):not(.tb-wa) { display: none; }
}


/* ---- Phone polish (v1.0.2) ---- */
.nav-toggle { display: none; }
.quick-tile span { min-width: 0; }
.quick-tile small { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; justify-content: space-between; position: relative; }
  .brand-name span { display: none; }
  .site-header .wrap { gap: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14,47,55,0.12); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); font-size: 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin: 12px 0 0; justify-content: center; border-bottom: 0; }
}
@media (max-width: 600px) {
  .slide img { aspect-ratio: 8 / 7; }
  .slider-dots { bottom: 10px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-tile { padding: 14px 10px; }
  .quick-tile strong { font-size: 0.92rem; }
  .quick-tile small { font-size: 0.78rem; }
}


/* ---- Hospital logos (v1.0.3) ---- */
.hosp-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hosp-logos .hosp { padding: 18px 16px 20px; gap: 6px; align-items: center; }
.hosp-logo { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 12 / 5; margin-bottom: 8px; }
.hosp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 1000px) { .hosp-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hosp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hosp-logos .hosp { padding: 12px 10px 14px; } .hosp-logos .hosp strong { font-size: 0.9rem; } }


/* ---- Official logo (v1.1.0) ---- */
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 54px; width: auto; max-width: 100%; }
@media (max-width: 1120px) { .brand-logo { height: 48px; } }
@media (max-width: 900px) { .brand-logo { height: 42px; } }
@media (max-width: 400px) { .brand-logo { height: 36px; } }

/* ---- WordPress integration ---- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .wp-block-html { margin: 0; }
.entry-content > *, .wp-block-post-content > * { margin-block-start: 0; }
.rb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; }
/* Blog (articles) listing */
.rb-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.rb-posts .wp-block-post { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rb-posts .wp-block-post-title { font-size: 1.15rem; margin: 0; }
.rb-posts .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.rb-posts .wp-block-post-title a:hover { color: var(--teal); }
.rb-posts .wp-block-post-terms a { display: inline-block; background: var(--tint); color: var(--teal-dark); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; text-decoration: none; }
.rb-posts .wp-block-post-excerpt { color: var(--muted); font-size: 0.97rem; margin: 0; }
.rb-posts .wp-block-post-excerpt__more-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.rb-posts .wp-block-query-pagination { margin-top: 28px; gap: 12px; }
/* Single article */
.rb-article { max-width: 760px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
.rb-article .wp-block-post-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 10px 0 6px; }
.rb-article .wp-block-post-content { font-size: 1.05rem; }
.rb-article .wp-block-post-content > * + * { margin-top: 1em; }
.rb-article .wp-block-post-content h2 { font-size: 1.4rem; margin-top: 1.6em; }
.rb-article .wp-block-post-content ul { padding-left: 22px; }
.rb-article .wp-block-table table { background: var(--white); }
.rb-article .rb-meta { color: var(--muted); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rb-article .rb-article-cta { margin-top: 36px; }
