/* =========================================================
   TOKENS: set these per client. All other CSS should use them.
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f3f5f8;
  --ink: #0e1a2b;
  --muted: #4a5566;
  --line: #d9dfe7;
  --brand: #042654;
  --brand-ink: #ffffff;
  --accent: #2b6e21;
  --accent-dark: #22581a;
  --accent-ink: #ffffff;
  --mark: #409631;

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --radius: 4px;
  --max: 1200px;
}

/* =========================================================
   RESET AND BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

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

/* =========================================================
   SITE STYLES: build below this line
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 760px; }

h1, h2 { font-weight: 800; font-stretch: 112%; color: var(--brand); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); line-height: 1.1; margin: 0 0 16px; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: .95rem; white-space: nowrap; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--brand); text-decoration: none; }
.logo img { width: 54px; height: 38px; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-stretch: 112%; font-size: 1.05rem; line-height: 1.1; }
.logo-name span { display: block; font-size: .8rem; color: var(--accent); }
.site-nav, .niceic, .call-full, .header-quote { display: none; }

.menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--brand); color: var(--brand-ink); }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.menu-panel a:first-child { border-top: 0; }

/* Hero: the navy "van" panel beside the real photo */
.hero { display: grid; background: var(--brand); color: var(--brand-ink); }
.hero-photo img { width: 100%; height: 280px; object-fit: cover; object-position: 50% 45%; }
.hero-text { padding: 40px 20px 48px; }
.hero h1 { color: var(--brand-ink); }
.lead { font-size: 1.15rem; margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-phone { display: inline-flex; align-items: center; min-height: 48px; color: var(--brand-ink); font-weight: 700; font-size: 1.15rem; }
.hero-creds { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .95rem; }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-intro { max-width: 640px; margin: 0 0 32px; font-size: 1.05rem; }

/* Services */
.service-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 28px 40px; }
.service-list li { border-top: 3px solid var(--brand); padding-top: 16px; }
.service-list h3 a { color: var(--brand); text-decoration: none; }
.service-list h3 a:hover { color: var(--accent); text-decoration: underline; }
.service-list p { margin: 0; color: var(--muted); }

/* Our work */
.work { display: grid; gap: 28px; align-items: center; }
.work img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.work p { margin: 0; max-width: 34em; }
.kicker { color: var(--accent); font-weight: 700; margin-bottom: 8px !important; }

/* Why choose us */
.why { display: grid; gap: 36px; }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { padding: 18px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons p { margin: 0; color: var(--muted); }
.certs { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.certs img { width: 186px; height: 61px; margin: 6px 0 16px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--line); font-weight: 600; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--mark);
  border-bottom: 3px solid var(--mark);
  transform: rotate(-45deg);
}

/* Service area */
.map { display: block; width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-note { margin: 14px 0 0; color: var(--muted); max-width: 640px; }

/* Contact and other navy sections */
.section-brand { background: var(--brand); color: var(--brand-ink); }
.section-brand h2 { color: var(--brand-ink); }
.section-brand a { color: var(--brand-ink); }
.contact { display: grid; gap: 32px; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
.contact-form {
  display: grid;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.contact-form a { color: var(--accent); }
.contact-form label { font-weight: 700; margin-top: 10px; }
.form-row { display: grid; gap: 6px; }
.form-row > div { display: grid; gap: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aab4c3;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.contact-form ::placeholder { color: var(--muted); }
.contact-form .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; margin-top: 16px; }
.contact-form .consent input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.contact-form .btn { justify-self: start; margin-top: 12px; }
.botcheck { display: none; }

/* Services page */
.page-head { background: var(--brand); color: var(--brand-ink); padding: 48px 0; }
.page-head h1 { color: var(--brand-ink); }
.page-head .lead { margin: 0; }
.service-detail { border-top: 3px solid var(--brand); padding: 18px 0 28px; }
.service-detail h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin-bottom: 8px; }
.service-detail p { margin: 0; }
.more-soon { color: var(--muted); margin: 8px 0 0; }
.cta p { margin: 0 0 24px; }

/* Privacy page */
.prose h2 { font-size: 1.4rem; margin: 32px 0 8px; }

/* Footer */
.site-footer { padding: 40px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: grid; gap: 16px; }
.footer-inner p { margin: 0; }
.footer-name { font-family: var(--font-head); font-weight: 800; font-stretch: 112%; color: var(--brand); }
.footer-links { display: grid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-bottom { padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Very narrow phones (320px): shrink the header so nothing overlaps */
@media (max-width: 359px) {
  .header-inner { gap: 6px; }
  .logo { gap: 6px; }
  .logo img { width: 40px; height: 28px; }
  .logo-name { font-size: .92rem; }
  .btn-small, .menu summary { padding: 0 10px; }
}

/* =========================================================
   WIDER SCREENS
   ========================================================= */
@media (min-width: 600px) {
  .header-quote { display: inline-flex; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 700px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-list li:last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .work { grid-template-columns: 1fr 1fr; gap: 56px; }
  .why { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .contact { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
  .map { height: 420px; }
}

@media (min-width: 1100px) {
  .logo-name { font-size: 1.2rem; }
  .site-nav { display: flex; gap: 24px; margin-right: 12px; }
  .site-nav a { color: var(--brand); font-weight: 700; text-decoration: none; }
  .site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
  .niceic { display: block; width: 98px; height: 32px; margin-right: 6px; }
  .call-short { display: none; }
  .call-full { display: inline; }
  .menu { display: none; }

  .hero { grid-template-columns: 1.1fr 1fr; min-height: 580px; }
  .hero-photo { order: 2; }
  .hero-photo img { height: 100%; }
  .hero-text { align-self: center; padding: 88px 56px 88px max(20px, calc((100vw - var(--max)) / 2 + 20px)); }

  .section { padding: 88px 0; }
  .page-head { padding: 80px 0; }
}
