/* Complete Boat Repairs — concept site
   Colours and type follow the current site: blue #00589D, Josefin Sans headings, Roboto body,
   with the orange and red from the logo as accents. */

:root {
  --blue: #00589d;
  --blue-dark: #00406f;
  --navy: #0a1f33;
  --ink: #16212b;
  --muted: #55636f;
  --line: #dbe3ea;
  --sand: #f4f1ea;
  --mist: #eef4f9;
  --white: #ffffff;
  --orange: #f08a1c;
  --red: #d63a2f;
  --ok: #1f7a4d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.10);
  --wrap: 1160px;
  --head: "Josefin Sans", "Trebuchet MS", sans-serif;
  --body: "Roboto", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Concept strip */
.concept-strip {
  background: var(--navy);
  color: #cfe0ee;
  font-size: 13.5px;
  text-align: center;
  padding: 7px 16px;
}
.concept-strip strong { color: var(--white); letter-spacing: .04em; }
.concept-strip a { color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand .b1 { font-family: var(--head); color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.brand .b2 { font-family: var(--head); color: var(--blue); font-weight: 700; font-size: 26px; letter-spacing: .02em; }
.brand .b2 span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--head); font-weight: 600; font-size: 16.5px;
  color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--mist); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1;
  padding: 15px 22px 13px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ff9d36; color: var(--navy); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-sm { font-size: 15px; padding: 11px 16px 9px; }

/* Hero */
.hero {
  position: relative; color: var(--white); background: var(--navy);
  min-height: 560px; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,31,51,.92) 0%, rgba(10,31,51,.72) 45%, rgba(10,31,51,.25) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 70px; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; color: #dbe8f3; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: #cfe0ee; font-size: 15px; }
.hero-facts li::before { content: "✓ "; color: var(--orange); font-weight: 700; }

.page-hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p { color: #d3e3f0; max-width: 60ch; font-size: 1.12rem; }
.page-hero .hero-actions { margin-top: 20px; }
.crumbs { font-size: 14px; color: #9db8cf; margin-bottom: 14px; }
.crumbs a { color: #cfe0ee; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--mist); }
.section-sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Insurance band */
.claims-band { background: var(--blue); color: var(--white); padding: 56px 0; }
.claims-band h2 { color: var(--white); }
.claims-band p { color: #dcebf7; }
.claims-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.insurers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.insurer {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.2rem;
}
.insurer small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--mist); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 16px; }
.card-body .more { margin-top: auto; font-family: var(--head); font-weight: 700; text-decoration: none; }
.card.feature { border: 2px solid var(--orange); }
.tag { display: inline-block; background: var(--orange); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px 2px; border-radius: 4px; margin-bottom: 10px; align-self: flex-start; }

/* Why us */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.why-list li { padding-left: 38px; position: relative; }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}
.why-list strong { display: block; font-family: var(--head); font-size: 1.12rem; color: var(--navy); }
.why-list span { color: var(--muted); font-size: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.wide { grid-template-columns: repeat(3, 1fr); }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.ba img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ba figcaption {
  position: absolute; left: 10px; top: 10px; background: var(--navy); color: var(--white);
  font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px 3px; border-radius: 4px;
}
.ba figure:last-child figcaption { background: var(--ok); }
.ba-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 9px; color: var(--blue); font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 20px 18px; color: var(--muted); }

/* Service detail blocks */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc:nth-of-type(even) .svc-media { order: 2; }
.svc-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--mist); }
.svc ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.svc ul li { margin-bottom: 4px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; border: 1px solid rgba(255,255,255,.25); }
.jump a:hover { background: rgba(255,255,255,.2); }

