/* ==========================================================================
   Yerra's Superspeciality Hospital — site styles
   Built on Bootstrap 5. Everything below is layered on top of the framework.

   Design language: institutional/corporate healthcare.
   - The hospital's red carries the weight; deep maroon anchors dark surfaces.
   - Restrained radii and shadows; structure over decoration.
   - Cards in a row are equal height with their actions aligned.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — #9E463F, the hospital's own colour. White text on it measures
     6.17:1, comfortably past WCAG AA.
     --brand-light is a lifted tint for use on WHITE surfaces only. Marks on
     the red surfaces use white, since a lighter red cannot separate from it. */
  --brand:            #9E463F;
  --brand-dark:       #7F332D;
  /* Lifted to #CE6B62 — the previous #C25C53 measured 2.89:1 against --dark,
     just under the 3:1 WCAG asks of rules, icons and other non-text marks. */
  --brand-light:      #CE6B62;
  --brand-tint:       #F8EDEC;
  --brand-tint-soft:  #FCF7F6;

  /* Dark surfaces — the hero, banners, CTA strip and footer are #9E463F
     itself. The neighbours sit a shade either side purely to give large
     areas some depth; the colour you see is the brand colour. */
  --dark:             #9E463F;
  --dark-mid:         #8A3B35;
  --dark-soft:        #B05449;
  --dark-deep:        #6E2C27;

  /* Section wash — warm neutral rather than pink, so tinted bands read as
     paper next to white instead of a second colour. */
  --dark-tint:        #F7F3F2;

  /* Secondary accent — a warm terracotta from the same family, so no second
     hue competes with the hospital's colour. */
  --accent:           #B96A3C;
  --accent-dark:      #8E4D28;
  --accent-soft:      #F6E2D5;
  --accent-tint:      #FBF2EC;

  /* Neutrals carry a trace of the brand hue so greys never look cold. */
  --ink:              #2F1B18;
  --ink-soft:         #57443F;
  /* Darkened from #8A7570, which measured 4.32:1 on white and 3.92:1 on the
     tinted band — both below the 4.5:1 WCAG AA needs for normal text. This
     value measures 6.42:1 and 5.83:1. */
  --muted:            #6F5A55;
  --line:             #ECE4E2;
  --line-strong:      #D9CCC9;
  --surface:          #FFFFFF;
  --surface-alt:      #FAF6F5;

  /* Corporate radii — small and consistent */
  --radius-xs:  3px;
  --radius-sm:  5px;
  --radius:     7px;
  --radius-lg:  10px;
  --radius-xl:  14px;

  /* Restrained shadows */
  --shadow-xs: 0 1px 2px rgba(63, 23, 20, .06);
  --shadow-sm: 0 1px 3px rgba(63, 23, 20, .08), 0 1px 2px rgba(63, 23, 20, .04);
  --shadow:    0 4px 14px rgba(63, 23, 20, .09);
  --shadow-lg: 0 14px 38px rgba(63, 23, 20, .13);

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale — every gap in the site comes from these */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

/* Webfonts are loaded via <link> in includes/header.php so they can be
   preconnected; the stacks above fall back to system UI fonts offline. */

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;   /* stops a lone trailing word on its own line */
}

h1, .h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
h3, .h3 { font-size: clamp(1.05rem, 1.4vw, 1.18rem); letter-spacing: -.012em; }

/* --- Gradient headings ---------------------------------------------------
   Headings on light surfaces are painted with a gradient drawn from the
   palette: the deep wall tone through the brand red to its lighter tint.

   Two safeguards:
   1. The whole rule sits behind @supports, and only -webkit-text-fill-color
      is set to transparent — never `color`. A browser that cannot clip a
      background to text keeps the solid --ink colour and stays readable.
   2. Headings on dark surfaces and inside coloured panels are excluded
      below, so white-on-red text is never replaced by dark gradient text.

   The gradient ends at --brand (#9E463F), which measures 6.17:1 on white — past
   the 4.5:1 WCAG AA asks even of normal text.                              */

