/* =========================================================
   THE ROCK HOSPITAL
   Design direction: "Cornerstone" — an institution founded in
   1993, incorporated in 2001, named for permanence. The palette
   comes from adire indigo cloth and laterite earth roads; the
   signature component is an engraved stone plaque used for
   facts that deserve to look official (founding date, director,
   accreditation) rather than decorative "trust badge" iconography.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Libre+Franklin:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Adire indigo — dominant hue */
  --indigo-deep: #10192b;
  --indigo: #1c2b45;
  --indigo-light: #3c5583;
  --indigo-mist: #6d84ab;

  /* Laterite rust — the one sharp accent, used sparingly */
  --rust: #b8471f;
  --rust-deep: #8c3216;
  --rust-light: #e08454;

  /* Harmattan parchment — warm neutrals, never stark white/grey */
  --parchment: #f4ecdb;
  --parchment-deep: #e9dcc0;
  --stone: #d8c9a8;
  --stone-line: #cbb98f;
  --paper: #fbf6ea;

  --ink: #241c17;
  --ink-soft: #4f4438;
  --ink-faint: #7d715f;

  --success: #3f6b3f;
  --white: #fffdf7;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 100px;

  --shadow: 0 10px 28px rgba(16, 25, 43, 0.14);
  --shadow-lg: 0 24px 55px rgba(16, 25, 43, 0.22);

  --header-height: 80px;
  --emergency-height: 42px;
  --container: 1180px;
  --transition: 220ms cubic-bezier(0.23, 1, 0.32, 1);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fine paper grain across the whole site — atmosphere, not decoration */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  color: var(--white);
  background: var(--rust);
}

:focus-visible {
  outline: 3px solid rgba(184, 71, 31, 0.45);
  outline-offset: 3px;
}

/* Layout */

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--parchment-deep);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(36, 28, 23, 0.02) 0px,
    rgba(36, 28, 23, 0.02) 1px,
    transparent 1px,
    transparent 14px
  );
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--rust-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-title {
  margin: 0 0 16px;
  color: var(--indigo-deep);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust-deep);
  font-weight: 700;
  border-bottom: 1px solid rgba(184, 71, 31, 0.35);
  padding-bottom: 2px;
  transition: gap var(--transition), border-color var(--transition);
}

.text-link:hover {
  gap: 12px;
  border-color: var(--rust);
}

.text-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mt-md {
  margin-top: 26px;
}

.mt-lg {
  margin-top: 30px;
}

/* Emergency bar */

