/* Avon Medical — site styles
   Brand: deep navy shield + gold star (see /brand). Serif headings echo the wordmark. */

@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #041a36;
  --navy-900: #06295a;
  --navy: #01376f;
  --navy-600: #1f4f8e;
  --navy-100: #e3eaf4;
  --navy-50: #f1f5fa;
  --gold: #ceb65e;
  --gold-700: #8a6a1f;
  --gold-100: #f7efd9;
  --ink: #13212f;
  --ink-soft: #3a4857;
  --muted: #56636f;
  --line: #d9e0e8;
  --line-strong: #b9c4d0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --danger: #a32117;
  --danger-bg: #fdf1f0;

  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(4 26 54 / 6%), 0 6px 20px rgb(4 26 54 / 6%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 3.5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
/* Email addresses can't break at spaces, so let them wrap anywhere on narrow screens. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:hover { color: var(--navy-600); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-950); color: #d5deea; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a:not(.button) { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > :last-child { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.5vw, 32px); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-600); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.section-navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.section-navy .lead { color: #d5deea; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 11px 24px;
  border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.button-secondary { background: transparent; color: var(--navy); }
.button-secondary:hover { background: var(--navy-50); color: var(--navy); border-color: var(--navy); }
.button-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.button-gold:hover { background: #e4c676; border-color: #e4c676; color: var(--navy-950); }
.button-ghost-light { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.button-ghost-light:hover { background: rgb(255 255 255 / 10%); border-color: #fff; color: #fff; }
.button-small { min-height: 40px; padding: 7px 18px; font-size: 0.9375rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
/* The second content value gives the arrow empty alt text so screen readers skip it. */
.link-arrow::after { content: "\2192"; content: "\2192" / ""; transition: transform 0.15s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }
.ext::after { content: " \2197"; content: " \2197" / ""; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding-block: 14px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 38px; flex: none; }
.brand-shield { fill: var(--navy); }
.brand-star { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--navy); line-height: 1; }
.brand-invert .brand-shield { fill: var(--navy-600); }
.brand-invert .brand-name { color: #fff; }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--navy);
  font: 600 0.9375rem/1 var(--sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { flex-basis: 100%; padding-bottom: 20px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: block; padding: 13px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.nav-link:hover { color: var(--navy); }
.nav-link[aria-current] { color: var(--navy); font-weight: 600; }
.nav-cta { margin-top: 20px; }

@media (min-width: 1100px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; flex-basis: auto; align-items: center; gap: 20px; padding: 0; }
  .nav-list { display: flex; gap: 2px; }
  .nav-link { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
  .nav-link:hover { background: var(--navy-50); color: var(--navy); }
  .nav-link[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
  .nav-cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%);
  padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 3.4vw + 1rem, 4rem); margin-bottom: 0.4em; }
.hero-line { display: block; }
.hero .lead { max-width: 56ch; }
.hero-pro { margin: 28px 0 0; font-size: 0.9375rem; color: var(--muted); }
/* Decorative shield + star, only where there is room beside the text. */
.hero-motif {
  display: none; position: absolute; z-index: 0; pointer-events: none;
  width: 520px; right: -5%; top: 50%; transform: translateY(-50%);
}
.hero-motif .motif-shield { fill: none; stroke: var(--navy-100); stroke-width: 3; }
.hero-motif .motif-star { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
@media (min-width: 1180px) { .hero-motif { display: block; } }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (min-width: 900px) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; color: var(--navy-950); }
.trust-item a { color: inherit; text-decoration: none; }
.trust-item a:hover { text-decoration: underline; }
.icon-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-50); display: grid; place-items: center; flex: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-100); color: #5c4712; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}
.service-card { display: grid; gap: 28px; }
@media (min-width: 900px) { .service-card { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; } }
.service-card :is(h2, h3) { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: 0.4em; }
.h3 { font-size: 1.2rem; line-height: 1.25; }
.service-meta { font-size: 0.9375rem; color: var(--muted); }
.service-more { margin: 18px 0 0; }
.notice .button-row { margin-top: 16px; }

.check-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 6px; top: 0.32em; width: 7px; height: 12px;
  border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.section-navy .check-list li::before { border-color: var(--gold); }
.check-list-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; } }

