/* Hayton Wealth Management — shared stylesheet */

:root {
  --color-primary: #1a3125;
  --color-primary-dark: var(--color-primary);
  --color-accent: #c0a06a;
  --color-accent-light: #e8dcc4;
  /* Darker text-safe tint of the accent gold: #c0a06a only reaches ~2.5:1
     against white/cream, well under WCAG AA's 4.5:1 for text. Used instead
     of --color-accent anywhere the accent renders as text or a thin border
     on a light background; the lighter --color-accent is kept for use on
     dark backgrounds, where it already passes comfortably (~5.6:1). */
  --color-accent-text: #84683c;
  --color-bg: #f6f2ea;
  --color-surface: #ffffff;
  --color-text: #23291f;
  --color-text-muted: #5b6459;
  --color-border: #e2dccd;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 12px 30px rgba(18, 32, 25, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section--surface {
  background: var(--color-surface);
}

.section--dark {
  background: var(--color-primary-dark);
  color: #ece7da;
}

.section--dark .eyebrow {
  color: var(--color-accent);
}

.section--dark h2, .section--dark h3 {
  color: #fff;
}

.section-head {
  max-width: 780px;
  margin: 0 0 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #142a1f;
}

.btn-secondary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background: #cbae7e;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: inherit;
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 0 0 rgba(18, 32, 25, 0);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 12px rgba(18, 32, 25, 0.28);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  line-height: 1.1;
}

.logo-text .name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-text .subtitle {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 2px;
}

.main-nav > a,
.main-nav > .nav-item-dropdown > a {
  position: relative;
}

.main-nav > a::after,
.main-nav > .nav-item-dropdown > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease, left 0.25s ease;
}

.main-nav > a:hover,
.main-nav > a[aria-current="page"],
.main-nav > .nav-item-dropdown > a:hover,
.main-nav > .nav-item-dropdown > a[aria-current="page"] {
  color: var(--color-primary);
}

.main-nav > a:hover::after,
.main-nav > a[aria-current="page"]::after,
.main-nav > .nav-item-dropdown > a:hover::after,
.main-nav > .nav-item-dropdown > a[aria-current="page"]::after {
  left: 0;
  width: 100%;
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item-dropdown > a svg {
  width: 12px;
  height: 12px;
}

.dropdown-panel {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-panel a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 260px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .nav-item-dropdown:hover .dropdown-panel,
  .nav-item-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-panel li a {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
  }

  .dropdown-panel li a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
  }
}