.emergency-bar {
  position: relative;
  z-index: 1000;
  min-height: var(--emergency-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  color: var(--paper);
  background: var(--rust-deep);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 2px,
    transparent 2px,
    transparent 10px
  );
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.emergency-bar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.emergency-bar svg {
  width: 16px;
  height: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(244, 236, 219, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-color: var(--stone-line);
  background: rgba(244, 236, 219, 0.98);
  box-shadow: 0 4px 20px rgba(16, 25, 43, 0.08);
}

.header-inner {
  width: min(calc(100% - 32px), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--parchment);
  background: var(--indigo);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(16, 25, 43, 0.28);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

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

.brand-name {
  color: var(--indigo-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  padding: 9px 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--indigo-deep);
}

.desktop-nav a.active::after {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  content: "";
  background: var(--rust);
}

.header-cta {
  display: none;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  color: var(--paper);
  background: var(--indigo);
  border: 1px solid var(--indigo);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--indigo-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 25, 43, 0.28);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-accent {
  background: var(--rust);
  border-color: var(--rust);
}

.btn-accent:hover {
  background: var(--rust-deep);
  box-shadow: 0 10px 22px rgba(140, 50, 22, 0.32);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--indigo);
  background: var(--parchment-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.mobile-panel {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -15px 0 45px rgba(16, 25, 43, 0.22);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mobile-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--parchment-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  padding: 15px;
  color: var(--ink-soft);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--indigo-deep);
  background: var(--parchment-deep);
}

.mobile-panel .btn {
  width: 100%;
  margin-top: auto;
}

/* Masthead — a single asymmetric panel with a caption card overlaid at
   the bottom-left corner, in place of a full-viewport gradient hero
   with a floating glass card. Shorter than a "cinematic" hero: this is
   a masthead, not a landing-page intro. */

.masthead {
  position: relative;
  overflow: hidden;
  min-height: 54vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(16, 25, 43, 0.18), rgba(16, 25, 43, 0.5) 60%, var(--indigo-deep) 100%),
    repeating-linear-gradient(
      178deg,
      var(--indigo) 0px,
      var(--indigo) 46px,
      var(--indigo-light) 46px,
      var(--indigo-light) 48px
    ),
    var(--indigo-deep);
}

.masthead::after {
  position: absolute;
  content: "";
  pointer-events: none;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.masthead::before {
  content: "1993";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 15vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: right;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
  user-select: none;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.masthead-caption {
  max-width: 640px;
  padding: 40px 36px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(16, 25, 43, 0.35);
}

.masthead-caption > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 800ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.masthead-caption > *:nth-child(1) { animation-delay: 80ms; }
.masthead-caption > *:nth-child(2) { animation-delay: 190ms; }
.masthead-caption > *:nth-child(3) { animation-delay: 300ms; }
.masthead-caption > *:nth-child(4) { animation-delay: 410ms; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masthead h1 {
  margin: 0 0 14px;
  color: var(--indigo-deep);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
}

.masthead h1 em {
  font-style: italic;
  color: var(--rust);
}

.masthead-lead {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.masthead-facts {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Cornerstone plaque — the signature component. Used once, deliberately:
   for the Medical Director. Restraint is the point — this only means
   something because it isn't reused for everything. */

.plaque {
  position: relative;
  padding: 26px 24px;
  background: linear-gradient(165deg, #efe4c9, var(--stone));
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow-lg);
  color: var(--indigo-deep);
}

.plaque::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(36, 28, 23, 0.18);
  border-radius: 2px;
  pointer-events: none;
}

.plaque-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rust-deep);
}

.plaque-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.plaque-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.plaque-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(36, 28, 23, 0.16);
}

.plaque-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.plaque-fact + .plaque-fact {
  margin-top: 10px;
}

.plaque-fact-label {
  color: var(--ink-faint);
}

.plaque-fact-value {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
}

/* Editorial panel row — an asymmetric two-up block (dark solid panel +
   plain copy), alternating which side is dark from block to block.
   This is the homepage's "about" treatment: no icon cards, no stock
   photography (none exists for this hospital) — a solid panel doing
   the job a real photograph would, honestly, instead of faking one. */

.panel-row {
  display: grid;
  border: 1px solid var(--stone-line);
}

.panel-row.reverse .panel-media {
  order: 2;
}

.panel-media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  background:
    linear-gradient(165deg, rgba(16, 25, 43, 0.88), rgba(28, 43, 69, 0.7)),
    repeating-linear-gradient(178deg, var(--indigo) 0px, var(--indigo) 40px, var(--indigo-light) 40px, var(--indigo-light) 42px);
}

.panel-media::before {
  position: absolute;
  content: "";
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.panel-media.light {
  color: var(--ink);
  background: linear-gradient(165deg, var(--parchment-deep), var(--stone));
}

.panel-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
}

.panel-figure {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.panel-copy {
  padding: 44px 40px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-copy p {
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.check-list svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

/* Term list — plain, dense description rows for facts and attributes
   (values, contact details, supporting roles). No boxed icons, no
   card borders — closer to a directory entry than a marketing card. */

.deflist {
  border-top: 1px solid var(--stone-line);
}

.deflist-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone-line);
}

.deflist-term {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-deep);
}

.deflist-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 640px;
}

.deflist-desc.title {
  margin-bottom: 4px;
  color: var(--indigo-deep);
  font-weight: 700;
}

.deflist-desc a {
  color: var(--indigo-deep);
  font-weight: 700;
  border-bottom: 1px solid var(--stone-line);
}

@media (min-width: 700px) {
  .deflist-row {
    grid-template-columns: 190px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .panel-row {
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
  }
}

/* Register — a directory-board layout for services, in place of a
   generic icon-card grid. Numbered like an actual facility directory. */

.register {
  border-top: 1px solid var(--stone-line);
}

.register-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--stone-line);
  transition: background var(--transition);
}

.register-row:hover {
  background: rgba(28, 43, 69, 0.035);
}

.register-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rust-deep);
  padding-top: 5px;
}

.register-body h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--indigo-deep);
}

.register-body p {
  margin: 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .register-row {
    grid-template-columns: 4.4rem 1fr;
    padding: 34px 0;
  }

  .register-num {
    font-size: 1.2rem;
  }

  .register-body h3 {
    font-size: 1.4rem;
  }
}

/* Roster layout — two-column split: director plaque + a plain deflist
   of supporting roles (reuses .deflist, not a separate card system). */

