/* =============================================================
   AMERA SALEM — MEDIATION & DISPUTE RESOLUTION
   Design tokens + layout. Structured for easy image/text swaps.
   ============================================================= */

:root {
  /* Colour palette — sampled from HPDesign.png */
  --navy: #0a1b33;
  --navy-deep: #071426;
  --navy-panel: #081a30;
  --gold: #c9a24d;
  --gold-light: #e3c89a;
  --gold-dark: #a9822e;
  --cream: #f6f5f3;
  --cream-dark: #ece9e5;
  --white: #ffffff;
  --text: #4b535f;
  --text-light: #c9cfd8;
  --text-dark: #0a1b33;
  --border: #e4e1da;
  --border-navy: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1400px;
  --header-height: clamp(72px, 6vw, 96px);
  --section-pad-y: clamp(22px, 2.8vw, 48px);
  --edge-pad: clamp(20px, 4vw, 48px);
}

/* ---------------------------------------------------------------
   RESET
   --------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

svg { display: block; }

/* Font Awesome icon glyphs: force the line box to exactly match the
   font-size and center the glyph within it, so icons sit dead-centre
   inside flex-centered circles/badges rather than drifting per the
   font's natural line metrics. */
i[class*="fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text-dark); }

/* ---------------------------------------------------------------
   SHARED / REUSABLE
   --------------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.02em;
}

.services .section-title,
.expertise .section-title,
.testimonials .section-title {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
}
.section-decoration span {
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.section-decoration i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  font-style: normal;
}
.section-decoration--left { justify-content: flex-start; margin-left: 0; }
.section-decoration--left span { background: var(--gold); width: 102px; }
.section-decoration--left .lotus {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.gold-rule { display: block; width: 56px; height: 2px; background: var(--gold); }
.gold-rule--left { margin: 14px 0; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.35s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary::before { background: var(--gold); }
.btn-primary:hover { color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--gold);
}
.btn-outline::before { background: var(--gold); }
.btn-outline:hover { color: var(--navy); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  color: var(--navy);
}
.btn-gold::before { background: var(--navy); }
.btn-gold:hover { color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.text-link .arrow { transition: transform 0.2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

/* Full-width section w/ constrained inner content */
.services__inner,
.expertise__inner,
.testimonials__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge-pad);
}

/* =================================================================
   HEADER / NAVIGATION
   ================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--navy);
  z-index: 1000;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header-height);
  padding: 0 clamp(20px, 3vw, 44px);
}

/* No site navigation — logo sits centred in the header bar, with the
   single CTA button pinned to the right. */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo__img { height: clamp(48px, 5.6vw, 72px); width: auto; }

.header-cta { flex-shrink: 0; height: 42px; padding: 0 18px; font-size: clamp(0.6rem, 0.8vw, 0.7rem); color: var(--white); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + clamp(24px, 3vw, 40px)) clamp(24px, 5vw, 60px) clamp(32px, 4vw, 48px) clamp(28px, 6vw, 88px);
  max-width: 640px;
}

