/**
 * Client-Specific Theming & Customizations
 *
 * This file contains CSS variables for easy color/theme customization
 * and any client-specific CSS overrides.
 *
 * USAGE:
 * 1. Update the CSS variables below to match your client's brand colors
 * 2. Add any additional client-specific CSS at the bottom of this file
 * 3. Do not modify bootstrap.css, platforma.css, or clue.css directly
 */


/* ========================================================================
   CSS VARIABLES - CUSTOMIZE THESE FOR EACH CLIENT
   ======================================================================== */

:root {
  /* ===== PRIMARY BRAND COLORS =====
     Dr. Raffi brand palette, derived from the logo
     (from-client/raffi-logo-color.svg): plum #523F43 + bronze #9B856D,
     with warm ivory + muted sage as complementary accents. */
  --primary-color: #523F43;              /* Logo plum - main brand color */
  --primary-color-dark: #3B2D30;         /* Darker plum for hover states */
  --primary-color-light: #6E585D;        /* Lighter plum for accents */
  --primary-color-bright: #7D6469;       /* Brighter plum for button hover states */

  /* Override Bootstrap's primary color to match the brand */
  --bs-primary: #523F43;
  --bs-primary-rgb: 82, 63, 67;


  /* ===== SECONDARY COLORS ===== */
  --secondary-color: #7C6850;            /* Deep bronze (AA-safe darkened #9B856D) */
  --brand-bronze: #9B856D;               /* Logo bronze - large text / decoration only (fails AA for body text on white) */
  --brand-ivory: #F5F1EA;                /* Warm ivory - section backgrounds */
  --brand-sage: #6C7A6B;                 /* Muted sage - complementary accent */
  --accent-color: #523F43;               /* Accent color (root pages; microsites override per location below) */


  /* ===== UI ELEMENT COLORS ===== */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-dark);
  --button-color: var(--primary-color);
  --button-hover-color: var(--primary-color-dark);


  /* ===== BACKGROUND COLORS ===== */
  --bg-primary: var(--primary-color);
  --bg-secondary: #fafafa;
  --bg-light: var(--brand-ivory);
  --hero-bg-color: #EFE9E0;              /* Homepage hero section background (warm ivory tint) */
  --sidebar-bg: rgba(59, 45, 48, 0.94);  /* Slide menu background (dark plum) */


  /* ===== TEXT COLORS ===== */
  --text-primary: #2B2225;               /* Main body text (warm near-black) */
  --text-secondary: #6c757d;             /* Secondary/muted text */
  --text-light: #6c757d;                 /* Light gray text */
  --text-white: #ffffff;                 /* White text */


  /* ===== TYPOGRAPHY =====
     Headings use Cormorant Garamond (Google Fonts), matching the
     high-contrast old-style serif of the "Dr. Raffi" logo wordmark
     (the old sites used the same family). Body stays on the fast
     system stack. Font is loaded in base-simple.njk. */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-family-headings: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-size-base: 1rem;
  --line-height-base: 1.5;

  /* Heading font weights */
  --heading-font-weight: 600;            /* Cormorant needs the semibold cut for crisp headings */


  /* ===== SPACING ===== */
  --section-padding: 4rem;               /* Vertical padding for major sections */
  --section-padding-mobile: 2rem;        /* Vertical padding on mobile */


  /* ===== BORDER RADIUS ===== */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-pill: 30px;            /* For rounded buttons */


  /* ===== SHADOWS ===== */
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}


/* ========================================================================
   DARK MODE SUPPORT (OPTIONAL)
   Uncomment this section if you want to support dark mode
   ======================================================================== */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-light: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
  }
}
*/


/* ========================================================================
   CLIENT-SPECIFIC CSS OVERRIDES
   Add any additional custom CSS below this line
   ======================================================================== */

/* Example: Override specific element styling
.custom-header {
  background-color: var(--primary-color);
  color: var(--text-white);
}
*/

/* Example: Client-specific font import
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
  --font-family-base: 'Roboto', sans-serif;
}
*/

/* Example: Custom button style
.btn-custom {
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2rem;
}
*/


/* ========================================================================
   USAGE EXAMPLES & NOTES
   ======================================================================== */