@supports ((-webkit-background-clip: text) or (background-clip: text)) {

  h1, h2, h3, .h1, .h2, .h3 {
    /* Kept deliberately narrow — deep tone into the brand red, with no light
       stop. A wide, bright sweep reads decorative; this reads as ink. */
    background-image: linear-gradient(
      104deg,
      var(--dark-deep) 0%,
      var(--dark) 42%,
      var(--brand) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Headings that sit on the red surfaces, or carry their own colour, opt out
     and fall back to whatever `color` their own rule sets. */
  .hero-title,
  .page-banner-title,
  .cta-title,
  .footer-heading,
  .footer-brand-name,
  .stat-value,
  .note-panel h3,
  .doctor-avatar h3,
  .admin-body h1,
  .admin-body h2,
  .admin-body h3,
  .modal h2,
  .modal h3,
  /* A heading that wraps another element cannot carry clipped text: the child
     inherits the transparent fill but paints outside the heading's own
     background box, so its label disappears entirely. */
  .accordion-header,
  .accordion-header .accordion-button {
    background-image: none;
    -webkit-text-fill-color: currentColor;
  }

  /* The accordion header keeps its own surface colours */
  .accordion-header .accordion-button { background-color: #fff; }
  .accordion-header .accordion-button:not(.collapsed) { background-color: var(--dark-tint); }
}

p { margin-bottom: var(--space-4); }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }

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

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 2000;
  background: var(--dark); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Bootstrap's .g-5 sets a 3rem gutter, which gives the row -1.5rem margins
   either side. The container only has 0.75rem of padding to absorb that, so on
   a narrow screen the row runs 12px past the viewport and the page scrolls
   sideways. Capping the gutter below 576px makes the margins and the padding
   cancel exactly. (body { overflow-x: hidden } was hiding this, not fixing it.) */
@media (max-width: 575.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

/* Section rhythm — generous and consistent; whitespace is what makes a page
   read as considered rather than crowded. */
.section        { padding: clamp(3.5rem, 6vw, 5.75rem) 0; }
.section-sm     { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section-tint   { background: var(--dark-tint); }
.section-alt    { background: var(--surface-alt); }

/* Hairline between two consecutive white sections, so blocks separate without
   needing another background colour. */
.section + .section { border-top: 1px solid var(--line); }
.section-tint + .section-tint,
.section-alt + .section-alt { border-top: 0; }

/* --------------------------------------------------------------------------
   3. Shared components
   -------------------------------------------------------------------------- */

/* Eyebrow — a plain letterspaced label with a short rule, not a pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--brand); flex: 0 0 24px;
}
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: rgba(255, 255, 255, .85); }

/* Centred eyebrows need the rule on both sides to stay balanced */
.text-center > .eyebrow::after,
.section-head.text-center .eyebrow::after {
  content: ''; width: 24px; height: 2px;
  background: currentColor; flex: 0 0 24px; opacity: .85;
}

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.text-center { margin-left: auto; margin-right: auto; }
/* When a heading block is the only thing in its container, its bottom margin
   stacks with the section padding and opens a dead gap. */
.section-head:last-child { margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.section-head h2 { margin-bottom: var(--space-3); }

.lead-text { font-size: 1.06rem; color: var(--ink-soft); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .93rem;
  border-radius: var(--radius-sm);
  padding: .68rem 1.4rem;
  letter-spacing: .01em;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-appointment,
.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.btn-appointment:hover,
.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-outline-brand {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}
.btn-outline-brand:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

.btn-outline-light-brand {
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff; background: transparent;
}
.btn-outline-light-brand:hover {
  background: #fff; color: var(--dark); border-color: #fff;
}

.btn-light { background: #fff; border: 1px solid #fff; color: var(--dark); }
.btn-light:hover { background: var(--dark-tint); color: var(--dark); border-color: var(--dark-tint); }

.btn-lg { padding: .82rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* Text link with arrow */
.link-arrow {
  font-family: var(--font-head); font-weight: 600;
  font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.link-arrow i { transition: transform .18s ease; }
.link-arrow:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */

/* Three stacked bands: utility strip, logo/address/CTA, then the menu, which
   is the part that sticks on scroll. */

.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  padding: .5rem 0;
}
.topbar a { color: rgba(255, 255, 255, .88); font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar-divider { opacity: .3; margin: 0 .7rem; }
.topbar-note { opacity: .8; }

.topbar-accred {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-xs);
  padding: .15rem .55rem .15rem .2rem;
  font-size: .74rem; font-weight: 600;
  color: #fff; letter-spacing: .02em;
}
.topbar-accred img { height: 20px; width: 20px; border-radius: 50%; background: #fff; }

/* Band 2 ------------------------------------------------------------------ */

.header-main {
  background: #fff;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.header-brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-logo { height: 54px; width: auto; transition: height .2s ease; }

.header-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.header-brand-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.1rem; color: var(--dark);
  letter-spacing: -.015em;
}
.header-brand-sub {
  font-size: .75rem; color: var(--muted);
  letter-spacing: .01em; margin-top: .1rem;
}

.header-info { display: flex; align-items: center; gap: .6rem; }
.header-info-icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 1.05rem;
}
.header-info-icon.is-cyan { background: var(--accent-tint); color: var(--accent-dark); }
.header-info-label {
  font-family: var(--font-head); font-weight: 700;
  font-size: .66rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: .05rem;
}
.header-info-value {
  font-size: .82rem; color: var(--ink); font-weight: 500;
  display: block; line-height: 1.4;
}
.header-info-value a { color: var(--ink); }
.header-info-value a:hover { color: var(--brand); }

/* Band 3 ------------------------------------------------------------------ */

.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  padding: 0;
  transition: box-shadow .2s ease;
}
.site-nav.is-stuck { box-shadow: var(--shadow-sm); }

.site-nav .navbar-brand img { height: 42px; width: auto; }

.site-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  padding: .95rem .85rem !important;
  position: relative;
}
.site-nav .nav-link:hover { color: var(--brand); }
.site-nav .nav-link.active { color: var(--brand); }

@media (min-width: 992px) {
  .site-nav .nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--brand);
    transform: scaleX(0); transition: transform .18s ease;
  }
  .site-nav .nav-link:hover::after,
  .site-nav .nav-link.active::after { transform: scaleX(1); }
  .site-nav .dropdown-toggle::after { display: none; }
  .site-nav .dropdown:hover > .dropdown-menu { display: block; }
}

.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .35rem;
  margin-top: 0;
  min-width: 268px;
}
.site-nav .dropdown-item {
  font-size: .88rem; font-weight: 500;
  border-radius: var(--radius-xs);
  padding: .55rem .75rem;
  white-space: normal;
  color: var(--ink-soft);
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item.active {
  background: var(--brand-tint); color: var(--brand-dark);
}

/* Mega menu -------------------------------------------------------------- */

@media (min-width: 992px) {
  .nav-mega { position: static; }

  /* Anchored to the navbar rather than the link, so the panel spans the row */
  /* The nav bar itself is the positioning context for the centred mega panel. */

  /* Centred on the screen at 70% width. The nav bar itself is the positioning
     context (not the inner container), so 70vw really is 70% of the viewport
     rather than 70% of the content column. */
  .site-nav { position: relative; }

  /* The [data-bs-popper] variant is needed, not optional: when a toggle is
     clicked (rather than hovered) Bootstrap stamps that attribute on the menu,
     and its own `.dropdown-menu[data-bs-popper] { left: 0 }` outranks a plain
     `.mega-menu` selector. The translateX(-50%) below then pulled the panel a
     full half-width off the left edge. Matching the attribute here restores
     the centring for clicks as well as hovers. */
  .mega-menu,
  .nav-mega .mega-menu[data-bs-popper] {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 0;
    width: 70vw;
    max-width: 1180px;
    min-width: 680px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    margin: 0;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    background: #fff;
  }
  .nav-mega:hover > .mega-menu,
  .mega-menu.show { display: grid; animation: mega-in .18s ease both; }

  /* The panel is centred with translateX(-50%), so the entrance animation has
     to carry that through — animating `transform` alone would snap it back to
     the left edge for the duration of the tween. */
  @keyframes mega-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%); }
  }

  .mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
  }

  .mega-aside {
    background: var(--dark-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    display: flex; flex-direction: column;
  }
  .mega-aside-title {
    font-family: var(--font-head); font-weight: 700;
    font-size: .95rem; color: var(--ink); margin-bottom: .3rem;
  }
  .mega-aside-text { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
  .mega-aside .btn { margin-top: auto; }
  .mega-aside-phone {
    display: block; text-align: center;
    font-family: var(--font-head); font-weight: 600;
    font-size: .88rem; color: var(--brand);
  }
}

.mega-item {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .7rem .75rem;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease;
}
.mega-item:hover, .mega-item.active { background: var(--brand-tint); }

.mega-item-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: var(--radius-xs);
  background: var(--dark-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 1rem;
  transition: background-color .15s ease, color .15s ease;
}
.mega-item:hover .mega-item-icon { background: var(--brand); color: #fff; }

.mega-item-text { display: flex; flex-direction: column; min-width: 0; }
.mega-item-title {
  font-family: var(--font-head); font-weight: 600;
  font-size: .88rem; color: var(--ink); line-height: 1.35;
}
.mega-item-desc { font-size: .77rem; color: var(--muted); line-height: 1.4; margin-top: .1rem; }

/* On small screens the panel is just a stacked list inside the drawer */
@media (max-width: 991.98px) {
  .mega-menu { border: 0; box-shadow: none; padding: .25rem 0 .25rem .5rem; }
  .mega-menu .mega-aside { display: none; }
  .mega-item { padding: .55rem .4rem; }
}

.navbar-toggler { border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: .35rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .site-nav { padding: .5rem 0; }
  .navbar-collapse {
    margin-top: .65rem; padding: .35rem 0 .5rem;
    border-top: 1px solid var(--line);
    max-height: 76vh; overflow-y: auto;
  }
  .site-nav .nav-link { padding: .6rem .25rem !important; }
  .site-nav .dropdown-menu { border: 0; box-shadow: none; padding-left: .5rem; }
}

/* Ten top-level items only just fit at lg, so tighten between 992 and 1199. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link { font-size: .8rem; padding: .85rem .45rem !important; }
  .header-brand-name { font-size: .96rem; }
  .header-brand-sub  { font-size: .69rem; }
  .header-info-value { font-size: .77rem; }
  .brand-logo { height: 46px; }
}

/* --------------------------------------------------------------------------
   5. Page banner (inner pages)
   -------------------------------------------------------------------------- */

.page-banner {
  position: relative;
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0;
  background: linear-gradient(115deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: #fff;
  overflow: hidden;
}
/* A single crimson accent rather than a decorative field */
.page-banner::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--brand); z-index: 2;
}
.page-banner > .container { position: relative; z-index: 3; }

/* Page photograph behind the banner, held well back so the heading stays
   legible. The slow scale is a restrained Ken Burns on load. */
.page-banner.has-image::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  opacity: .34;
  filter: grayscale(55%) contrast(105%);
  animation: banner-drift 20s ease-out forwards;
}
@keyframes banner-drift {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
/* The scrim is angled and weighted to the left, so the heading always sits on
   the darkest part of the photograph while the right side stays readable. */
.page-banner.has-image {
  background:
    linear-gradient(100deg,
      rgba(110, 44, 39, .93) 0%,
      rgba(138, 59, 53, .86) 45%,
      rgba(158, 70, 63, .74) 100%),
    var(--dark);
}

.page-banner-title { color: #fff; margin-bottom: .4rem; }
.page-banner-subtitle {
  color: rgba(255, 255, 255, .78);
  font-size: 1rem; max-width: 660px; margin-bottom: .85rem;
}

.page-banner-crumbs { margin-bottom: 0; font-size: .84rem; }
.page-banner-crumbs .breadcrumb-item a { color: rgba(255, 255, 255, .72); }
.page-banner-crumbs .breadcrumb-item a:hover { color: #fff; }
.page-banner-crumbs .breadcrumb-item.active { color: rgba(255, 255, 255, .55); }
.page-banner-crumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .38); }

/* --------------------------------------------------------------------------
   6. Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(5rem, 7.5vw, 7rem);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(158, 70, 63, .95) 0%, transparent 58%),
    linear-gradient(128deg, var(--dark-deep) 0%, var(--dark) 46%, var(--dark-mid) 100%);
  color: #fff;
  overflow: hidden;
}
/* A fine diagonal weave lifts the surface off flat colour. Low contrast on
   purpose — it should register as texture, never as pattern. */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    128deg,
    rgba(255, 255, 255, .028) 0px,
    rgba(255, 255, 255, .028) 1px,
    transparent 1px,
    transparent 7px
  );
  pointer-events: none;
}
/* Softens the join into the white section below */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(63, 23, 20, .5));
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.hero-title { color: #fff; margin-bottom: var(--space-4); }
/* Clean rule under the phrase instead of a translucent highlight bar */
.hero-title .accent-underline {
  display: inline-block;
  border-bottom: 4px solid rgba(255, 255, 255, .9);
  padding-bottom: .06em;
}
.hero-text {
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem; max-width: 600px; margin-bottom: var(--space-5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-6); }
.hero-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  padding: .4rem .8rem; border-radius: var(--radius-xs);
  font-size: .82rem; font-weight: 500;
}
.hero-chip i { color: rgba(255, 255, 255, .9); }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(63, 23, 20, .45);
  width: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  display: block;
}
/* The available building photograph is a snapshot — hard light, overhead
   cables. A hairline frame and a soft vignette settle it into the panel
   instead of letting it sit there as a raw crop. */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 -70px 90px -40px rgba(63, 23, 20, .55);
  pointer-events: none;
}
.hero-badge {
  position: absolute; left: -16px; bottom: -20px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--brand);
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
  max-width: 250px;
}
.hero-badge .hero-badge-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 1.15rem;
}
.hero-badge strong { font-family: var(--font-head); display: block; font-size: 1.2rem; line-height: 1.15; color: var(--ink); }
.hero-badge span { font-size: .78rem; color: var(--muted); }

