/* ==========================================================================
   Mora Finance — site styles
   ========================================================================== */

:root {
  /* Brand palette (docs/design/brand-board.png) */
  --espresso: #63452d;
  --mocha: #98765b;
  --clay: #bfa084;
  --sand: #e0cfbf;
  --oat: #ede4db;
  --denim: #8dacc1;
  --stone: #cdc1b3;

  /* Working shades. Mocha is too light for small text (3.8:1 on cream), so
     small accents use the darker mocha. Body text is a deeper espresso so it
     still reads on denim (4.9:1). */
  --cream: #f7f4ef;
  --white: #fffdfa;
  --mocha-dark: #7f6049;
  /* Soft blue from the owner's mockup (#7795ae), a touch deeper so white button
     text passes 4.5:1; pale blue for panels and bands */
  --blue: #5a7a94;
  --blue-dark: #4b6a82;
  --blue-pale: #dbe3ea;
  --ink: #4a3323;
  --muted: #6e6055;
  --line: #e2d8cd;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(59, 42, 30, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 .script, h2 .script { font-size: 1.3em; line-height: 0.8; }

/* Splash / intro screen -------------------------------------------------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  /* JS dismisses via .splash--done; CSS animation is the fallback if JS fails */
  transition: opacity 0.6s ease 0.1s, visibility 0.6s ease 0.1s;
  animation: splash-out 0.5s ease 1.6s forwards;
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}
#splash.splash--done {
  opacity: 0;
  visibility: hidden;
  animation: none; /* JS already dismissed it; cancel the CSS animation */
}
/* The logo inside the splash — same markup as .logo in the header */
#splash .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash .logo__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 18vw, 7rem);
  color: var(--espresso);
  line-height: 0.85;
  letter-spacing: -0.015em;
}
#splash .logo__sub {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 3vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.6em;
  margin-right: -0.6em; /* optical: counteracts the last letter's trailing space */
  text-transform: uppercase;
  color: var(--espresso);
}
#splash .splash__rule {
  width: 44px;
  height: 1px;
  background: var(--blue);
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}
#splash.splash--ready .splash__rule { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  #splash { display: none; }
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mocha-dark);
  margin-bottom: 1rem;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: var(--cream); color: var(--blue-dark); border-color: var(--cream); }
.btn--light:hover { background: var(--white); border-color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 0.72rem; }
.btn--block { width: 100%; justify-content: center; }

:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.logo { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__word { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 0.8; letter-spacing: -0.015em; color: var(--espresso); }
.logo__sub { font-size: 0.66rem; font-weight: 400; letter-spacing: 0.6em; margin-top: 7px; margin-right: -0.6em; color: var(--espresso); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--blue);
  transition: right 0.3s;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 520px) {
  .site-header .wrap { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .logo__word { font-size: 2.1rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0 !important; border-bottom: 1px solid var(--line); font-size: 1.05rem !important; }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; }
}

/* Imagery ---------------------------------------------------------------
   Each .photo has a real image path layered over a warm gradient fallback,
   so the layout still looks considered before photography is added.      */