/* Visit / contact */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.visit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.visit-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; }
.visit-card dt { font-family: var(--head); font-weight: 700; color: var(--navy); }
.visit-card dd { margin: 0; color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.map-box {
  border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--mist);
  border: 1px solid var(--line);
}
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfe0ee; max-width: 56ch; margin: 0 auto 22px; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: #071624; color: #a9bfd2; font-size: 15px; padding: 48px 0 24px; }
.site-footer a { color: #dbe8f3; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: 13.5px; color: #8aa3b9; }

/* Quote form */
.form-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.progress { display: flex; background: var(--mist); border-bottom: 1px solid var(--line); }
.progress span {
  flex: 1; text-align: center; font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--muted);
  padding: 14px 4px 11px; border-bottom: 3px solid transparent;
}
.progress span.on { color: var(--blue); border-bottom-color: var(--blue); }
.progress span.done { color: var(--ok); }
.step { display: none; padding: 28px; }
.step.active { display: block; }
.step h2 { font-size: 1.6rem; }
.step .hint { color: var(--muted); font-size: 15.5px; margin-top: -4px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend, .lbl { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; display: block; padding: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt-grid.three { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt label {
  display: block; border: 1.5px solid var(--line); border-radius: 9px; padding: 13px 14px; cursor: pointer;
  font-weight: 500; font-size: 15.5px; background: var(--white); height: 100%;
}
.opt label small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
.opt input:checked + label { border-color: var(--blue); background: var(--mist); box-shadow: inset 0 0 0 1px var(--blue); }
.opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; color: var(--navy); }
.field .opt-note { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=number], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0,88,157,.15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reveal { display: none; background: var(--mist); border-radius: 10px; padding: 18px 18px 4px; margin: -6px 0 20px; border-left: 4px solid var(--blue); }
.reveal.show { display: block; }
.drop {
  border: 2px dashed #b7c7d5; border-radius: 12px; padding: 26px; text-align: center; background: var(--mist); cursor: pointer; position: relative;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { font-family: var(--head); color: var(--navy); font-size: 1.1rem; }
.drop p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.shot-list { font-size: 14.5px; color: var(--muted); margin: 12px 0 0; padding-left: 1.1em; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; padding: 18px 28px 26px; border-top: 1px solid var(--line); }
.err { color: var(--red); font-size: 14.5px; margin-top: 8px; display: none; }
.err.show { display: block; }
.aside-card { background: var(--sand); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card p, .aside-card li { font-size: 15.5px; color: var(--muted); }
.big-phone { font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--blue); text-decoration: none; }

/* Concept modal */
.modal { position: fixed; inset: 0; background: rgba(7,22,36,.72); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 80; }
.modal.show { display: flex; }
.modal-box { background: var(--white); border-radius: 14px; max-width: 560px; width: 100%; padding: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.modal-box .tag { margin-bottom: 14px; }
.modal-box ul { color: var(--muted); padding-left: 1.1em; }
.summary { background: var(--mist); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; margin: 14px 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary b { color: var(--navy); }

/* Mobile sticky call bar */
.callbar { display: none; }

@media (max-width: 980px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .claims-grid, .form-shell, .visit, .svc { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .svc-media { order: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-block; }
  .header-cta .btn-call { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 54px 0; }
  .wrap { padding: 0 16px; }
  .grid-3, .grid-2, .steps, .why-list, .ba, .row-2, .foot-grid { grid-template-columns: 1fr; }
  .gallery, .gallery.wide { grid-template-columns: 1fr 1fr; }
  .opt-grid, .opt-grid.three { grid-template-columns: 1fr; }
  .insurers { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 520px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .step { padding: 22px 18px; }
  .form-nav { padding: 16px 18px 22px; }
  .progress span { font-size: 11.5px; }
  .visit-card dl { grid-template-columns: 1fr; gap: 2px; }
  .visit-card dd { margin-bottom: 10px; }
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; gap: 8px; padding: 10px 12px;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
  .callbar .btn { flex: 1; padding: 13px 10px 11px; font-size: 15.5px; }
  .site-footer { padding-bottom: 90px; }
}