.hero__heading {
  font-size: clamp(2.3rem, 4.1vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: 1px;
  color: var(--text-dark);
  font-weight: 600;
}

.hero__text {
  margin-top: 18px;
  max-width: 420px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero__media { position: relative; width: 100%; height: 100%; min-height: 320px; }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* =================================================================
   SPECIALIST SERVICES
   ================================================================= */
.services {
  width: 100%;
  background: var(--cream);
  padding: var(--section-pad-y) 0;
  scroll-margin-top: var(--header-height);
}

.services__grid {
  margin-top: clamp(20px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}

.service-icon {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg, .service-icon i { width: 40px; height: 40px; font-size: 40px; color: var(--gold); }

.service-connector {
  align-self: start;
  margin-top: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.service-connector .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.service-connector .dot--big {
  width: 7px;
  height: 7px;
}
.service-connector .fa-chevron-right {
  font-size: 11px;
  color: var(--gold);
  margin-left: 3px;
}

.service-col {
  text-align: center;
  padding: 0 clamp(4px, 2vw, 20px);
  position: relative;
}

.service-label {
  display: block;
  margin-top: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-heading {
  margin-top: 2px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.service-text {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.service-col .text-link { margin-top: 10px; }

/* =================================================================
   ABOUT AMERA SALEM
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: 46fr 54fr;
  width: 100%;
  min-height: 60vh;
}

.about__media { position: relative; width: 100%; height: 100%; min-height: 320px; }
.about__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.about__content {
  background: var(--navy);
  display: flex;
  align-items: center;
}

.about__content-inner {
  padding: clamp(22px, 3vw, 40px) clamp(24px, 5vw, 72px) clamp(22px, 3vw, 40px) clamp(28px, 5vw, 64px);
  max-width: 620px;
}

.about__heading {
  color: var(--white);
  font-size: clamp(1.1rem, 2.3vw, 2.15rem);
  line-height: 1.15;
  white-space: nowrap;
}

.about__text {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-light);
  max-width: 480px;
}
.about__text + .about__text { margin-top: 8px; }

.about__content-inner .btn { margin-top: 14px; color: var(--white); }

.about__more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.5s ease 0.05s;
}
.about__more.is-expanded { opacity: 1; }
.about__more-inner { padding-top: 4px; }
.about__more .about__text:first-child { margin-top: 0; }
.about__more-heading {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--white);
}
.about__more .checklist {
  margin: 18px 0 0;
  max-width: none;
  grid-template-columns: 1fr 1fr;
}
.about__more .checklist li { color: var(--white); font-size: 0.82rem; }
.about__more .checklist li::before { background: var(--gold-light); }

.about-toggle-row { margin-top: 14px; }
.about-toggle-row .btn { margin-top: 0; }

/* =================================================================
   AREAS OF EXPERTISE
   ================================================================= */
.expertise {
  width: 100%;
  background: var(--white);
  padding: var(--section-pad-y) 0;
}

.expertise__list {
  margin-top: clamp(18px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.expertise__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 4px 10px;
  position: relative;
}
.expertise__item + .expertise__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.expertise__item svg, .expertise__item i { width: 42px; height: 42px; font-size: 42px; color: var(--navy); }
.expertise__item span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

/* =================================================================
   CTA / DESK IMAGE
   ================================================================= */
.cta-split {
  display: grid;
  grid-template-columns: 70fr 30fr;
  width: 100%;
  min-height: 45vh;
  background: var(--cream-dark);
}

.cta-split__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3.4vw, 40px) clamp(24px, 5vw, 60px);
}

.cta-split__inner { max-width: 620px; text-align: center; margin: 0 auto; }

.cta-split__text {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
}

.cta-split__inner .btn { margin-top: 16px; }

.cta-split__media { position: relative; width: 100%; height: 100%; min-height: 220px; }
.cta-split__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials {
  width: 100%;
  background: var(--cream);
  padding: var(--section-pad-y) 0;
}

.testimonials__viewport {
  margin-top: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
}

/* Desktop/tablet: a plain static 3-up grid — with only 3 testimonials
   there's nothing to page through, so no sliding/transform here. The
   mobile media query below turns this into a one-at-a-time track. */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
}

.testimonial-slide {
  display: flex;
}

.testimonial-card {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(10, 27, 51, 0.05);
}

.testimonial-quote {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}

.testimonial-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.testimonial-text p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text);
}
.testimonial-text p + p { margin-top: 10px; }

.testimonial-meta {
  margin-top: auto;
  padding-top: 16px;
}
.testimonial-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}
.testimonial-role {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text);
}

.testimonials__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.testimonials__dots:empty { display: none; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  padding: 0;
}
.dot.is-active { background: var(--gold); }

/* =================================================================
   FOOTER CTA
   ================================================================= */
.footer-cta {
  width: 100%;
  background: var(--navy);
}

.footer-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 32px) var(--edge-pad);
  display: grid;
  /* Columns 3/4 (the two logos) are sized to their own content rather
     than a fixed fr ratio, so whichever logo lands in either slot
     renders at its own true max-width instead of being stretched or
     squeezed to fit a ratio tuned for the other page's order. */
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) max-content max-content;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.footer-cta__discuss {
  padding-right: 16px;
  min-width: 0;
}