@media (max-width: 1023.98px) {
  .dropdown-panel {
    padding-left: 16px;
    border-left: 2px solid var(--color-border);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-label-short {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

/* Hero */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--color-primary-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 32, 25, 0.88) 0%, rgba(18, 32, 25, 0.62) 45%, rgba(18, 32, 25, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 72px 0;
}

.hero h1 {
  color: #fff;
}

.hero .eyebrow {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.1rem;
  color: #ece7da;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-hero {
  padding: 48px 0;
  background: var(--color-primary-dark);
  color: #fff;
}

.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: #ece7da; max-width: 760px; margin-bottom: 0; }

/* Services grid */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* For groups of .service-card that can hold a variable count (5 services
   now that Private Medical Insurance joined the original 4, plus a 6th
   card on cross-sell grids for "How We Work") — a strict N-column grid
   leaves an awkward lone card on its own row for a count that isn't a
   clean multiple. Flexbox wraps naturally at any count: a fixed
   preferred width keeps cards a consistent size, capped by max-width so
   a sparser last row doesn't stretch to fill it, and justify-content
   centres that shorter row instead of left-hanging it. */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.service-grid > .service-card {
  flex: 1 1 300px;
  max-width: 360px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Used for the "How We Work" card mixed into a page's other-services
   grid — it isn't a fifth service, so it gets its own eyebrow tag and
   a coloured top edge to read as a different kind of link at a glance,
   not just a fourth option. Kept on the same white background as its
   siblings (rather than a tinted one) so the --color-accent-text
   eyebrow label keeps its verified ~4.7:1 contrast — a warmer tint
   tested closer to 3.5:1, under the 4.5:1 text minimum. */
.service-card--secondary {
  border-top: 3px solid var(--color-accent);
}

.service-card--secondary .eyebrow {
  margin-bottom: 10px;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 0.4em;
}

.service-card .find-out-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.service-card:hover .find-out-more {
  transform: translateX(4px);
}

/* Trust bar */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Testimonials */

.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-slides {
  display: grid;
  overflow: hidden;
}

.testimonial-slide {
  grid-area: 1 / 1;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.testimonial-slide.is-active {
  transform: translateX(0);
}

.testimonial-slide.is-prev {
  transform: translateX(-100%);
}

.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 0 20px;
  color: #fff;
}

.testimonial-slide cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.carousel-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.carousel-dots {
  display: flex;
}

/* The visible dot stays a subtle 8px, but the button itself is sized to
   a proper touch target (its ::before draws the small dot centred
   inside) — an 8x8px tap area is uncomfortably small to hit precisely,
   especially on a touchscreen. */
.carousel-dots button {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease;
}

.carousel-dots button.is-active::before {
  background: var(--color-accent);
}

/* Process steps */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.process-step {
  text-align: center;
}

.process-step .step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-text);
  color: var(--color-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 auto 18px;
}

/* CTA banner */

.cta-banner {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h3 {
  color: #fff;
  margin-bottom: 4px;
}

.cta-banner p {
  margin: 0;
  color: #cfd6c9;
}

/* Cards / general */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info-item + .contact-info-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  margin: 0;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-placeholder span {
  width: 130px;
  height: 130px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-accent);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  display: flex;
  gap: 12px;
}

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

/* Footer */

.site-footer {
  background: var(--color-primary-dark);
  color: #cfd6c9;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: #cfd6c9;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--color-accent);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo .logo-mark {
  color: var(--color-accent);
}

.footer-logo .name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.78rem;
  color: #97a094;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0 0 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #97a094;
  margin-top: 20px;
}

.footer-bottom a {
  text-decoration: none;
  color: #97a094;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.form-success {
  display: none;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

/* Info page content */

.prose h2 {
  margin-top: 1.6em;
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 0;
}

.callout {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 0.92rem;
}

.prose-width {
  max-width: 760px;
}

.hp-field {
  display: none;
}

.callout--intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.toc a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.toc a:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 780px;
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Breadcrumb */

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* Responsive */

@media (max-width: 1023.98px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 20px;
    transform: translateX(100%);
    /* visibility is delayed on close (but not on open) so the panel stays
       focusable/visible while it's still animating off-screen, and only
       leaves the tab order once it's actually off-screen — otherwise a
       keyboard user tabbing through a closed menu lands on links that
       are invisible, off-canvas. */
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.2s ease, visibility 0s linear 0s;
  }

  /* Taller tap target than the desktop nav's compact 6px vertical padding
     (which suits a tight inline row with an underline-hover effect) —
     the mobile menu is a stacked list of touch targets, so give each
     link closer to a comfortable ~44px tap height. */
  .main-nav a {
    padding: 10px 2px;
  }

  .nav-toggle {
    display: block;
  }

  .header-bar {
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .trust-bar {
    justify-content: center;
    text-align: center;
  }

  .header-actions .btn-primary {
    padding: 9px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .btn-label-full {
    display: none;
  }

  .btn-label-short {
    display: inline;
  }

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

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

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col .media-col {
    order: -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .grid-4,
  .grid-2,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .service-grid {
    gap: 14px;
  }

  .service-grid > .service-card {
    max-width: none;
  }

  .service-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 20px 22px;
  }

  .service-card .icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }

  .service-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.15rem;
  }

  .service-card p {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .service-card .find-out-more {
    grid-column: 2;
    grid-row: 3;
    margin-top: 10px;
  }

  /* .service-card--secondary's .eyebrow has no slot in the grid above
     (only it uses one) — without this it would auto-place into the
     icon's column, under the icon. Move it into the h3's old row-1
     spot and bump the heading down to row 2 instead. */
  .service-card--secondary .eyebrow {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 2px;
  }

  .service-card--secondary h3 {
    grid-row: 2;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding: 64px 0;
  }

  .trust-bar {
    gap: 20px;
  }
}

/* Scroll reveal — progressive enhancement only; JS adds .reveal-pending
   (and only when the user hasn't asked for reduced motion), so content
   is always visible if JS never runs. */

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-pending.is-revealed,
.reveal-pending:focus-within {
  opacity: 1;
  transform: translateY(0);
}

/* Safety net for the rare sub-360px screen (e.g. the discontinued
   iPhone SE 1st-gen): let the logo wrap again rather than overflow. */
@media (max-width: 359px) {
  .logo-text .name {
    white-space: normal;
  }
}

/* Brand text-selection color, instead of the browser default blue. */
::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Branded keyboard-focus outline for links/buttons (form fields have
   their own matching treatment above). :focus-visible so it only
   shows for keyboard navigation, not every mouse click. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip-to-content link: off-screen until keyboard-focused, then the
   first thing a keyboard/screen-reader user encounters. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Print — nav, CTAs and stock photography add nothing on paper and
   just spend ink; strip back to plain black-on-white reference text.
   Aimed mainly at people printing/saving a legal page for their
   records, but applies everywhere. */
@media print {
  .site-header,
  .skip-link,
  .cta-banner,
  .carousel-controls,
  .btn,
  img {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero,
  .page-hero,
  .section--dark,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1, .hero p,
  .page-hero h1, .page-hero p,
  .section--dark h2, .section--dark h3,
  .breadcrumb, .breadcrumb a {
    color: #000 !important;
  }

  .grid-4, .grid-2, .process-steps, .footer-grid, .two-col {
    grid-template-columns: 1fr !important;
  }

  .service-card, .card, .toc, .callout {
    border: 1px solid #999;
    box-shadow: none !important;
  }

  .container {
    max-width: 100% !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
