/* ==========================================================================
   Oakline Home Buyers — homepage styles
   Mobile-first.
   ========================================================================== */

:root {
  /* Brand */
  --dark: #1F3028;           /* identity: top bar, footer, CTA band, headings */
  --dark-2: #18261F;
  --brand: #2E6B4F;          /* mid green: icons, links, icon circles */
  --brand-hover: #24563F;
  --brand-light: #EAF2ED;
  --accent: #E0A23B;         /* amber: every primary button, stars, key highlights */
  --accent-hover: #C98C2A;
  --tan: #887858;            /* tiny details only */
  --white: #FFFFFF;
  --warm: #FAF7F0;           /* 2-3 alternating sections */

  /* Text */
  --heading: #1F3028;
  --text: #2B2B2B;
  --muted: #5F6763;
  --on-dark: #DCE5DF;

  /* Lines + states */
  --border: #E2E5E1;
  --input-border: #8C9590;   /* 3:1 on white */
  --error: #B3261E;

  /* Type */
  --font-head: "Lexend", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Space + shape */
  --gutter: 24px;
  --section: 52px;
  --radius: 6px;
  --radius-card: 8px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.05), 0 6px 18px rgba(20, 30, 25, 0.07);
  --shadow-lift: 0 2px 4px rgba(20, 30, 25, 0.06), 0 14px 30px rgba(20, 30, 25, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --base: 240ms;
}

@media (min-width: 960px) {
  :root { --section: 72px; --header-h: 92px; }
}

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

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

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: 2.125rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.125rem; line-height: 1.3; }
@media (min-width: 960px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.125rem; }
}

::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
input, select, textarea { caret-color: var(--brand); accent-color: var(--brand); }

/* One container for every section, the header and the footer */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.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;
}
.sprite { position: absolute; }
[data-phone] { white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Icons ---------- */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.brand-icon { width: 24px; height: 24px; flex: none; display: block; }

/* Icon in a solid green circle */
.ico {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: var(--white);
}
.ico .icon { width: 26px; height: 26px; stroke-width: 1.9; }
.ico--sm { width: 40px; height: 40px; }
.ico--sm .icon { width: 20px; height: 20px; }
.ico--lg { width: 64px; height: 64px; }
.ico--lg .icon { width: 32px; height: 32px; stroke-width: 2.4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; stroke-width: 2.4; }

/* Primary = amber. The one colour the eye goes to first. */
.btn--primary {
  background: var(--accent); color: var(--dark);
  box-shadow: 0 2px 0 var(--accent-hover), 0 4px 12px rgba(224, 162, 59, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover); color: var(--dark);
  box-shadow: 0 2px 0 #B07720, 0 10px 22px rgba(201, 140, 42, 0.38);
}
.btn--primary:active { box-shadow: 0 1px 0 #B07720, 0 3px 8px rgba(201, 140, 42, 0.3); }

.btn--outline { background: var(--white); color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); box-shadow: 0 8px 18px rgba(20, 30, 25, 0.18); }

.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.125rem; }
.btn--xl { min-height: 64px; padding: 0 38px; font-size: 1.25rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--brand); text-decoration: none;
}
.text-link .icon { transition: transform var(--fast) var(--ease); }
.text-link:hover { color: var(--brand-hover); text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 0.9375rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar p { margin: 0; }
.topbar__msg { display: none; }
.topbar__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.topbar__social { display: flex; align-items: center; gap: 4px; }
.topbar__social a {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.topbar__social a:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.1); }
.topbar__social .brand-icon { width: 24px; height: 24px; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.topbar__link:hover { color: var(--white); }
@media (max-width: 559px) {
  .topbar__right { width: 100%; justify-content: space-between; }
}
@media (min-width: 900px) {
  .topbar__msg { display: block; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--base) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 14px rgba(20, 30, 25, 0.07); }

.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
  transition: min-height var(--base) var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: calc(var(--header-h) - 16px); }

/* The logo is the strongest thing in the header */
.brand { display: block; flex: none; margin-right: auto; }
.brand__logo { height: 44px; width: auto; transition: height var(--base) var(--ease); }
.site-header.is-scrolled .brand__logo { height: 38px; }

