/* Hayes Partners – site styles (mobile first) */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-400.8a539799d1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.07f9160163.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.d9e8c29fdd.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Size-matched local fallbacks (generated by scripts/build.mjs from font metrics) */
@font-face {
  font-family: "Archivo Fallback";
  src: local('Arial'), local('ArialMT');
  ascent-override: 88.9575%;
  descent-override: 21.2769%;
  line-gap-override: 0%;
  size-adjust: 98.6988%;
}
@font-face {
  font-family: "Marcellus Fallback";
  src: local('Georgia');
  ascent-override: 95.0184%;
  descent-override: 27.291%;
  size-adjust: 102.5192%;
}

:root {
  --navy: #12283A;
  --navy-deep: #0C1D2A;
  --gold: #B08A3C;          /* mark, rules, large accents, text on navy only */
  --gold-text: #7A5F27;     /* gold-coloured text on light backgrounds (AA) */
  --ivory: #F7F5F1;
  --tint: #EFEBE3;
  --card: #FFFFFF;
  --text: var(--navy);
  --text-muted: #3D4C59;
  --on-navy: var(--ivory);
  --on-navy-muted: #CBD2D8;
  --line: rgba(18, 40, 58, 0.14);

  --font-heading: "Marcellus", "Marcellus Fallback", Georgia, serif;
  --font-body: "Archivo", "Archivo Fallback", Arial, sans-serif;

  --header-h: 4rem;
  --gutter: 1rem;
  --section-pad: clamp(4rem, 2.75rem + 5vw, 7.5rem);
  --radius: 4px;
  --focus: var(--gold-text);
}

@media (min-width: 48em) {
  :root { --header-h: 5rem; --gutter: 1.5rem; }
}
@media (min-width: 75em) {
  :root { --gutter: 2rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 4.4vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
.text-link,
.site-footer a,
.compliance a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.text-link:hover,
.site-footer a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.section-navy, .site-footer { --focus: var(--gold); }
main:focus { outline: none; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

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

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Eyebrow labels – like "FINANCIAL ADVICE" in the logo */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.section-navy .eyebrow { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--ivory); }
.section-navy .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.section-navy .btn-primary:hover { background: var(--ivory); border-color: var(--ivory); }
.section-navy .btn-secondary { border-color: var(--ivory); color: var(--ivory); }
.section-navy .btn-secondary:hover { background: var(--ivory); color: var(--navy); }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 0.875rem; font-size: 0.875rem; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.cta-group .btn { flex: 1 1 100%; }
@media (min-width: 30em) {
  .cta-group .btn { flex: 0 0 auto; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(18, 40, 58, 0.55);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { height: 2.5rem; width: auto; }
.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 1.25rem; height: 1.25rem; flex: none; }
.header-phone:hover .header-phone-text { text-decoration: underline; text-underline-offset: 0.22em; }
.header-phone-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 22.49em) {
  .header-actions .btn-sm { padding-inline: 0.625rem; font-size: 0.8125rem; }
}
@media (min-width: 48em) {
  .header-actions { gap: 1.25rem; }
  .header-phone-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .btn-sm { padding-inline: 1.25rem; font-size: 0.9375rem; }
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head h2 + .section-intro { margin-top: 1.25rem; }
.section-intro { font-size: 1.125rem; color: var(--text-muted); }
.section-navy .section-intro { color: var(--on-navy-muted); }

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 8rem); overflow: hidden; }
.hero-inner { position: relative; display: grid; }
.hero-copy { max-width: 46rem; }
.hero h1 { margin-bottom: 1.75rem; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.7; color: var(--text-muted); max-width: 42rem; }
.hero-flourish { display: none; }
@media (min-width: 60em) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4rem; }
  .hero-flourish { display: block; width: 8.5rem; height: auto; margin-right: 3rem; }
}
@media (min-width: 75em) {
  .hero-flourish { width: 9.5rem; margin-right: 5rem; }
}

/* Cards */
.cards { display: grid; gap: 1.25rem; }
.card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 0.875rem; }
.card p { color: var(--text-muted); }
@media (min-width: 40em) {
  .cards-2, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 2.25rem 2rem 2rem; }
}
@media (min-width: 64em) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.note {
  max-width: 46rem;
  margin: 2rem 0 0;
  padding: 1.125rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: var(--tint);
  color: var(--text-muted);
  font-size: 1rem;
}