/*
HOW TO USE CSS VARIABLES:

1. In your HTML or other CSS:
   background-color: var(--primary-color);
   color: var(--text-primary);

2. To change colors for a specific client:
   - Simply update the hex values in the :root section above
   - All instances throughout the site will update automatically

3. Common customizations by client:
   - --primary-color: Your client's main brand color
   - --sidebar-bg: Match the sidebar to their branding
   - --hero-bg-color: Customize homepage hero section
   - --font-family-base: Use client's preferred font

4. Advanced: Override Bootstrap classes:
   .btn-primary {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
   }

BEST PRACTICES:
- Always use variables instead of hardcoded colors
- Test changes across multiple pages before deploying
- Keep client-specific overrides in this file
- Document any custom CSS you add below
*/

/* ==========================================================================
   Multi-location microsites (/chicago/, /bourbonnais/)
   Ported from the bennett_4 microsite pattern. Per-location accent colors
   derive from the Raffi logo palette: plum #523F43 + bronze #9B856D.
   ========================================================================== */

body.location-chicago {
  --accent-color: #523F43;
  --accent-color-dark: #3B2D30;
  --accent-color-soft: rgba(82, 63, 67, 0.10);
}

body.location-bourbonnais {
  --accent-color: #7C6850;
  --accent-color-dark: #5E4E3C;
  --accent-color-soft: rgba(124, 104, 80, 0.10);
}

/* ---------- Sub-navigation ---------- */
.microsite-subnav {
  background: var(--accent-color, #523F43);
  padding: 0.6rem 0;
  position: relative;
  z-index: 50;
}

.microsite-subnav .container {
  max-width: 1320px;
}

.microsite-subnav-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.microsite-subnav .subnav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.microsite-subnav .subnav-link:hover,
.microsite-subnav .subnav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.microsite-subnav .subnav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.microsite-subnav .subnav-link--secondary {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Microsite homepage hero ----------
   The microsite home (`/chicago/`, `/bourbonnais/`) renders a
   `#chicago-hero` / `#bourbonnais-hero` band with `text-white` content.
   The accent-color gradient is the fallback background; the shared
   background video layers on top with a tinted overlay per location. */
#chicago-hero,
#bourbonnais-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
              var(--accent-color-dark, #3B2D30) 0%,
              var(--accent-color, #523F43) 100%);
  color: #fff;
}

/* The global clue.css `h1..h4 { color: var(--primary-color) }` rule wins
   over the band's text-white, leaving a plum heading on the dark video.
   Force hero headings white for contrast. */
#chicago-hero h1,
#bourbonnais-hero h1 {
  color: #fff;
}

/* Per-location hero-overlay tints (consumed by the global overlay rule in
   modern-header-modern.css `.background-video-container-overlay`). */
body.location-chicago {
  --hero-overlay-corner-1: rgba(59, 45, 48, 0.88);
  --hero-overlay-corner-2: rgba(82, 63, 67, 0.75);
  --hero-overlay-tint:    rgba(40, 30, 32, 0.40);
}
body.location-bourbonnais {
  --hero-overlay-corner-1: rgba(94, 78, 60, 0.88);
  --hero-overlay-corner-2: rgba(124, 104, 80, 0.75);
  --hero-overlay-tint:    rgba(60, 49, 38, 0.42);
}

/* ---------- Microsite hero accent ---------- */
body.microsite #inside-header {
  background: var(--accent-color-soft, rgba(82, 63, 67, 0.10));
  border-bottom: 3px solid var(--accent-color, #523F43);
}

body.microsite #inside-header h1 {
  color: var(--primary-color);
}

body.microsite #inside-header .hp-section-sub {
  color: #555;
}

body.microsite #inside-header .hp-eyebrow {
  color: var(--accent-color, #523F43);
}

