/* Pete Clarke Digital — styles
   Brand: Navy #14213D, Orange #FF5A1F (accent only), Cream #F7F6F2, Grey #4A5468 */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14213D;
  --orange: #FF5A1F;
  --cream: #F7F6F2;
  --grey: #4A5468;
  --line: #DEDCD4;
  --white: #FFFFFF;
  --heading: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --space: clamp(64px, 10vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }
.narrow { max-width: 820px; }

.lead { font-size: clamp(1.125rem, 2.2vw, 1.3rem); color: var(--grey); max-width: 38em; }
.eyebrow {
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.75em;
}
.dot { color: var(--orange); }

/* Dark (navy) sections */
.dark { background: var(--navy); color: var(--cream); }
.dark .lead, .dark .eyebrow { color: #D5D9E2; }

/* Placeholders still to fill in — deliberately obvious */
.placeholder {
  background: #FFE7A3;
  color: var(--navy);
  padding: 0 0.3em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

/* Focus: navy ring on cream, cream ring on navy */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--heading); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: #FF6D38; }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand img { width: 150px; }
.menu-toggle { display: none; }

.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 12px; }
.site-nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav ul a { text-decoration: none; font-weight: 600; padding: 6px 0; }
.site-nav ul a:hover { text-decoration: underline; }

/* Phones with JavaScript: collapse nav behind a Menu button */
@media (max-width: 767px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 8px 14px;
    background: none; border: 2px solid var(--navy); border-radius: 999px;
    color: var(--navy); font: 600 1rem var(--body); cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 4px 0 20px; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .site-nav .btn { margin-top: 12px; }
}
@media (min-width: 768px) {
  .header-inner { flex-wrap: nowrap; min-height: 76px; }
  .brand img { width: 170px; }
  .site-nav { gap: 32px; padding-bottom: 0; }
  .site-nav ul { gap: 28px; }
}

/* ---------- 2. Hero ---------- */
.hero { padding: clamp(72px, 12vw, 140px) 0; overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero-mark { display: none; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr auto; }
  .hero-mark { display: block; width: 240px; transform: rotate(-4deg); }
}

/* ---------- 3. Problem ---------- */
.problem { padding: var(--space) 0 0; }
.problem h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
.problem .lead { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

/* ---------- 4. Services ---------- */
.services { padding: var(--space) 0; }
.cards { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card p { color: var(--grey); margin: 0; }
.icon { width: 48px; height: 48px; margin-bottom: 24px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.icon .accent { fill: var(--orange); stroke: none; }
.icon .accent-line { stroke: var(--orange); }

/* ---------- 5. How it works ---------- */
.steps-section { padding: var(--space) 0; background: var(--white); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 28px; margin-top: 40px; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps p { font-size: 1.15rem; font-weight: 500; margin: 6px 0 0; }
.step-num {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 var(--orange);
}

/* ---------- 6. About ---------- */
.about { padding: var(--space) 0; }
.about .lead { color: var(--navy); }

/* ---------- 7. Contact ---------- */
.contact { padding: var(--space) 0; }
.contact-inner { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.contact-links { display: grid; gap: 14px; margin-top: 28px; font-size: 1.1rem; font-weight: 600; }
.contact-links a { overflow-wrap: anywhere; }

.contact-form {
  background: var(--cream); color: var(--navy);
  border-radius: var(--radius); padding: 28px 22px;
}
@media (min-width: 640px) { .contact-form { padding: 36px; } }
.contact-form :focus-visible { outline-color: var(--navy); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--grey); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 1.5px solid #9AA0AD; border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--navy); }
.contact-form .btn { width: 100%; margin-top: 4px; }
@media (min-width: 640px) { .contact-form .btn { width: auto; } }
.form-note { font-size: 0.9rem; color: var(--grey); margin: 16px 0 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 8. Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid rgba(247, 246, 242, 0.15); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-logo { width: 120px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.copyright { margin: 0; color: #D5D9E2; }
@media (min-width: 768px) { .copyright { order: 3; width: 100%; } }

/* ---------- Privacy page ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 var(--space); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4em; }
.legal p, .legal li { max-width: 40em; }