.footer-cta__discuss-text { min-width: 0; }

.footer-cta__heading { color: var(--white); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.footer-cta__text {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-light);
  max-width: 320px;
}

.footer-cta__discuss .btn { margin-top: 10px; height: 38px; padding: 0 20px; font-size: 0.68rem; color: var(--white); }

.footer-cta__contact {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.contact-list { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list svg, .contact-list i { width: 24px; height: 24px; font-size: 24px; color: var(--gold); flex-shrink: 0; }
.contact-list a,
.contact-list span { font-size: 0.8rem; color: var(--white); }
.contact-list a:hover { color: var(--gold-light); }

.footer-cta__brand,
.footer-cta__accreditation {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-cta__logo { width: 100%; max-width: 210px; height: auto; }
.footer-cta__cmc-logo { width: 100%; max-width: 100px; height: auto; border-radius: 6px; }

/* Column 3/4 padding is positional, not tied to which logo is in
   them — the homepage puts the CMC logo in column 3 and the Amera
   logo in column 4 (the other pages do the reverse). Symmetric
   padding on column 3 keeps its logo centered between its neighbours
   either way. */
.footer-cta__inner > div:nth-child(3) { padding: 0 12px; }
.footer-cta__inner > div:nth-child(4) { padding-left: 12px; }

/* =================================================================
   BOTTOM FOOTER
   ================================================================= */
.footer-bottom {
  width: 100%;
  background: var(--navy-deep);
  border-top: 1px solid var(--border-navy);
}

.footer-bottom__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--edge-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy { font-size: 0.75rem; color: var(--text-light); }

.footer-bottom__links { display: flex; align-items: center; gap: 18px; }
.footer-bottom__links a { font-size: 0.75rem; color: var(--text-light); }
.footer-bottom__links a:hover { color: var(--gold-light); }

.footer-bottom__social { display: none; align-items: center; gap: 14px; }
.footer-bottom__social svg, .footer-bottom__social i { width: 17px; height: 17px; font-size: 17px; color: var(--text-light); transition: color 0.2s ease; }
.footer-bottom__social a:hover svg, .footer-bottom__social a:hover i { color: var(--gold); }

/* =================================================================
   INTERIOR PAGES — shared page-hero + content components
   ================================================================= */
.page-hero {
  width: 100%;
  height: 30vh;
  min-height: 200px;
  max-height: 340px;
  box-sizing: border-box;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
}
.page-hero__inner { padding: 0 var(--edge-pad); }
.page-hero .eyebrow { justify-content: center; }
.page-hero__title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 1px;
  line-height: 1.15;
}
.page-hero .gold-rule { margin: 18px auto 0; }

.content-section { width: 100%; padding: var(--section-pad-y) 0; background: var(--white); }
.content-section--cream { background: var(--cream); }
.content-inner { max-width: 860px; margin: 0 auto; padding: 0 var(--edge-pad); }
.content-inner--wide { max-width: 1200px; }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.5;
  color: var(--text-dark);
  text-align: center;
  font-weight: 600;
}

.body-copy { font-size: 0.92rem; line-height: 1.8; color: var(--text); }
.body-copy + .body-copy { margin-top: 16px; }
.body-copy--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.content-photo { width: 100%; border-radius: 6px; overflow: hidden; margin-top: 32px; }
.content-photo img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; display: block; }

/* Feature grid — "I Mediate Disputes Including", "Strategic Support Includes" */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.84rem; line-height: 1.65; color: var(--text); }

/* Approach block */
.approach-block { text-align: center; max-width: 700px; margin: 0 auto; }
.approach-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 8px;
}
.approach-block .body-copy { margin-top: 16px; }

