/* =========================================================
   Parallel North Properties — shared design system
   Fonts: Fraunces (display serif) + Libre Franklin (UI/body)
   Both self-hosted as variable woff2, latin subset.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/librefranklin-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals — biased slightly toward the evergreen accent, never a flat grey */
  --paper: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f2f1ea;
  --ink: #16202b;
  --ink-soft: #4c5760;
  --ink-faint: #7a838b;
  --line: #e4e1d8;
  --line-strong: #d3cfc3;

  /* Brand accent — grounded evergreen (the "North") */
  --accent: #1f6f5c;
  --accent-strong: #185a49;
  --accent-tint: #e8f0ed;
  --on-accent: #ffffff;

  /* Inverted panel — stays dark in BOTH themes (independent of --ink) */
  --panel: #16202b;
  --on-panel: #eef1ef;

  /* Warm secondary — muted brass, used only for small trust marks */
  --warm: #b9812f;
  --warm-tint: #f5ecdc;

  /* Semantic */
  --good: #1f6f5c;
  --focus: #2f8f78;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.5vw, 3.6rem);

  /* Spacing / structure */
  --wrap: 1120px;
  --gutter: clamp(1.15rem, 0.8rem + 1.6vw, 2rem);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.06), 0 2px 6px rgba(22, 32, 43, 0.05);
  --shadow-md: 0 6px 20px rgba(22, 32, 43, 0.08), 0 2px 6px rgba(22, 32, 43, 0.05);
  --shadow-lg: 0 18px 46px rgba(22, 32, 43, 0.16);

  --header-h: 66px;
}

/* The site is light-mode only. The tokens above are the single source of
   truth — there is no dark theme or theme toggle. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section--tint { background: var(--surface-2); }
.section--ink {
  background: var(--panel);
  color: var(--on-panel);
}
.section--ink h2 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--ink .eyebrow { color: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-top: 0.75rem; }
.section--ink .section-head p { color: rgba(255,255,255,0.82); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.08s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: var(--step-1); }
.btn--block { width: 100%; }
.btn--on-ink {
  background: #fff;
  color: #16202b; /* fixed dark — must stay readable on the white button in both themes */
}
.btn--on-ink:hover { background: #e9e7df; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
}
.brand__logo {
  display: block;
  height: 34px;
  width: auto;
}
@media (max-width: 720px) {
  .brand__logo { height: 26px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); border-color: var(--accent); }
.nav__links a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Click-to-call button — always visible */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease;
}
.call-btn:hover { background: var(--accent-strong); }
.call-btn svg { width: 17px; height: 17px; }
.call-btn__label small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 2px;
}
.call-btn__num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 720px) {
  /* Mobile header: logo (left) · compact call button · hamburger (far right). */
  .nav { gap: 0.5rem; }
  .nav-toggle { display: inline-grid; order: 1; }   /* order:1 pushes it to the far right */

  /* Compact call button so the number stays on ONE line, no wrap. */
  .call-btn__label small { display: none; }
  .call-btn {
    flex: none;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }
  .call-btn svg { width: 15px; height: 15px; }

  /* Nav links become a full-width dropdown panel under the header.
     .site-header is position:sticky, so it's the containing block. */
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.6rem;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { display: flex; }
  /* Big, spacious tap targets for thumbs. */
  .nav__links a {
    display: block;
    padding: 1.15rem var(--gutter);
    border-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
  }
  .nav__links li + li a { border-top: 1px solid var(--line); }
  .nav__links a:hover { border-color: transparent; background: var(--surface-2); }
  .nav__links a[aria-current="page"] {
    border-color: transparent;
    color: var(--accent);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-tint) 0%, transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero h1 { margin-top: 0.9rem; }
.hero__sub {
  margin-top: 1.1rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 30rem;
}
.hero__points {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--ink);
}
.hero__points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.hero__phone-line {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.hero__phone-line a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; order: 1; }
  .lead-card { order: 2; }
}