body.microsite .hp-eyebrow,
body.microsite .contact-gallery-eyebrow {
  color: var(--accent-color, #523F43);
}

/* Primary CTAs on microsite pages use the location accent so
   calls-to-action visually tie to the active location. */
body.microsite .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

body.microsite .btn-primary:hover,
body.microsite .btn-primary:focus-visible {
  background-color: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
}

body.microsite .btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

body.microsite .btn-outline-primary:hover,
body.microsite .btn-outline-primary:focus-visible {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* ---------- Appointment wizard: location selection tiles (step 1) ----------
   Ported from the bennett_4 microsite pattern. Unlike the other radio
   tiles, these stack a short name over the full address so visitors can
   distinguish offices at a glance. */
.appt-location-tile {
  padding: 1rem 0.75rem !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  line-height: 1.25;
}
.appt-location-tile .appt-location-name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}
.appt-location-tile .appt-location-addr {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 400;
}
.btn-check:checked + .appt-location-tile .appt-location-addr {
  opacity: 0.95;
}

/* ---------- Multi-location footer (ported from bennett_4) ---------- */
.footer-logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* Footer location cards were removed in favor of the in-content
   "Visit Dr. Raffi" band (partials/practice-summary.njk); their styles
   (.footer-location-card, .footer-hours-list, .footer-portal-links) were
   dropped with them. */

/* ---------- Call-Us location picker modal (ported from bennett_4) ----------
   Full-viewport modal shell that beats any injected third-party `.modal`
   rules without `!important` centering. Backdrop sits between the slide
   menu and the modal. */
.location-picker-modal.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  z-index: 2000;
}
.modal-backdrop.show {
  z-index: 1999;
}

.location-picker-modal .modal-content {
  border-radius: 0.75rem;
}

/* Call-Us modal: large tap targets, location name + phone stacked */
.call-location-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-block: 0.85rem;
}

.call-location-btn .call-location-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.call-location-btn .call-location-phone {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* ---------- Brand typography ----------
   Apply the Cormorant Garamond heading face (loaded in base-simple.njk).
   The template defines --font-family-headings but does not consume it in
   clue.css/platforma.css, so we apply it here. */
h1, h2, h3, h4, h5, h6,
.hp-section-heading {
  font-family: var(--font-family-headings);
  font-weight: var(--heading-font-weight);
  letter-spacing: 0.01em;
}

/* Eyebrow labels echo the logo's bronze small-caps subtitle. */
.hp-eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   HOMEPAGE HERO - 2-column editorial layout (Raffi-specific)
   Left: serif headline with a bronze rule echoing the logo's divider,
   AI search pill, ivory + ghost CTAs. Right: plum-glass card listing
   both offices (from locations.js) with a five-star trust line.
   Shares the template's video container, overlay formula, pause toggle,
   scroll cue, and service dock.
   ========================================================================== */

/* Overlay tint: plum (top-left) to bronze (bottom-right) duotone over a
   soft warm tint, kept light enough for the footage to read through. */
:root {
  --hero-overlay-corner-1: rgba(59, 45, 48, 0.85);
  --hero-overlay-corner-2: rgba(155, 133, 109, 0.60);
  --hero-overlay-tint: rgba(43, 34, 37, 0.38);
}

.raffi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

/* Left column */
#homepage-cover .raffi-hero-eyebrow {
  padding: 0;
  color: #D9C7B2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

body.homepage #homepage-cover .raffi-hero-left h1 {
  font-family: var(--font-family-headings);
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  text-align: left;
  margin-bottom: 0;
}

/* Short bronze rule under the H1, echoing the divider in the logo
   between the wordmark and the subtitle. */
.raffi-hero-rule {
  display: block;
  width: 72px;
  height: 2px;
  background: var(--brand-bronze);
  margin: 1.25rem 0;
}

body.homepage #homepage-cover .raffi-hero-lead {
  text-align: left;
  max-width: 56ch;
  padding: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 0;
}

/* Left-align the shared search pill inside the left column */
.raffi-hero-left .hero-search-wrapper {
  margin: 1.75rem 0 0;
}

