/* Dewline Digital — site styles
   Mobile-first. Palette: pine + safety yellow. Type: Zilla Slab / Public Sans. */

:root {
  --pine: #1F4A3A;
  --pine-deep: #12281F;
  --signal: #F2B705;
  --signal-dark: #D29E00;
  --ink: #1A211D;
  --slate: #55625B;
  --mist: #E8EDE9;
  --line: #CED8D1;
  --white: #FFFFFF;
  --on-dark: #DCE6E0;
  --error: #A3261B;

  --font-head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 64px;
  --bar-h: 0px;
  --gutter: 16px;
  --max: 1180px;
  --radius: 8px;
  --focus: var(--pine);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.on-dark { --focus: var(--signal); color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--ink); padding: 10px 14px;
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 40em; }
.muted { color: var(--slate); }
.on-dark .muted { color: var(--on-dark); }

.placeholder {
  background: #FFF1B8;
  color: #5A4300;
  padding: 0 0.25em;
  border-radius: 3px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 56px 0; }
.band--mist { background: var(--mist); }
.band--pine { background: var(--pine); }
.band--deep { background: var(--pine-deep); }
.band-head { max-width: 46rem; margin-bottom: 32px; }
.band-head p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 28px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--signal { background: var(--signal); color: var(--ink); border-color: var(--signal-dark); }
.btn--signal:hover { background: #FFC81F; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--outline:hover { background: var(--pine); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 0.35em; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
}
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
  color: var(--pine); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark:hover { color: var(--pine); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 12px 24px rgba(18, 40, 31, .12);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 12px 4px; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--mist);
}
.site-nav ul a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--signal); }
.nav-mobile-actions { display: grid; gap: 10px; margin-top: 16px; }

.header-actions { display: none; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--pine); }

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

.hero {
  position: relative;
  color: var(--white);
  background-color: var(--pine-deep);
  background-image:
    linear-gradient(rgba(18, 40, 31, .86), rgba(18, 40, 31, .86)),
    url("/images/hero-960.jpg");
  background-size: cover;
  background-position: center;
}
.hero-grid { display: grid; gap: 0; }
.hero-copy { padding: 36px 0 40px; max-width: 38rem; }
.hero h1 { color: var(--white); margin-bottom: 0.3em; font-size: clamp(2.4rem, 11.5vw, 4rem); line-height: 1.02; }
.hero h1 .line { display: block; }
.hero-intro { font-size: 1.15rem; color: var(--on-dark); margin-bottom: 24px; }
.hero .btn-row { margin-bottom: 24px; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks li { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; }
.checks .icon { color: var(--signal); stroke-width: 3; }

/* On mobile the form sits directly below the hero, on a plain band */
.hero-form-wrap {
  background: var(--mist);
  color: var(--ink);
  margin: 0 calc(var(--gutter) * -1);
  padding: 28px var(--gutter) 36px;
  --focus: var(--pine);
}

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

.form-card {
  background: var(--white); color: var(--ink);
  border-radius: 12px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  --focus: var(--pine);
}
.form-card h2, .form-card .form-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.5rem; line-height: 1.15; margin: 0 0 4px;
}
.form-card .form-sub { font-size: 0.95rem; color: var(--slate); margin-bottom: 16px; }

.lead-form { display: grid; gap: 12px; }
.field-row { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 700; }
.req { color: var(--error); margin-left: 2px; }
.opt { font-weight: 400; color: var(--slate); }

.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #A9B6AE;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 44px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A211D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  font-size: 0.8rem; line-height: 1.45; color: var(--slate);
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pine); }

.form-note { font-size: 0.8rem; color: var(--slate); margin: 0; }
.form-note a { color: var(--slate); }

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

.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.problem-list li { border-left: 4px solid var(--signal); padding: 2px 0 2px 16px; }
.problem-list strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.25; margin-bottom: 4px; }
.problem-list p { margin: 0; color: var(--slate); }

.included-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.included-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.included-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--pine); stroke-width: 2.6; }
.included-list strong { display: block; }
.included-list span.desc { color: var(--slate); }

.note-box {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--signal);
  border-radius: var(--radius); padding: 20px;
}
.note-box h3 { margin-bottom: 6px; }
.note-box p:last-child { margin-bottom: 0; }

/* Steps: the one loud moment on the page */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.step { border-top: 3px solid rgba(255,255,255,.22); padding-top: 18px; }
.step-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 3.5rem; line-height: 1; color: var(--signal); margin-bottom: 10px;
}
.step h3 { color: var(--white); }
.step p { color: var(--on-dark); margin: 0; }

.steps-detail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps-detail > li { display: grid; gap: 8px 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps-detail > li:last-child { border-bottom: 1px solid var(--line); }
.steps-detail .step-num { color: var(--pine); font-size: 3rem; margin: 0; }
.steps-detail h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 0.4em; }
.steps-detail p { max-width: 40em; }
.steps-detail p:last-child { margin-bottom: 0; }

