/* Mobile-first: base styles are for phones; min-width queries add room for larger screens. */
:root {
  --navy: #0b2350;
  --blue-dark: #0d3b8c;
  --blue: #1a64c8;
  --blue-light: #3d9be9;
  --water: #5fb8f0;
  --lime: #a6d636;
  --lime-dark: #7fae1c;
  --ink: #1c2a3a;
  --muted: #55657a;
  --bg: #ffffff;
  --tint: #eef5fd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 35, 80, .12);
  --header-h: 64px;
  --callbar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* room for the fixed call bar on phones */
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons: full width and tall on phones for easy tapping */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .75em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-small { min-height: 44px; padding: .4em 1.1em; background: var(--blue); color: #fff; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e3ebf5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand img { height: 42px; width: auto; }

/* Menu button (phones only) */
.menu-toggle {
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 10px;
  background: var(--tint); color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e3ebf5;
  box-shadow: 0 12px 24px rgba(11, 35, 80, .12);
  padding: 8px 16px 16px;
}
.menu-open .nav { display: flex; }
.nav a:not(.btn) {
  display: block; padding: 14px 4px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid #eef2f7;
}
.nav .btn { margin-top: 12px; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 120%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(160deg, var(--blue-light) 0%, var(--blue) 45%, var(--blue-dark) 100%);
  padding: 36px 0 84px;
  overflow: hidden;
}
.hero-inner { display: grid; gap: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; opacity: .9; margin: 0 0 10px; }
.hero h1 { font-size: clamp(1.9rem, 8vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
.lime { color: var(--lime); }
.lead { font-size: 1.05rem; max-width: 34em; opacity: .95; }
.hero-actions { display: grid; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 14px; opacity: .85; font-size: .95rem; }
.hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 48px; color: var(--bg); }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(1.6rem, 6vw, 2.3rem); color: var(--navy); text-align: center; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 32px; font-size: 1.02rem; }
.why .section-title, .section-sub.left { text-align: left; margin-left: 0; }

/* Service cards */
.cards { display: grid; gap: 18px; }
.card {
  background: #fff;
  border: 1px solid #e3ebf5;
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card:nth-child(2) { border-top-color: var(--lime-dark); }
.card:nth-child(3) { border-top-color: var(--water); }
.card h3 { color: var(--navy); font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--tint); margin-bottom: 14px;
}
.icon svg { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Why */
.why { display: grid; gap: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  background: #fff; border-radius: 12px; padding: 14px 16px 14px 52px;
  position: relative; box-shadow: 0 4px 14px rgba(11, 35, 80, .07);
}
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2350' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checks strong { color: var(--navy); }

/* Recent work */
.recent { max-width: 760px; margin: 0 auto; text-align: center; }
.recent blockquote {
  margin: 0 0 24px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--tint), #fff);
  border-left: 6px solid var(--lime);
  text-align: left; font-size: 1.05rem;
}
.recent blockquote p { margin: 0 0 12px; }
.recent footer { color: var(--muted); font-size: .9rem; }
.fb-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
.fb-link svg { flex: none; width: 24px; height: 24px; fill: #1877f2; }

/* Contact */
.contact {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 70%, var(--navy) 100%);
  color: #fff; padding: 56px 0;
}
.contact-inner { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 800; }
.contact p { opacity: .9; font-size: 1.05rem; margin: 0; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px; padding: 14px 18px; color: #fff; text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-item .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); font-weight: 600; }
.contact-item .value { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.1rem; }

/* Request form */
.form-card {
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.form-card h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: .2em; }
.form-hint { color: var(--muted); font-size: .9rem; margin: 0 0 16px; opacity: 1; }
.req { color: #c0392b; }
.opt { color: var(--muted); font-weight: 400; font-size: .9em; }
.field-row { display: grid; gap: 0 16px; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; padding: 0; margin-bottom: 6px;
  font-weight: 600; color: var(--navy); font-size: .95rem;
}
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px stops iPhones zooming in on focus */
  color: var(--ink);
  background: #f7faff;
  border: 1.5px solid #c9d6e8; border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 100, 200, .2); background: #fff; }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: #c0392b; background: #fff6f5; }
.field input[type=file] {
  width: 100%; font-size: 15px; color: var(--muted);
  padding: 10px; border: 1.5px dashed #c9d6e8; border-radius: 10px; background: #f7faff;
}
.field input[type=file]::file-selector-button {
  font: 600 .95rem "Montserrat", sans-serif; margin-right: 12px;
  border: 0; border-radius: 8px; padding: 10px 14px; background: var(--tint); color: var(--navy); cursor: pointer;
}
.field-note { margin: 6px 0 0; font-size: .85rem; color: var(--muted); opacity: 1; }
.field-note.error, .form-status.error { color: #c0392b; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex !important; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 14px; margin: 0 !important;
  border: 1.5px solid #c9d6e8; border-radius: 10px; background: #f7faff;
  font-weight: 500 !important; color: var(--ink) !important; cursor: pointer;
}
.choice input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--tint); }
fieldset.invalid .choice { border-color: #c0392b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 4px 0 16px; min-height: 65px; }
.btn-submit { width: 100%; cursor: pointer; }
.btn-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; opacity: 1; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 12px; fill: none; stroke: var(--lime-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success p { color: var(--muted); opacity: 1; }
.form-success:focus { outline: none; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 0; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* Fixed call bar on phones */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--navy);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 10px;
  font-family: "Montserrat", sans-serif; font-weight: 700; text-decoration: none;
}
.callbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.callbar .call { background: var(--lime); color: var(--navy); }
.callbar .quote { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-card { max-width: 480px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px; }
}

/* ---------- Tablets & up ---------- */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .callbar, .menu-toggle { display: none; }

  .brand img { height: 56px; }
  .nav, .menu-open .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 22px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .nav a:not(.btn) { padding: 0; border: 0; font-size: .95rem; }
  .nav a:not(.btn):hover { color: var(--blue); }
  .nav .btn { margin-top: 0; }

  .hero { padding: 72px 0 120px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .lead { font-size: 1.15rem; }
  .hero-card { max-width: none; padding: 28px 24px; }
  .wave { height: 70px; }

  .section { padding: 80px 0; }
  .section-sub { margin-bottom: 40px; font-size: 1.05rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 28px; }
  .why { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .recent blockquote { padding: 32px; font-size: 1.15rem; }
  .contact { padding: 72px 0; }
  .contact-inner {
    grid-template-columns: 1fr 1.35fr;
    grid-template-areas: "intro form" "list form";
    grid-template-rows: auto 1fr;
    column-gap: 48px; row-gap: 28px;
    align-items: start;
  }
  .contact-intro { grid-area: intro; }
  .form-card { grid-area: form; padding: 32px; }
  .contact-list { grid-area: list; }
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* Hover effects only on devices that can hover */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-lime:hover { background: #b8e34a; }
  .btn-outline:hover { background: #fff; color: var(--blue-dark); }
  .btn-small:hover { background: var(--blue-dark); }
  a.contact-item:hover { background: rgba(255, 255, 255, .18); }
  .fb-link:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