.roster {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .roster {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

/* Claim — a single large editorial statement (institutional fact, not
   a testimonial). Real hospital sites tend to lead with verifiable
   claims, not review-farm grids — this replaces that pattern with one
   the hospital can actually stand behind. */

.claim {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.claim-statement {
  margin: 0 0 16px;
  color: var(--indigo-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.32;
}

.claim-support {
  margin: 0;
  max-width: 56ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* CTA / Appointment */

.appointment-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: var(--paper);
  background:
    linear-gradient(175deg, rgba(16, 25, 43, 0.3), rgba(16, 25, 43, 0.75)),
    repeating-linear-gradient(178deg, var(--indigo) 0px, var(--indigo) 46px, var(--indigo-light) 46px, var(--indigo-light) 48px),
    var(--indigo-deep);
}

.appointment-section::after {
  position: absolute;
  content: "";
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.appointment-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 42px;
  align-items: center;
}

.appointment-copy .eyebrow {
  color: var(--rust-light);
}

.appointment-copy h2 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 500;
}

.appointment-copy > p {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.form-card {
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  margin: 0 0 20px;
  color: var(--indigo-deep);
  font-size: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(60, 85, 131, 0.14);
}

.form-submit {
  width: 100%;
  margin-top: 5px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 0.68rem;
  text-align: center;
}

/* Page header */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: var(--paper);
  background:
    linear-gradient(175deg, rgba(16, 25, 43, 0.25), rgba(16, 25, 43, 0.68)),
    repeating-linear-gradient(178deg, var(--indigo) 0px, var(--indigo) 46px, var(--indigo-light) 46px, var(--indigo-light) 48px),
    var(--indigo-deep);
}

.page-hero::after {
  position: absolute;
  content: "";
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--rust-light);
}

.breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero .eyebrow {
  color: var(--rust-light);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.02;
  font-weight: 500;
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

/* Director spotlight — reuses .plaque rather than a separate avatar
   card system, so the signature component stays rare and meaningful. */

.director-section {
  background: var(--parchment-deep);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(36, 28, 23, 0.02) 0px,
    rgba(36, 28, 23, 0.02) 1px,
    transparent 1px,
    transparent 14px
  );
}

.director-row {
  display: grid;
  gap: 36px;
  align-items: center;
}

.director-copy h2 {
  margin: 0 0 13px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--indigo-deep);
  font-weight: 500;
}

.director-copy p {
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .director-row {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Contact */

.contact-form-section {
  background: var(--parchment-deep);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(36, 28, 23, 0.02) 0px,
    rgba(36, 28, 23, 0.02) 1px,
    transparent 1px,
    transparent 14px
  );
}

.contact-form-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--indigo-deep);
  font-weight: 500;
}

.contact-intro > p {
  color: var(--ink-soft);
}

.contact-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 26px;
  padding: 18px;
  background: rgba(184, 71, 31, 0.08);
  border: 1px solid rgba(184, 71, 31, 0.22);
  border-radius: var(--radius);
}

.contact-callout svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--rust);
}

.contact-callout strong {
  display: block;
  color: var(--ink);
  font-size: 0.84rem;
}

.contact-callout span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Footer */

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--indigo-deep);
  border-top: 3px solid var(--rust);
}

.footer-main {
  display: grid;
  gap: 36px;
  padding: 52px 0 40px;
}

.footer-brand .brand-name {
  color: var(--paper);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand .brand-mark {
  background: var(--rust);
}

.footer-brand > p {
  max-width: 300px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.footer-col h3 {
  margin: 0 0 17px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--paper);
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.8rem;
}

.hours-row strong {
  color: var(--paper);
  font-weight: 600;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.footer-bottom p {
  margin: 0;
}

/* Utility */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 700;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--rust);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.form-success {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  color: #1f3d1f;
  background: #e6efe1;
  border: 1px solid #bcd6ae;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.23, 1, 0.32, 1), transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: var(--paper);
  background: var(--indigo-deep);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

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

/* Tablet: 768px */

@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }

  .desktop-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .masthead-caption {
    padding: 52px 48px;
  }

  .form-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  }

  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop/tablet: 1024px */

@media (min-width: 1024px) {
  .appointment-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.75fr);
    gap: 78px;
  }

  .contact-form-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 82px;
  }
}

/* Large screens */

@media (min-width: 1200px) {
  .masthead {
    min-height: 58vh;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  .masthead-caption > * {
    opacity: 1;
    transform: none;
  }
}