.todo-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; max-width: 42em; }
.todo-list li::marker { font-family: var(--font-head); font-weight: 700; color: var(--pine); }

.founders { display: grid; gap: 20px; }
.founder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.founder h3 { margin-bottom: 2px; }
.founder .where { display: inline-flex; align-items: center; gap: 0.35em; color: var(--slate); font-size: 0.95rem; margin-bottom: 12px; }

.trades { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.trades li { background: var(--mist); border-radius: 4px; padding: 4px 10px; font-weight: 600; font-size: 0.95rem; }

/* FAQ */
.faq-list { display: grid; gap: 0; max-width: 50rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25;
}
.faq-item summary > :first-child { flex: 1; text-wrap: pretty; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--pine); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 20px; max-width: 42em; }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item h2, .faq-item h3 { font: inherit; margin: 0; }

/* Final CTA */
.cta-grid { display: grid; gap: 28px; align-items: start; }
.cta-copy h2 { color: var(--white); }
.cta-copy p { color: var(--on-dark); }
.cta-phone { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 1.15rem; }
.cta-phone .icon { color: var(--signal); }

/* Page header for inner pages */
.page-head { padding: 44px 0 36px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; color: var(--pine-deep); }
.page-head .lead { margin-bottom: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.contact-list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--pine); }
.contact-list strong { display: block; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 0 0 1em; padding: 12px 16px; background: var(--mist); border-left: 4px solid var(--pine); }

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

.site-footer { background: var(--pine-deep); color: var(--on-dark); padding: 48px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.site-footer .wordmark { color: var(--white); }
.footer-desc { margin-top: 8px; max-width: 26rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-contact .icon { color: var(--signal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Message button + panel ---------- */

.msg-fab {
  position: fixed; right: 16px; bottom: calc(var(--bar-h) + 14px); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--pine); color: var(--white); border: 2px solid var(--white);
  box-shadow: 0 6px 18px rgba(18, 40, 31, .35);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  --focus: var(--signal);
}
.msg-fab .icon { width: 26px; height: 26px; }
.msg-fab.is-tucked { visibility: hidden; }
.msg-fab .icon-close { display: none; }
.msg-fab[aria-expanded="true"] .icon-open { display: none; }
.msg-fab[aria-expanded="true"] .icon-close { display: block; }

.msg-panel {
  position: fixed; right: 16px; left: 16px; z-index: 61;
  bottom: calc(var(--bar-h) + 84px);
  max-height: calc(100dvh - var(--bar-h) - 84px - var(--header-h) - 12px);
  overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 40, 31, .28);
  padding: 18px;
  --focus: var(--pine);
}
.msg-panel[hidden] { display: none; }
.msg-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.msg-panel-head h2 { font-size: 1.3rem; margin: 0; }
.msg-close {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.msg-panel .lead-form { gap: 10px; }

/* ---------- Mobile action bar ---------- */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(18, 40, 31, .1);
}
.action-bar .btn { min-height: 46px; padding: 0.5em 0.8em; }

@media (max-width: 759px) {
  :root { --bar-h: calc(62px + env(safe-area-inset-bottom)); }
  /* Clearance so the message button never covers footer links */
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .msg-panel { left: auto; width: 360px; }
  .founders { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .action-bar { display: none; }
  .band { padding: 80px 0; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .steps-detail > li { grid-template-columns: 90px 1fr; }
  .page-head { padding: 64px 0 52px; }
  .msg-fab { right: 24px; bottom: 24px; }
  .msg-panel { right: 24px; bottom: 96px; max-height: calc(100dvh - 96px - var(--header-h) - 16px); }
}

@media (min-width: 980px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav ul a { border: 0; padding: 8px 10px; white-space: nowrap; }
  .site-nav ul a:hover { color: var(--pine); }
  .nav-mobile-actions { display: none; }
  .header-actions { display: flex; }

  .hero {
    background-image:
      linear-gradient(90deg, rgba(18, 40, 31, .94) 0%, rgba(18, 40, 31, .86) 36%, rgba(18, 40, 31, .38) 60%, rgba(18, 40, 31, .12) 100%),
      url("/images/hero-1920.jpg");
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 48px; align-items: center;
    padding-block: 32px 40px;
  }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.4rem, 5.6vw, 4.5rem); }
  .hero-form-wrap { background: none; margin: 0; padding: 0; }
  .hero-form-wrap .form-card { box-shadow: 0 20px 50px rgba(10, 25, 19, .35); border: 0; padding: 22px 24px; max-width: 470px; margin-left: auto; }
  .hero-form-wrap .lead-form { gap: 10px; }
  .hero-form-wrap .field textarea { min-height: 52px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; }
  .cta-grid .form-card { padding: 28px; }
}

@media (min-width: 980px) and (max-width: 1139px) {
  .header-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .msg-fab, .msg-panel, .action-bar { display: none !important; }
}
