/* ==========================================================================
   Nova Clinic — base: fonts, tokens, reset, type, controls
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1b3d;
  --navy-deep: #07132a;
  --navy-soft: #14284f;
  --sage: #1e6b52;
  --sage-deep: #15503d;
  --sage-tint: #eaf0ec;
  --sage-wash: #f1f4f1;
  --gold: #c5a880;
  --gold-ink: #7f653c;
  --gold-pale: #f2eadc;
  --ivory: #f8f9fa;
  --white: #ffffff;
  --slate: #2d3748;
  --muted: #5b6678;
  --line: #dde2e8;
  --line-strong: #c8d0d9;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
    Georgia, serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 122px);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 14px rgba(11, 27, 61, 0.06);
  --shadow-md: 0 18px 48px rgba(11, 27, 61, 0.12);
  --shadow-lg: 0 30px 80px rgba(11, 27, 61, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-height: 82px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sage-deep);
}

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

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
}

p {
  margin: 0;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.drawer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.corporate :focus-visible {
  outline-color: var(--gold);
}

[hidden] {
  display: none !important;
}

/* Typography ------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.018em;
}

h1,
h2,
h3,
strong,
.hours-card__time {
  font-variant-numeric: lining-nums;
}

h2 {
  font-size: clamp(2.25rem, 4.1vw, 3.65rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.78;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
}

.serif {
  font-family: var(--font-serif);
}

.italic {
  font-style: italic;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-ink);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.label--gold {
  color: var(--gold);
}

.label .star,
.label svg {
  flex: none;
  width: 11px;
  height: 11px;
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), 980px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(52px, 6vw, 82px);
}

.section--flush-top {
  padding-top: 0;
}

.section--white {
  background: var(--white);
}

.section--tint {
  background: var(--sage-wash);
}

.section--warm {
  background: #f4f1eb;
}

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.66);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy .lede,
.section--navy .muted {
  color: rgba(255, 255, 255, 0.6);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: end;
  gap: clamp(28px, 5vw, 78px);
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-head h2 {
  max-width: 16ch;
}

.section-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 4px;
}

.section-head__aside p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.78;
}

.section--navy .section-head__aside p {
  color: rgba(255, 255, 255, 0.6);
}

/* Links ------------------------------------------------------------------ */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.text-link--light {
  color: var(--white);
  border-color: rgba(197, 168, 128, 0.6);
}

.text-link--light:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--sage {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.btn--sage:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--white);
}

.btn--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.btn--gold:hover {
  background: #d3b992;
  border-color: #d3b992;
  color: var(--navy-deep);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn--sm {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.72rem;
}

.btn--block {
  width: 100%;
}

/* Forms ------------------------------------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.field label .req {
  color: var(--gold-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.875rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(30, 107, 82, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a1af;
}

.field__hint {
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field--full {
  grid-column: 1 / -1;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 107, 82, 0.25);
  border-radius: 6px;
  background: var(--sage-tint);
  color: var(--sage-deep);
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  border-color: rgba(155, 44, 44, 0.25);
  background: #fbf1f0;
  color: #8c2f2a;
}

/* Utilities -------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

.star-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  color: var(--gold);
  vertical-align: -0.12em;
}

.hr-gold {
  width: 54px;
  height: 1px;
  border: 0;
  background: var(--gold);
  margin: 0;
}

/* Page-load reveal: one orchestrated moment, homepage hero only ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow,
.hero__title,
.hero__deck,
.hero__actions,
.hero__trust {
  animation: rise 0.9s var(--ease) both;
}

.hero__title {
  animation-delay: 0.08s;
}

.hero__deck {
  animation-delay: 0.16s;
}

.hero__actions {
  animation-delay: 0.24s;
}

.hero__trust {
  animation-delay: 0.32s;
}

@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;
    scroll-behavior: auto !important;
  }
}
