/* Aldric Services — shared styles.
   Palette comes from a Map Pack scan: spruce for the brand, and the green/amber/red
   rank scale used ONLY for ranking data (dots, results), never as decoration. */
:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #172420;
  --ink-soft: #4a5a55;
  --spruce: #1e4a40;
  --spruce-deep: #12302a;
  --spruce-tint: #e3ece8;
  --line: #d6dfdb;
  --rank-top: #2e9b5c;
  --rank-mid: #e2a52b;
  --rank-low: #d4493f;
  --go: #1f7a45;
  --go-deep: #17603a;
  --measure: 66ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--spruce); text-underline-offset: 3px; }
a:hover { color: var(--go); }
:focus-visible { outline: 3px solid var(--rank-mid); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6.2vw, 68px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.2; font-stretch: 112%; letter-spacing: 0; margin-bottom: 8px; }
p + p { margin-top: 1em; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul { margin: 1em 0 0 1.2em; }
.prose li + li { margin-top: .5em; }

/* ---------- Header ---------- */
.site-header { background: var(--spruce-deep); color: #fff; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-stretch: 120%; font-weight: 800; font-size: 21px; letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; flex: none; }


.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d9e6e1; text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--rank-top); border-radius: 0; }
.nav .nav-call { margin-left: 8px; background: var(--go); color: #fff; font-weight: 700; }
.nav .nav-call:hover { background: var(--go-deep); }

.menu-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--spruce-deep); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--rank-top); padding-left: 14px; }
  .nav .nav-call { margin: 16px 0 0; text-align: center; border-radius: 6px; border: 0; }
  .site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none;
  padding: 15px 24px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  min-height: 52px;
}
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-deep); color: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { color: inherit; background: rgba(127,127,127,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--spruce-deep); color: #e8f0ed; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: #c3d4ce; }
.section-dark a:not(.btn) { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* Page title band on inner pages */
.page-head { background: var(--spruce-deep); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head .lede { color: #c3d4ce; margin-top: 20px; }

/* ---------- Hero with the scan ---------- */
.hero { background: var(--spruce-deep); color: #e8f0ed; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); }
.hero .lede { color: #c3d4ce; margin-top: 24px; }
.hero .btn-line { color: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.scan { background: #0d2520; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; }
.scan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.scan-query { font-size: 15px; color: #c3d4ce; }
.scan-query strong { color: #fff; font-weight: 600; }
.scan-toggle { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 8px; padding: 3px; }
.scan-toggle button {
  font: inherit; font-size: 15px; font-weight: 600; color: #c3d4ce; background: none; border: 0;
  padding: 7px 14px; border-radius: 6px; cursor: pointer; min-height: 36px;
}
.scan-toggle button[aria-pressed="true"] { background: #fff; color: var(--spruce-deep); }
.scan svg { width: 100%; height: auto; border-radius: 8px; }
.scan-dot circle { transition: fill .6s ease; }
.scan-dot text { transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { .scan-dot circle, .scan-dot text { transition: none; } }
.scan-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: #c3d4ce; }
.scan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.scan-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.scan-note { font-size: 14px; color: #93aaa2; margin-top: 8px; }

/* ---------- Who we help ---------- */
.trades { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.trades li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 17px;
}

/* ---------- Services list ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service-list > div { padding: 26px 0; border-top: 2px solid var(--ink); }
.service-list p { color: var(--ink-soft); }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rank-top); color: #fff; font-weight: 800; font-size: 20px; font-stretch: 110%;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 58px; right: -12px; border-top: 2px dashed var(--line);
}
.steps p { color: var(--ink-soft); font-size: 17px; }
.section-dark .steps p { color: #c3d4ce; }
.section-dark .steps li:not(:last-child)::after { border-color: rgba(255,255,255,.2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 66px; }
  .steps li:not(:last-child)::after { top: 52px; left: 22px; right: auto; bottom: 6px; border-top: 0; border-left: 2px dashed var(--line); }
}

/* ---------- Results ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-top: 2px solid var(--ink); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-meta { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }
.case h3 { font-size: 26px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin-top: 20px; }
.case dt { font-weight: 700; }
.case dd { color: var(--ink-soft); }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }

.moves { display: grid; gap: 14px; }
.move { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.move-label { font-size: 16px; color: var(--ink-soft); }
.move-figure { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.move-figure .from { font-size: 22px; font-weight: 700; color: var(--rank-low); font-stretch: 110%; }
.move-figure .to { font-size: 34px; font-weight: 800; color: var(--rank-top); font-stretch: 118%; line-height: 1; }
.move-figure .arrow { color: var(--ink-soft); }
.move-figure .when { font-size: 15px; color: var(--ink-soft); }

.placeholder {
  background: #fff6dc; border: 2px dashed var(--rank-mid); color: #6b4e00;
  border-radius: 8px; padding: 12px 16px; font-size: 16px;
}

/* ---------- Teaser cards (results / about on home) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.portrait {
  aspect-ratio: 4 / 5; border-radius: 14px; background: var(--spruce-tint);
  display: grid; place-items: center; text-align: center; color: var(--spruce);
  border: 2px dashed #9fb8ae; font-size: 16px; padding: 24px; max-width: 420px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.facts { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--rank-top);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; display: grid; gap: 24px; }
.contact-lines .label { font-size: 16px; color: var(--ink-soft); }
.contact-lines a { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; font-stretch: 112%; text-decoration: none; color: var(--ink); word-break: break-word; }
.contact-lines a:hover { color: var(--go); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.form .hint { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid #b8c6c0; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--rank-mid); outline-offset: 1px; border-color: var(--spruce); }
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 15px; color: var(--ink-soft); }

/* ---------- Closing call to action band ---------- */
.cta-band { background: var(--spruce); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; }
.cta-band p { color: #d4e2dc; margin-top: 10px; max-width: 52ch; }
.cta-band .actions { margin-top: 0; }
.cta-band .btn-line { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0c211c; color: #a9bdb6; font-size: 16px; padding: 56px 0 32px; }
.site-footer a { color: #d9e6e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 17px; margin-bottom: 12px; font-stretch: 112%; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Real photos replace the dashed placeholder frame */
.portrait:has(img) { border: 0; padding: 0; background: none; max-width: 320px; justify-self: center; width: 100%; }
.portrait img { object-position: center 20%; }
/* Matt's photo sits close to Ryan's size: same 4:5 frame, a little narrower */
.person { display: grid; gap: 16px; margin-top: 12px; }
.person img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 38% 30%; border-radius: 12px; }
.person p { margin: 0; }
