/* Tidewater theme: water damage restoration (Oct 2026).
   Layout modelled on the Ippei local-service sites: navy hero with the estimate
   form beside the heading, cream section bands, sub-service blocks, numbered
   process, cost table, FAQ last. Re-skin per niche by changing the tokens only. */

:root {
  --navy: #0b2e40;
  --navy-2: #123f57;
  --teal: #15607a;
  --aqua: #2fb5b8;
  --aqua-soft: #dcf1f0;
  --cream: #f7f2ee;
  --paper: #fbf9f6;
  --white: #ffffff;
  --ink: #1c1c1c;
  --ink-2: #4a4f55;
  --rule: #e2dcd4;
  --orange: #c2410c;
  --orange-hi: #a9380a;
  --head: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Utility strip */
.utility { background: var(--navy); color: #d8e6ec; font: 600 .82rem/1 var(--head); letter-spacing: .02em; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.utility .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 700px) { .utility .addr { display: none; } }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 1.02rem/1.15 var(--head); max-width: 300px; }
.brand svg { flex: none; }
.brand small { display: block; font-weight: 600; font-size: .74rem; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; font: 600 .95rem/1 var(--head); }
.nav > a, .nav .dd > button { color: var(--ink); text-decoration: none; padding: 12px 12px; background: none; border: 0; font: inherit; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover { color: var(--teal); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -1px; }
.dd-panel { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--aqua); padding: 14px 6px; min-width: 260px; box-shadow: 0 10px 24px rgba(11,46,64,.12); }
.dd-panel.cols { display: none; grid-template-columns: 1fr 1fr; min-width: 560px; left: -140px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { display: block; }
.dd:hover .dd-panel.cols, .dd:focus-within .dd-panel.cols, .dd.open .dd-panel.cols { display: grid; }
.dd-panel a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.dd-panel a:hover { background: var(--cream); color: var(--teal); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); padding: 9px 12px; font: 700 .9rem/1 var(--head); color: var(--navy); border-radius: 2px; }

.btn-call, .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 800 1rem/1 var(--head); text-decoration: none; letter-spacing: .01em;
  padding: 15px 22px; border-radius: 3px; border: 0; cursor: pointer;
}
.btn-call { background: var(--orange); color: var(--white); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28); }
.btn-call:hover { background: var(--orange-hi); color: var(--white); }
.btn { background: var(--navy); color: var(--white); box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.btn:hover { background: var(--teal); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.site-header .btn-call { padding: 12px 16px; font-size: .95rem; }

@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; max-height: 75vh; overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 13px 4px; text-align: left; width: 100%; border-bottom: 1px solid var(--rule); }
  .dd-panel, .dd-panel.cols { position: static; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 8px 10px; grid-template-columns: 1fr; }
  .dd:hover .dd-panel, .dd:focus-within .dd-panel { display: none; }
  .dd:hover .dd-panel.cols, .dd:focus-within .dd-panel.cols { display: none; }
  .dd.open .dd-panel { display: block; }
  .dd.open .dd-panel.cols { display: grid; }
  .site-header .btn-call { display: none; }
}

