:root {
  --navy: #0E2A63;
  --navy-dark: #09204E;
  --blue: #1C6FD0;
  --blue-dark: #1558A8;
  --ink: #10203F;
  --ink-2: #16253A;
  --body: #43515F;
  --body-2: #33414F;
  --muted: #5B6B7C;
  --page: #F7FBFE;
  --band: #E8F2FB;
  --panel: #F2F8FD;
  --line: #D3E3F2;
  --line-2: #C9DCEE;
  --line-3: #BBD2E8;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
input, textarea, select, button { font-family: inherit; }

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

.wrap { max-width: 1060px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-dark); color: #FFFFFF; }
.btn-blue { background: var(--blue); color: #FFFFFF; }
.btn-blue:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--band); color: var(--ink); }
.btn-ghost {
  background: #FFFFFF; border: 1.5px solid var(--line-3); color: var(--ink);
  min-height: 48px; padding: 0 22px; font-size: 16px;
}
.btn-ghost:hover { background: var(--band); color: var(--ink); }

.btn-sm { min-height: 50px; padding: 0 26px; font-size: 17px; }
.btn-lg { min-height: 58px; padding: 0 18px; font-size: 18px; flex: 1 1 0; min-width: 0; }
.btn-xl { min-height: 62px; padding: 0 34px; font-size: 19px; flex: 1 1 320px; }
.btn-bar { flex: 1; min-height: 60px; border-radius: 14px; font-size: 19px; }
.btn-bar:active { background: var(--navy-dark); }
.btn-blue.btn-bar:active { background: var(--blue-dark); }

.btn[disabled] { opacity: .65; cursor: default; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 246, 253, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.brand { min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; white-space: nowrap;
}
.header-actions { display: flex; gap: 10px; flex: none; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: #DCE9F5; }

.bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-scrim, .contact-scrim { position: absolute; inset: 0; pointer-events: none; }

.hero-scrim {
  background: linear-gradient(180deg, rgba(247,251,254,.95) 0%, rgba(247,251,254,.93) 60%, rgba(247,251,254,.88) 100%);
}
.contact-scrim {
  background: linear-gradient(180deg, rgba(247,251,254,.97) 0%, rgba(247,251,254,.95) 18%, rgba(247,251,254,.93) 100%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 76px);
}
.hero-copy { max-width: 620px; }

.hero-copy h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.hero-lede {
  font-size: clamp(16px, 1.9vw, 18px); line-height: 1.45;
  color: var(--body); margin: 0 0 20px; max-width: 46ch; text-wrap: pretty;
}
.hero-kicker {
  font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--body-2);
}
.hero-phone {
  display: block; font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin: 4px 0 14px;
}
.hero-phone:hover { color: var(--navy); }
.hero-buttons { display: flex; gap: 10px; flex-wrap: nowrap; }

/* ---------- Services ---------- */

.services {
  padding-top: clamp(18px, 2.6vw, 30px);
  padding-bottom: clamp(16px, 2.2vw, 26px);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: clamp(10px, 1.3vw, 14px);
  max-width: 820px;
}
.cat-media { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}
.cat-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.cat-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }

.note-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; margin-top: 12px; max-width: 820px;
}
.note {
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel); font-size: 16px; line-height: 1.5; color: var(--ink-2);
}
.note-wide { margin-top: 12px; max-width: 820px; }
.note-small { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 8px; }

/* ---------- Bands ---------- */

.band { background: var(--band); border-top: 1px solid var(--line); }
.band > .wrap { padding-top: clamp(20px, 2.6vw, 34px); padding-bottom: clamp(20px, 2.6vw, 34px); }
.band-tight { border-bottom: 1px solid var(--line); }
.band-tight > .wrap { padding-top: clamp(14px, 1.8vw, 22px); padding-bottom: clamp(14px, 1.8vw, 22px); }

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 2.9vw, 32px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 clamp(12px, 1.8vw, 18px);
}
.section-title-sm { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.section-subtitle {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2.3vw, 25px); letter-spacing: -0.02em;
  margin: clamp(14px, 1.8vw, 20px) 0 4px;
}

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.step {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.step-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.step-num { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--blue); }
.step-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.step p { font-size: 15px; line-height: 1.45; color: var(--body); margin: 0; }