/* Objective callout */
.objective-box {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 6px;
  max-width: 760px;
  margin: 40px auto 0;
}
.objective-box .eyebrow { justify-content: center; color: var(--gold-light); }
.objective-box p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.4;
  color: var(--white);
}

/* Notice / disclaimer box */
.notice-box {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 20px 26px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text);
  margin-top: 32px;
}
.notice-box strong { color: var(--text-dark); }

/* Checklist — "Who I Support" */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 640px;
  margin: 32px auto 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.checklist li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Phase grid — Before / During / After the hearing */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.phase-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.phase-card h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 14px; }
.phase-card ul { display: flex; flex-direction: column; }
.phase-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
}
.phase-card li:last-child { border-bottom: none; }

/* Process flow diagram — Areas of Expertise page */
.flow {
  max-width: 640px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-node {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 28px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  box-shadow: 0 4px 18px rgba(10, 27, 51, 0.05);
}
.flow-node--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.flow-connector {
  width: 1px;
  height: 28px;
  background: var(--gold);
}
.flow-branch__question {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}
.flow-branch__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.flow-branch__option {
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
}
.flow-branch__option--yes { background: var(--cream); border: 1px solid var(--gold); }
.flow-branch__option--no { background: var(--navy); }
.flow-branch__option span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.flow-branch__option--yes span { color: var(--gold-dark); }
.flow-branch__option--no span { color: var(--gold-light); }
.flow-branch__option p { font-family: var(--font-serif); font-size: 0.98rem; }
.flow-branch__option--yes p { color: var(--text-dark); }
.flow-branch__option--no p { color: var(--white); }

.flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}
.flow-chain__step {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  white-space: nowrap;
}
.flow-chain__arrow { color: var(--gold); font-size: 0.9rem; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-layout .contact-list { gap: 22px; }
.contact-layout .contact-list svg, .contact-layout .contact-list i { width: 22px; height: 22px; font-size: 22px; color: var(--gold); }
.contact-layout .contact-list a,
.contact-layout .contact-list span { font-size: 0.95rem; color: var(--text-dark); }
.contact-photo { border-radius: 6px; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* Resources page */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.resource-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  text-align: center;
}
.resource-card svg, .resource-card i { width: 34px; height: 34px; font-size: 34px; color: var(--navy); margin-bottom: 14px; display: inline-block; }
.resource-card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 8px; }
.resource-card p { font-size: 0.82rem; line-height: 1.6; color: var(--text); }

/* =================================================================
   MODALS — booking form + service detail popups
   ================================================================= */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 44px) clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(7, 20, 38, 0.35);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

/* Wide (service detail) variant: the visible white card lives in an
   inner .modal__scroll wrapper that scrolls on its own, so the close
   button — positioned against .modal, just outside the card's corner —
   stays put and visible no matter how far the content scrolls. */
.modal--wide {
  max-width: 1000px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  max-height: none;
}
.modal__scroll {
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 56px);
  box-shadow: 0 24px 60px rgba(7, 20, 38, 0.35);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 0.85rem;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.modal--wide .modal__close { top: -18px; right: -18px; }

.modal__eyebrow { justify-content: flex-start; }
.modal__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.2; }
.modal__lede { margin-top: 8px; font-size: 0.86rem; color: var(--text); line-height: 1.55; }

/* Booking form */
.modal-form { margin-top: 22px; display: flex; flex-direction: column; gap: 15px; }
.modal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.modal-form label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.modal-form input,
.modal-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.modal-form input:focus,
.modal-form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.modal-form textarea { resize: vertical; min-height: 100px; }
.modal-form .btn { margin-top: 4px; width: 100%; }
.modal-form__note { font-size: 0.7rem; color: var(--text); text-align: center; line-height: 1.5; }
.modal-form__status {
  font-size: 0.78rem;
  color: var(--gold-dark);
  text-align: center;
  min-height: 1em;
}

