/* ==========================================================================
   Dr. Pranav Mohan Singhal: site theme
   --------------------------------------------------------------------------
   Loaded at the END of <head> on every page (include/head-theme.php), so it
   sets the shared look over the older per-page styles. Page-specific layout
   rules still live in each page; this file owns colours, type, buttons,
   cards, page headers, the site header, FAQ, call-to-action and footer.

   Concept: "under the surgical light". One luminous moment (the operating
   light in the home hero and the video thumbnail); everything else calm,
   clinical and precise. Gold is reserved for distinctions and fine rules.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-opsz.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-text: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ink: #0c3b43;          /* deep operating-theatre teal */
  --ink-2: #082f36;        /* deepest, footer */
  --teal: #14697a;         /* actions and links */
  --teal-700: #0f5664;     /* hover */
  --mist: #eef5f6;         /* quiet sections */
  --mist-2: #f6fafa;       /* softest surface */
  --line: #d6e5e8;         /* hairlines */
  --gold: #c9a03d;         /* rules, marks, icons */
  --gold-soft: #e6c97a;    /* gold text on dark */
  --gold-ink: #876118;     /* gold text on light (AA) */
  --text: #1b2a30;
  --muted: #52707a;
  --wa: #0f7a3f;           /* WhatsApp action, AA with white text */

  /* names the older page styles already use */
  --teal-dark: var(--ink);
  --teal-light: var(--mist);
  --gold-light: #f3e7c6;
  --charcoal: var(--text);
  --gray-muted: var(--muted);
  --cream: var(--mist-2);
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(12, 59, 67, .05), 0 10px 26px -16px rgba(12, 59, 67, .22);
  --shadow-md: 0 2px 6px rgba(12, 59, 67, .06), 0 26px 50px -26px rgba(12, 59, 67, .38);
  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-media: 22px;

  --gutter: clamp(1rem, 4vw, 1.5rem);
  --header-h: 116px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  overflow-x: clip;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  padding-top: var(--header-h);
}

h1, h2, h3, h4,
.brand,
.home-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #cfe6ea;
  color: var(--ink);
}

