/* ==========================================================
   CAB General Contracting — styles
   Brand: Taxi Yellow / Navy + Harbor Blue / White
   ========================================================== */
:root {
  --yellow: #FFC21A;
  --yellow-2: #FFD54A;
  --yellow-ink: #3A2A00;
  --navy: #0B1F3A;
  --navy-2: #0F2A4F;
  --navy-3: #16386A;
  --blue: #1E6FD9;
  --blue-2: #4B9BFF;
  --white: #FFFFFF;
  --paper: #F6F8FB;
  --ink: #0B1F3A;
  --muted: #5A6B85;
  --line: #E3E9F2;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(11, 31, 58, .35);
  --shadow-sm: 0 8px 24px -12px rgba(11, 31, 58, .3);
  --display: "Archivo", system-ui, sans-serif;
  --narrow: "Archivo Narrow", "Archivo", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.break { word-break: break-word; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em;
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  background: var(--bg); color: var(--fg);
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--yellow { box-shadow: 0 10px 24px -10px rgba(255, 194, 26, .8), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn--yellow:hover { --bg: var(--yellow-2); box-shadow: 0 16px 30px -10px rgba(255, 194, 26, .9), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: var(--yellow); --fg: var(--yellow); }
.btn--navy { --bg: var(--navy); --fg: var(--white); box-shadow: var(--shadow-sm); }
.btn--navy:hover { --bg: var(--navy-3); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--narrow); font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; font-size: .82rem; color: var(--yellow); margin-bottom: 1.1rem;
}
.eyebrow__bar { width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: var(--blue); }

/* ---------- Topbar ---------- */
.topbar { background: #071428; color: rgba(255,255,255,.75); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 38px; }
.topbar__tag { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; }
.topbar__links { display: flex; align-items: center; gap: 1.1rem; }
.topbar__links a:hover { color: var(--yellow); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,194,26,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,194,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,194,26,0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(11, 31, 58, .96); box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.brand img { width: 92px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: translateX(4px) rotate(-1.5deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--display); font-weight: 900; font-size: 1.45rem; letter-spacing: .04em; color: var(--yellow); }
.brand__text small { font-family: var(--narrow); text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; color: rgba(255,255,255,.8); margin-top: 4px; }
.nav { display: flex; gap: 2rem; }
.nav a { position: relative; color: rgba(255,255,255,.85); font-weight: 600; font-size: .93rem; padding: .4em 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: .7rem; }
.header__phone { padding: .7em 1.1em; }
.header__cta .btn--yellow { padding: .75em 1.2em; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1200px 600px at 85% -10%, #1C4E96 0%, transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, #0A1A33 100%);
  margin-top: -78px; padding-top: 78px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; width: 520px; height: 520px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(255,194,26,.22), transparent 65%); filter: blur(10px); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 4rem; align-items: center; padding: 6.5rem 0 5.5rem; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 900; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.hl { color: var(--yellow); position: relative; white-space: nowrap; }
.hl--blue { color: var(--blue-2); }
.amp { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: rgba(255,255,255,.55); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 34em; margin-bottom: 2rem; }
.hero__lead strong { color: var(--yellow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.hero__chips li { font-family: var(--narrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; padding: .5em 1em; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }

.hero__scene { position: relative; }
.scene { width: 100%; height: auto; aspect-ratio: 560 / 520; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.wave { animation: wave 7s linear infinite; }
.road-dash { animation: road 1.2s linear infinite; }
@keyframes road { to { transform: translateX(-70px); } }
@keyframes wave { to { transform: translateX(-140px); } }
.sun { animation: sun 6s ease-in-out infinite alternate; transform-origin: 380px 300px; }
@keyframes sun { to { transform: scale(1.08); } }
.shimmer rect { animation: shimmer 2.8s ease-in-out infinite; }
.shimmer rect:nth-child(2n) { animation-delay: .9s; }
@keyframes shimmer { 50% { opacity: .25; } }

.hero__cab {
  position: absolute; left: -10%; bottom: 1.5%; width: 60%;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,.45));
  animation: cabIn 1.4s var(--ease) .4s both, cabBob 3.2s ease-in-out 1.8s infinite;
}
@keyframes cabIn { from { transform: translateX(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cabBob { 50% { transform: translateY(-4px); } }

.hero__card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.96); color: var(--navy);
  padding: .9rem 1.15rem; border-radius: 16px; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.hero__card--a { top: 7%; left: -6%; flex-direction: column; align-items: flex-start; gap: 0; }
.hero__card--b { top: 30%; right: -5%; animation-delay: -2.5s; }
.hero__card-num { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.hero__card-num::after { content: ""; display: block; width: 100%; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: 4px; }
.hero__card-label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.hero__card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.hero__card small { color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { position: relative; background: var(--yellow); color: var(--navy); overflow: hidden; transform: rotate(-1.2deg) scale(1.03); margin-bottom: -10px; border-block: 3px solid var(--navy); }
.marquee__track { display: flex; gap: 2rem; width: max-content; padding: .95rem 0; animation: marquee 38s linear infinite; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; }
.marquee i { font-style: normal; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--white); padding: 4.5rem 0 3rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding: 1.2rem 1.4rem; border-left: 4px solid var(--yellow); }
.stat__num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat__label { display: block; margin-top: .5rem; font-size: .92rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__head h2, .section h2, .marine h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 900; margin-bottom: 1rem; }
.section__lead { font-size: 1.1rem; color: var(--muted); }
.section__head--light h2 { color: var(--white); }

/* ---------- Services ---------- */
.services { background: var(--paper); position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); margin-bottom: 1.4rem; transition: transform .4s var(--ease); }
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.05); }
.svc__icon svg { width: 32px; height: 32px; }
.svc h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; }
.svc p { color: var(--muted); font-size: .97rem; }
.svc__link { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--blue); font-family: var(--display); }
.svc__link:hover { color: var(--navy); }
.svc--feature { grid-row: span 2; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); border: 0; }
.svc--feature::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,194,26,.08); }
.svc--feature .svc__icon { background: var(--yellow); color: var(--navy); }
.svc--feature h3 { font-size: 1.9rem; }
.svc--feature p { color: rgba(255,255,255,.75); }
.svc--feature .svc__link { color: var(--yellow); }
.ticks { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; gap: .75rem; }
.ticks li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230B1F3A' d='m9.6 16.6-4.2-4.2-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.svc--alert { background: linear-gradient(160deg, #FFF8E1, #FFFFFF 60%); border-color: #FFE29A; }
.svc--alert .svc__icon { background: var(--yellow); color: var(--navy); animation: alarm 2.4s ease-in-out infinite; }
@keyframes alarm { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,26,.6); } 50% { box-shadow: 0 0 0 12px rgba(255,194,26,0); } }
.badge { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--narrow); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; background: var(--navy); color: var(--yellow); padding: .4em .8em; border-radius: 999px; }