/* Why choose us */
.points { display: grid; gap: 2.5rem; }
.point { padding-top: 1.5rem; border-top: 1px solid rgba(247, 245, 241, 0.18); position: relative; }
.point::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 3rem; height: 2px;
  background: var(--gold);
}
.point h3 { margin-bottom: 0.75rem; color: var(--on-navy); }
.point p { color: var(--on-navy-muted); }
@media (min-width: 40em) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3.5rem; }
}

/* Process */
.steps { display: grid; gap: 2.5rem; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-left: 4.25rem; }
.step::before {
  content: counter(step) / "";
  position: absolute;
  left: 0; top: -0.25rem;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1;
}
.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .step { padding-left: 0; padding-top: 4.75rem; }
  .step::before { top: 0; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.5rem; left: 4.25rem; right: -1.75rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
  }
}

/* About */
.about-inner { display: grid; gap: 2.5rem; }
.about-copy { max-width: 46rem; }
.about-copy h2 { margin-bottom: 1.75rem; }
.about-copy p:not(.eyebrow):not(.about-link) { color: var(--text-muted); }
.about-link { margin-top: 1.75rem; font-weight: 600; }
.about-mark { width: 5rem; height: auto; }
@media (min-width: 60em) {
  .about-inner { grid-template-columns: 14rem minmax(0, 1fr); gap: 5rem; align-items: start; }
  .about-mark { width: 10rem; justify-self: center; margin-top: 0.5rem; }
}

/* Testimonials */
.quotes { display: grid; gap: 2rem; }
.quote {
  margin: 0;
  padding: 2.25rem 1.5rem 2rem;
  border: 1px solid rgba(247, 245, 241, 0.18);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.quote blockquote { margin: 0 0 1.75rem; flex: 1; }
.quote blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--on-navy);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote figcaption::before { content: ""; width: 2rem; height: 1px; background: var(--gold); }
@media (min-width: 48em) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { padding: 2.75rem 2.5rem 2.5rem; }
}

/* Book section + inline calendar */
.book-inner { display: grid; gap: 3rem; }
.book-copy h2 { margin-bottom: 1.5rem; }
.book-copy p { color: var(--text-muted); font-size: 1.125rem; }
.book-copy .text-link { color: var(--navy); font-weight: 600; white-space: nowrap; }
.calendar-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  height: 47.5rem;
}
.calendar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.embed-fallback { margin-top: 0.875rem; font-size: 0.9375rem; }
@media (min-width: 64em) {
  .book-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .calendar-frame { height: 44rem; }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: 4rem 3rem;
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 245, 241, 0.18);
}
.footer-brand { display: inline-block; justify-self: start; }
.footer-brand img { width: 15rem; height: auto; }
.footer-contact { font-style: normal; }
.footer-contact p { margin: 0 0 0.375rem; }
.footer-links { display: grid; gap: 0.375rem; }
@media (min-width: 60em) {
  .footer-top { grid-template-columns: auto 1fr auto; gap: 4rem; align-items: start; }
  .footer-contact { justify-self: center; }
}
.compliance { margin: 2rem 0 0; color: var(--on-navy-muted); font-size: 0.875rem; max-width: 60rem; }
.compliance a { color: var(--on-navy); }
.disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 245, 241, 0.18);
  color: var(--on-navy-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 60rem;
}
.footer-label {
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Booking dialog */
.booking-dialog {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--navy);
}
.booking-dialog[open] { display: flex; flex-direction: column; }
.booking-dialog::backdrop { background: rgba(12, 29, 42, 0.72); }
@media (min-width: 48em) {
  .booking-dialog {
    width: min(64rem, calc(100% - 3rem));
    height: min(54rem, calc(100% - 3rem));
    margin: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.5);
  }
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 2px solid var(--gold);
}
.dialog-title { margin: 0 0 0.25rem; font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.3; }
.dialog-fallback { font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.22em; }
.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.dialog-close:hover { background: var(--navy); color: var(--ivory); }
.dialog-close svg { width: 1rem; height: 1rem; }
.dialog-body { position: relative; flex: 1; background: var(--card); }
.dialog-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.focus-sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; }