.photo {
  position: relative;
  background-color: var(--sand);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-tint, none);
  pointer-events: none;
}
.photo--hero {
  background-position: center 25%;
  background-image: url("../images/hero.jpg?v=20261117"),
    radial-gradient(ellipse at 50% 45%, rgba(255, 253, 250, 0.8), transparent 60%),
    linear-gradient(120deg, #e0cfbf 0%, #efe7de 40%, #f3ede6 60%, #e3d4c5 100%);
}
.photo--desk {
  background-image: url("../images/desk.jpg?v=20261110-2"),
    radial-gradient(circle at 30% 40%, rgba(99, 69, 45, 0.25), transparent 40%),
    linear-gradient(160deg, #e0cfbf, #bfa084 60%, #98765b);
}
.photo--contact {
  background-image: url("../images/contact.jpg?v=20261110-2"),
    radial-gradient(ellipse at 85% 35%, rgba(255, 244, 222, 0.6), transparent 50%),
    linear-gradient(110deg, #98765b 0%, #bfa084 45%, #e0cfbf 100%);
}
.photo--side {
  background-image: url("../images/contact-side.jpg"),
    radial-gradient(circle at 40% 70%, rgba(99, 69, 45, 0.2), transparent 45%),
    linear-gradient(175deg, #ede4db, #cdc1b3 70%, #bfa084);
}
.photo--laptop {
  background-image: url("../images/laptop.jpg"),
    radial-gradient(ellipse at 60% 30%, rgba(255, 250, 240, 0.65), transparent 55%),
    linear-gradient(135deg, #ede4db, #cdc1b3 70%);
}
.photo--services {
  background-image: url("../images/services.jpg?v=20261110"),
    radial-gradient(ellipse at 50% 45%, rgba(255, 253, 250, 0.8), transparent 60%),
    linear-gradient(120deg, #e0cfbf 0%, #efe7de 40%, #f3ede6 60%, #e3d4c5 100%);
}
.photo--about {
  background-image: url("../images/about.jpg?v=20261110"),
    radial-gradient(ellipse at 40% 30%, rgba(255, 246, 230, 0.6), transparent 55%),
    linear-gradient(150deg, #e0cfbf, #a88a6f);
}
.photo--caroline {
  background-position: center 10%;
  background-image: url("../images/caroline.jpg?v=20261110-3"),
    linear-gradient(150deg, #e0cfbf, #a88a6f);
}

.photo--values {
  background-position: center 25%;
  background-image: url("../images/values.jpg?v=20261110"),
    linear-gradient(160deg, #8dacc1, #5a7a94);
}
.photo--guide-first-home { background-image: url("../images/card-first-home.jpg"), linear-gradient(160deg, #e0cfbf, #bfa084); }
.photo--guide-refinance { background-image: url("../images/card-refinance.jpg"), linear-gradient(160deg, #dbe3ea, #8dacc1); }
.photo--guide-borrowing { background-image: url("../images/card-borrowing.jpg"), linear-gradient(160deg, #ede4db, #cdc1b3); }


/* Hero (home): headline left, photo right, in the style of the owner's mockup
   (docs/design/mockup-2026-10.png) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: min(640px, calc(100vh - 78px));
  background: var(--oat);
}
.hero__copy {
  align-self: center;
  padding: 72px 40px 72px max(16px, calc((100vw - var(--wrap)) / 2));
}
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 0.45em; }
.hero__tagline { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mocha-dark); margin: 0 0 1.2rem; }
.hero__tagline::before { content: ""; display: block; width: 44px; height: 1px; margin-bottom: 22px; background: var(--blue); }
/* Location sits on its own line, slightly smaller */
.hero__tagline-loc { display: block; font-size: 0.63rem; opacity: 0.8; margin-top: 0.2em; }
.hero .lead { margin-bottom: 2rem; }
/* Photo's left edge fades into the oat so the halves read as one picture */
.hero__media { min-height: 380px; --photo-tint: linear-gradient(90deg, var(--oat) 0%, rgba(237, 228, 219, 0.55) 32%, rgba(237, 228, 219, 0) 55%); }

/* Mobile hero: keep side-by-side (text left, photo right) — just narrower */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
    min-height: 0;
  }
  .hero__copy { padding: 36px 16px 32px 20px; }
  /* Soft left-edge fade still blends the halves; face is in the upper third */
  .hero__media {
    min-height: 320px;
    background-position: center 25%;
    --photo-tint: linear-gradient(90deg, var(--oat) 0%, rgba(237, 228, 219, 0.55) 36%, rgba(237, 228, 219, 0) 60%);
  }
  .hero h1 { font-size: clamp(1.9rem, 5.4vw, 3.8rem); }
  .hero .lead { font-size: 0.95rem; margin-bottom: 1.5rem; }
}
@media (max-width: 520px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); }
  .hero__copy { padding: 28px 12px 24px 16px; }
  .hero__media { min-height: 260px; }
  .hero h1 { font-size: clamp(1.65rem, 5.5vw, 2.4rem); }
  /* On the smallest screens hide the tagline prefix line to save vertical space */
  .hero__tagline::before { display: none; margin: 0; }
  .hero__tagline { margin-bottom: 0.8rem; }
  .hero .lead { display: none; }
}

/* Circular badge logo from the brand board */
.badge { position: absolute; right: 6%; bottom: 7%; width: 120px; height: 120px; color: var(--espresso); z-index: 1; }
.badge__bg { fill: rgba(247, 244, 239, 0.9); }
.badge__ring { font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; fill: currentColor; }
.badge__m { font-family: var(--serif); font-size: 52px; font-weight: 500; fill: currentColor; }

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

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero {
  position: relative;
  min-height: clamp(280px, 50vw, 420px);
  display: flex;
  align-items: center;
  --photo-tint: linear-gradient(90deg, rgba(247, 244, 239, 0.95) 0%, rgba(247, 244, 239, 0.8) 42%, rgba(247, 244, 239, 0) 74%);
}
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(40px, 7vw, 72px); }
.page-hero h1 { max-width: 12ch; }
.page-hero p { max-width: 30rem; color: var(--ink); }
.page-hero--short { min-height: 300px; }
.page-hero--short .wrap { padding-block: 48px; }
.page-hero--short h1 { max-width: 16ch; margin: 0; }
@media (max-width: 700px) {
  .page-hero--short { min-height: 240px; }
  .page-hero { min-height: 360px; --photo-tint: linear-gradient(180deg, rgba(247, 244, 239, 0.84), rgba(247, 244, 239, 0.92)); }
}

/* Contact pages: text left, a near-square photo right (the photo is a portrait,
   so it isn't stretched across a full-width banner) */
.page-hero--split { min-height: 0; display: block; }
.page-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 56px 0;
}
.page-hero--split h1 { max-width: 14ch; }
.page-hero__photo { aspect-ratio: 9 / 10; border-radius: var(--radius); --photo-tint: none; }
@media (max-width: 860px) {
  .page-hero__split { grid-template-columns: 1fr; padding-top: 40px; }
  .page-hero__photo { width: 100%; max-width: 460px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(44px, 9vw, 112px); }
/* Two plain sections in a row share one gap */
.section + .section:not([class*="section--"]) { padding-top: 0; }
.section--oat { background: var(--oat); }
.section--blue { background: var(--blue-pale); color: var(--ink); position: relative; overflow: hidden; }
.section--blue h2, .section--blue .eyebrow { color: var(--ink); }
.section__intro { max-width: 36rem; margin: 1.4rem auto 0; color: var(--muted); }
.section__head { text-align: center; margin-bottom: 40px; }
@media (max-width: 520px) { .section__head { margin-bottom: 28px; } }
/* Short centred rule under section headings, as under the board's tagline */
.section__head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 22px auto 0;
  background: currentColor;
  opacity: 0.6;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split__media { aspect-ratio: 5 / 4; border-radius: var(--radius); }
/* Portrait of Caroline: taller box so less of the photo is cropped */
.split__media.photo--caroline { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.signature { font-family: var(--script); font-size: 2.4rem; color: var(--mocha-dark); line-height: 1; margin-top: 8px; }
.signature__role { margin: 6px 0 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.signature__licence { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }

/* About: the meaning behind the name */
.meaning { max-width: 720px; text-align: center; }
.meaning p { color: var(--muted); }
.meaning__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1.2; color: var(--espresso); margin: 1.4rem 0 0.6rem; }
.meaning__note { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* Services strip: icon columns with thin dividers, under the home hero */
.services-strip { padding-block: 44px; background: var(--cream); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.service { padding: 6px 20px; text-align: center; text-decoration: none; border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--espresso); }
.service h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service p { font-size: 0.86rem; letter-spacing: 0.02em; color: var(--muted); margin: 0; }
.service:hover h3 { color: var(--blue-dark); }
@media (max-width: 960px) {
  /* 3 columns: Buying / Refinancing / Construction, then Investment / Personal centred */
  .services-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .service:nth-child(3n) { border-right: 0; }
  .service:last-child { grid-column: auto; border-right: 0; }
}
@media (max-width: 600px) {
  /* Swipe carousel: 2 full + half of 3rd card visible — the half-card is the scroll hint */
  .services-strip { overflow: hidden; }
  .services-strip .wrap { width: 100%; padding: 0; }
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide the native scrollbar — we show our own indicator below */
    scrollbar-width: none;
    padding: 8px 0 12px; /* no horizontal padding — iOS Safari ignores it on scroll containers */
    gap: 10px;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service {
    /* (viewport − left-margin − right-margin − 2 gaps) ÷ 2.5 = 2.5 cards visible */
    flex: 0 0 calc((100vw - 56px) / 2.5);
    scroll-snap-align: start;
    border-right: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 20px 12px 16px;
    box-shadow: 0 2px 10px -4px rgba(59,42,30,0.12);
  }
  /* Margins on first/last cards — the reliable way to get edge spacing on iOS Safari */
  .service:first-child { margin-left: 20px; }
  .service:last-child  { margin-right: 20px; }
  .service svg { width: 32px; height: 32px; margin-bottom: 10px; }
  .service p { font-size: 0.82rem; }

  /* Custom scroll indicator bar */
  .services-scroll-bar {
    height: 2px;
    background: var(--line);
    margin: 4px 20px 16px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .services-scroll-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--blue);
    border-radius: 2px;
    width: 40%; /* overridden by JS */
    transform: translateX(0); /* overridden by JS */
    transition: transform 0.08s linear;
  }
}
/* Hide the scroll bar on wider screens where the carousel isn't active */
.services-scroll-bar { display: none; }
@media (max-width: 600px) { .services-scroll-bar { display: block; } }

/* Three panels: photo, pale-blue text panel, photo with the four values */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); }
.panels__photo { min-height: 440px; }
.panels__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px);
  background: var(--blue-pale);
  color: var(--ink);
}
.panels__title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.panels__title::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 18px; background: currentColor; opacity: 0.5; }
.panels__text .btn { align-self: flex-start; margin-top: 0.6rem; }
.panels__photo--values { --photo-tint: linear-gradient(160deg, rgba(25, 35, 45, 0.5) 0%, rgba(25, 35, 45, 0) 62%); }
.panels__words {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 48px 40px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 2.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(20, 30, 40, 0.5);
}
.panels__words::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 14px; background: currentColor; }
@media (max-width: 960px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .panels__photo:first-child { display: none; }
  .panels__photo { min-height: 360px; }
}
@media (max-width: 640px) { .panels { grid-template-columns: 1fr; } .panels__photo { min-height: 300px; } }

/* Process: heading on the left, numbered steps in a row */
.process { display: grid; grid-template-columns: minmax(220px, 0.75fr) 2.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.process__head h2 { margin: 0; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process__steps li { position: relative; text-align: center; }
/* Thin line from each circle to the next (circles are 52px, gap 20px) */
.process__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  right: calc(-50% + 14px);
  height: 1px;
  background: var(--stone);
}
.process__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sand);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--espresso);
}
.process__steps strong { display: block; margin-bottom: 8px; font-size: 0.7rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.22em; text-transform: uppercase; color: var(--espresso); }
.process__steps li > span:last-child { display: block; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 1100px) { .process { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .process__steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-content: start; padding: 12px 0; text-align: left; }
  .process__num { grid-row: span 2; margin: 0; background: var(--blue-pale); color: var(--blue-dark); }
  .process__steps li > strong, .process__steps li > span:last-child { grid-column: 2; }
  .process__steps strong { margin: 6px 0 4px; }
  .process__steps li:not(:last-child)::after { top: 64px; bottom: -12px; left: 26px; right: auto; width: 1px; height: auto; background: var(--blue-pale); }
}

/* Testimonials ----------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  margin: 0;
  background: var(--white);
  padding: 36px 32px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--blue);
  margin-bottom: 12px;
}
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.55; flex: 1; }
.quote figcaption { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mocha-dark); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Guide cards: photo beside text */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 250px; background: var(--oat); }
.guide__photo { min-height: 200px; }
.guide__body { display: flex; flex-direction: column; padding: 28px 24px; }
.guide h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.guide h3::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 14px; background: currentColor; opacity: 0.5; }
.guide p { font-size: 0.86rem; color: var(--muted); }
.guide__link { margin-top: auto; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--blue-dark); }
.guide__link:hover { color: var(--espresso); }
@media (max-width: 1100px) { .guides { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
@media (max-width: 480px) { .guide { grid-template-columns: 1fr; } }

/* Blue call-to-action band above the footer (not on the contact pages) */
.cta-band { padding-block: clamp(40px, 5vw, 56px); background: var(--blue); color: var(--white); }
.cta-band__link { display: inline-flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.cta-band__kicker { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.cta-band__row { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.cta-band__title { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
/* Same size as the site's buttons, inverted: cream with a blue arrow */
.cta-band__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--cream); color: var(--blue-dark); transition: background 0.25s; }
.cta-band__arrow .arrow { transition: transform 0.25s; }
.cta-band__link:hover .cta-band__arrow { background: var(--white); }
.cta-band__link:hover .arrow { transform: translateX(4px); }

/* Cards ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
/* Mobile: 2-column grid of smaller cards */
@media (max-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 20px 14px; }
  .card svg { width: 28px; height: 28px; margin-bottom: 12px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.82rem; }
  .card ul { font-size: 0.82rem; }
  .card .card__link { font-size: 0.7rem; }
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card svg { width: 42px; height: 42px; color: var(--espresso); margin-bottom: 22px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); }
.card ul { margin: 0 0 1.2em; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
.card .card__link { margin-top: auto; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; text-decoration: none; color: var(--blue-dark); }
.card .card__link:hover { color: var(--espresso); }
.card .tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mocha-dark); margin-bottom: 10px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.values svg { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--espresso); }
.values h3 { font-size: 1.25rem; }
.values p { color: var(--muted); }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--mocha-dark);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Placeholder for third-party embeds still to come (Instagram, MFAA calculators) */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.insta-grid a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.insta-grid a:hover img { transform: scale(1.04); }
.insta-follow { margin-top: 32px; text-align: center; }
@media (max-width: 760px) { .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

.embed-pending { padding: 28px; border: 1px dashed var(--stone); text-align: center; color: var(--muted); font-size: 0.9rem; }
.calculators .embed-pending { padding-right: 28px; }
.calculators__note { max-width: 780px; margin: 32px auto 0; font-size: 0.8rem; color: var(--muted); }

/* Contact page ----------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  margin-top: -64px;
  position: relative;
  z-index: 3;
}
.contact-aside { background: var(--oat); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.contact-aside__media {
  position: relative;
  min-height: 380px;
  flex: 1;
}
.form--stack { display: grid; gap: 16px; }

/* Four ways to get in touch, above the form */
.contact-options-band { padding-block: 48px clamp(64px, 9vw, 112px); }
.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1060px; }
.contact-option { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; text-decoration: none; color: var(--ink); transition: transform 0.25s; }
.contact-option:hover { transform: translateY(-3px); }
.contact-option .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-pale); display: grid; place-items: center; color: var(--blue-dark); }
.contact-option .icon-circle svg { width: 26px; height: 26px; }
.contact-option strong { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.contact-option span:last-child { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 520px) { .contact-options { grid-template-columns: 1fr; } }

/* "Thank you" pop-up after a form is sent */
.modal { max-width: min(440px, calc(100% - 32px)); padding: 40px 32px 32px; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(40, 28, 20, 0.45); }
.modal__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; color: var(--espresso); margin: 0 0 0.6rem; }
.modal p:not(.modal__title) { color: var(--muted); }
.modal form { margin-top: 20px; }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 52px); }
.form-card h2 { margin-bottom: 0.35em; }
.form-card > p { color: var(--muted); max-width: 36rem; }

