/* Starter Site - mobile-first. Colours come from config.js via CSS variables. */
:root {
  --ink: #12232E;
  --navy: #163B54;
  --accent: #D9782C;
  --accent-dark: #B85E1A;
  --cream: #F4EFE6;
  --paper: #FFFCF8;
  --muted: #5C6B73;
  --line: #D9D0C3;
  --on-accent: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 35, 46, 0.08);
  --max: 1100px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy); }

.demo-banner {
  background: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.4;
  padding: 0.65rem 1rem;
  text-align: center;
}

.demo-banner strong { font-weight: 700; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem 1rem;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.2rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-call {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn-call:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(217, 120, 44, 0.16), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 2.25rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }

h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  margin-top: 1.75rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.hero-card p { margin: 0; color: rgba(255,255,255,0.86); }

section { padding: 3rem 0; }

.section-head { margin-bottom: 1.5rem; max-width: 36rem; }

.cards {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(18, 35, 46, 0.03);
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.card p { margin: 0; color: var(--muted); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.area-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}

.note { color: var(--muted); margin: 0; }

.reviews { background: var(--cream); }

.review-grid { display: grid; gap: 0.9rem; }

.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
}

.review blockquote {
  margin: 0 0 0.85rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
}

.review-meta { color: var(--muted); font-size: 0.9rem; }

.sample-flag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.placeholder-box {
  border: 1px dashed var(--accent-dark);
  background: rgba(217, 120, 44, 0.08);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-copy p { color: var(--muted); max-width: 40rem; }

.contact { background: #fff; }

form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }

input, select, textarea {
  font: inherit;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

textarea { min-height: 120px; resize: vertical; }

.form-note, .form-status {
  font-size: 0.92rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
}

.form-note {
  background: var(--cream);
  border: 1px dashed var(--accent-dark);
}

.form-status[data-state="ok"] {
  background: #e8f5ec;
  color: #1a4d2e;
}

.form-status[data-state="err"] {
  background: #fdecea;
  color: #7a1f16;
}

.form-status[hidden] { display: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a { color: var(--navy); font-weight: 600; }

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 248, 0.96);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  z-index: 50;
}

.sticky-call .btn { width: min(100%, 420px); }

@media (min-width: 800px) {
  .nav-toggle { display: none; }

  .header-row { min-height: 76px; }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
  }

  .hero-card { margin-top: 0; }

  .cards,
  .review-grid { grid-template-columns: repeat(3, 1fr); }

  .sticky-call { display: none; }

  .site-footer { padding-bottom: 2rem; }
}

.preview-banner {
  background: #1c1c1c;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
}
.preview-banner strong { font-weight: 650; }
.site-footer {
  padding: 1.1rem 0 6rem;
}
.footer-preview {
  margin: 0;
  font-size: 0.78rem;
  color: #7a8389;
  letter-spacing: 0.01em;
}
@media (min-width: 800px) {
  .site-footer { padding-bottom: 1.4rem; }
}

@media (max-width: 799px) {
  .contact { padding-bottom: 6.5rem; }
  #contact { scroll-margin-bottom: 5.5rem; }
}
