/* Melbourne Dock Repair — single stylesheet, mobile-first */
:root {
  --brand: #0a3a52;
  --brand-deep: #062536;
  --brand-mid: #166878;
  --brand-light: #1a8a9a;
  --sand: #f6f3ec;
  --cream: #fbfaf7;
  --ink: #14232b;
  --muted: #4d5e68;
  --line: #e4ddd2;
  --cta: #c45c14;
  --cta-hover: #a44b0e;
  --cta-ink: #fff;
  --ok: #1b6b52;
  --white: #fff;
  --shadow: 0 10px 30px rgba(10, 58, 82, 0.12);
  --radius: 14px;
  --max: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px rgba(196, 92, 20, 0.4);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-mid); }
a:hover { color: var(--brand); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cta);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.logo:hover { color: #fff; }
.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}
.logo-text { font-size: 0.95rem; }
.logo-text span { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.8; letter-spacing: 0.02em; }

.nav {
  display: none;
  gap: 1.15rem;
  align-items: center;
}
.nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}
.nav a:hover, .nav a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--sand); color: var(--brand); }
.btn-lg { padding: 0.95rem 1.45rem; font-size: 1.05rem; }
.header-call { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(26, 143, 134, 0.28), transparent 60%),
    linear-gradient(165deg, var(--brand-deep) 0%, var(--brand) 55%, #0e4d55 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 3rem;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1' d='M0 40c10-16 20-16 30 0s20 16 30 0 20-16 30 0'/%3E%3C/svg%3E");
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ee4d8;
  margin: 0 0 0.7rem;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lede {
  margin: 0 0 1.4rem;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 38rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; }
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.hero-points svg { flex: 0 0 20px; margin-top: 2px; }

/* Form card */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: var(--shadow);
}
.form-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.form-card .form-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.form {
  display: grid;
  gap: 0.75rem;
}
.form-row { display: grid; gap: 0.75rem; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.req { color: var(--cta); }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(20, 107, 107, 0.18);
  background: #fff;
}
textarea { min-height: 92px; resize: vertical; }
.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--muted); }
.form button { width: 100%; margin-top: 0.2rem; }

/* Sections */
section { padding: 3.25rem 0; }
.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--brand-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

.services { background: var(--sand); }
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
}
.card h3 { margin: 0.7rem 0 0.4rem; font-size: 1.08rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e8f4f2;
  color: var(--brand-mid);
  display: grid;
  place-items: center;
}

.steps { background: var(--cream); }
.step-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.2rem 1.3rem;
  position: relative;
}
.step-list h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.areas { background: #fff; }
.area-grid {
  display: grid;
  gap: 0.85rem;
}
.area-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.area-card:hover, .area-card:focus-visible {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: inherit;
  outline: none;
}
.area-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.area-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.area-card .more { margin-top: 0.55rem; font-weight: 700; font-size: 0.88rem; color: var(--brand-mid); }

.why { background: var(--brand-deep); color: #fff; }
.why .section-kicker { color: #9ee4d8; }
.why .section-lead { color: rgba(255,255,255,0.8); }
.why-grid { display: grid; gap: 1rem; }
.why-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.why-item p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.faq { background: var(--sand); }
.faq-list { display: grid; gap: 0.7rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-top: -4px;
  transition: transform 0.15s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
details p { margin: 0 0 1rem; color: var(--muted); }

.final-cta {
  background:
    linear-gradient(165deg, var(--brand) 0%, #0e4d55 100%);
  color: #fff;
  text-align: center;
  padding: 3.4rem 0;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); margin: 0 auto 1.3rem; max-width: 34rem; }
.final-cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* Town page */
.page-hero {
  background: var(--brand);
  color: #fff;
  padding: 2.4rem 0 2.2rem;
}
.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.crumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin: 0 0 0.8rem; }
.crumb a { color: #9ee4d8; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.content-split { display: grid; gap: 2rem; padding: 2.6rem 0 3rem; }
.prose h2 { margin-top: 1.8rem; }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 1.15rem; }

/* Thank you */
.thanks {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
  text-align: center;
}
.thanks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  max-width: 32rem;
  box-shadow: var(--shadow);
}
.thanks-card h1 { margin: 0.8rem 0 0.5rem; font-size: 1.8rem; letter-spacing: -0.03em; }
.thanks-card p { color: var(--muted); }

/* Footer */
.site-footer {
  background: #071c24;
  color: rgba(255,255,255,0.78);
  padding: 2.4rem 0 6.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer a { color: #9ee4d8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
}
.footer-brand { font-weight: 800; color: #fff; font-size: 1.05rem; letter-spacing: -0.02em; }
.disclaimer {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.legal { margin: 0.7rem 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Sticky mobile call bar */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11, 61, 74, 0.1);
}
.call-bar .btn {
  flex: 1;
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.8rem 0.55rem;
}
.call-bar .btn-cta { flex: 1.2; }

@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-call { display: inline-flex; }
  .hero { padding: 3.4rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .content-split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .form-card { padding: 1.55rem 1.45rem; }
  .site-footer { padding-bottom: 2.4rem; }
  .call-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
