/* Sapphire Construction & Concrete — site styles */
:root {
  --navy: #182c60;
  --navy-dark: #101c3d;
  --navy-deep: #0b1428;
  --navy-mid: #1f3a8a;
  --navy-soft: #2a4274;
  --fog: #f3f5f8;
  --mist: #e6e9f0;
  --line: #d4d9e4;
  --ink: #151a26;
  --muted: #4d5566;
  --white: #ffffff;
  --danger: #8b2942;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(16, 28, 61, 0.10);
  --header-h: 4.5rem;
  --max: 72rem;
  --font: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-mid); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--navy-dark);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
}

/* Company phone — update the number in index.html (top bar, contact, footer, and JSON-LD) */
a.phone {
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
a.phone:hover { text-decoration: underline; }

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: #d8deea;
  font-size: 0.875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}
.topbar a { color: #eef1f7; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar a.phone { color: #eef1f7; font-weight: 500; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 28, 61, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-dark);
  margin-right: auto;
}
.brand img { width: 2.35rem; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
  font-weight: 500;
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--navy-mid); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}
.btn-light:hover { background: var(--fog); color: var(--navy-dark); border-color: var(--fog); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--white); }
.header-cta { margin-left: 0.5rem; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31, 58, 138, 0.45), transparent 55%),
    radial-gradient(900px 400px at 0% 110%, rgba(11, 20, 40, 0.7), transparent 50%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 55%, #15244f 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse 46rem 34rem at 50% 46%, transparent 28%, #000 78%);
  mask-image: radial-gradient(ellipse 46rem 34rem at 50% 46%, transparent 28%, #000 78%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6.75rem);
}
.hero-logo {
  width: min(22rem, 82vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.18));
}
.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 2.6vw + 0.9rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
}
.hero .hero-copy {
  margin: 0 0 1.75rem;
  color: #d5dbeb;
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.scope-bar {
  background: var(--navy-deep);
  color: #c9d1e3;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.scope-bar ul {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scope-bar li:not(:last-child)::after {
  content: "•";
  margin: 0 0.7rem;
  color: #6d7ba0;
}

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-alt { background: var(--fog); }
.section-navy {
  background: var(--navy-dark);
  color: var(--white);
}
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: #9aacd4; }
.section-navy .lede { color: #c5cee0; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (min-width: 961px) {
  .service-grid { grid-template-columns: repeat(12, 1fr); }
  .service { grid-column: span 3; }
  /* Center a leftover last row of three cards */
  .service:nth-child(4n+1):nth-last-child(-n+3),
  .service:nth-child(4n+2):nth-last-child(-n+2),
  .service:nth-child(4n+3):nth-last-child(-n+1) {
    grid-column: span 4;
  }
}
.service {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 1px 0 rgba(24, 44, 96, 0.03);
}
.service:hover { border-color: #c3cbe0; }
.service svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.85rem;
}
.service h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}
.service p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Clients */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.client {
  background: var(--white);
  padding: 1.5rem 1.35rem 1.6rem;
}
.client-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy-mid);
  margin-bottom: 0.45rem;
}
.client h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
}
.client p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
}
.why {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--navy);
}
.why h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.why p { margin: 0; color: #c5cee0; }

/* Service area */
.area-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.area-copy .lede { margin-bottom: 1.25rem; }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-dark);
}
.area-mark {
  background: var(--white);
  border-radius: 1.25rem;
  border: 1px solid var(--mist);
  padding: 1.5rem;
  display: grid;
  place-items: center;
  min-height: 18rem;
}
.area-mark svg { width: min(100%, 22rem); height: auto; }

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-points { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-points li { margin: 0 0 1.05rem; }
.contact-points .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 0.2rem;
}
.contact-points a { color: var(--navy-dark); text-decoration: none; font-weight: 600; }
.contact-points a:hover { text-decoration: underline; }

.form-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}
.form-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: var(--navy-dark);
}
.form-note { margin: 0 0 1.15rem; color: var(--muted); font-size: 0.95rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--navy-dark); }
.req { color: var(--navy-mid); }
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.18);
  background: var(--white);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.form-status { margin: 0; font-size: 0.92rem; color: var(--muted); }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--navy); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b7c0d4;
  padding: 2rem 0;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer strong { color: var(--white); font-weight: 600; }
.site-footer a { color: #dce3f0; }
.site-footer a.phone { color: #dce3f0; }

/* Responsive */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .area-split,
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-grid; place-items: center; order: 2; }
  .header-cta { order: 1; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
    box-shadow: 0 16px 30px rgba(16, 28, 61, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--fog); }
  .site-header { position: sticky; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .why-grid,
  .form-grid,
  .service-grid,
  .client-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .brand-sub { display: none; }
  .topbar .wrap { justify-content: flex-start; }
  .form-card { padding: 1.15rem; }
}

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