/* ---------- Hero — full-bleed map band (homepage only) ----------
   .hero (shared, above) supplies position:relative + overflow:hidden.
   This modifier turns it into an edge-to-edge cinematic band using
   images/twin-cities-map.png as a background, with a scrim so the
   headline reads clearly in both themes regardless of the map's
   fixed (always-light/vintage) coloring. */
.hero--map {
  display: flex;
  align-items: center;
  min-height: clamp(380px, 60vh, 640px);
  background: none;
}
.hero__mapbg {
  position: absolute;
  inset: 0;
  background-image: url("../images/twin-cities-map.png");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 12, 0.28) 0%, rgba(6, 10, 9, 0.66) 100%),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 55%);
}
.hero--map .wrap { position: relative; z-index: 1; }
.hero--map .eyebrow {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 12px rgba(6, 10, 9, 0.6);
}
.hero--map h1 { color: #fff; }
.hero--map .hero__sub { color: rgba(255, 255, 255, 0.88); }
.hero--map .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero--map .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Lead form card ---------- */
.lead-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem);
}
.lead-card__head { margin-bottom: 1.15rem; }
.lead-card__head h2 {
  font-size: var(--step-2);
  line-height: 1.12;
}
.lead-card__head p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.lead-form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.field .req { color: var(--warm); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 76px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}
.field__error {
  font-size: 0.78rem;
  color: #d05646;
  min-height: 0;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.45;
}
.form-note a { color: var(--ink-soft); }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.form-success.is-visible { display: block; }
.lead-form.is-hidden { display: none; }
.form-success__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
}
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: var(--step-2); }
.form-success p { color: var(--ink-soft); margin-top: 0.5rem; }
.form-success .call-strong {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--surface); }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.15rem clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; }
.trust-item svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.trust-item span { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
@media (max-width: 780px) {
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item:nth-child(odd) { border-left: none; }
  .trust-item { border-top: 1px solid var(--line); }
  .trustbar__grid .trust-item:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 420px) {
  .trustbar__grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--line); }
  .trustbar__grid .trust-item:first-child { border-top: none; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Comparison (why sell to us) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__col {
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--line);
}
.compare__col--us {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.compare__col--them { background: var(--surface); }
.compare__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.compare__col h3 { font-size: var(--step-1); margin-bottom: 1.1rem; }
.compare__col--us h3 { color: #fff; }
.compare__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.compare__list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.96rem; }
.compare__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.compare__col--us .compare__list svg { color: #fff; }
.compare__col--them .compare__list svg { color: var(--ink-faint); }
.compare__col--them .compare__list li { color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars { display: flex; gap: 2px; color: var(--warm); }
.stars svg { width: 18px; height: 18px; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.testimonial figcaption {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.testimonial figcaption strong { color: var(--ink); display: block; font-weight: 600; }

/* Placeholder marker for content the client will replace */
.is-placeholder { position: relative; }

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
}
.cta .wrap { max-width: 720px; }
.cta h2 { font-size: var(--step-3); }
.cta p { margin-top: 0.85rem; font-size: var(--step-1); color: rgba(255,255,255,0.82); }
.cta__actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__phone {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.cta__phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 2rem;
  font-size: 0.9rem;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-contact { display: grid; gap: 0.3rem; text-align: right; }
.footer-contact a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-contact span { color: var(--ink-soft); }
@media (max-width: 560px) {
  .footer-contact { text-align: left; }
}
.site-footer__legal {
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 70ch;
}
.site-footer__copy { margin-top: 0.75rem; color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile sticky call bar (landing pages) ---------- */
.mobile-callbar { display: none; }
@media (max-width: 720px) {
  .mobile-callbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.6rem;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-callbar .btn { flex: 1; }
  body.has-callbar { padding-bottom: 72px; }
}

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

/* =========================================================
   Homepage (company / credibility) components
   Layered on top of the shared system — same tokens, same
   fonts. Used by index.html only; landing pages don't load
   any of these class names.
   ========================================================= */

/* ---------- Hero actions + media slot ---------- */
.hero__actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
/* ---------- Generic image placeholder slot ----------
   Reusable across the site wherever a real photo will
   eventually go. Swap the whole .img-slot element for an
   <img> (or a <div> with a background-image) once you have
   real photography — the aspect ratio is set by the
   modifier class, so a same-shaped <img> will drop in
   cleanly with `width:100%; height:100%; object-fit:cover;`
   and the same border-radius. */
.img-slot {
  position: relative;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--ink-faint);
}
.img-slot svg { width: 34px; height: 34px; opacity: 0.55; }
.img-slot__label { font-size: 0.8rem; font-weight: 600; max-width: 85%; line-height: 1.3; }
.img-slot__dims { font-size: 0.72rem; opacity: 0.85; }
.img-slot--before-after { aspect-ratio: 1 / 1; flex: 1; }

/* ---------- Section background variants (rhythm) ---------- */
.section--texture {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-tint) 0%, transparent 55%),
    var(--surface-2);
}
.section--texture-alt {
  background:
    radial-gradient(120% 90% at 0% 100%, var(--accent-tint) 0%, transparent 55%),
    var(--surface-2);
}

/* ---------- "Who we are" lede ---------- */
.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.32;
  color: var(--ink);
  max-width: 40rem;
}
.lede + p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  max-width: 44rem;
}

/* ---------- What we do — three pillar tiles (image-forward, hover reveal) ----------
   The descriptor sentence under each image is always visible (so the three
   panels answer "what does this company do" at a glance without needing
   interaction) — the hover/focus state is a lightweight enhancement layered
   on top: the photo zooms slightly, a scrim/label appears, and a small
   "view more" hint fades in. Reduced-motion users still get the full state
   change, just without the animated transition. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.pillar-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pillar-tile:hover, .pillar-tile:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pillar-tile__media { position: relative; overflow: hidden; }
.pillar-tile__media .img-slot { border-radius: 0; border-width: 0 0 1px; transition: transform 0.5s ease; }
/* Real photo thumbnail — same 16:10 frame as the placeholder slot, cover-cropped
   so all three cards stay uniform. height:auto lets width + aspect-ratio drive
   the box (overriding the img's height attribute). */
.pillar-tile__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s ease;
}
.pillar-tile:focus-visible .pillar-tile__media .img-slot,
.pillar-tile:focus-visible .pillar-tile__img { transform: scale(1.045); }
@media (hover: hover) and (pointer: fine) {
  .pillar-tile:hover .pillar-tile__media .img-slot,
  .pillar-tile:hover .pillar-tile__img { transform: scale(1.045); }
}
.pillar-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.pillar-tile__name {
  position: absolute;
  left: 1.1rem; bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: #fff;
  margin: 0;
}
.pillar-tile__reveal {
  position: absolute;
  right: 1.1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pillar-tile__reveal svg { flex: none; width: 15px; height: 15px; }
.pillar-tile:focus-visible .pillar-tile__reveal { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .pillar-tile:hover .pillar-tile__reveal { opacity: 1; transform: none; }
}
.pillar-tile__desc {
  padding: 1.1rem 1.35rem 1.35rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
@media (prefers-reduced-motion: reduce) {
  .pillar-tile,
  .pillar-tile__media .img-slot,
  .pillar-tile__img,
  .pillar-tile__reveal { transition: none; }
}

/* ---------- Chips — small tag pills for portfolio facts ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
/* Status variant — warm brass, so an "in progress" marker reads distinctly
   from the green descriptive chips. Works in both themes. */
.chip--status {
  background: var(--warm-tint);
  color: var(--warm);
}

/* Divider between two projects stacked in one section (e.g. Development). */
.project-divider {
  border-top: 1px solid var(--line);
  margin-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

/* ---------- Carousel (big active image + prev/next arrows + thumbnails) ----------
   JS in js/main.js swaps the big image when an arrow or thumbnail is clicked.
   Renderings cover the frame; floor plans use --contain / --plan so they show
   in full. Fully usable without JS too — the first image + thumbnail grid still
   render (arrows just won't do anything). */
.carousel { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.carousel__stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.carousel__main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.carousel__main--contain { object-fit: contain; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, #0b1a15 55%, transparent);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.carousel__nav:hover { background: color-mix(in srgb, #0b1a15 78%, transparent); }
.carousel__nav:active { transform: translateY(-50%) scale(0.93); }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: 0.7rem; }
.carousel__nav--next { right: 0.7rem; }
.carousel__counter {
  position: absolute;
  right: 0.8rem; bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, #0b1a15 55%, transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(2px);
}
.carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 0.85rem);
  margin-top: clamp(0.6rem, 0.4rem + 1vw, 1rem);
}
@media (max-width: 640px) { .carousel__thumbs { grid-template-columns: repeat(3, 1fr); } }
.carousel__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.carousel__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.carousel__thumb--plan img { object-fit: contain; }
.carousel__thumb:hover { border-color: var(--line-strong); }
.carousel__thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .carousel__nav, .carousel__thumb { transition: none; }
}

/* ---------- Remodel cards — repeatable before/after template ---------- */
.remodel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
}
@media (max-width: 760px) { .remodel-grid { grid-template-columns: 1fr; } }
.remodel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.remodel-card__media { display: flex; gap: 2px; }
.remodel-card__media .img-slot { border-radius: 0; border-width: 0 0 1px; }
.remodel-card__media .img-slot:first-child { border-right-width: 1px; }
.remodel-card__body { padding: 1.35rem 1.5rem 1.5rem; }
.remodel-card__body h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.remodel-card__body p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Simple page hero (portfolio page) ---------- */
.page-hero__intro { max-width: 42rem; }
.page-hero__intro .hero__sub { max-width: none; }