/* ---------- Marine ---------- */
.marine { position: relative; color: var(--white); background: radial-gradient(900px 500px at 10% 100%, rgba(30,111,217,.55), transparent 60%), linear-gradient(180deg, #0F3B7A 0%, var(--navy) 100%); padding: 9rem 0 7rem; overflow: hidden; }
.marine__waves { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; }
.marine__waves svg { width: 100%; height: 100%; }
.marine__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.marine__copy p { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 36em; margin-bottom: 2rem; }
.marine__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.15); }
.marine__list li { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(255,255,255,.15); font-family: var(--display); font-weight: 800; font-size: 1.35rem; transition: padding .3s var(--ease), color .3s; }
.marine__list li:hover { padding-left: .8rem; color: var(--yellow); }
.marine__list span { font-family: var(--narrow); font-size: .85rem; color: var(--yellow); letter-spacing: .1em; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.about__visual { position: relative; }
.about__panel { position: relative; border-radius: var(--radius-lg); background: linear-gradient(170deg, var(--yellow) 0%, var(--yellow-2) 100%); padding: 3.2rem 2.5rem 2.5rem; overflow: hidden; box-shadow: var(--shadow); }
.about__panel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(11,31,58,.05) 0 14px, transparent 14px 28px); }
.about__cab { position: relative; width: 100%; filter: drop-shadow(0 18px 18px rgba(11,31,58,.3)); }
.about__checker { position: relative; height: 22px; margin: 1.6rem -2.5rem 1.6rem; background: conic-gradient(var(--navy) 25%, var(--white) 0 50%, var(--navy) 0 75%, var(--white) 0) 0 0 / 22px 22px; }
.about__quote { position: relative; font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.about__badge { position: absolute; right: -24px; top: -24px; width: 130px; height: 130px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); border: 5px solid var(--white); animation: spin-in 1s var(--ease) both; }
.about__badge strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--yellow); }
.about__badge span { font-family: var(--narrow); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; line-height: 1.3; }
.about__lead { font-size: 1.22rem; color: var(--ink); }
.about__copy > p { color: var(--muted); font-size: 1.04rem; }
.about__copy > p.about__lead { color: var(--ink); }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillars li { padding: 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.pillars strong { display: block; font-family: var(--display); font-size: 1.02rem; margin-bottom: .35rem; }
.pillars span { font-size: .88rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 22px); opacity: .6; }
.step { position: relative; padding: 0 .4rem; }
.step__n { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--yellow); color: var(--navy); font-family: var(--display); font-weight: 900; font-size: 1.7rem; margin-bottom: 1.4rem; box-shadow: 0 0 0 8px var(--navy); }
.step h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.step p { color: rgba(255,255,255,.72); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(11,31,58,.06) 0 18px, transparent 18px 36px); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.2rem 0; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--navy); margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--yellow-ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 4.5rem; align-items: start; }
.contact-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.3rem; margin-bottom: .9rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: var(--yellow); }
.contact-card__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); }
.contact-card small { display: block; font-family: var(--narrow); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); font-weight: 700; }
.contact-card strong { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.contact-card--phone { background: var(--navy); border-color: var(--navy); color: var(--white); }
.contact-card--phone .contact-card__icon { background: var(--yellow); color: var(--navy); }
.contact-card--phone small { color: rgba(255,255,255,.65); }
.contact-card--phone strong { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--yellow); letter-spacing: -.01em; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .3rem; }
.social { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); color: var(--white); font-weight: 700; font-size: .9rem; transition: transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.social span { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.social small { display: block; font-weight: 500; opacity: .8; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.social svg { flex: none; }
.social:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.social--fb { background: #1877F2; }
.social--ig { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.follow { margin-top: 1rem; font-family: var(--narrow); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--blue); font-weight: 700; }

.form-wrap { position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.6rem; border-top: 6px solid var(--yellow); }
.form__head { margin-bottom: 1.6rem; }
.form__head h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: .3rem; }
.form__head p { color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 1.55rem 1rem .6rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 1rem; top: 1.08rem; color: var(--muted); font-size: 1rem; pointer-events: none; transition: all .2s var(--ease); }
.field label em { font-style: normal; opacity: .7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(30,111,217,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.label--static { top: .5rem !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue) !important; }
.field--select select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230B1F3A' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 22px; }
.field__err { display: none; font-size: .8rem; color: #C62828; margin-top: .35rem; font-weight: 600; }
.field.is-invalid input { border-color: #E53935; background: #FFF6F6; }
.field.is-invalid .field__err { display: block; }
.form__note { text-align: center; font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.form__status { text-align: center; font-weight: 600; color: #C62828; margin: .5rem 0 0; min-height: 1em; }
button[type="submit"] { position: relative; margin-top: .4rem; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(11,31,58,.25); border-top-color: var(--navy); animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 3rem 1rem; }
.form-success__icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.4rem; background: var(--yellow); color: var(--navy); display: grid; place-items: center; animation: pop .6s var(--ease); }
.form-success h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.form-success p { color: var(--muted); }
.form-success a { color: var(--blue); font-weight: 700; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: #071428; color: rgba(255,255,255,.7); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding: 4.5rem 0 3rem; }
.footer__brand img { width: 180px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 26em; }
.footer h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; font-family: var(--narrow); margin-bottom: 1.1rem; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a:hover { color: var(--yellow); }
.footer__phone { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--yellow); }
.footer__social { display: flex; gap: .6rem; margin-top: .6rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); transition: background .25s, color .25s; }
.footer__social a:hover { background: var(--yellow); color: var(--navy); }
.footer__base { border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer__base-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; flex-wrap: wrap; }

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

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 1.3rem; }
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: .5rem 20px 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.1rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; padding: 4.5rem 0 4rem; }
  .hero__scene { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__cab { left: -4%; }
  .hero__card--a { left: -2%; }
  .hero__card--b { right: -2%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc--feature { grid-row: auto; grid-column: span 2; }
  .marine__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .topbar__links a:first-child { display: none; }
  .topbar__tag { font-size: .74rem; }
  .header__inner { height: 68px; }
  .hero { margin-top: -68px; padding-top: 68px; }
  .brand img { width: 74px; }
  .brand__text strong { font-size: 1.2rem; }
  .header__cta .btn--yellow { display: none; }
  .hero__inner { padding: 3.5rem 0 3.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero__card { padding: .7rem .9rem; }
  .hero__card-num { font-size: 1.7rem; }
  .hero__card--b { top: 6%; right: 2%; }
  .hero__card--a { top: auto; bottom: 46%; left: auto; right: 3%; display: none; }
  .section { padding: 4.5rem 0; }
  .stats { padding: 3.5rem 0 1.5rem; }
  .stats__grid { gap: .6rem; }
  .stat { padding: .8rem 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc--feature { grid-column: auto; }
  .marine { padding: 6.5rem 0 4.5rem; }
  .marine__list li { font-size: 1.15rem; }
  .pillars { grid-template-columns: 1fr; }
  .about__badge { width: 104px; height: 104px; right: -8px; top: -20px; }
  .about__badge strong { font-size: 1.9rem; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form-wrap { padding: 1.8rem 1.3rem; }
  .socials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.35); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 60px; font-family: var(--display); font-weight: 800; }
  .callbar__call { background: var(--navy); color: var(--yellow); }
  .callbar__quote { background: var(--yellow); color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Emergency card as full-width banner */
.svc--alert { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 1.8rem; align-items: center; padding: 2rem 2.4rem; }
.svc--alert .svc__icon { grid-row: 1 / span 2; margin: 0; width: 76px; height: 76px; }
.svc--alert .svc__icon svg { width: 40px; height: 40px; }
.svc--alert h3 { grid-column: 2; font-size: 1.7rem; margin-bottom: .3rem; align-self: end; }
.svc--alert p { grid-column: 2; margin: 0; align-self: start; max-width: 40em; }
.svc--alert .svc__link { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: .9em 1.4em; background: var(--navy); color: var(--yellow); border-radius: 999px; white-space: nowrap; }
.svc--alert .svc__link:hover { background: var(--navy-3); color: var(--yellow); }
.svc--alert .badge { position: static; grid-column: 2; grid-row: 1; justify-self: start; align-self: start; display: none; }
@media (max-width: 960px) {
  .svc--alert { grid-column: span 2; }
}
@media (max-width: 640px) {
  .svc--alert { grid-column: auto; grid-template-columns: 1fr; row-gap: .6rem; padding: 2rem; }
  .svc--alert .svc__icon, .svc--alert h3, .svc--alert p, .svc--alert .svc__link { grid-column: 1; grid-row: auto; }
  .svc--alert .svc__link { justify-self: start; margin-top: .6rem; }
}
.tag-inline { display: inline-block; vertical-align: middle; margin-left: .6rem; font-family: var(--narrow); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; background: var(--navy); color: var(--yellow); padding: .45em .85em; border-radius: 999px; transform: translateY(-3px); }

/* ==========================================================
   Mobile optimization layer
   ========================================================== */
.nav__mobile { display: none; }

/* Hover effects only on devices that can hover (prevents "stuck" lifted cards on phones) */
@media (hover: none) {
  .btn:hover, .svc:hover, .contact-card:hover, .social:hover { transform: none; }
  .svc:hover { box-shadow: none; border-color: var(--line); }
  .svc--feature:hover { border-color: transparent; }
  .svc:hover::before { transform: scaleX(0); }
  .svc:hover .svc__icon { transform: none; }
  .marine__list li:hover { padding-left: 0; color: inherit; }
  .btn:active, .contact-card:active, .social:active, .svc__link:active { transform: scale(.97); }
}

@media (max-width: 960px) {
  .nav { max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 30px 40px -20px rgba(0,0,0,.6); }
  .nav__mobile { display: grid; gap: .7rem; padding-top: 1.2rem; }
  .nav__mobile .btn { padding: 1em; font-size: 1rem; }
  .nav__mobile a { border-bottom: 0; }
  .nav__mobile a::after { display: none; }
  .nav__social { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .nav__social a { text-align: center; padding: .85rem !important; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .95rem !important; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }

  /* Faster, subtler scroll reveals so content never looks faded while scrolling */
  .reveal { transform: translateY(12px); transition-duration: .45s; transition-delay: 0s !important; }

  /* Topbar: keep only the emergency line + socials, centred */
  .topbar__inner { height: 34px; }
  .topbar__tag { font-size: .72rem; }

  /* Header */
  .header__inner { height: 64px; gap: .8rem; }
  .hero { margin-top: -64px; padding-top: 64px; }
  .brand { gap: .55rem; }
  .brand img { width: 64px; }
  .brand__text strong { font-size: 1.1rem; }
  .brand__text small { font-size: .58rem; letter-spacing: .12em; }
  .burger { width: 46px; height: 46px; }

  /* Hero */
  .hero__inner { padding: 2.6rem 0 3rem; gap: 2.2rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .16em; margin-bottom: .9rem; }
  .eyebrow__bar { width: 22px; flex: none; }
  .hero__title { font-size: clamp(2.15rem, 10.5vw, 2.8rem); margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1.02rem; margin-bottom: 1.5rem; }
  .hero__actions { gap: .7rem; margin-bottom: 1.4rem; }
  .hero__chips li { font-size: .68rem; padding: .45em .85em; }
  .hero__scene { margin-inline: -4px; }
  .scene { border-radius: 22px; }
  .hero__cab { left: 2%; width: 66%; bottom: 2%; }
  .hero__card { padding: .6rem .8rem; border-radius: 12px; }
  .hero__card--b { top: 5%; right: 4%; }
  .hero__card-icon { width: 34px; height: 34px; border-radius: 10px; }
  .hero__card--b strong { font-size: .9rem; }
  .marquee__track { font-size: .9rem; padding: .75rem 0; gap: 1.4rem; animation-duration: 28s; }

  /* Stats */
  .stats { padding: 3rem 0 1rem; }
  .stats__grid { gap: 1.2rem .8rem; }
  .stat { padding: .2rem 0 .2rem .9rem; border-left-width: 3px; }
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: .84rem; line-height: 1.4; }

  /* Sections */
  .section { padding: 3.75rem 0; }
  .section__head { margin-bottom: 2rem; }
  .section__head h2, .section h2, .marine h2 { font-size: clamp(1.85rem, 8.4vw, 2.3rem); }
  .section__lead { font-size: 1rem; }

  /* Services: compact horizontal cards */
  .svc-grid { gap: .9rem; }
  .svc { padding: 1.4rem; border-radius: 20px; display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; align-items: start; }
  .svc__icon { width: 52px; height: 52px; border-radius: 14px; margin: 0; grid-row: span 3; }
  .svc__icon svg { width: 26px; height: 26px; }
  .svc h3 { font-size: 1.18rem; margin-bottom: .35rem; }
  .svc p { font-size: .93rem; margin-bottom: .5rem; }
  .svc__link { padding: .3rem 0; font-size: .95rem; margin: 0; }
  .svc--feature { display: flex; padding: 1.7rem 1.4rem; }
  .svc--feature .svc__icon { margin-bottom: 1rem; }
  .svc--feature h3 { font-size: 1.6rem; }
  .ticks { gap: .6rem; margin-bottom: 1.2rem; }
  .ticks li { font-size: .95rem; }
  .svc--alert { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; padding: 1.4rem; }
  .svc--alert .svc__icon { width: 52px; height: 52px; grid-row: span 2; }
  .svc--alert .svc__icon svg { width: 28px; height: 28px; }
  .svc--alert h3 { grid-column: 2; font-size: 1.25rem; }
  .svc--alert p { grid-column: 2; }
  .svc--alert .svc__link { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: 1rem; padding: .95em; }
  .tag-inline { display: table; margin: .45rem 0 0; transform: none; }

  /* Marine */
  .marine { padding: 5rem 0 3.5rem; }
  .marine__waves { height: 44px; }
  .marine__copy p { font-size: 1rem; margin-bottom: 1.5rem; }
  .marine__copy .btn { width: 100%; }
  .marine__list li { font-size: 1.08rem; padding: .95rem 0; gap: 1rem; }

  /* About */
  .about__inner { gap: 2.5rem; }
  .about__panel { padding: 2.2rem 1.4rem 1.6rem; }
  .about__checker { margin-inline: -1.4rem; margin-block: 1.2rem; height: 16px; background-size: 16px 16px; }
  .about__badge { width: 92px; height: 92px; right: 8px; top: -18px; border-width: 4px; }
  .about__badge strong { font-size: 1.6rem; }
  .about__badge span { font-size: .58rem; }
  .about__lead { font-size: 1.08rem; }
  .about__copy > p { font-size: .98rem; }
  .pillars { gap: .7rem; margin-top: 1.4rem; }
  .pillars li { padding: 1rem 1.1rem; }

  /* Process: number beside text, timeline line down the left */
  .steps { gap: 1.4rem; }
  .steps::before { display: block; top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--yellow) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 1.1rem; padding: 0; }
  .step__n { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; margin: 0; grid-row: span 2; box-shadow: 0 0 0 6px var(--navy); }
  .step h3 { font-size: 1.15rem; margin: .7rem 0 .35rem; }
  .step p { font-size: .93rem; margin: 0; }

  /* CTA band */
  .cta-band__inner { padding: 2.4rem 0; gap: 1.2rem; }
  .cta-band__inner .btn { width: 100%; }

  /* Contact */
  .contact__inner { gap: 2.2rem; }
  .contact-card { padding: 1rem; gap: .9rem; }
  .contact-card__icon { width: 48px; height: 48px; border-radius: 14px; }
  .contact-card--phone strong { font-size: 1.75rem; }
  .email-text { font-size: 1rem; overflow-wrap: anywhere; }
  .social { padding: .95rem 1rem; }
  .form-wrap { padding: 1.6rem 1.15rem; border-radius: 22px; margin-inline: -4px; }
  .form__head h3 { font-size: 1.5rem; }
  .field input, .field textarea, .field select { font-size: 16px; } /* 16px stops iOS from zooming in on focus */
  .field { margin-bottom: .8rem; }

  /* Footer: brand on top, two compact columns below */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; padding: 3rem 0 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { width: 140px; margin-bottom: .8rem; }
  .footer__col { font-size: .9rem; min-width: 0; }
  .footer__phone { font-size: 1.2rem; }
  .footer__base-inner { flex-direction: column; gap: .3rem; padding: 1.2rem 0; }

  /* Sticky call bar: respects iPhone home-indicator area, hides while typing in the form */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .callbar { background: var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .25s var(--ease); }
  .callbar a { height: 62px; font-size: 1rem; }
  body.typing .callbar, body.menu-open .callbar { transform: translateY(110%); }
}

@media (max-width: 380px) {
  .brand__text small { display: none; }
  .hero__title { font-size: 2.05rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: 1.75rem; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* Mobile: show both hero badges, tucked into the top corners of the scene */
@media (max-width: 640px) {
  .hero__card--a { display: flex; top: 4%; left: 4%; right: auto; bottom: auto; padding: .55rem .75rem .6rem; }
  .hero__card--a .hero__card-num { font-size: 1.5rem; }
  .hero__card--a .hero__card-num::after { height: 4px; margin-top: 3px; }
  .hero__card--a .hero__card-label { font-size: .68rem; margin-top: 4px; }
  .hero__card--b { top: auto; bottom: 34%; right: 4%; }
}
@media (max-width: 380px) {
  .hero__card--b { bottom: 36%; }
  .hero__card--b small { display: none; }
}

/* Mobile: South Jersey badge in the top-right corner, level with the 10+ badge */
@media (max-width: 640px) {
  .hero__card--b { top: 4%; bottom: auto; right: 4%; padding: .6rem .75rem; gap: .6rem; }
  .hero__card--b .hero__card-icon { width: 30px; height: 30px; border-radius: 9px; }
  .hero__card--b .hero__card-icon svg { width: 18px; height: 18px; }
  .hero__card--b strong { font-size: .85rem; }
  .hero__card--b small { font-size: .72rem; }
}
@media (max-width: 380px) {
  .hero__card--b { bottom: auto; }
  .hero__card--b small { display: inline; }
}