/* Service detail popup */
.modal-service__body { margin-top: 18px; }
.modal-service__body .body-copy { font-size: 0.86rem; }
.modal-service__heading {
  margin-top: 22px;
  font-size: 0.98rem;
  color: var(--navy);
}
.modal-service__list { margin-top: 14px; display: grid; gap: 10px; }
.modal-service__list li {
  display: flex;
  gap: 10px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
}
.modal-service__list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.modal-service__list strong { color: var(--text-dark); }
.modal-service__approach { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-service__approach h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-service__approach p { font-size: 0.84rem; line-height: 1.6; color: var(--text); }

@media (min-width: 700px) {
  .modal--wide .modal-service__list { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
}

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 767px) {
  .services__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .service-connector { display: none; }
  .service-col { padding: 0 8px; }
}

/* Below this width the centred logo and the CTA button start to
   collide (there's no nav to space them apart any more), so drop back
   to a plain left-logo / right-button row. */
@media (max-width: 600px) {
  .site-header__inner { justify-content: space-between; }
  .logo { position: static; transform: none; }
  .logo__img { height: clamp(34px, 9vw, 48px); }
  .header-cta { padding: 0 12px; height: 38px; }
}

@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 380px; order: 1; }
  .hero__content { order: 2; max-width: none; }
  .hero__text { max-width: none; }
  /* Push the crop window down the source photo a bit so her face
     isn't tight against the top edge on narrow/short mobile crops. */
  .hero__img { object-position: 50% 0%; }

  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 320px; }

  .cta-split { grid-template-columns: 1fr; }
  .cta-split__media { min-height: 220px; order: 2; }
  .cta-split__content { order: 1; }

  .expertise__list { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .expertise__item:nth-child(4n)::before { display: none; }
  .expertise__item::before { display: block; }

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

  /* No explicit grid-column here — with discuss/contact filling row 1,
     auto-placement puts columns 3/4 into row 2 in document order,
     which is also how the homepage's swapped logo order (CMC in
     column 3, Amera in column 4) carries through automatically. */
  .footer-cta__inner > div:nth-child(3),
  .footer-cta__inner > div:nth-child(4) {
    justify-content: flex-start;
    padding: 0;
    margin-top: 8px;
  }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .phase-grid { grid-template-columns: 1fr; gap: 20px; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-photo img { min-height: 240px; }
}

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* Below this width the static 3-up grid becomes a one-card-at-a-time
     sliding track: 3 cards, track width 300% so each column is an
     even 100%/3 share of the track — exactly one full viewport per
     card. JS switches to one dot per card at this width. */
  .testimonials__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 3);
    width: 300%;
    gap: 0;
    transition: transform 2.8s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .testimonial-slide { padding: 0 6px; }

  .expertise__list { grid-template-columns: repeat(2, 1fr); }
  .expertise__item:nth-child(2n)::before { display: none; }
  .expertise__item:nth-child(4n)::before { display: block; }

  .footer-cta__inner { grid-template-columns: 1fr; text-align: center; }

  .footer-cta__discuss { flex-direction: column; align-items: center; padding-right: 0; }
  .footer-cta__discuss-text { text-align: center; }
  .footer-cta__text { margin-left: auto; margin-right: auto; }

  .footer-cta__contact { justify-content: center; padding: 0; }
  .contact-list { align-items: center; }
  .contact-list li { justify-content: center; }

  .footer-cta__inner > div:nth-child(3),
  .footer-cta__inner > div:nth-child(4) {
    justify-content: center;
    padding-left: 0;
  }

  .footer-bottom__inner { flex-direction: column; text-align: center; }

  .about__content-inner .btn,
  .footer-cta__discuss .btn,
  .cta-split__inner .btn { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .flow-branch__options { grid-template-columns: 1fr; }
  .page-hero__title { font-size: 1.7rem; }

  .modal-form__row { grid-template-columns: 1fr; }
  .modal--wide .modal__close { top: -14px; right: -14px; }
  .about__more .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero__heading { font-size: 1.75rem; }
  .service-icon { width: 76px; height: 76px; }
  .service-icon svg, .service-icon i { width: 32px; height: 32px; font-size: 32px; }
}
