/* Stanley Marine & Home — site styles */
:root {
  --navy: #0F2A44;
  --navy-deep: #0A1E31;
  --teal: #1E6F80;
  --teal-light: #8FD0DC;
  --coral: #E07A3F;
  --coral-dark: #B9561E;
  --ground: #F4F6F7;
  --white: #FFFFFF;
  --ink: #1B2733;
  --muted: #4A5866;
  --line: #DCE2E6;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 68, .08);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: .5px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: .3px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 6px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--coral); color: var(--navy-deep); }
.btn-accent:hover { background: #EB8E57; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; }

.eyebrow {
  font: 600 .8rem/1.4 var(--font-body); letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: .75rem;
}
.eyebrow-dark { color: var(--teal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.55rem/1 var(--font-head); letter-spacing: 3px; color: var(--navy); }
.brand-sub { font: 700 .62rem/1 var(--font-body); letter-spacing: 3px; color: var(--teal); margin-top: 4px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: none; color: var(--navy); cursor: pointer;
}
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px; padding: 12px 16px 20px;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
.site-nav a { padding: 12px 4px; font-weight: 600; color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-cta { margin-top: 8px; padding: 12px 22px; color: var(--navy-deep); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 24px;
    padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav a { padding: 8px 0; }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
}

/* Hero */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy) 55%, var(--teal) 100%);
  padding: 64px 0 96px;
}
.hero h1 { color: var(--white); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.lede { font-size: 1.15rem; max-width: 34em; color: #DCE7EF; }
.lede em { font-style: normal; color: var(--coral); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-split { display: grid; gap: 16px; }
.split-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); text-decoration: none; color: var(--white);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
}
.split-card svg { grid-row: span 2; color: var(--coral); }
.split-title { font: 600 1.6rem/1.1 var(--font-head); letter-spacing: 1px; }
.split-list { font-size: .9rem; color: #C8D7E2; }
.split-marine { border-color: rgba(143,208,220,.4); }
.split-marine svg { color: var(--teal-light); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; }

@media (min-width: 880px) {
  .hero { padding: 96px 0 128px; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-marine { background: var(--navy); color: #DCE7EF; }
.section-marine h2, .section-marine h3 { color: var(--white); }
.section-marine .section-head p:last-child { color: #C8D7E2; }
.section-tint { background: var(--white); }

.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 44px; height: 44px; color: var(--coral); margin-bottom: 16px; }
.card-dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.card-dark p { color: #C8D7E2; }
.card-dark .card-icon { color: var(--teal-light); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: var(--navy); color: var(--white); font: 600 1.15rem/1 var(--font-head);
}

/* Area */
.area-inner { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) { .area-inner { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.area-inner p { color: var(--muted); }
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px;
}
@media (min-width: 560px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li { padding: 10px 0 10px 18px; position: relative; font-weight: 500; border-bottom: 1px solid var(--line); }
.area-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--teal);
}

/* Quote */
.section-quote { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%); color: #DCE7EF; }
.section-quote h2 { color: var(--white); }
.quote-inner { display: grid; gap: 40px; }
@media (min-width: 880px) { .quote-inner { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--coral); }
.contact-list a { color: var(--white); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--coral); }

.quote-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
@media (min-width: 640px) { .quote-form { padding: 32px; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--navy); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid #B9C4CC; border-radius: 6px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(30,111,128,.35); border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid #B9C4CC; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.chip:has(input:checked) { background: #E4F1F3; border-color: var(--teal); color: var(--navy); }
.chip input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1D6B3A; }
.form-status.err { color: #B3261E; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9BBC9; padding: 40px 0; font-size: .92rem; }
.footer-inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 880px) { .footer-inner { grid-template-columns: auto 1fr auto auto; gap: 40px; } }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); font-weight: 600; text-decoration: none; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-sub { color: var(--teal-light); }
.brand-footer img { background: var(--ground); border-radius: 6px; padding: 4px; box-sizing: content-box; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Gallery */
a.chip { text-decoration: none; color: var(--navy); background: var(--white); }
a.chip:hover { border-color: var(--teal); }
a.chip.chip-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.project h2 { margin-bottom: .2em; }
.project-meta { color: var(--muted); font-weight: 500; }
.ba-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-grid img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 12px; }
.ba-label { font: 600 .85rem/1 var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ba-after { color: var(--coral-dark); }
#blazor-error-ui { display: none; }

/* Hero headline emphasis */
.hero-accent { color: var(--coral); }

/* Quote form file input */
.field input[type="file"] { min-height: 0; padding: 10px; background: var(--ground); border: 1px dashed #B9C4CC; border-radius: 6px; }
.field-hint { margin: 0; font-size: .85rem; color: var(--muted); }