.form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend { font-size: 0.85rem; font-weight: 400; color: var(--ink); padding: 0; }
.req { color: var(--blue-dark); }
.optional { color: var(--muted); font-size: 0.8rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }

.input,
.select,
.textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: #a6978a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-dark); background: var(--white); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2398765b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.textarea { min-height: 120px; resize: vertical; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #a4533f; }
.field-error { color: #a4533f; font-size: 0.8rem; display: none; }
.field.has-error .field-error { display: block; }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-row--4 { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}
.choice span svg { width: 18px; height: 18px; color: var(--blue-dark); flex: none; }
.choice span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  flex: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.choice--icon span::before { display: none; }
.choice input:checked + span { border-color: var(--blue-dark); background: var(--white); }
.choice input:checked + span::before { border-color: var(--blue-dark); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 8px var(--blue-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr; }
  .choice-row--4 { grid-template-columns: 1fr 1fr; }
}

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--blue-dark); width: 16px; height: 16px; flex: none; }
p.consent { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--blue-pale); color: #2f4a5c; }
.form-status.is-error { background: #f4e2dc; color: #7c3a28; }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; margin-top: -40px; }
  .contact-aside { order: 2; }
  .contact-aside__media { min-height: 260px; }
}

/* "Simple steps" band ---------------------------------------------------- */
.next-steps { display: grid; grid-template-columns: 0.8fr repeat(3, 1fr); gap: 32px; align-items: start; }
.next-steps h2 { margin: 0; }
.next-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.next-step__num {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(59, 42, 30, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.next-step strong { display: block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.next-step p { font-size: 0.92rem; color: var(--ink); margin: 0; }
@media (max-width: 960px) { .next-steps { grid-template-columns: 1fr; } }

/* Prose (legal pages) ---------------------------------------------------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.notice { background: var(--oat); border-left: 3px solid var(--blue); padding: 16px 20px; margin-bottom: 2rem; font-size: 0.92rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--oat); color: var(--ink); padding: 48px 0 32px; font-size: 0.9rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; font-size: 1rem; color: var(--espresso); }
.footer-contact > * + *::before { content: "|"; margin: 0 16px; color: var(--stone); }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--blue-dark); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--stone); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-legal p { margin: 0; max-width: 60rem; }
.footer-legal div p + p { margin-top: 10px; }
@media (max-width: 640px) {
  .footer-contact { flex-direction: column; }
  .footer-contact > * + *::before { content: none; }
}

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; white-space: nowrap; }
.site-version { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; opacity: 0.7; }
