/* Safe Haven Construction: mobile-first styles. Palette pulled from the logo. */
:root {
  --navy: #001f33;
  --navy-2: #0b2e47;
  --ocean: #066692;
  --deep: #004570;
  --gold: #e8a02e;
  --gold-dark: #b9781a;
  --sand: #f7f2e8;
  --mist: #eef4f8;
  --white: #ffffff;
  --ink: #1d2a33;
  --muted: #55636e;
  --line: #d9e3ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 31, 51, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: 52px; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: .02em; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 600; font-size: .66rem; letter-spacing: .28em; color: var(--ocean); text-transform: uppercase; margin-top: 3px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { position: absolute; inset: 72px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav a { display: block; padding: .8rem .25rem; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--mist); }
.site-nav a[aria-current="page"] { color: var(--ocean); }
.site-nav .btn { margin-top: 1rem; border-bottom: 0; text-align: center; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .8rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--mist); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
  .site-nav .btn { margin: 0 0 0 .6rem; padding: .6rem 1.1rem; }
}

/* Buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease; cursor: pointer; font-size: 1rem; font-family: var(--sans); }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy) !important; }
.btn-gold:hover { background: #f0b04a; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white) !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--white) !important; }
.btn-navy:hover { background: var(--navy-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { position: relative; color: var(--white); background: linear-gradient(170deg, var(--navy) 0%, var(--deep) 55%, var(--ocean) 100%); overflow: hidden; }
.hero-inner { display: grid; gap: 2rem; padding: 3.5rem 0 0; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.hero p.lead { font-size: 1.15rem; color: #d9e8f1; max-width: 36rem; }
.hero-art { align-self: end; }
.hero-art svg { width: 100%; max-width: 560px; margin-inline: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.hero-wave { display: block; width: 100%; height: 60px; margin-top: -30px; position: relative; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 4.5rem 0 0; }
}
.page-hero { background: linear-gradient(170deg, var(--navy), var(--deep)); color: var(--white); padding: 3.2rem 0 2.6rem; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { color: #d9e8f1; max-width: 42rem; font-size: 1.1rem; margin: 0; }

/* Sections */
section { padding: 4rem 0; }
.section-sand { background: var(--sand); }
.section-mist { background: var(--mist); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 rgba(0,31,51,.03); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin-bottom: .6rem; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--mist), #dcebf4); color: var(--deep); margin-bottom: 1rem; }
.icon svg { width: 28px; height: 28px; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " \2192"; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon { flex: none; margin: 0; background: var(--navy); color: var(--gold); }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; }

/* Service detail */
.service { display: grid; gap: 1.5rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service ul { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--muted); }
.service li { margin-bottom: .35rem; }
@media (min-width: 900px) { .service { grid-template-columns: 90px 1fr 1fr; align-items: start; } }
.service .icon { width: 72px; height: 72px; border-radius: 18px; }
.service .icon svg { width: 38px; height: 38px; }

/* Area */
.area-layout { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .area-layout { grid-template-columns: 1fr 1fr; } }
.towns { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.county-list { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .county-list { grid-template-columns: repeat(3, 1fr); } }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy), var(--deep)); color: var(--white); border-radius: 20px; padding: 2.4rem 1.6rem; display: grid; gap: 1.2rem; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: var(--white); margin-bottom: .3rem; }
.cta p { color: #d9e8f1; margin: 0; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; padding: 3rem; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; margin-bottom: .8rem; font-family: var(--serif); }
.step p { color: var(--muted); margin: 0; }

/* Contact */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.3fr 1fr; } }
form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: .8rem .9rem; border: 1px solid #b9c8d3; border-radius: 10px; background: var(--white); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232,160,46,.45); border-color: var(--ocean); }
textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem; display: none; }
.notice.show { display: block; }
.notice-info { background: #fff6e5; border: 1px solid #f3cf8e; color: #5b4210; }
.contact-card { align-self: start; background: var(--sand); border-radius: var(--radius); padding: 1.6rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .2rem 0 0; }
.todo { background: #fff2cc; color: #6b4b00; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 4px; vertical-align: middle; margin-left: .3rem; }

/* Prose */
.prose { max-width: 46rem; }
.prose p { color: #33424d; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b7c9d6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #dbe8f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.site-footer .license { font-size: .85rem; color: #93abbc; margin-top: .6rem; }
.license-note { font-size: .95rem; background: var(--mist); border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 6px; }