.feature { border-top: 2px solid var(--navy); padding-top: 22px; }
.feature-num { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-700); margin-bottom: 10px; }
.feature p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- People ---------- */
.person { display: flex; gap: 20px; align-items: flex-start; }
.monogram {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em;
}
.monogram-lg { width: 112px; height: 112px; font-size: 2.25rem; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--navy-50); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.avatar-lg { width: 112px; height: 112px; }
.person h3 { margin-bottom: 0.2em; }
.person-role { color: var(--ink-soft); font-weight: 500; margin-bottom: 0.4em; }
.person-reg { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0; }
.profile { display: grid; gap: 28px; }
@media (min-width: 760px) { .profile { grid-template-columns: 112px 1fr; gap: 40px; } }
.profile + .profile { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); }
.profile h2 { margin-bottom: 0.2em; }

/* ---------- Chips ---------- */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 0.9375rem; font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--navy); color: #d5deea;
}
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { margin: 0; }
.cta-band .button-row { margin-top: 0; }

/* ---------- Inner pages ---------- */
.page-header { background: var(--navy-50); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 60px); }
.page-header h1 { max-width: 22ch; }
.page-header .lead { margin-bottom: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); display: inline-block; padding-block: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); }

.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 0.8vw + 1.15rem, 1.875rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--navy-600); }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) {
  .with-aside { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .aside-nav { position: sticky; top: 24px; align-self: start; }
}
.aside-nav h2 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.aside-nav a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; }
.aside-nav a:hover { color: var(--navy); border-left-color: var(--gold); }

.facts { margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts > div { display: grid; gap: 4px; padding: 14px 18px; }
.facts > div + div { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: minmax(150px, 36%) 1fr; gap: 20px; } }
.facts dt { font-weight: 600; color: var(--navy-950); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.notice { margin: 0 0 1.5em; padding: 18px 22px; border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; background: var(--navy-50); }
.notice > :last-child { margin-bottom: 0; }
.notice-urgent { border-left-color: var(--danger); background: var(--danger-bg); }
.notice-urgent strong:first-child { color: var(--danger); }

.help-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.help-card h3 { font-size: 1.125rem; margin-bottom: 0.3em; }
.help-number { display: inline-block; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy-950); text-decoration: none; margin-bottom: 6px; }
.help-card p { margin-bottom: 0; color: var(--ink-soft); }
.help-card-urgent { border-color: #e7b4ae; background: var(--danger-bg); }
.help-card-urgent .help-number { color: var(--danger); }

.route-card h3 { font-size: 1.2rem; }
.route-card p { color: var(--ink-soft); }
.route-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }

.page-meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* ---------- Booking ---------- */
[hidden] { display: none !important; }
.package-card { display: flex; flex-direction: column; }
.package-card p { color: var(--ink-soft); }
.package-card .tag { align-self: flex-start; }
.package-card .check-list { flex: 1; margin-bottom: 24px; }
.package-card .button { align-self: flex-start; }
.package-card-featured { border: 2px solid var(--navy); }
.price { font-family: var(--serif); font-size: 2.25rem; font-weight: 600; line-height: 1.1; color: var(--navy-950); margin: 4px 0 12px; }
.package-card .price { color: var(--navy-950); }
.price-prefix { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--muted); margin-right: 4px; }
.check-list-sm { font-size: 0.9375rem; gap: 8px; }
.booking-panel { margin-top: clamp(32px, 4vw, 48px); scroll-margin-top: 16px; }
.booking-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.booking-panel-head h2 { margin: 0; }
.booking-panel-head h2:focus { outline: none; }
.booking-frame-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-bottom: 12px; }
.booking-frame { display: block; width: 100%; height: 800px; border: 0; }
@media (max-width: 639px) { .booking-frame { height: 85vh; min-height: 560px; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .lead, .not-found h1 { margin-inline: auto; }
.not-found .button-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #c9d4e3; padding-block: 64px 32px; font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); }
  .footer-about { grid-column: auto; }
}
.footer-tagline { margin: 14px 0 10px; font-family: var(--serif); font-size: 1.125rem; color: #fff; }
.footer-urgent { margin: 0; }
.site-footer .footer-urgent a { color: var(--gold); text-decoration: underline; }
.footer-heading { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding-block: 3px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 14%); font-size: 0.875rem; color: #aebbcd; }
.footer-legal p { max-width: 90ch; }
.footer-legal p:last-child { margin-bottom: 0; }
.site-footer .footer-legal a { text-decoration: underline; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header .site-nav, .nav-toggle, .skip-link, .footer-grid, .hero-motif { display: none !important; }
  .site-footer { background: none; color: #000; padding: 0; }
  .site-footer a, .site-footer .footer-legal { color: #000; }
}
