/* Boat Doctors Mobile Repair — site styles */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --sea: #0e7c86;
  --sea-light: #e6f4f5;
  --accent: #e8590c;
  --accent-dark: #c2410c;
  --ink: #1b2430;
  --muted: #55606e;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sea); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sea); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfe0f1; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .topbar span:first-child { display: none; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav li { position: relative; margin: 0; }
.nav a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sea); background: var(--sea-light); }
.nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%;
  min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; }
.nav-call { margin-left: 8px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 100px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav-call { margin: 16px 0 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, #1d5f8a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0d3b5e 55%, var(--sea) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 120px; }
.hero h1 { color: #fff; }
.hero p.lead { color: #d6e6f3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #d6e6f3; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-points svg { width: 18px; height: 18px; color: #7ee0d6; }
.hero-art svg { width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; color: #fff; }
.hero.small .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 96px; }
.hero.small h1 { max-width: 880px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 96px; gap: 24px; }
  .hero-art { display: none; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; color: #b9d0e4; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumbs a { color: #fff; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--sea); }
.card p { color: var(--muted); flex: 1; }
.card .more { font-weight: 700; text-decoration: none; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--sea-light); color: var(--sea); display: grid; place-items: center; margin-bottom: 16px; }
.icon-badge svg { width: 28px; height: 28px; }

.area-card { text-decoration: none; text-align: center; padding: 22px 16px; }
.area-card strong { display: block; color: var(--navy); font-size: 1.08rem; }
.area-card span { color: var(--muted); font-size: .9rem; }
.area-card:hover { border-color: var(--sea); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: 1.15rem;
}

/* Content pages */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul.checks { list-style: none; padding: 0; }
.prose ul.checks li { padding-left: 30px; position: relative; }
.prose ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sea-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cols-2 { columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .cols-2 { columns: 1; } }

.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.side-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; }
.side-cta h2, .side-cta h3 { color: #fff; font-size: 1.3rem; }
.side-cta p { color: #cfe0f1; }
.side-cta .btn { width: 100%; margin-top: 6px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); margin: 0; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 10px 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--sea); }

.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--bg-alt); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #f08c00 100%); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #fff3e6; }
.cta-band .btn-dark { font-size: 1.1rem; padding: 16px 28px; }

/* Form */
.quote-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .quote-wrap { grid-template-columns: 1fr; } }
.quote-info ul { list-style: none; padding: 0; }
.quote-info li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.quote-info li svg { width: 22px; height: 22px; color: var(--sea); flex: none; margin-top: 3px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c5ced8;
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14,124,134,.25); border-color: var(--sea); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; font-size: 1.05rem; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-status { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.ok { display: block; background: #e7f7ee; color: #146c3c; }
.form-status.err { display: block; background: #fdecea; color: #a12a1b; }

/* Footer */
.site-footer { background: #071a31; color: #b6c6d8; font-size: .95rem; padding: 60px 0 100px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer a { color: #dbe7f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-phone { font-size: 1.4rem; font-weight: 800; color: #fff !important; }
.footer-bottom { border-top: 1px solid #1d3553; margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Mobile sticky call bar */
.mobile-callbar { display: none; }
@media (max-width: 760px) {
  .mobile-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-callbar .btn { flex: 1; padding: 13px 10px; }
}

/* Google rating + reviews */
.stars { position: relative; display: inline-block; font-size: 1.1rem; line-height: 1; letter-spacing: 2px; color: #c9d2dc; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: #f5a623; white-space: nowrap; }
.rating-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.rating-badge:hover strong { text-decoration: underline; }
.hero-rating { margin-top: 18px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; }
.hero-rating:hover { color: #fff; }
.side-rating { margin-top: 16px; color: #fff; }
.side-rating:hover { color: #fff; }
.section-rating { margin-top: 4px; }
.review-card { margin: 0; }
.review-card blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); flex: 1; }
.review-card figcaption { font-weight: 700; color: var(--navy); font-size: .92rem; }
.review-card figcaption::before { content: "— "; color: var(--muted); }

/* Support Our Troops page */
.owner-note { margin: 0 0 1.2em; padding: 22px 26px; background: var(--sea-light); border-left: 4px solid var(--sea); border-radius: 0 var(--radius) var(--radius) 0; }
.owner-note p { font-size: 1.1rem; color: var(--navy); margin-bottom: .6em; }
.owner-note footer, .pull-quote footer { font-weight: 700; color: var(--muted); font-size: .92rem; }
.owner-note footer::before, .pull-quote footer::before { content: "— "; }
.pull-quote { margin: 40px 0 16px; padding: 0 0 0 22px; border-left: 4px solid var(--accent); }
.pull-quote p { font-size: 1.2rem; font-style: italic; color: var(--navy); margin-bottom: .5em; }
.closing-line { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