@media (max-width: 991.98px) {
  .hero-badge { left: 12px; bottom: -16px; }
}

/* Quick actions overlap the hero's lower edge. The lift is deliberate: the
   row should read as one panel sitting on the boundary, not three cards
   half-stranded on the colour change. */
.quick-actions { margin-top: -4rem; position: relative; z-index: 5; }
.quick-action {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(63, 23, 20, .14);
  padding: 1.5rem 1.35rem;
  height: 100%;
  display: flex; align-items: flex-start; gap: .9rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .22s ease;
}
.quick-action:hover { border-color: var(--brand); box-shadow: 0 14px 36px rgba(63, 23, 20, .18); }
.quick-action-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 1.2rem;
}
.quick-action h3 { font-size: 1rem; margin-bottom: .2rem; }
.quick-action p { font-size: .87rem; color: var(--muted); margin-bottom: .3rem; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

/* Every card in a row is the same height, with its action pinned to the
   bottom so buttons across a row line up. */

.speciality-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, border-color .22s ease;
}
/* The brand rule draws in on hover rather than sitting there permanently —
   a quieter resting state reads more considered than a coloured cap on
   every card at once. */
.speciality-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.speciality-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.speciality-card:hover::before { transform: scaleX(1); }

.speciality-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}
/* Two lines reserved so every card's body text starts on the same baseline */
.speciality-card h3 {
  font-size: 1.04rem; margin-bottom: .55rem;
  min-height: 2.6em; line-height: 1.3;
}
.speciality-card p {
  color: var(--muted); font-size: .89rem; line-height: 1.65;
  margin-bottom: var(--space-4);
}
.speciality-card > .link-arrow,
.speciality-card > .btn { margin-top: auto; align-self: flex-start; }

