/* White's Marine Services — site styles
   Rebuilt from whitesmarine.co.uk. Plain CSS, no build step. */

:root {
  --navy: #142535;
  --navy-hover: #31506a;
  --navy-deep: #111b24;
  --ink: #171c20;
  --text: #56616a;
  --accent: #476a85;
  --link-hover: #497195;
  --panel: #f0f3f5;
  --rule: #cbd5dd;
  --field-border: #aab9c5;
  --focus: #387ead;
}

/* ---------- Reset ----------
   The original site sits on Tailwind's preflight reset (zero margins and
   padding, unstyled lists, block images, inherited form fonts). It lives in a
   cascade layer, as on the original, so every unlayered rule below wins over it. */
@layer base {
  *, ::before, ::after, ::backdrop, ::file-selector-button { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  small { font-size: 80%; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit; letter-spacing: inherit; color: inherit; opacity: 1; background-color: transparent; border-radius: 0;
  }
  ::file-selector-button { margin-inline-end: 4px; }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
  summary { display: list-item; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; font-weight: 700; line-height: 1.06; }
h1 { margin-bottom: 28px; font-size: clamp(2.9rem, 4.7vw, 5rem); }
h2 { margin-bottom: 26px; font-size: clamp(2.2rem, 3.8vw, 3.8rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { color: var(--text); }
em { color: var(--accent); font-style: normal; }

.wrap { width: min(1380px, 90%); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  height: 116px;
  border-bottom: 1px solid #dfe3e6;
}
.brand {
  display: inline-block;
  letter-spacing: -0.07em;
  white-space: nowrap;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 0.95;
}
.brand span { display: block; letter-spacing: 0.25em; font-size: 0.7rem; line-height: 2.5; }
.header nav { display: flex; gap: 23px; font-size: 0.875rem; font-weight: 600; }
.header nav a[aria-current="page"] { color: var(--link-hover); }
.header nav a:hover, .text-link:hover { color: var(--link-hover); }
.mobile-menu, .mobile-call { display: none; }
.mobile-menu nav { box-shadow: 0 15px 30px rgba(20, 37, 53, 0.125); }

.skip { position: absolute; top: -100px; left: 10px; z-index: 50; background: #fff; padding: 12px; }
.skip:focus { top: 10px; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 50px;
  padding: 15px 23px;
  color: #fff;
  background: var(--navy);
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: var(--navy-hover); }
/* Must come after .button so the smaller header size wins (same order as the original). */
.header-quote { padding: 13px 18px; font-size: 0.85rem; }
.light { color: #162838; background: #fff; }
.light:hover { background: #e5edf3; }
.text-link { border-bottom: 1px solid #a7b1b9; padding-bottom: 7px; font-size: 0.95rem; font-weight: 600; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 6%; padding-block: 70px 80px; }
.eyebrow { margin-bottom: 27px; letter-spacing: 0.16em; color: #496071; font-size: 0.75rem; font-weight: 700; }
.intro { max-width: 610px; font-size: 1.08rem; line-height: 1.8; }
.actions { display: flex; align-items: center; gap: 30px; margin-top: 32px; }

.site-photo { position: relative; height: 440px; margin: 0; overflow: hidden; background: #e5e9ec; }
.site-photo.large { height: 525px; }
.site-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.site-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 35px 22px 18px;
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(10, 24, 35, 0.8));
}

.service-strip { padding: 22px 0; color: #fff; background: var(--navy); letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 700; }
.service-strip .wrap { display: flex; justify-content: space-between; gap: 15px; }
.service-strip span { letter-spacing: 0; color: #c3d0da; font-weight: 400; }

.section { padding-block: 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 50px; }
.section-heading p { max-width: 400px; padding-top: 7px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 25px; border-top: 1px solid #ccd3d8; }
.service-grid > a { display: flex; flex-direction: column; align-items: start; padding: 30px 25px 15px 0; border-bottom: 1px solid #ccd3d8; }
.service-grid > a:hover { background: #f2f5f7; }
.service-grid h3 { max-width: 220px; min-height: 70px; }
.service-grid > a > span:last-child { border-bottom: 1px solid #aab5bd; padding-bottom: 4px; font-size: 0.85rem; }
.number { display: block; margin-bottom: 32px; letter-spacing: 0.1em; color: #617583; font-size: 0.8rem; }

.renovation { padding-block: 80px; color: #fff; background: var(--navy); }
.renovation .eyebrow, .renovation p { color: #c1ced8; }
.renovation .button { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 45px; }
.steps > div { border-top: 1px solid #bdc9d1; padding-top: 25px; }
.steps h3 { max-width: 310px; }

.two-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding-top: 0; }
.two-panels > div { padding: 40px; background: var(--panel); }
.two-panels h2 { font-size: 2.5rem; }

.contact-banner { text-align: center; border-top: 1px solid #c9d2d9; padding-block: 65px 85px; }
.contact-banner > a { letter-spacing: -0.04em; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 700; }
.contact-banner p:last-child { margin-top: 22px; }

/* ---------- Inner pages ---------- */
.page-head { max-width: 880px; padding-block: 70px 55px; }
.page-head p:not(.eyebrow) { max-width: 720px; font-size: 1.12rem; }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 65px; padding-bottom: 80px; }
.service-item { border-top: 1px solid var(--rule); padding: 35px 0; }
.service-item h2 { font-size: 2rem; }

.prose { max-width: 780px; padding-bottom: 80px; }
.prose h2 { margin-top: 38px; font-size: 2rem; }
.prose ol { padding-left: 25px; }
.prose li { margin-bottom: 16px; }

.empty-state { margin-bottom: 70px; padding: 55px; background: var(--panel); }
.empty-state h2 { font-size: 2rem; }

/* Projects */
.listing { align-self: start; border: 1px solid var(--rule); padding: 30px; }
.listing h2 { font-size: 2rem; }
.listing img { width: 100%; height: auto; }
.listing .text-link { display: inline-block; margin-top: 8px; }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.project-photos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.project-photos a:hover { opacity: 0.88; }

/* Maintenance plans */
.maintenance-pricing {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 30px;
  border-top: 1px solid #cbd1d5;
  border-bottom: 1px solid #cbd1d5;
}
.maintenance-pricing > div { padding: 40px; }
.maintenance-pricing > div:first-child { padding-left: 0; }
.maintenance-pricing h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.maintenance-pricing + .section { padding-top: 35px; }
.plan-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.plan-price { color: #fff; background: var(--navy); }
.plan-price p { color: #d7e2ea; }
.plan-price .eyebrow { color: #c3d4e1; }
.plan-price .button { margin: 16px 0; }
.plan-price .plan-small { color: #d7e2ea; }
.price-amount { margin: 22px 0; font-size: clamp(38px, 4vw, 58px); font-weight: 700; line-height: 1.2; color: #fff; }
.price-amount span { font-size: 18px; font-weight: 400; }
.plan-small { font-size: 14px; line-height: 1.6; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10%; padding-bottom: 80px; }
.contact-layout aside { align-self: start; padding: 35px; color: #fff; background: var(--navy); }
.contact-layout aside h2 { font-size: 28px; }
.contact-layout aside p { color: #bfccd7; }
.contact-layout aside a { display: block; margin-bottom: 18px; overflow-wrap: anywhere; }
.contact-layout aside hr { margin-block: 25px; border: 0; border-top: 1px solid #52616e; }
.form-note { margin-bottom: 25px; padding: 18px; background: #eef3f6; font-size: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-legal { font-size: 14px; }
.form-status { font-size: 0.95rem; }
.form-status.is-error { color: #a12b2b; }
.form-sent { padding: 30px; background: var(--panel); }
.form-sent h3 { margin-bottom: 10px; }
.form-sent:focus { outline: none; }
/* Spam trap: hidden from people, left for bots to fill in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: 0;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525d65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}
.field textarea { min-height: 140px; }
.plan-fields select { min-height: 50px; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 25px; color: #fff; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-grid > div > a { display: block; margin-bottom: 8px; }
.footer-grid p { color: #b9c7d2; font-size: 0.8rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 45px;
  padding-top: 20px;
  color: #b9c7d2;
  border-top: 1px solid #354450;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 1500px) {
  .hero { gap: 8%; }
}

@media (max-width: 1150px) {
  .header nav { gap: 12px; font-size: 0.78rem; }
  .header { gap: 15px; }
  .header-quote { display: none; }
  .hero { gap: 4%; }
  .actions { gap: 20px; }
}

@media (max-width: 1100px) {
  .header > nav, .header-quote { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { padding: 10px; font-weight: 600; cursor: pointer; }
  .mobile-menu nav {
    position: absolute; top: 84px; left: 0; right: 0; z-index: 10;
    display: flex; flex-direction: column; gap: 5px;
    padding: 20px; background: #fff;
  }
  .mobile-menu nav a { padding: 10px; font-size: 1rem; }
}

@media (max-width: 800px) {
  .header { height: 90px; }
  .brand { font-size: 1.9rem; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 42px; }
  h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
  .site-photo, .site-photo.large { height: 420px; }
  .service-strip .wrap { flex-direction: column; }
  .service-strip span { font-size: 0.85rem; }
  .section { padding-block: 55px; }
  .section-heading { display: block; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid h3 { min-height: 65px; font-size: 1.25rem; }
  .split, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .renovation { padding-block: 45px; }
  .steps { gap: 20px; }
  .steps h3 { font-size: 1.2rem; }
  .two-panels { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
  .two-panels > div { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 10px; }
  footer { padding-bottom: 85px; }
  .mobile-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: block; padding: 14px;
    color: #fff; background: #294861;
    text-align: center; font-weight: 600;
  }
  .service-list { grid-template-columns: 1fr; }
  .page-head { padding-block: 45px 25px; }
  .empty-state { padding: 28px; }
  .contact-banner { padding-block: 45px; }
  .contact-layout { padding-bottom: 50px; }
  .maintenance-pricing { grid-template-columns: 1fr; }
  .maintenance-pricing > div, .maintenance-pricing > div:first-child { padding: 28px 20px; }
  .plan-fields { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .actions { flex-direction: column; align-items: start; }
  .form-grid, .steps { grid-template-columns: 1fr; }
  .number { margin-bottom: 20px; }
  .eyebrow { font-size: 0.68rem; }
  .service-grid h3 { min-height: 80px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background 0.18s, color 0.18s; }
}