.nav { display: none; }
.nav__list { display: flex; gap: 0; }
.nav__list a {
  display: block; padding: 8px 11px; border-radius: var(--radius);
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  transition: color var(--fast) var(--ease);
}
.nav__list a:hover { color: var(--dark); }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: none; align-items: center; gap: 8px; white-space: nowrap; }
.header-phone__icon { display: inline-grid; place-items: center; color: var(--brand); }
.header-phone__icon .icon { width: 20px; height: 20px; stroke-width: 2; }
.header-phone__list { display: flex; flex-direction: column; line-height: 1.25; }
.header-phone__list a {
  display: flex; align-items: baseline; gap: 6px;
  color: var(--dark); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem;
}
.header-phone__list small { width: 7.2em; font-family: var(--font-body); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--muted); }
.header-phone__list a:hover { color: var(--brand); }
.btn--header { display: none; min-height: 46px; padding: 0 20px; font-size: 1rem; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; border-radius: var(--radius); color: var(--heading); cursor: pointer;
}
.menu-toggle:hover { background: var(--brand-light); }
.menu-toggle .icon { grid-area: 1 / 1; width: 28px; height: 28px; transition: opacity var(--fast) var(--ease), transform var(--base) var(--ease); }
.menu-toggle .icon--close { opacity: 0; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .icon--menu { opacity: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .icon--close { opacity: 1; transform: none; }

/* Mobile menu: slides open by animating its row height */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-rows: 0fr;
  background: var(--white);
  visibility: hidden;
  transition: grid-template-rows var(--base) var(--ease), visibility 0s linear var(--base);
}
.mobile-menu.is-open {
  grid-template-rows: 1fr; visibility: visible;
  box-shadow: 0 16px 28px -12px rgba(20, 30, 25, 0.25);
  transition: grid-template-rows var(--base) var(--ease), visibility 0s;
}
.mobile-menu__inner { overflow: hidden; min-height: 0; }
.mobile-menu__list { padding-top: 6px; }
.mobile-menu__list a {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem;
  color: var(--heading); text-decoration: none;
}
.mobile-menu__list a:hover { color: var(--brand); }
.mobile-menu__cta { display: grid; gap: 10px; padding-block: 20px 12px; }

@media (min-width: 640px) {
  .btn--header { display: inline-flex; }
}
@media (min-width: 1040px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
  .brand__logo { height: 60px; }
  .site-header.is-scrolled .brand__logo { height: 48px; }
}
@media (min-width: 1200px) {
  .header-phone { display: inline-flex; }
  .nav__list a { padding-inline: 13px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--warm { background: var(--warm); }
.section--sage { background: #EEF3EF; }

/* Charcoal section (reviews): white cards, gold stars */
.section--charcoal { background: #2B2B2B; }
.section--charcoal h2 { color: var(--white); }
.section--charcoal .section__head p { color: #C9C9C9; }
.section--charcoal .review { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

.section__head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section__head h2 { margin-bottom: 10px; }
.section__head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section__head h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: var(--accent);
}
.section__cta { margin-top: 32px; text-align: center; }

.split { display: grid; gap: 28px; align-items: center; }
.split__copy > p { color: var(--muted); }
.split__sub { font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; color: var(--brand) !important; margin-top: -4px; }
.split__media { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .split__media img { aspect-ratio: 5 / 4; }
}

/* ---------- Hero: text + offer form on the left, wide photo on the right ---------- */
.hero { background: var(--warm); }
.hero__grid { display: grid; }
.hero__copy { padding: 24px var(--gutter) 36px; }

.hero__photo { order: -1; margin: 0; height: 240px; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.hero__badge {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--dark);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 10px; }
.hero__text { color: var(--muted); font-size: 1.125rem; line-height: 1.5; margin-bottom: 14px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--dark); }
.hero__trust .icon {
  width: 22px; height: 22px; padding: 3px; border-radius: 50%;
  background: var(--accent); color: var(--dark); stroke-width: 3;
}

.quick-form {
  background: var(--white); color: var(--text);
  border-radius: 8px; padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(20, 30, 25, 0.16), 0 2px 6px rgba(20, 30, 25, 0.08);
  border-top: 5px solid var(--accent);
}
.quick-form__title { font-size: 1.375rem; margin-bottom: 14px; }
.quick-form__fields { display: grid; gap: 0 12px; }
.quick-form .field { margin-bottom: 12px; }
.quick-form .btn { margin-top: 4px; }
.quick-form__note {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin: 12px 0 0; font-size: 0.9375rem; color: var(--muted);
}
.quick-form__note > * { display: inline-flex; align-items: center; gap: 6px; }
.quick-form__note .icon { color: var(--brand); }
.quick-form__note a { color: var(--dark); font-weight: 700; text-decoration: none; }
.quick-form__note a:hover { color: var(--brand); }
.quick-form__call {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 0.9375rem; color: var(--muted);
}
.quick-form__call .icon { color: var(--brand); }
.quick-form__call a { color: var(--dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.quick-form__call a:hover { color: var(--brand); }

@media (min-width: 560px) {
  .hero__photo { height: 320px; }
  .quick-form { padding: 24px 24px 18px; }
  .quick-form__fields { grid-template-columns: 1fr 1fr; }
  .field--address { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .hero__copy {
    align-self: center; padding-block: 40px 44px;
    padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
    padding-right: 48px;
  }
  .hero__copy > * { max-width: 580px; }
  .hero__photo { order: 0; height: auto; position: relative; }
  .hero__photo img { position: absolute; inset: 0; }
  .hero h1 { font-size: 2.75rem; }
}

/* ---------- Stats bar ---------- */
.stats { background: var(--dark); }
.stats__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 20px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: #B9C7BE;
}
.stats__list strong { display: block; font-family: var(--font-head); font-size: 1.625rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
@media (min-width: 760px) {
  .stats__list { grid-template-columns: repeat(4, 1fr); padding-block: 22px; }
  .stats__list li + li { border-left: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- Facebook / Instagram buttons under the stats ---------- */
.social-row { background: var(--white); }
.social-cards { display: grid; gap: 16px; padding-block: 28px 8px; }

/* Shared profile card */
.profile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: #050505; text-decoration: none;
  border: 1px solid #DADDE1; border-radius: 12px; box-shadow: var(--shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.profile:hover { color: #050505; transform: translateY(-3px); }
.profile > span { display: block; }

/* Brand wordmark strip attached to the top of each card */
.profile__brand { display: flex !important; align-items: center; justify-content: center; height: 64px; }
.profile--fb .profile__brand { background: #1877F2; }
.profile--ig .profile__brand { background: linear-gradient(100deg, #F58529 0%, #DD2A7B 40%, #8134AF 75%, #515BD4 100%); }

/* Brand-coloured glow */
.profile { border: 0; }
.profile--fb { box-shadow: 0 10px 28px rgba(24, 119, 242, 0.22), 0 2px 6px rgba(20, 30, 25, 0.08); }
.profile--ig { box-shadow: 0 10px 28px rgba(214, 41, 118, 0.22), 0 2px 6px rgba(20, 30, 25, 0.08); }
.profile--fb:hover { box-shadow: 0 18px 40px rgba(24, 119, 242, 0.34), 0 2px 6px rgba(20, 30, 25, 0.08); }
.profile--ig:hover { box-shadow: 0 18px 40px rgba(214, 41, 118, 0.34), 0 2px 6px rgba(20, 30, 25, 0.08); }
.profile__brand img { height: 28px; width: auto; }
.profile__brand .profile__igmark { height: 52px; margin-top: 6px; }

.profile__body { flex: 1; display: flex !important; flex-direction: column; padding: 0 18px 18px; }
.profile__name { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.profile__meta { display: block; margin-top: 2px; font-size: 0.9375rem; color: #65676B; }
.profile__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }

/* Facebook */
.profile__cover { height: 110px; overflow: hidden; background: #E4E6EB; }
.profile__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile__avatar {
  width: 96px; height: 96px; margin-top: -48px; margin-bottom: 10px; border-radius: 50%;
  border: 4px solid var(--white); background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fb-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 6px; background: #E4E6EB; color: #050505; font-weight: 600; font-size: 0.9375rem;
}
.fb-btn svg { width: 16px; height: 16px; }
.fb-btn--primary { background: #1877F2; color: var(--white); }
.profile--fb:hover .fb-btn--primary { background: #166FE5; }

/* Instagram */
.profile__body--ig { align-items: center; text-align: center; padding-top: 22px; }
.profile__ring {
  display: grid !important; place-items: center; width: 104px; height: 104px; margin-bottom: 12px; border-radius: 50%;
  background: conic-gradient(from 210deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #FEDA75);
}
.profile__ring img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--white); background: var(--white); }
.profile__handle { font-size: 1.375rem; font-weight: 600; }
.profile--ig .profile__actions { width: 100%; }
.ig-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border-radius: 8px; background: #EFEFEF; color: #000; font-weight: 600; font-size: 0.9375rem;
}
.ig-btn--primary { background: #0095F6; color: var(--white); }
.profile--ig:hover .ig-btn--primary { background: #1877F2; }

@media (min-width: 860px) {
  .social-cards { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; }
  .profile__brand { height: 72px; }
  .profile__brand img { height: 32px; }
  .profile__brand .profile__igmark { height: 60px; }
}

/* Note shown at the top of the full form when someone arrives from the hero */
.form-notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--brand-light); color: var(--brand-hover); font-size: 1rem; line-height: 1.45;
}
.form-notice[hidden] { display: none; }
.form-notice:focus { outline: none; }
.form-notice .icon { flex: none; width: 22px; height: 22px; stroke-width: 2.4; color: var(--brand); }

/* ---------- Forms (shared) ---------- */
.field { margin-bottom: 16px; min-width: 0; }
.field label {
  display: block; margin-bottom: 6px;
  font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--heading);
}
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  display: block; width: 100%; min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius);
  background-color: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.3;
  box-shadow: none;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
/* Neutralise any browser-native invalid styling: errors only come from .has-error */
input:invalid, select:invalid, textarea:invalid { box-shadow: none; }
input::placeholder, textarea::placeholder { color: #737B76; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 107, 79, 0.2); }

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border: 2px solid var(--error); padding: 11px 13px;
}
.field.has-error select { padding-right: 43px; }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15); }
.field__error {
  display: none; align-items: flex-start; gap: 6px;
  margin: 6px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--error);
}
.field__error::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.has-error .field__error { display: flex; }
.field__help { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .field--short { max-width: 220px; }
}

.stars { display: flex; gap: 2px; margin: 0; color: var(--accent); }
.stars .icon { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }

/* ---------- Steps (numbered circles joined by a line) ---------- */
.steps { display: grid; gap: 28px; }
.step {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-content: start;
}
.step > :not(.step__num) { grid-column: 2; }
.step__num {
  grid-row: 1 / span 3; position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--accent); color: var(--dark);
  box-shadow: 0 0 0 6px var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem;
}
/* connecting line (vertical on mobile) */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: -28px; width: 2px;
  background: #C5CFC8;
}
.step__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-card); margin-bottom: 14px; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { display: block; }
  .step__num { margin: 0 auto 20px; }
  /* connecting line (horizontal on desktop), from this circle to the next */
  .step:not(:last-child)::after {
    left: calc(50% + 34px); right: auto; top: 25px; bottom: auto;
    width: calc(100% + 32px - 68px); height: 2px;
  }
  .step h3, .step p { text-align: center; }
}

/* ---------- Card grids ---------- */
.cards { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-content: start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 18px; box-shadow: var(--shadow);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.card .ico { grid-row: 1 / span 2; }
.card h3 { margin: 2px 0 4px; font-size: 1.125rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #C5D3CA; }

@media (min-width: 640px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { display: block; padding: 24px; }
  .card .ico { margin-bottom: 16px; }
}
@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Clickable situation cards */
.cards--links > li { display: flex; }
.card--link { flex: 1; text-decoration: none; color: var(--text); }
.card--link:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 4px 8px rgba(20, 30, 25, 0.06), 0 18px 36px rgba(20, 30, 25, 0.16); }
.card--link .ico { transition: background-color var(--base) var(--ease), color var(--base) var(--ease); }
.card--link:hover .ico, .card--link:focus-visible .ico { background: var(--accent); color: var(--dark); }
.card__cta {
  grid-column: 2; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; color: var(--brand);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.card__cta .icon { stroke-width: 2.4; transition: transform var(--fast) var(--ease); }
.card--link:hover .card__cta .icon { transform: translateX(3px); }
.card--link .ico { grid-row: 1 / span 3; }
.card--link p { margin-bottom: 0; }

@media (min-width: 640px) {
  .card--link { display: flex; flex-direction: column; }
  .card--link p { flex: 1; }
  .card__cta { margin-top: 14px; }
}
@media (min-width: 960px) {
  .cards--links h3 { min-height: 2.6em; display: flex; align-items: flex-end; }
}
/* Desktop with a mouse: the link appears on hover; touch screens always show it */
@media (hover: hover) and (min-width: 640px) {
  .card__cta { opacity: 0; transform: translateY(4px); }
  .card--link:hover .card__cta, .card--link:focus-visible .card__cta { opacity: 1; transform: none; }
}

/* ---------- Mid-page CTA band (amber) ---------- */
.cta-band { background: var(--accent); color: #3A2E14; padding-block: 48px; }
.cta-band__inner { display: grid; gap: 28px; }
.cta-band h2 { color: var(--dark); }
.cta-band__copy p { max-width: 640px; }
.cta-band__actions { display: grid; gap: 16px; justify-items: start; }
.cta-band .btn--primary {
  background: var(--dark); color: var(--white);
  box-shadow: 0 2px 0 #0F1913, 0 8px 20px rgba(31, 48, 40, 0.3);
}
.cta-band .btn--primary:hover { background: #2A4135; color: var(--white); box-shadow: 0 2px 0 #0F1913, 0 12px 26px rgba(31, 48, 40, 0.38); }
.cta-band__phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.cta-band__phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; line-height: 1.2;
  color: var(--dark); text-decoration: none;
}
.cta-band__phone small { display: block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; color: #4A3A16; }
.cta-band__phone .icon { color: var(--dark); }
.cta-band__phone:hover { color: var(--white); }
.cta-band__phone:hover .icon { color: var(--white); }
@media (max-width: 559px) {
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .cta-band__actions { justify-items: center; }
}
@media (min-width: 960px) {
  .cta-band { padding-block: 60px; }
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 56px; }
  .cta-band__actions { justify-items: center; }
}

/* ---------- Situations ---------- */
.split--situations { margin-bottom: 32px; }
@media (min-width: 960px) {
  .split--situations { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .split__media--wide img { aspect-ratio: 16 / 10; }
}

/* ---------- Compare: Oakline vs agent ---------- */
.compare__intro { max-width: 760px; margin: -12px auto 28px; color: var(--muted); }
.compare { margin-bottom: 12px; }
.compare__note { max-width: 760px; margin: 0 auto 36px; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare__table th, .compare__table td { text-align: left; vertical-align: middle; }

.cmp-ic {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
}
.cmp-ic .icon { width: 16px; height: 16px; stroke-width: 3; }
.cmp-ic--yes { background: var(--accent); color: var(--dark); }
.cmp-ic--no { background: #E6E8E6; color: #8A918D; }
.cmp-val strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--white); }
.cmp-val small { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Mobile: one card per row, Oakline answer in a dark block */
@media (max-width: 759px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
  .compare__table tr {
    background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow);
    padding: 14px; margin-bottom: 10px;
  }
  .compare__table tbody th { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--dark); margin-bottom: 10px; }
  .compare__table td { display: flex; align-items: center; gap: 12px; }
  .compare__table td.is-us { background: var(--dark); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
  .compare__table td:not(.is-us) { padding: 0 4px; color: var(--muted); font-size: 0.9375rem; }
  .compare__table td::before {
    content: attr(data-label); order: -1; flex: none; width: 64px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .compare__table td.is-us::before { color: var(--accent); }
  .compare__table td:not(.is-us)::before { color: #8A918D; }
}

/* Desktop: a raised dark-green Oakline column against a plain agent column */
@media (min-width: 760px) {
  .compare { max-width: 1040px; margin-inline: auto; padding-top: 18px; }
  .compare__table { table-layout: fixed; }
  .compare__table thead td { width: 27%; background: transparent !important; border: 0; }
  .compare__table thead th { padding: 22px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--muted); background: var(--white); border-radius: 0 12px 0 0; }
  .compare__table thead th:last-child { border-bottom: 1px solid var(--border); }
  .compare__table thead th.is-us {
    width: 36%; background: var(--dark); text-align: center;
    border-radius: 14px 14px 0 0; padding: 30px 24px 24px; margin-top: -18px; position: relative;
    box-shadow: 0 -10px 24px rgba(20, 30, 25, 0.14);
  }
  .compare__table thead th.is-us::after {
    content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent);
  }
  .compare__table thead th.is-us img { height: 46px; width: auto; margin: 0 auto; }

  .compare__table tbody th {
    padding: 18px 20px 18px 0;
    font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--dark);
    border-bottom: 1px solid #D9E2DC;
  }
  .compare__table td { padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .compare__table td.is-us { background: var(--dark); border-bottom-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 24px rgba(20, 30, 25, 0.14); }
  .compare__table td:not(.is-us) { background: var(--white); color: var(--muted); font-size: 1rem; }
  .compare__table td { display: table-cell; }
  .compare__table td > * { vertical-align: middle; }
  .compare__table td .cmp-ic { margin-right: 14px; float: left; margin-top: 2px; }
  .compare__table td .cmp-val { display: block; overflow: hidden; }
  .compare__table td:not(.is-us) .cmp-val { padding-top: 3px; }
  .compare__table tbody tr:last-child td.is-us { border-radius: 0 0 14px 14px; border-bottom: 0; padding-bottom: 24px; box-shadow: 0 14px 28px rgba(20, 30, 25, 0.2); }
  .compare__table tbody tr:last-child td:not(.is-us) { border-radius: 0 0 12px 0; border-bottom: 0; }
  .compare__table tbody tr:last-child th { border-bottom: 0; }
  .compare__table tbody tr:hover td:not(.is-us) { background: #FBFCFB; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 18px; }
.review {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px; box-shadow: var(--shadow);
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tan); border: 1px solid var(--tan); border-radius: 4px; padding: 2px 7px;
}
.review blockquote { margin: 0; font-size: 1.0625rem; color: var(--text); }
.review__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__by p { margin: 0; font-weight: 700; color: var(--heading); line-height: 1.3; }
.review__by p span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--muted); }
.review__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--brand); color: var(--white); font-family: var(--font-head); font-weight: 600;
}
@media (min-width: 860px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .review { padding: 28px; }
}

/* ---------- Areas (Google Maps + region lists) ---------- */
.areas { display: grid; gap: 36px; align-items: start; }
.area__title { text-align: center; font-size: 1.875rem; font-weight: 700; margin-bottom: 14px; }
.area__map {
  position: relative; height: 300px; overflow: hidden;
  border-radius: 18px; background: #E8ECE9; box-shadow: var(--shadow);
}
.area__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area__link {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px;
  font-weight: 700; color: var(--brand); text-decoration: none;
}
.area__link:hover { text-decoration: underline; }

.regions__title { text-align: center; font-size: 1.5rem; margin: 48px 0 20px; }
@media (min-width: 960px) {
  .areas { grid-template-columns: 1fr 1fr; gap: 36px; }
  .areas--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .area__title { font-size: 2.25rem; }
  .area__map { height: 340px; }
}

.regions { columns: 1; column-gap: 16px; }
.region-card {
  break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 16px;
  background: var(--warm); border: 1px solid #EFE6D3; border-radius: var(--radius-card);
  padding: 18px 20px 16px;
}
.region-card h4 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; color: var(--dark);
}
.region-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.region-card li {
  position: relative; padding-left: 14px;
  font-size: 0.9375rem; line-height: 1.35; color: var(--text);
}
.region-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (min-width: 760px) { .regions { columns: 2; } }
@media (min-width: 1100px) { .regions { columns: 3; column-gap: 20px; } .region-card { margin-bottom: 20px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq__item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.faq__item.is-open { border-color: var(--accent); box-shadow: var(--shadow); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 60px; padding: 16px 18px;
  background: none; border: 0; border-radius: var(--radius-card); cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--heading);
  transition: color var(--fast) var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__q .icon {
  width: 30px; height: 30px; padding: 5px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); stroke-width: 2.2;
  transition: transform var(--base) var(--ease), background-color var(--base) var(--ease), color var(--base) var(--ease);
}
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); background: var(--accent); color: var(--dark); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { color: var(--muted); padding: 0 18px 18px; max-width: 72ch; }

/* With JS, answers collapse and animate their height */
.js .faq__a {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows var(--base) var(--ease), visibility 0s linear var(--base);
}
.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows var(--base) var(--ease), visibility 0s;
}

/* ---------- Offer form ---------- */
.offer { display: grid; gap: 24px; }
.offer__aside {
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius-card); padding: 24px;
  box-shadow: var(--shadow-lift);
}
.offer__aside h3 { font-size: 1.25rem; margin-bottom: 16px; color: var(--white); }
.offer__aside .ico { background: var(--accent); color: var(--dark); }
.offer__next { display: grid; gap: 16px; margin-bottom: 22px; }
.offer__next li { display: flex; align-items: flex-start; gap: 14px; }
.offer__next strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--white); }
.offer__next li > span:last-child { color: #B9C7BE; font-size: 1rem; line-height: 1.45; }
.offer__call { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; }
.offer__call p { margin-bottom: 2px; color: #B9C7BE; font-weight: 600; }
.offer__phone {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; line-height: 1.2;
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; color: var(--accent); text-decoration: none;
}
.offer__phone small { display: block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: #B9C7BE; }
.offer__phone:hover { color: var(--white); }

.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px 18px; box-shadow: var(--shadow-lift);
}

.progress { margin-bottom: 8px; }
.progress__labels {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px;
  font-size: 0.875rem; font-weight: 700; color: var(--muted);
}
.progress__labels span:nth-child(2) { text-align: center; }
.progress__labels span:nth-child(3) { text-align: right; }
.progress__labels .is-active, .progress__labels .is-done { color: var(--brand); }
.progress__track { height: 8px; background: var(--brand-light); border-radius: 4px; overflow: hidden; }
.progress__bar {
  height: 100%; width: 33.333%; background: var(--brand); border-radius: 4px;
  transition: width 400ms var(--ease);
}
.progress__status { font-size: 0.9375rem; color: var(--muted); margin-bottom: 18px; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step__title {
  padding: 0; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; color: var(--heading); line-height: 1.2;
}
.form-step__help { color: var(--muted); margin-bottom: 20px; }
.form-step.is-entering { animation: step-in 320ms var(--ease) both; }
.form-step.is-entering.from-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.form-nav { display: flex; gap: 12px; margin-top: 8px; padding-top: 16px; }
.form-nav [hidden] { display: none; }
.form-nav [data-action="next"], .form-nav [data-action="submit"] { margin-left: auto; flex: 1 1 auto; }
.form-nav [data-action="back"] { flex: 0 0 auto; }

.thanks { padding: 12px 0; text-align: center; }
.thanks:focus { outline: none; }
.thanks.is-entering { animation: step-in 360ms var(--ease) both; }
.thanks .ico { margin-bottom: 18px; }
.thanks h3 { font-size: 1.5rem; }
.thanks p { color: var(--muted); }

.offer__reminder { text-align: center; color: var(--muted); margin: 24px auto 0; max-width: 640px; }

@media (min-width: 560px) {
  .form-card { padding: 32px; }
  .form-nav [data-action="next"], .form-nav [data-action="submit"] { flex: 0 0 auto; min-width: 220px; }
}
@media (min-width: 960px) {
  .offer { grid-template-columns: 0.72fr 1.28fr; gap: 40px; align-items: start; }
  .offer__aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; }
  .form-card { padding: 36px 40px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: 48px; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: 32px; padding-bottom: 36px; }
.site-footer__logo { width: 220px; height: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 340px; }
.site-footer__title {
  font-size: 1.0625rem; font-weight: 600; color: var(--white); margin-bottom: 14px;
}
.site-footer__contact li, .share a { display: flex; align-items: center; gap: 10px; }
.site-footer__contact li + li { margin-top: 10px; }
.site-footer__contact .icon, .share .icon { color: var(--accent); width: 20px; height: 20px; }
.site-footer__links li + li { margin-top: 8px; }
.site-footer__links a { display: inline-block; padding-block: 2px; }
.site-footer__small { margin-bottom: 12px; }
.share li + li { margin-top: 10px; }
.site-footer__bottom { margin: 0; padding-block: 18px; font-size: 0.9375rem; background: transparent; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); }

.social { display: flex; gap: 8px; margin-top: 18px; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  transition: transform var(--fast) var(--ease);
}
.social .brand-icon { width: 36px; height: 36px; }
.social a:hover { transform: translateY(-2px); }
.social--menu { margin-top: 4px; padding-bottom: 20px; }

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -4px 18px rgba(20, 30, 25, 0.14);
  transition: transform var(--base) var(--ease);
}
.mobile-bar .btn { min-height: 50px; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 959px) {
  body { padding-bottom: 72px; }
}
@media (min-width: 960px) {
  .mobile-bar { display: none; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion: switch it all off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .social a:hover { transform: none; }
}

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Shown if a lead fails to send */
.send-error {
  margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius);
  background: #FCEDEC; color: var(--error); font-weight: 600; font-size: 0.9375rem;
}
.send-error[hidden] { display: none; }
.send-error:focus { outline: none; }
.send-error a { color: var(--error); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* Footer phones with office labels */
.site-footer__contact li > span { display: inline; }

/* Sticky bar: pick which office to call */
.mobile-bar { position: fixed; }
.call-picker {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(100% + 10px);
  display: grid; gap: 10px; padding: 16px;
  background: var(--white); border-radius: 12px; box-shadow: 0 -4px 30px rgba(20, 30, 25, 0.25);
}
.call-picker[hidden] { display: none; }
.call-picker p { margin: 0 0 2px; font-family: var(--font-head); font-weight: 700; color: var(--dark); text-align: center; }
.call-picker .btn { font-size: 1rem; }

/* ---------- Office phone buttons (solid fill, contrasting number) ---------- */
.offices { display: grid; gap: 10px; width: 100%; max-width: 380px; }
.offices--center { margin: 16px auto 0; }
.office {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.office:hover { transform: translateY(-2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 10px 20px rgba(20, 30, 25, 0.2); }
.office__icon { flex: none; display: grid; place-items: center; }
.office__icon .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.office__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.office__text small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.office__text strong { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; white-space: nowrap; }

/* Alberta & Ontario: dark green, amber number */
.office--abon, .office--abon:hover { background: var(--dark); color: var(--white); }
.office--abon:hover { background: #2A4135; }
.office--abon .office__icon, .office--abon strong { color: var(--accent); }
.office--abon small { color: #C9D6CE; }
/* Nova Scotia: amber, dark green number */
.office--ns, .office--ns:hover { background: var(--accent); color: var(--dark); }
.office--ns:hover { background: var(--accent-hover); }
.office--ns .office__icon, .office--ns strong { color: var(--dark); }
.office--ns small { color: #4A3A16; }

/* On dark-green surfaces, lift the AB & ON button to mid green */
.offer__aside .office--abon, .site-footer .office--abon { background: var(--brand); }
.offer__aside .office--abon:hover, .site-footer .office--abon:hover { background: #357A5B; }
.offer__aside .office--abon small, .site-footer .office--abon small { color: #DCEBE2; }
/* On the amber band, the NS button turns white so it doesn't disappear */
.offices--onaccent .office--ns, .offices--onaccent .office--ns:hover { background: var(--white); }

.offices--compact { max-width: none; }
.offices--compact .office { padding: 11px 16px; }
.offices--compact .office__text strong { font-size: 1.25rem; }
.quick-form__calltitle { margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.9375rem; font-weight: 600; color: var(--muted); }

.offer__aside .offices { margin-top: 10px; }
.site-footer__offices { display: block !important; }
.site-footer .offices .office { text-decoration: none; }
.site-footer .office__icon .icon { color: inherit; width: 22px; height: 22px; }
.site-footer .offices { max-width: 260px; }

.offer__reminder p { margin-bottom: 14px; }
.offices--row { margin-inline: auto; }
.thanks .offices { margin-bottom: 4px; }