/* Generic feature card */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-card h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.feature-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.feature-card > .btn,
.feature-card > .link-arrow { margin-top: auto; align-self: flex-start; padding-top: var(--space-3); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--dark-tint); color: var(--dark);
  display: grid; place-items: center; font-size: 1.15rem;
  margin-bottom: var(--space-4);
}
.feature-card.is-accent .feature-icon { background: var(--brand-tint); color: var(--brand); }

/* Doctor card */
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  text-align: center;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease;
}
.doctor-card:hover { box-shadow: var(--shadow); }

/* A slim maroon band rather than a tall colour block */
.doctor-avatar {
  height: 78px;
  background: linear-gradient(115deg, var(--dark) 0%, var(--dark-mid) 100%);
  position: relative;
}

.doctor-initials,
.doctor-photo {
  position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem;
  color: var(--brand); z-index: 2;
  overflow: hidden;
}
/* The recovered photos are small originals, so they are shown at avatar size
   and cropped to the face rather than stretched. */
.doctor-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.doctor-body {
  padding: 3.1rem 1.35rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
}

/* Larger portrait for the profile pages, where the doctor is the subject of
   the page rather than one of three cards. Add .doctor-card-lg to the card. */
.doctor-card-lg .doctor-avatar { height: 104px; }
.doctor-card-lg .doctor-initials,
.doctor-card-lg .doctor-photo {
  width: 168px; height: 168px;
  bottom: -76px;
  border-width: 4px;
  font-size: 2.6rem;
  box-shadow: var(--shadow);
}
.doctor-card-lg .doctor-body { padding: 5.5rem 1.5rem 1.75rem; }
.doctor-card-lg .doctor-body h3 { font-size: 1.28rem; }
.doctor-card-lg .doctor-qual { font-size: .9rem; }
.doctor-card-lg .doctor-role { font-size: .92rem; min-height: 0; }