.included {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 36px;
}
.included li {
  font-size: 16px; line-height: 1.45; color: var(--ink-2);
  padding: 8px 0; border-bottom: 1px solid #DCE8F3;
}
.included li.no-rule { border-bottom: none; }

/* ---------- Owner ---------- */

.owner {
  padding-top: clamp(22px, 2.8vw, 38px);
  padding-bottom: clamp(22px, 2.8vw, 38px);
  display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 34px); align-items: start;
}
.owner-copy { flex: 1 1 380px; min-width: 0; }
.owner-copy p {
  font-size: 16px; line-height: 1.5; color: var(--body-2);
  margin: 0 0 10px; max-width: 58ch; text-wrap: pretty;
}
.owner-copy p:last-child { margin-bottom: 0; }
.owner-photo { flex: 0 1 190px; min-width: 0; }
.owner-photo img {
  width: 100%; max-width: 190px; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 16px;
}

/* ---------- Service area ---------- */

.area { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.2vw, 28px); align-items: center; }
.area-copy { flex: 1 1 320px; min-width: 0; }
.area-copy p {
  font-size: 16px; line-height: 1.5; color: var(--body-2);
  margin: 0; max-width: 78ch; text-wrap: pretty;
}
.area-photo { flex: 0 1 190px; min-width: 0; }
.area-photo img {
  width: 100%; max-width: 190px; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 14px;
}

/* ---------- Contact ---------- */

.contact { position: relative; overflow: hidden; }
.contact-inner {
  position: relative;
  padding-top: clamp(22px, 2.8vw, 38px);
  padding-bottom: clamp(22px, 2.8vw, 38px);
}
.contact-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.contact-lede { font-size: 17px; color: var(--body); margin: 0 0 6px; max-width: 56ch; }
.contact-lede-muted { color: var(--muted); margin-bottom: clamp(18px, 2.6vw, 28px); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.field {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--body-2);
}
.field input, .field textarea {
  font-size: 16px; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #FFFFFF; color: var(--ink); font-weight: 400;
}
.field input { min-height: 50px; }
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #B3261E; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-error {
  font-size: 15px; color: #B3261E; margin: 0;
  background: #FCEDEC; border: 1px solid #F3C7C3; border-radius: 10px; padding: 12px 14px;
}

.form-actions {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 32px);
  align-items: center; justify-content: space-between; margin-top: 8px;
}
.form-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.form-alt-label { font-size: 15px; color: var(--muted); }
.form-alt-buttons { display: flex; gap: 8px; }

.form-success {
  background: #FFFFFF; border: 1px solid var(--line-2); border-left: 4px solid #1F7A4D;
  border-radius: 12px; padding: 20px 22px; max-width: 640px;
}
.form-success h3 {
  font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 6px; color: var(--ink);
}
.form-success p { font-size: 16px; line-height: 1.5; color: var(--body-2); margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: #DCE9F2; color: #33505F; border-top: 1px solid #C6DAE8; }
.footer-inner {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
}
.footer-name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.footer-sub { font-size: 15px; margin-top: 6px; color: #4C6676; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer-phone { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-contact a { color: #33505F; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Mobile call bar ---------- */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(247, 251, 254, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

/* ---------- Desktop contact popover ---------- */

.popover {
  position: fixed; z-index: 200;
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(16, 32, 63, .18);
  padding: 14px 16px; min-width: 232px;
}
.popover[hidden] { display: none; }
.popover-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.popover-number {
  font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; color: var(--ink);
}
.popover-copy {
  margin-top: 10px; width: 100%; min-height: 42px;
  border-radius: 999px; border: 1.5px solid var(--line-3); background: #FFFFFF;
  color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.popover-copy:hover { background: var(--band); }

/* ---------- Responsive ---------- */

.desktop-only { display: none; }
.mobile-only { display: flex; }

@media (min-width: 860px) {
  .desktop-only { display: flex; }
  .mobile-only { display: none; }

  .hero-scrim {
    background: linear-gradient(100deg, rgba(247,251,254,.97) 0%, rgba(247,251,254,.93) 42%, rgba(247,251,254,.55) 68%, rgba(247,251,254,.12) 100%);
  }
}

/* room for the fixed mobile bar */
@media (max-width: 859.98px) {
  body { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