.raffi-hero-buttons {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Ivory primary button: solid warm ivory with plum text */
.raffi-btn-ivory {
  background-color: var(--brand-ivory);
  border: 2px solid var(--brand-ivory);
  color: var(--primary-color-dark);
  border-radius: var(--border-radius-pill);
  font-weight: 600;
}

.raffi-btn-ivory:hover,
.raffi-btn-ivory:focus-visible {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--primary-color-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Ghost secondary button: white outline over the video */
.raffi-btn-ghost {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
}

.raffi-btn-ghost:hover,
.raffi-btn-ghost:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* Right column: plum-glass two-office card with a bronze top accent,
   styled like a letterpress calling card (distinct from the white
   glassmorphism used on sibling sites). */
.raffi-hero-card {
  background: rgba(43, 34, 37, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid var(--brand-bronze);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.75rem 2rem 1.5rem;
  max-width: 460px;
  justify-self: end;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

#homepage-cover .raffi-hero-card-eyebrow {
  padding: 0;
  color: #D9C7B2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

#homepage-cover .raffi-hero-office-city {
  padding: 0;
  font-family: var(--font-family-headings);
  font-size: 1.7rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

#homepage-cover .raffi-hero-office-addr {
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

#homepage-cover .raffi-hero-office-hours {
  padding: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

#homepage-cover .raffi-hero-office-actions {
  padding: 0;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.raffi-hero-office-actions a {
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 199, 178, 0.55);
  padding-bottom: 1px;
}

.raffi-hero-office-actions a:hover,
.raffi-hero-office-actions a:focus-visible {
  color: #D9C7B2;
  border-bottom-color: #D9C7B2;
}

.raffi-hero-office-dot {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.4rem;
}

.raffi-hero-card-rule {
  border: 0;
  border-top: 1px solid rgba(217, 199, 178, 0.30);
  margin: 1.1rem 0;
  opacity: 1;
}

.raffi-hero-card-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.raffi-hero-stars {
  color: var(--brand-bronze);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .raffi-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 5.5rem 0 4.5rem;
  }

  .raffi-hero-card {
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  body.homepage #homepage-cover .raffi-hero-left h1,
  body.homepage #homepage-cover .raffi-hero-lead {
    text-align: center;
  }

  #homepage-cover .raffi-hero-eyebrow {
    text-align: center;
    font-size: 0.7rem;
  }

  .raffi-hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .raffi-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .raffi-hero-left .hero-search-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .raffi-hero-buttons {
    justify-content: center;
  }

  .raffi-hero-card {
    padding: 1.4rem 1.4rem 1.2rem;
  }
}

/* ==========================================================================
   FEATURED SERVICES "LEDGER" (Raffi-specific)
   A single warm-ivory bar straddling the hero's bottom edge, styled like
   a brass directory plate: four segments divided by bronze hairlines,
   each with an embossed-seal icon ring, serif small-caps label, and a
   short sublabel. Replaces the template's colored service dock.
   ========================================================================== */

.raffi-service-ledger {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  width: calc(100% - 2rem);
  margin: 0 auto -3rem;
  background: var(--brand-ivory);
  border-radius: 0.75rem;
  border-top: 3px solid var(--brand-bronze);
  box-shadow: 0 22px 48px rgba(43, 34, 37, 0.35);
  overflow: hidden;
}

.raffi-ledger-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.raffi-ledger-item + .raffi-ledger-item {
  border-left: 1px solid rgba(155, 133, 109, 0.35);
}

/* Embossed-seal icon ring */
.raffi-ledger-seal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--brand-bronze);
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 2px rgba(43, 34, 37, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.raffi-ledger-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.raffi-ledger-label {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.raffi-ledger-sub {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #5F5751;
}

.raffi-ledger-item:hover,
.raffi-ledger-item:focus-visible {
  background-color: rgba(155, 133, 109, 0.14);
}

.raffi-ledger-item:hover .raffi-ledger-seal,
.raffi-ledger-item:focus-visible .raffi-ledger-seal {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--brand-ivory);
  transform: translateY(-2px);
}

/* Keep the scroll cue clear of the ledger */
body.homepage .hero-scroll-indicator {
  bottom: 130px;
}

/* The ledger hangs below the hero edge; give the section that follows
   room so nothing collides. */
body.homepage #homepage-cover {
  overflow: visible;
}

body.homepage #homepage-cover + * {
  padding-top: 5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .raffi-service-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  /* In the 2x2 grid, hairlines: vertical between columns, horizontal
     between rows. */
  .raffi-ledger-item + .raffi-ledger-item {
    border-left: 0;
  }

  .raffi-ledger-item:nth-child(even) {
    border-left: 1px solid rgba(155, 133, 109, 0.35);
  }

  .raffi-ledger-item:nth-child(n+3) {
    border-top: 1px solid rgba(155, 133, 109, 0.35);
  }
}

@media (max-width: 575.98px) {
  .raffi-ledger-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
  }

  .raffi-ledger-seal {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .raffi-ledger-label {
    font-size: 1rem;
  }

  .raffi-ledger-sub {
    font-size: 0.68rem;
  }
}

/* Tinted sections use the warm brand ivory instead of the template's
   cool blue-gray (#f0f5fa in clue.css). */