/* ---------- Subtle CTA — understated one-liner (credibility pages) ---------- */
.subtle-cta {
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.subtle-cta p { color: var(--ink-soft); font-size: 0.98rem; }
.subtle-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.subtle-cta a:hover { text-decoration: underline; }

/* ---------- Featured project (named project w/ photo gallery) ---------- */
.project__header {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.4rem);
  flex-wrap: wrap;
}
.project__logo {
  flex: none;
  height: 62px;
  width: auto;
  border-radius: 10px;
  /* The logo artwork carries its own dark background; a hairline edge keeps
     it from bleeding into a dark-theme page. */
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.project__meta {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.project__desc {
  margin-top: clamp(1.1rem, 0.75rem + 1vw, 1.5rem);
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
}
.project .chips { margin-top: 1.1rem; }

/* ---------- Partner profiles (About page) — headshot + long bio ---------- */
.partners { display: grid; }
.partner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.25rem);
}
.partner:first-child { padding-top: 0; }
.partner + .partner { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .partner { grid-template-columns: 1fr; gap: 1.25rem; }
}
.partner__photo {
  width: 100%;
  max-width: 180px;
  height: auto;           /* override the img height attribute so aspect-ratio can square-crop */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.partner__name { font-size: var(--step-2); }
.partner__role {
  margin-top: 0.3rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.partner__bio {
  margin-top: 1.1rem;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.75;
}

/* ---------- Meet the team ---------- */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}
@media (max-width: 460px) { .member { grid-template-columns: 1fr; } }
.member__photo {
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.15rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem;
}
.member__photo svg { width: 30px; height: 30px; opacity: 0.7; }
.member__name { font-size: var(--step-1); }
.member__role {
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.member__bio {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Placeholder tag — marks content the client will supply */
.ph-tag {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  background: var(--warm-tint);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

/* ---------- Contact page — form + details side by side ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-line {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact-line:first-child { border-top: 0; padding-top: 0; }
.contact-line__label {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.contact-line__value {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.25;
  word-break: break-word;
}
a.contact-line__value { border-bottom: 2px solid var(--accent); }
.contact-reassure {
  margin-top: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contact-reassure svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
