/* ==========================================================================
   MVM Marine Construction — landing site styles
   Mobile-first. Navy/teal + white, high-contrast amber CTA.
   ========================================================================== */

:root {
  --navy-900: #062537;
  --navy-800: #0b3d5c;
  --navy-700: #0e4a6e;
  --teal-500: #10879a;
  --teal-400: #16a6bb;
  --cta:      #f5a623;
  --cta-dark: #e0940f;
  --ink:      #16232c;
  --muted:    #5a6b76;
  --line:     #e2e8ec;
  --bg:       #ffffff;
  --bg-soft:  #f3f7f9;
  --white:    #ffffff;

  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 10px 30px rgba(6, 37, 55, .10);
  --shadow-sm: 0 4px 14px rgba(6, 37, 55, .08);
  --wrap:     1120px;
  --header-h: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  /* Room for the sticky mobile call bar so it never covers content. */
  padding-bottom: 72px;
}

img, svg { max-width: 100%; }

a { color: var(--teal-500); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); font-weight: 800; }
h1 { font-size: 2rem; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none; }
.icon--lg { width: 44px; height: 44px; }

.link-strong { font-weight: 700; color: inherit; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: none; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }

.btn--cta { background: var(--cta); color: #3a2a00; box-shadow: 0 6px 18px rgba(245, 166, 35, .35); }
.btn--cta:hover { background: var(--cta-dark); }

.btn--call { background: #0f9d58; color: #fff; box-shadow: 0 6px 18px rgba(15, 157, 88, .32); }
.btn--call:hover { background: #0c854a; }

.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 17px 28px; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.brand__mark { display: inline-flex; color: var(--teal-400); }
.brand__mark .icon { width: 28px; height: 28px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; font-size: 1.05rem; }
.brand__sub { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-400); margin-top: 3px; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; padding: 8px 0; display: block; }
.primary-nav a.is-active, .primary-nav a:hover { color: var(--teal-400); }

.header-call { margin-left: auto; padding: 10px 16px; font-size: .95rem; }
.header-call .icon { width: 18px; height: 18px; }

.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  justify-content: center; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 859px) {
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy-800);
    padding: 8px 20px 20px; box-shadow: var(--shadow); border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); transition: transform .22s ease; z-index: 99;
  }
  .primary-nav.is-open { display: block; transform: translateY(0); }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { padding: 14px 0; font-size: 1.05rem; }
  .header-call { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  --hero-img: url('/dock_background.png');
  --hero-tint: linear-gradient(rgba(6,37,55,.80), rgba(11,61,92,.72));
  position: relative;
  background: var(--hero-tint), var(--hero-img) center/cover no-repeat;
  background-color: var(--navy-900); /* fallback while the image loads */
  color: #fff;
}
.hero__inner { padding: 56px 0 64px; max-width: 760px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-400); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 2.25rem; margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.92); margin-bottom: 26px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__phone-note { margin: 14px 0 0; font-size: .95rem; color: rgba(255,255,255,.85); }

.hero__badges {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__badge { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .92rem; }
.hero__badge .icon { color: var(--teal-400); width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--form { background: var(--bg-soft); padding-bottom: 60px; }

.section__head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section--navy .section__head p { color: rgba(255,255,255,.85); }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--teal-500); margin-bottom: 10px; }
.section--navy .eyebrow { color: var(--teal-400); }

/* Trust badge strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.trust-item .icon { width: 32px; height: 32px; color: var(--teal-500); margin-bottom: 8px; }
.trust-item strong { display: block; font-size: .98rem; color: var(--navy-900); }
.trust-item span { font-size: .85rem; color: var(--muted); }

/* About */
.about { display: grid; gap: 22px; }
.about__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about__points li { display: flex; gap: 10px; align-items: flex-start; }
.about__points .icon { color: var(--teal-500); margin-top: 2px; }

/* Service cards */
.cards { display: grid; gap: 18px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center;
  background: rgba(16,135,154,.10); color: var(--teal-500); border-radius: 12px; margin-bottom: 14px; }
.card__icon .icon { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 5px; }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--teal-500); }
.card__link .icon { width: 18px; height: 18px; }
.card--secondary { background: var(--bg-soft); box-shadow: none; }

/* Process steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px 20px 20px; }
.section--navy .step { background: rgba(255,255,255,.06); }
.step__num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--teal-500); color: #fff; font-weight: 800; border-radius: 50%; margin-bottom: 12px; }
.step h3 { margin-bottom: .35em; }
.step p { color: rgba(255,255,255,.82); margin: 0; }

/* Issues / feature list */
.feature-grid { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.feature__icon { display: inline-flex; width: 46px; height: 46px; flex: none; align-items: center; justify-content: center;
  background: rgba(16,135,154,.10); color: var(--teal-500); border-radius: 10px; }
.feature h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Emergency / urgency banner */
.urgency {
  display: grid; gap: 16px; align-items: center; text-align: center;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500)); color: #fff;
  border-radius: var(--radius); padding: 30px 24px;
}
.urgency h2 { color: #fff; }
.urgency p { color: rgba(255,255,255,.9); margin: 0 auto; max-width: 620px; }
.urgency .btn { justify-self: center; }

/* Service area */
.area-list { columns: 2; column-gap: 24px; list-style: none; margin: 18px 0 0; padding: 0; }
.area-list li { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; break-inside: avoid; }
.area-list .icon { width: 18px; height: 18px; color: var(--teal-400); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form-card {
  max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 24px;
}
.form-card__title { text-align: center; }
.form-card__intro { text-align: center; color: var(--muted); margin-bottom: 22px; }
.form-card__foot { text-align: center; color: var(--muted); font-size: .95rem; margin: 16px 0 0; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fbfdfe; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(16,135,154,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; gap: 14px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thank-you { text-align: center; padding: 10px 4px; }
.thank-you__icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; background: rgba(15,157,88,.12); color: #0f9d58; border-radius: 50%; margin-bottom: 10px; }
.thank-you__cta { color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer + mobile CTA
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); margin-top: 8px; }
.site-footer__inner { display: grid; gap: 30px; padding: 44px 20px 30px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: var(--teal-400); }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--teal-400); }
.brand--footer { margin-bottom: 12px; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.site-footer__bar .container { padding-top: 16px; padding-bottom: 16px; }
.site-footer__bar p { margin: 0; color: rgba(255,255,255,.6); }

.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(6,37,55,.96); backdrop-filter: blur(6px); box-shadow: 0 -3px 14px rgba(0,0,0,.25);
}
.mobile-cta .btn { flex: 1; padding: 14px 10px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Desktop / tablet
   -------------------------------------------------------------------------- */
@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__badges { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 860px) {
  body { padding-bottom: 0; } /* sticky bar hidden on desktop */
  .mobile-cta { display: none; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav ul { display: flex; gap: 26px; align-items: center; }
  .header-call { margin-left: 22px; }

  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero__inner { padding: 84px 0 90px; }
  .hero h1 { font-size: 3.1rem; }
  .hero__lead { font-size: 1.35rem; }

  .section { padding: 72px 0; }
  .about { grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .urgency { grid-template-columns: 1fr auto; text-align: left; padding: 40px; }
  .urgency p { margin: 0; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

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