.hp-section-tinted {
  background-color: var(--brand-ivory);
}

/* Highlight chips (Looks Natural, Preserves Bone, etc.) shipped with the
   template's cool blue tint (#e4edf6 in clue.css). Swap in a soft plum tint
   so they sit in the brand palette on both white and ivory sections. */
.hp-chip {
  background: rgba(82, 63, 67, 0.10);
  color: var(--primary-color);
}

/* Brand-colored hyperlinks sitewide. The template shipped Bootstrap's
   default blue links; point Bootstrap's link tokens at the brand plum so
   body-copy links (contact addresses, inline links) sit in the palette.
   Elements that set their own color (footer .text-white, buttons, nav
   links) are unaffected. */
:root {
  --bs-link-color-rgb: 82, 63, 67;         /* plum      #523F43 */
  --bs-link-hover-color-rgb: 59, 45, 48;   /* dark plum #3B2D30 */
}

/* The default (non-microsite) #inside-header is a dark plum gradient, so its
   eyebrow and sub-heading need light text to stay readable. Microsite pages
   override these with higher specificity (their banner is a light tint). */
#inside-header .hp-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
#inside-header .hp-section-sub {
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   Doctor biography pages  (/meet-dr-raffi/, /meet-dr-jones/)
   Rendered by partials/doctor-bio.njk.
   ============================================================ */
.doctor-hero {
  background: linear-gradient(135deg,
              var(--primary-color-dark) 0%,
              var(--primary-color) 45%,
              var(--primary-color-bright) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.doctor-hero-portrait {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid rgba(245, 241, 234, 0.9);   /* ivory ring */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}
.doctor-hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.doctor-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-ivory);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.doctor-hero-name {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 0.35rem;
}
.doctor-hero-title {
  color: var(--brand-ivory);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  margin-bottom: 1rem;
}
.doctor-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.doctor-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}
.doctor-hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.doctor-btn-light {
  background: #fff;
  color: var(--primary-color);
  border: 1.5px solid #fff;
  font-weight: 600;
}
.doctor-btn-light:hover,
.doctor-btn-light:focus {
  background: var(--brand-ivory);
  border-color: var(--brand-ivory);
  color: var(--primary-color-dark);
}
.doctor-btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.doctor-btn-outline:hover,
.doctor-btn-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.doctor-body {
  padding: 3.5rem 0;
}
.doctor-subhead {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.doctor-highlights {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.doctor-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--brand-ivory);
}
.doctor-highlights li:last-child {
  border-bottom: 0;
}
.doctor-highlights li i {
  color: var(--secondary-color);
  font-size: 1.15rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.doctor-glance {
  background: var(--brand-ivory);
  border-top: 3px solid var(--brand-bronze);
  border-radius: 14px;
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}
.doctor-glance-title {
  font-size: 1.45rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.doctor-glance-list {
  margin: 0 0 1.25rem;
}
.doctor-glance-list > div {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(82, 63, 67, 0.12);
}
.doctor-glance-list > div:last-child {
  border-bottom: 0;
}
.doctor-glance-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.15rem;
}
.doctor-glance-list dd {
  margin: 0;
  color: #3f3033;
  font-weight: 500;
}
.doctor-glance-subhead {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}
.doctor-glance-orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.5rem;
}
.doctor-glance-orgs img {
  height: 48px;
  width: auto;
  opacity: 0.85;
}
.doctor-glance-orgs span {
  font-size: 0.85rem;
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .doctor-glance {
    position: static;
    margin-top: 1.5rem;
  }
}
@media (max-width: 767px) {
  .doctor-hero {
    padding: 2.5rem 0;
    text-align: center;
  }
  .doctor-hero-name {
    font-size: 2rem;
  }
  .doctor-hero-meta,
  .doctor-hero-actions {
    justify-content: center;
  }
  .doctor-hero-portrait {
    max-width: 280px;
    margin-bottom: 0.5rem;
  }
}

/* ---------- Doctor cards: no-crop headshots ----------
   Both doctor photos are 600x650 studio portraits with the head in the
   upper half. The template's .hp-people-img box is 5/4 landscape with a
   centered cover crop, which clips the top of both heads (homepage +
   both microsite hubs). Match the box to the photos' native ratio so the
   full head always shows and both cards crop identically. */
.hp-people-img {
  aspect-ratio: 12 / 13;
}