@media (max-width: 575.98px) {
  .doctor-card-lg .doctor-initials,
  .doctor-card-lg .doctor-photo { width: 140px; height: 140px; bottom: -64px; }
  .doctor-card-lg .doctor-body { padding: 4.75rem 1.25rem 1.5rem; }
}
.doctor-body h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.doctor-qual { font-size: .82rem; color: var(--brand); font-weight: 600; margin-bottom: .4rem; }
.doctor-role {
  font-size: .86rem; color: var(--muted); margin-bottom: var(--space-3);
  min-height: 3.1em;
}
.doctor-body > p { font-size: .89rem; margin-bottom: var(--space-4); }
.doctor-body > .btn { margin-top: auto; align-self: center; }

/* Numbered/step card */
.step-card {
  display: flex; gap: 1rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem; height: 100%;
}
.step-number {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: var(--radius-sm);
  background: var(--dark); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.step-number.is-year {
  width: auto; flex: 0 0 auto;
  padding: 0 .7rem; min-width: 38px;
  font-size: .85rem;
  background: var(--brand);
}
.step-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.step-card p { font-size: .89rem; color: var(--muted); margin-bottom: 0; }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: .7rem;
  color: var(--ink-soft); font-size: .95rem;
}
.check-list li::before {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: .05rem;
  width: 19px; height: 19px; border-radius: var(--radius-xs);
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: .7rem;
}
.check-list.check-list-light li { color: rgba(255, 255, 255, .88); }
.check-list.check-list-light li::before { background: rgba(255, 255, 255, .16); color: #fff; }

/* Info panel */
.info-panel {
  background: var(--dark-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  height: 100%;
}
.info-panel h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.info-panel p:last-child { margin-bottom: 0; }

.note-panel {
  background: #FFF8E6;
  border: 1px solid #F5E3B3;
  border-left: 3px solid #C98A04;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  color: #6B4E06;
}
.note-panel h3 { font-size: 1rem; color: #6B4E06; margin-bottom: .45rem; }
.note-panel p:last-child { margin-bottom: 0; }
.note-panel a { color: #8A5A00; text-decoration: underline; }

/* Long-form prose */
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose > p:last-child { margin-bottom: 0; }

/* Card height -------------------------------------------------------------
   Cards stretch to fill their grid cell so a row of them lines up. That only
   makes sense when the card IS the cell. Where several are stacked inside one
   column — the appointment and contact sidebars — each one tried to be 100%
   tall, so the first filled the column and the rest were pushed out of the
   page and drawn over the footer.

   :only-child keeps the equal-height behaviour for grids and gives natural
   height to stacked cards.                                                   */

.info-panel,
.feature-card,
.speciality-card,
.doctor-card,
.step-card,
.contact-tile,
.quick-action,
.album-card { height: auto; }

[class*="col-"] > .info-panel:only-child,
[class*="col-"] > .feature-card:only-child,
[class*="col-"] > .speciality-card:only-child,
[class*="col-"] > .doctor-card:only-child,
[class*="col-"] > .step-card:only-child,
[class*="col-"] > .contact-tile:only-child,
[class*="col-"] > .quick-action:only-child,
[class*="col-"] > .album-card:only-child { height: 100%; }

/* --------------------------------------------------------------------------
   8. Stats strip
   -------------------------------------------------------------------------- */

.stats-strip {
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(158, 70, 63, .8) 0%, transparent 60%),
    linear-gradient(128deg, var(--dark-deep) 0%, var(--dark) 60%, var(--dark-mid) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.25vw, 2.75rem);
  position: relative; overflow: hidden;
}
.stats-strip::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: rgba(255, 255, 255, .55);
}
.stats-strip > * { position: relative; z-index: 1; }
.stat-value {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #fff; line-height: 1.05; margin-bottom: .3rem;
  letter-spacing: -.03em;
}
/* A short rule under each figure gives the block a reported, factual feel */
.stat-value::after {
  content: ''; display: block;
  width: 26px; height: 2px; margin-top: .55rem;
  background: rgba(255, 255, 255, .3);
}
.stat-label {
  color: rgba(255, 255, 255, .74); font-size: .85rem;
  margin-bottom: 0; line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Gallery
   -------------------------------------------------------------------------- */

.album-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.album-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.album-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-card:hover .album-thumb img { transform: scale(1.04); }
.album-count {
  position: absolute; right: .55rem; top: .55rem;
  background: rgba(63, 23, 20, .82); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: .2rem .5rem; border-radius: var(--radius-xs);
}
.album-body { padding: .85rem 1rem 1rem; }
.album-body h3 { font-size: .95rem; margin-bottom: .1rem; }
.album-body p { font-size: .8rem; color: var(--muted); margin-bottom: 0; }

/* A captioned photograph in the combined gallery */
.photo-figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.photo-caption {
  font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--ink-soft);
  margin-top: .55rem; line-height: 1.4;
  padding-left: .55rem;
  border-left: 2px solid var(--brand);
}

/* Grouped case album — one block per patient or condition */
.case-group { margin-bottom: var(--space-7); }
.case-group:last-child { margin-bottom: 0; }
.case-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  padding-bottom: .55rem; margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.case-group-title {
  font-size: 1.12rem; margin: 0;
  position: relative; padding-left: .85rem;
}
.case-group-title::before {
  content: ''; position: absolute; left: 0; top: .22em; bottom: .22em;
  width: 3px; background: var(--brand); border-radius: 2px;
}
.case-group-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.photo-tile {
  position: relative;
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--surface-alt);
  border: 1px solid var(--line);
  transition: box-shadow .18s ease;
}

/* Privacy mask over a patient's face. Positioned as a percentage of the image
   so it stays on the face at every size. A heavy blur is used with a solid
   colour behind it, so the face is not recoverable even if the blur is
   defeated — a blur alone can be reversed. */
.photo-mask {
  position: absolute; z-index: 3;
  background: #2F1B18;
  border-radius: 2px;
  pointer-events: none;
}
/* Whole-image cover, used when a photograph has no marked face region */
.photo-mask-full {
  inset: 0;
  background: rgba(47, 27, 24, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-tile:hover { box-shadow: var(--shadow); }
.photo-tile:hover img { transform: scale(1.05); }

.lightbox-modal .modal-content { background: transparent; border: 0; }
.lightbox-modal .modal-body { padding: 0; text-align: center; }
.lightbox-modal img { border-radius: var(--radius); max-height: 82vh; width: auto; box-shadow: var(--shadow-lg); display: block; }

/* The stage wraps the image so percentage-positioned masks line up with it
   rather than with the whole modal. */
.lightbox-stage { position: relative; display: inline-block; }
.lightbox-masks { position: absolute; inset: 0; pointer-events: none; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92); color: var(--ink);
  border: 0; display: grid; place-items: center; font-size: 1.2rem; z-index: 5;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { left: -6px; }
.lightbox-next { right: -6px; }
@media (min-width: 768px) {
  .lightbox-prev { left: -58px; }
  .lightbox-next { right: -58px; }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.35rem, 2.5vw, 2.25rem);
}

.form-label {
  font-family: var(--font-head);
  font-weight: 600; font-size: .85rem;
  color: var(--ink); margin-bottom: .35rem;
}
.form-label .required { color: var(--brand); }

.form-control, .form-select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .62rem .85rem;
  font-size: .93rem;
  background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(158, 70, 63, .16);
}
.form-control::placeholder { color: #9AA7B8; }
.form-text { font-size: .79rem; color: var(--muted); }

.input-group-text {
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink-soft);
}

.form-section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark);
  padding-bottom: .5rem; margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px; opacity: 0; height: 0; width: 0;
  pointer-events: none;
}

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; padding: .85rem 1.1rem; font-size: .92rem; }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info    { background: var(--dark-tint); border-color: #EFE0DD; color: var(--dark); }

.success-panel { text-align: center; padding: .5rem 0; }
.success-icon {
  width: 66px; height: 66px; margin: 0 auto var(--space-4);
  border-radius: 50%; background: #ECFDF5; color: #059669;
  display: grid; place-items: center; font-size: 2rem;
}
.reference-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--dark-tint); color: var(--dark);
  border: 1px solid #EFE0DD;
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; letter-spacing: .05em;
}

