/* Saxon Enterprises — site styles. Colors come from the logo: crimson hull,
   gray sail. Navy is the "open water" used for dark bands. */

:root {
  --crimson: #9b2d33;
  --crimson-dark: #7a2228;
  --crimson-tint: #f6e9ea;
  --navy: #14202e;
  --navy-2: #1d2d40;
  --sail: #b9bbbe;
  --ink: #1b1f24;
  --muted: #5a6370;
  --line: #e4e0da;
  --paper: #faf8f5;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 46, 0.06), 0 8px 24px rgba(20, 32, 46, 0.08);
  --container: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--crimson); text-underline-offset: 3px; }
a:hover { color: var(--crimson-dark); }

:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font: 600 0.95rem/1 var(--sans);
  color: var(--white); background: var(--crimson);
  border: 2px solid var(--crimson); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; transition: margin 0.15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.45rem/1 var(--serif); letter-spacing: 0.08em; color: var(--crimson); text-transform: uppercase; }
.brand-sub { font: 500 0.62rem/1 var(--sans); letter-spacing: 0.38em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--crimson); border-bottom-color: var(--crimson); }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform 0.2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 24px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav li a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 16px; justify-content: center; width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #d8dee6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: #f0c3c6; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson);
}
.section-dark .eyebrow { color: #e8a2a7; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: #b6c0cc; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 110px 0 120px; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: 40px;
  width: 560px; height: 560px;
  background: url("/assets/img/saxon-icon.png") no-repeat center / contain;
  opacity: 0.08; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.hero h1 em { font-style: italic; color: var(--crimson); }
.hero .lead { font-size: 1.25rem; }

.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 860px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted);
}
.trust-row strong { color: var(--navy); }

/* ---------- Cards and grids ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.card h3 { font-size: 1.55rem; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--crimson-tint); color: var(--crimson);
}
.card-icon svg { width: 24px; height: 24px; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--ink); font-size: 0.97rem; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px; border-left: 2px solid var(--crimson); border-bottom: 2px solid var(--crimson);
  transform: rotate(-45deg);
}
.section-dark .checklist li { color: #d8dee6; }
.section-dark .checklist li::before { border-color: #e8a2a7; }

/* ---------- Work ---------- */

.work-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f2; border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.work-body p { color: var(--muted); font-size: 0.97rem; }
.work-body .link-arrow { margin-top: auto; color: var(--crimson); }
.tag { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case:nth-child(even) .case-shot { order: 2; }
.case-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.case-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.case dl { margin: 0 0 24px; }
.case dt { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin: 20px 0 6px; }
.case dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .case:nth-child(even) .case-shot { order: 0; }
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, 0.15); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 600 2.6rem/1 var(--serif); color: #e8a2a7; margin-bottom: 14px;
}
.step h3 { font-size: 1.5rem; }
.step p { color: #b6c0cc; font-size: 0.97rem; }

/* ---------- Feature split (BusinessPulse band etc.) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat { border-left: 3px solid var(--crimson); padding-left: 14px; }
.stat strong { display: block; font: 600 2.2rem/1 var(--serif); color: var(--navy); }
.stat span { font-size: 0.88rem; color: var(--muted); }
.section-dark .stat strong { color: var(--white); }
.section-dark .stat span { color: #b6c0cc; }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }

.mock-report {
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mock-report h3 { font: 600 1rem/1.3 var(--sans); color: var(--navy); margin-bottom: 4px; }
.mock-report .mock-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mock-row span:first-child { flex: 1; }
.pill { font: 600 0.72rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill-yes { background: #e3f3e8; color: #1f6b3a; }
.pill-no { background: var(--crimson-tint); color: var(--crimson-dark); }
.mock-note { font-size: 0.78rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font: 600 1.05rem/1.4 var(--sans); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--crimson); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* ---------- Prose pages ---------- */

.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.values h3 { font-size: 1.35rem; margin-bottom: 6px; }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

blockquote.pull {
  margin: 48px 0; padding: 0 0 0 28px; border-left: 3px solid var(--crimson);
  font: italic 500 1.9rem/1.3 var(--serif); color: var(--navy);
}

/* ---------- CTA ---------- */

.cta { text-align: center; }
.cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.cta p { color: #b6c0cc; max-width: 560px; margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Forms ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 24px; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid #d3cdc4; border-radius: 8px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(155, 45, 51, 0.15); background: var(--white); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: #e3f3e8; color: #1f6b3a; }
.form-status.err { display: block; background: var(--crimson-tint); color: var(--crimson-dark); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.aside-card { border-top: 3px solid var(--crimson); padding-top: 20px; margin-bottom: 36px; }
.aside-card h2 { font-size: 1.6rem; }
.aside-card p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #b6c0cc; padding: 72px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 180px; background: var(--white); padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.footer-heading { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #d8dee6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem;
}
.footer-base p { margin: 0; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .work-card { transition: none; }
}

a.card { text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
a.card h3 { color: var(--navy); }

/* ---------- Guides and local pages ---------- */

.byline { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.prose .answer {
  font-size: 1.12rem; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--crimson); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 2em;
}
.prose .answer strong { color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.town-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.town-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 0.93rem; text-align: center; }
@media (max-width: 960px) { .town-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .town-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing ---------- */

.price-card .tag { margin-bottom: 10px; }
.price-name { font-size: 1.7rem; margin-bottom: 6px; }
.price { margin: 8px 0 20px; color: var(--navy); }
.price-amount { font: 600 3rem/1 var(--serif); }
.price-unit { color: var(--muted); font-size: 0.95rem; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-featured { border: 2px solid var(--crimson); box-shadow: var(--shadow); }
.price-featured .tag { color: var(--crimson); }