.container-x {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.teal { color: var(--teal); }
.navy { color: var(--ink); }

/* ---------- Focus & skip link ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  transform: translateY(-160%);
  background: var(--ink);
  color: #ffffff;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.main:focus {
  outline: none;
}

/* ---------- Section rhythm ---------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
}

.section-compact {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(3rem, 6vw, 4.5rem);
}

.cream {
  background: var(--mist-2);
}

/* ---------- Headings, labels ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .8rem;
  font-family: var(--font-text);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--gold-ink);
}

.section-tag::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

.section-tag i {
  display: none;
}

.text-center .section-tag::after {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

.section-title {
  font-size: clamp(1.95rem, 1.35rem + 2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 540;
  color: var(--ink);
  margin-bottom: .65rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 62ch;
}

.leading {
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.btn-outline,
.white-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
  transform: none;
  box-shadow: 0 12px 24px -14px rgba(15, 86, 100, .8);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  transform: none;
}

.white-btn {
  background: #ffffff;
  color: var(--ink);
}

.white-btn:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.btn-primary.btn-wa,
.btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #ffffff;
}

.btn-primary.btn-wa:hover,
.btn-wa:hover {
  background: #0b6332;
  border-color: #0b6332;
  color: #ffffff;
}

.btn-primary i,
.btn-outline i {
  margin: 0;
}

/* ---------- Cards, pills ---------- */
.card-elev {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(12, 59, 67, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card-elev:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(12, 59, 67, .04);
}

.card-elev h2,
.card-elev h3 {
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--mist);
  color: var(--ink);
  border: 1px solid #d0e2e5;
  border-radius: 999px;
  padding: .28rem .75rem;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.35;
}

.label-small {
  font-family: var(--font-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--gold-ink);
}

/* ---------- Inner page header ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--mist) 0%, var(--mist-2) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 2.5rem);
}

/* faint echo of the operating light from the home page */
.page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -150px;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.95'/%3E%3Cstop offset='.62' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='300' cy='300' r='300' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%2314697a'%3E%3Ccircle cx='300' cy='300' r='299' stroke-opacity='.16'/%3E%3Ccircle cx='300' cy='300' r='204' stroke-opacity='.2'/%3E%3Ccircle cx='300' cy='300' r='252' stroke-opacity='.28' stroke-width='4' stroke-linecap='round' stroke-dasharray='0 79.17'/%3E%3C/g%3E%3Ccircle cx='300' cy='300' r='299' fill='none' stroke='%23c9a03d' stroke-width='2' stroke-linecap='round' stroke-dasharray='626.2 1878.7' transform='rotate(-128 300 300)'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

@media (max-width: 720px) {
  .page-hero::before {
    right: -260px;
    width: 440px;
    height: 440px;
    opacity: .7;
  }
}

.page-hero .section-title,
.page-hero h1 {
  font-size: clamp(2.2rem, 1.55rem + 2.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin-bottom: 0;
}

.crumb {
  font-size: .9rem;
  color: var(--muted);
}

.crumb a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Site header (include/header.php)
   ========================================================================== */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.topbar {
  background: var(--ink-2);
  color: rgba(255, 255, 255, .74);
  font-size: .84rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  min-height: 38px;
  padding-block: .3rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.5rem;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.topbar-links a:hover {
  color: var(--gold-soft);
}

.topbar-links svg {
  width: 15px;
  height: 15px;
  color: var(--gold-soft);
  flex: none;
}

.topbar-note {
  color: rgba(255, 255, 255, .7);
}

.site-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -20px rgba(12, 59, 67, .5);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(1.5) blur(12px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.brand-role {
  margin-top: .25rem;
  font-family: var(--font-text);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.7vw, 1.8rem);
}

.nav-link {
  position: relative;
  padding: .45rem 0;
  border: 0;
  color: var(--text);
  font-size: .97rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  border-bottom-color: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.desktop-cta {
  flex-shrink: 0;
}

.desktop-cta .btn-primary {
  min-height: 44px;
  padding: .55rem 1.1rem;
  font-size: .95rem;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.menu-btn .icon-close,
.menu-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--line);
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  box-shadow: 0 24px 40px -24px rgba(12, 59, 67, .35);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: .5rem 1.25rem;
}

.mobile-nav-inner a:not(.btn-primary) {
  padding: .85rem 0;
  border-bottom: 1px solid var(--mist);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav-inner a.active {
  color: var(--teal);
}

.mobile-nav-inner .btn-primary {
  margin-top: 1rem;
}

/* floating contact buttons on phones */
.mobile-floating-actions {
  display: none;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(4, 30, 35, .45);
  transition: transform .2s ease;
}

.floating-btn svg {
  width: 27px;
  height: 27px;
}

.floating-btn:hover,
.floating-btn:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
}

.whatsapp-btn { background: #1fa855; }
.call-btn { background: var(--teal); }

@media (max-width: 1100px) and (min-width: 1081px) {
  .desktop-nav { gap: 1rem; }
  .nav-link { font-size: .92rem; }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .mobile-floating-actions {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 999;
  }

  body {
    padding-bottom: 84px;
  }
}

@media (max-width: 720px) {
  .topbar-note,
  .hide-sm,
  .topbar-links .hide-sm {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .header-inner {
    min-height: 66px;
    gap: 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-role {
    font-size: .7rem;
  }
}

/* ==========================================================================
   FAQ (include/faq-section.php)
   ========================================================================== */
.faq-section {
  background: #ffffff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-head .section-tag {
  margin-bottom: .6rem;
}

.faq-title {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 540;
  color: var(--ink);
}

.faq-note {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34ch;
}

.faq-note a {
  color: var(--teal);
  font-weight: 700;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  color: var(--teal);
}

.faq-chevron {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: -.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease;
}

.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

.faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-chevron {
  background: var(--mist);
  border-color: #c3dade;
}

.faq-item[open] .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  padding: 0 3rem 1.4rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-a p {
  margin: 0;
  max-width: 68ch;
}

@media (max-width: 860px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .faq-a {
    padding-right: 0;
  }
}

/* ==========================================================================
   Consultation call-to-action (include/consultation-cta.php)
   ========================================================================== */
.consultation-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(201, 160, 61, .16) 0%, rgba(201, 160, 61, 0) 55%),
    linear-gradient(120deg, var(--teal) 0%, #10596a 55%, var(--ink) 100%);
  color: #ffffff;
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
}

.consultation-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
}

.consultation-cta h2 {
  color: #ffffff;
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 540;
  margin: 0 0 .7rem;
}

.consultation-cta p {
  max-width: 56ch;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.65;
}

.consultation-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 0;
}

.consultation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .75rem 1.45rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.consultation-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.consultation-btn-light {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid #ffffff;
}

.consultation-btn-light:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
  transform: none;
}

.consultation-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .7);
}

.consultation-btn-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
  transform: none;
}

@media (max-width: 860px) {
  .consultation-cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .consultation-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Footer (include/footer.php)
   ========================================================================== */
.site-footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, .72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.footer-grid h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.012em;
}