.contact-tile {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  height: 100%; text-align: center;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.contact-tile:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.contact-tile-icon {
  width: 46px; height: 46px; margin: 0 auto var(--space-3);
  border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 1.2rem;
}
.contact-tile h3 { font-size: .96rem; margin-bottom: .3rem; }
.contact-tile p, .contact-tile a { font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.contact-tile a:hover { color: var(--brand); }

.map-frame {
  border: 1px solid var(--line); width: 100%; height: 400px;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   11. Accordion
   -------------------------------------------------------------------------- */

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  margin-bottom: .65rem;
  overflow: hidden;
}
.accordion-button {
  font-family: var(--font-head); font-weight: 600;
  font-size: .98rem; color: var(--ink);
  padding: 1rem 1.2rem;
  background: #fff;
}
.accordion-button:not(.collapsed) {
  background: var(--dark-tint); color: var(--dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-body { padding: 1.1rem 1.2rem 1.35rem; color: var(--ink-soft); font-size: .94rem; }

/* --------------------------------------------------------------------------
   12. CTA strip + footer
   -------------------------------------------------------------------------- */

.cta-strip {
  background: linear-gradient(115deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: #fff;
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--brand);
}
.cta-strip > .container { position: relative; z-index: 1; }
.cta-title { color: #fff; margin-bottom: .3rem; }
.cta-text { color: rgba(255, 255, 255, .8); font-size: .97rem; }

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .68);
  padding: clamp(2.5rem, 4vw, 3.75rem) 0 1.5rem;
  font-size: .9rem;
}
/* Brand lockup: logo with the hospital name beside it */
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.02rem; color: #fff; letter-spacing: -.015em;
}
.footer-brand-sub {
  font-size: .76rem; color: rgba(255, 255, 255, .6); margin-top: .1rem;
}

.footer-logo { height: 52px; width: auto; background: #fff; padding: .4rem .6rem; border-radius: var(--radius-sm); flex: 0 0 auto; }
.footer-text { color: rgba(255, 255, 255, .6); font-size: .88rem; }
.footer-accreditation { height: 48px; width: auto; margin-top: .6rem; background: #fff; padding: .3rem .45rem; border-radius: var(--radius-xs); }

.footer-heading {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; color: #fff;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255, 255, 255, .66); font-size: .88rem; }
.footer-links a:hover { color: #fff; }

.footer-contact li {
  display: flex; gap: .6rem; margin-bottom: .75rem;
  color: rgba(255, 255, 255, .66); font-size: .88rem; line-height: 1.55;
}
.footer-contact i { color: rgba(255, 255, 255, .85); margin-top: .2rem; }
.footer-contact a { color: rgba(255, 255, 255, .66); }
.footer-contact a:hover { color: #fff; }

.footer-rule { border-color: rgba(255, 255, 255, .12); margin: var(--space-6) 0 var(--space-4); }
.footer-note { font-size: .83rem; color: rgba(255, 255, 255, .5); }
.footer-note a { color: rgba(255, 255, 255, .66); }
.footer-note a:hover { color: #fff; }
.footer-disclaimer {
  margin: var(--space-4) 0 0; padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem; color: rgba(255, 255, 255, .42); line-height: 1.65;
}

.floating-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
}
.floating-call:hover { background: var(--brand-dark); color: #fff; }

/* --------------------------------------------------------------------------
   13. Admin (gyels)
   -------------------------------------------------------------------------- */

.admin-body { background: var(--surface-alt); }
.admin-shell { max-width: 1240px; }

/* Admin navigation — one bar, identical on every screen, with the current
   section marked so it is always clear where you are and how to get back. */
.admin-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  padding: .45rem 0;
  box-shadow: var(--shadow-xs);
}
.admin-brand-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; color: var(--dark);
}
.admin-nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .87rem;
  color: var(--ink-soft);
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease;
}
.admin-nav-link:hover { background: var(--dark-tint); color: var(--brand); }
.admin-nav-link.active { background: var(--brand-tint); color: var(--brand-dark); }
.admin-nav-link i { font-size: 1rem; }

/* Back link above each sub-page heading — the nav shows where you are, this
   gives an explicit way out without hunting for the right nav item. */
.admin-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; color: var(--muted);
  margin-bottom: .5rem;
  transition: color .15s ease, gap .15s ease;
}
.admin-back:hover { color: var(--brand); gap: .5rem; }
.admin-back i { font-size: .9rem; }

@media (max-width: 991.98px) {
  .admin-nav-link { width: 100%; padding: .6rem .5rem; }
}
.admin-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.admin-table { font-size: .88rem; margin-bottom: 0; }
.admin-table th {
  font-family: var(--font-head); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { vertical-align: middle; border-color: var(--line); }

.status-badge {
  font-size: .72rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: var(--radius-xs);
}
.status-new       { background: var(--brand-tint); color: var(--brand-dark); }
.status-contacted { background: #FFF3D6; color: #8A5A00; }
.status-confirmed { background: #DCFCE7; color: #166534; }
.status-closed    { background: #EEF2F7; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Motion
   Restrained, corporate motion: short distances, quick easings, no bounce.
   -------------------------------------------------------------------------- */

/* Scroll reveal — elements fade up once as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
              transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance on page load, staggered down the column */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero .eyebrow   { animation: fade-up .65s .05s both cubic-bezier(.22,.61,.36,1); }
.hero-title      { animation: fade-up .65s .14s both cubic-bezier(.22,.61,.36,1); }
.hero-text       { animation: fade-up .65s .23s both cubic-bezier(.22,.61,.36,1); }
.hero-actions    { animation: fade-up .65s .32s both cubic-bezier(.22,.61,.36,1); }
.hero-chips      { animation: fade-up .65s .41s both cubic-bezier(.22,.61,.36,1); }
.hero-media      { animation: fade-up .8s  .28s both cubic-bezier(.22,.61,.36,1); }
.hero-badge      { animation: fade-up .6s  .6s  both cubic-bezier(.22,.61,.36,1); }

/* The crimson rule under the hero phrase draws itself in */
.hero-title .accent-underline {
  background-image: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 4px;
  border-bottom: 0;
  animation: underline-draw .7s .75s forwards cubic-bezier(.22,.61,.36,1);
}
@keyframes underline-draw {
  to { background-size: 100% 4px; }
}

/* Card lift — small enough to read as precision, not bounce */
.quick-action,
.speciality-card,
.feature-card,
.doctor-card,
.contact-tile,
.album-card {
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              box-shadow .22s ease,
              border-color .22s ease;
}
.quick-action:hover,
.speciality-card:hover,
.feature-card:hover,
.doctor-card:hover,
.contact-tile:hover,
.album-card:hover { transform: translateY(-3px); }

/* Buttons settle slightly on press */
.btn { transition: background-color .15s ease, border-color .15s ease,
                   color .15s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }

/* Icon tiles react to their card being hovered */
.speciality-card:hover .speciality-icon,
.feature-card:hover .feature-icon,
.quick-action:hover .quick-action-icon,
.contact-tile:hover .contact-tile-icon {
  background: var(--brand); color: #fff;
  transition: background-color .22s ease, color .22s ease;
}
.speciality-icon, .feature-icon, .quick-action-icon, .contact-tile-icon {
  transition: background-color .22s ease, color .22s ease;
}

/* Dropdowns fade rather than snap */
@media (min-width: 992px) {
  .site-nav .dropdown-menu { animation: fade-in .16s ease both; }
}

/* Counting statistics settle in as they are revealed */
.stat-value { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .accent-underline { background-size: 100% 4px; }
  .quick-action:hover, .speciality-card:hover, .feature-card:hover,
  .doctor-card:hover, .contact-tile:hover, .album-card:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */

@media print {
  .topbar, .header-main, .site-nav, .cta-strip, .site-footer,
  .floating-call, .page-banner-crumbs { display: none !important; }
  .page-banner { background: none; color: #000; padding: 0 0 1rem; }
  .page-banner::before { display: none; }
  .page-banner-title, .page-banner-subtitle { color: #000; }
  body { font-size: 11pt; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