/* Hero */
.hero { background: var(--navy); color: #e6eff3; position: relative; overflow: hidden; }
.hero::after { /* faint water-line pattern; takes no space */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(170deg, transparent 0 22px, var(--aqua) 22px 23px);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 48px; padding-top: 56px; padding-bottom: 60px; align-items: start; }
.hero h1 { color: var(--white); }
.hero .eyebrow { font: 700 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 18px; }
.hero .sub { font-size: 1.15rem; color: #d3e2e9; max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font: 600 .98rem/1.4 var(--head); color: #e6eff3; }
.hero .ticks li::before { content: ""; display: inline-block; width: 16px; height: 2px; background: var(--aqua); margin-right: 12px; vertical-align: 5px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 44px; } }

/* Estimate form card */
.estimate { background: var(--white); color: var(--ink); border-radius: 3px; border-top: 5px solid var(--aqua); padding: 26px 26px 22px; }
.estimate h2, .estimate .estimate-title { font: 800 1.35rem/1.2 var(--head); color: var(--navy); margin: 0 0 4px; }
.estimate p.note { font-size: .92rem; color: var(--ink-2); margin-bottom: 16px; }
.estimate label { display: block; font: 700 .82rem/1.2 var(--head); color: var(--navy); margin: 0 0 5px; }
.estimate input, .estimate select, .estimate textarea {
  width: 100%; font: 400 1rem/1.4 var(--head); color: var(--ink);
  border: 1px solid #b9b2a8; border-radius: 2px; padding: 11px 12px; margin-bottom: 13px; background: var(--white);
}
.estimate textarea { min-height: 84px; resize: vertical; }
.estimate .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.estimate button { width: 100%; justify-content: center; }
.estimate .or { text-align: center; font: 600 .9rem/1.4 var(--head); color: var(--ink-2); margin: 12px 0 0; }
.estimate .or a { color: var(--orange); font-weight: 800; }
@media (max-width: 420px) { .estimate .row2 { grid-template-columns: 1fr; } }

/* Sections */
.band { padding: 72px 0; }
.band.cream { background: var(--cream); }
.band.white { background: var(--white); }
.band.navy { background: var(--navy-2); color: #e6eff3; }
.band.navy h2, .band.navy h3 { color: var(--white); }
.band.navy a { color: var(--aqua); }
.kicker { display: block; font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--aqua); margin-right: 10px; vertical-align: 3px; }
.band.navy .kicker { color: var(--aqua); }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; }
.band.navy .sec-head p { color: #cfdee5; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { border-left: 3px solid var(--aqua); margin: 1.4em 0; padding: 2px 0 2px 18px; color: var(--ink-2); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; }
.prose .cta { font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 56px; align-items: start; }
.split.rev > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { border-radius: 2px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }

/* Top-rule blocks: sub-services, damage types, why-us */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px 48px; }
.blocks.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.block { border-top: 3px solid var(--navy); padding-top: 18px; }
.band.navy .block { border-top-color: var(--aqua); }
.block h3 { margin-bottom: .5em; }
.block p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .blocks, .blocks.three { grid-template-columns: 1fr; gap: 28px; } }

/* Dash list (why-us) */
.dash { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dash li { position: relative; padding-left: 30px; font: 600 1.02rem/1.45 var(--head); color: var(--ink); }
.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: 18px; height: 2px; background: var(--aqua); }
.dash.cols { grid-template-columns: 1fr 1fr; column-gap: 40px; }
.band.navy .dash li { color: #e6eff3; }
@media (max-width: 700px) { .dash.cols { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 14px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.9rem/1 var(--head); color: var(--aqua); -webkit-text-stroke: 0; margin-bottom: 12px; letter-spacing: -.02em; }
.band.navy .steps li { border-top-color: rgba(255,255,255,.2); }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: 1rem; }
.steps .lbl { display: block; font: 700 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.band.navy .steps .lbl { color: var(--aqua); }
@media (max-width: 1000px) { .steps, .steps.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .steps.five { grid-template-columns: 1fr; } }

/* Cost table */
.cost { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 48px; align-items: start; }
.cost table { width: 100%; border-collapse: collapse; background: var(--white); font: 400 1rem/1.4 var(--head); }
.cost th { text-align: left; font: 800 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--navy); padding: 13px 16px; }
.cost td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cost td:first-child { width: 44%; }
.cost td:last-child { font-weight: 700; color: var(--navy); }
.cost .fine { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .cost { grid-template-columns: 1fr; gap: 24px; } .cost td:last-child { white-space: normal; } }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 700 1.1rem/1.35 var(--head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.7rem/1 var(--head); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 20px; max-width: var(--measure); }
.faq .ans p:last-child { margin-bottom: 0; }

/* Cards (services grid, areas, posts) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 24px 22px; background: var(--white); text-decoration: none; color: var(--ink); display: block; }
.card:hover { background: var(--aqua-soft); color: var(--ink); }
.card h3 { font-size: 1.08rem; margin-bottom: .45em; }
.card p { font-size: .97rem; color: var(--ink-2); margin: 0; }
.card .more { display: inline-block; margin-top: 10px; font: 700 .85rem/1 var(--head); color: var(--teal); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 9px 14px; border: 1px solid var(--rule); background: var(--white); border-radius: 2px; text-decoration: none; font: 600 .92rem/1.2 var(--head); color: var(--navy); }
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.chips span { display: inline-block; padding: 9px 14px; font: 600 .92rem/1.2 var(--head); color: var(--ink-2); }

/* Area facts box */
.factbox { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--teal); padding: 24px; }
.factbox h3 { font-size: 1.05rem; }
.factbox p { font-size: 1rem; }