.footer-grid h4 {
  margin-bottom: 1rem;
  font-family: var(--font-text);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--gold-soft);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid ul li {
  margin-bottom: .55rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-grid .footer-address-link {
  color: rgba(255, 255, 255, .74);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
}

.footer-grid .footer-address-link:hover {
  color: #ffffff;
  text-decoration-color: var(--gold);
}

.footer-copy {
  margin-top: .75rem;
  font-size: .9rem;
  line-height: 1.55;
}

.footer-copy strong {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.footer-social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.footer-social-label {
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  font-weight: 650;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
  transition: background-color .2s ease, color .2s ease;
}

.footer-social-link:hover {
  background: var(--gold);
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .82rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-muted {
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    gap: 2rem 1.25rem;
    font-size: .95rem;
  }
}

@media (max-width: 340px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Click-to-play video (include/youtube-video.php + assets/js/video.js)
   ========================================================================== */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.yt picture,
.yt img {
  display: block;
}

.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.yt-play:focus-visible {
  outline-offset: -6px;
}

.yt-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(62px, 8vw, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 16px 36px -12px rgba(2, 20, 24, .7);
  transition: transform .25s ease, background-color .25s ease;
}

.yt-play-icon::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6);
}

.yt-play-icon svg {
  width: 36%;
  height: 36%;
  margin-left: 7%;
}

.yt:hover .yt-thumb {
  transform: scale(1.02);
}

.yt-play:hover .yt-play-icon,
.yt-play:focus-visible .yt-play-icon {
  transform: scale(1.06);
  background: #ffffff;
}

.yt.is-playing .yt-thumb,
.yt.is-playing .yt-play {
  display: none;
}

.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog {
  width: min(1100px, calc(100vw - 2rem), calc((100dvh - 9rem) * 16 / 9));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #000000;
  overflow: visible;
}

.video-dialog::backdrop {
  background: rgba(3, 18, 22, .86);
}

.video-dialog-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.video-dialog-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog-close {
  position: absolute;
  top: -56px;
  right: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.video-dialog-close svg {
  width: 20px;
  height: 20px;
}

/* ---------- Small fixes for older page styles ---------- */
.cols-contact > *,
.contact-list li > div {
  min-width: 0;
}

.contact-list .navy {
  overflow-wrap: anywhere;
}

.contact-icon {
  color: var(--teal);
  border-radius: 12px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.btn-wa svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.robotic-note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--teal);
}

.robotic-note::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 105, 122, .14);
  flex: none;
}

/* gallery on phones: photos fill each card instead of leaving a grey band */
@media (max-width: 620px) {
  .gallery-card {
    min-height: 0;
    aspect-ratio: 4 / 3.3;
  }

  .gallery-card[data-index="0"] {
    aspect-ratio: 4 / 5;
  }

  .gallery-card img {
    position: absolute;
    inset: 0;
  }
}

/* specialty pages: let the illustration fill its frame */
.hero-img-wrap {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: none;
}

.highlight-band {
  border-left-color: var(--gold);
  background: var(--mist-2);
}

.gallery-info h2 {
  color: #ffffff;
}

.gallery-info .pill {
  background: rgba(255, 255, 255, .92);
  border-color: transparent;
}

/* ---------- Patient education posters (include/patient-education.php) ---------- */
.edu-section.section-soft {
  background: var(--mist-2);
}

.edu-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.edu-hint {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.edu-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.edu-single .edu-head {
  margin-bottom: 0;
}

.edu-single .edu-grid {
  grid-template-columns: 1fr;
}

.edu-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.edu-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--mist);
  cursor: zoom-in;
}

.edu-open img {
  display: block;
  width: 100%;
  height: auto;
}

.edu-open:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.edu-zoom {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(8, 47, 54, .86);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.edu-open:hover .edu-zoom,
.edu-open:focus-visible .edu-zoom {
  opacity: 1;
  transform: none;
}

.edu-card figcaption {
  display: grid;
  gap: .25rem;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}

.edu-card figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.edu-card figcaption span {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}

.edu-viewer {
  margin: auto;
  max-width: min(92vw, 760px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  overflow: auto;
}

.edu-viewer::backdrop {
  background: rgba(8, 47, 54, .82);
}

.edu-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94vh - 3.6rem);
  margin: 0 auto;
}

.edu-viewer p {
  padding: .75rem 1.2rem .9rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.edu-viewer-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 47, 54, .86);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .edu-single {
    grid-template-columns: 1fr;
  }

  .edu-single .edu-grid {
    max-width: 380px;
  }
}

@media (max-width: 520px) {
  .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
  }

  .edu-single .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-card figcaption {
    padding: .75rem .8rem .9rem;
  }

  .edu-card figcaption strong {
    font-size: .95rem;
  }

  .edu-card figcaption span {
    display: none;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