/* Map */
.map { border: 1px solid var(--rule); background: var(--white); }
.map h3 { font-size: 1rem; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Closing CTA */
.closer { background: var(--teal); color: var(--white); padding: 56px 0; }
.closer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closer h2 { color: var(--white); margin-bottom: 6px; }
.closer p { margin: 0; color: #e3f1f4; font-size: 1.08rem; }

/* Blog */
.byline { font: 600 .92rem/1.4 var(--head); color: #cfdee5; margin: 0 0 18px; }
.byline span + span::before { content: "\00b7"; margin: 0 10px; }
.excerpt { border-left: 3px solid var(--aqua); padding-left: 16px; color: #d3e2e9; font-style: italic; max-width: 64ch; }
.post-cta { background: var(--cream); border-top: 4px solid var(--aqua); padding: 26px; margin-top: 36px; max-width: var(--measure); }
.post-cta h3 { margin-bottom: .4em; }
.meta-line { font: 600 .85rem/1.4 var(--head); color: var(--teal); margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d9e0; padding: 64px 0 0; font-size: .97rem; }
.site-footer a { color: #e6eff3; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1.2fr .9fr; gap: 40px; }
.foot-grid h2 { font: 800 .82rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; line-height: 1.35; font-family: var(--head); font-size: .93rem; }
.foot-brand { font: 800 1.1rem/1.3 var(--head); color: var(--white); margin-bottom: 10px; }
.foot-nap { font-style: normal; font-family: var(--head); line-height: 1.6; }
.foot-nap a { font-weight: 800; font-size: 1.15rem; color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding: 20px 0 28px; font: 400 .85rem/1.4 var(--head); color: #9fb6c0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--orange); color: var(--white); justify-content: center; align-items: center; gap: 10px; padding: 15px 16px calc(15px + env(safe-area-inset-bottom)); font: 800 1.05rem/1 var(--head); text-decoration: none; box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
  .callbar:hover { color: var(--white); }
  body { padding-bottom: 60px; }
}
.nearby { padding-left: 1.1em; font: 400 .95rem/1.45 var(--head); color: var(--ink-2); }
.nearby li { margin-bottom: 6px; }
.nearby a { font-weight: 700; }
.band.navy .kicker, .band.navy .steps .lbl { color: #63d3d5; }
.foot-bottom a { text-decoration: underline; }
.site-footer .callbar, .site-footer .callbar:hover { color: #fff; text-decoration: none; }
.band.navy a { color: #63d3d5; }
.prose .kicker + h2, .kicker + h2 { margin-top: 0; }

/* Photos */
.brand img { flex: none; width: 34px; height: 34px; }
.block.has-fig { border-top: 0; padding-top: 0; }
.block-fig { margin: 0 0 16px; border-bottom: 3px solid var(--navy); }
.block-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wide-fig { margin: 0 0 40px; }
.wide-fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
.intro-fig { margin: 0 0 28px; }
.intro-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
@media (max-width: 700px) { .wide-fig img { aspect-ratio: 3 / 2; } }
.local-fig { margin: 0; }
.local-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.split .intro-fig { margin: 0 0 28px; }
.side-fig { margin-top: 28px; }
