/* ============================================================
   21M Construction — Global Stylesheet
   Color scheme: Blue (#163a63) + Red (#d12631) — matches logo
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --blue: #163a63;
  --blue-bright: #1e63b0;
  --blue-tint: #eaf1fa;
  --red: #d12631;
  --red-dark: #a81d27;
  --red-tint: #fdeced;

  --ink: #16181d;
  --body: #3c4350;
  --muted: #6a7281;
  --line: #e4e9f0;

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-dark: #0f2440;

  --container: 1160px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 36, 64, .08);
  --shadow: 0 10px 30px rgba(16, 36, 64, .10);
  --shadow-lg: 0 24px 60px rgba(16, 36, 64, .16);

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cdd7e5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #ff8a92; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-intro { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(209, 38, 49, .28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 12px 26px rgba(209, 38, 49, .36); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: #0f2c4d; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-tint); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #eef3fb; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  font-size: .98rem;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:not(.btn):hover { text-decoration: none; color: var(--blue-bright); background: var(--blue-tint); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--red); }
.nav-links a.btn:hover { text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
}
.nav-phone:hover { text-decoration: none; color: var(--red); }
.nav-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eef3fb;
  background:
    linear-gradient(115deg, rgba(13, 30, 54, .94) 0%, rgba(13, 30, 54, .80) 45%, rgba(168, 29, 39, .72) 100%),
    var(--bg-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 75% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 96px 0 104px; max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #ff6b73; }
.hero p { font-size: 1.18rem; color: #cdd9e8; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #d6e1ee; }
.hero-badge svg { width: 22px; height: 22px; color: #ff6b73; flex-shrink: 0; }

/* page hero (interior pages) */
.page-hero {
  background:
    linear-gradient(115deg, rgba(13, 30, 54, .95), rgba(168, 29, 39, .78)),
    var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 74px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: #cdd9e8; max-width: 600px; margin-inline: auto; font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; color: #9fb2c9; margin-bottom: 16px; }
.breadcrumb a { color: #cdd9e8; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--red); line-height: 1; }
.stat .lbl { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd9e8; }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* service card with footer link */
.service-card { display: flex; flex-direction: column; }
.service-card .card-link {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card:hover .card-link { gap: 10px; }
.service-card .card-link { transition: gap .2s var(--ease); }

/* ---------- Feature row (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.feature ul.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.checks li svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ---------- Photo placeholders (filler imagery) ---------- */
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(135deg, var(--blue) 0%, #21508a 55%, var(--red) 140%);
}
.photo .ph-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .28);
  padding: 7px 14px;
  border-radius: 30px;
  backdrop-filter: blur(2px);
}
.photo svg { width: 40px; height: 40px; opacity: .9; margin-bottom: 12px; }

/* ---------- Project gallery ---------- */
.project {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project .photo { aspect-ratio: 4 / 3; min-height: 0; }
.project-body { padding: 22px 24px 26px; }
.project-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--blue-tint);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.project-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .96rem; }
.project-meta { margin-top: 14px; font-size: .85rem; color: var(--muted); display: flex; gap: 16px; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta svg { width: 15px; height: 15px; color: var(--red); }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step { position: relative; padding-left: 70px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: var(--red);
  border-radius: 12px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.quote .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: 1.04rem; color: var(--ink); font-style: italic; }
.quote .who { margin-top: 18px; font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.quote .who span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #1d4a82 60%, var(--red) 150%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 54px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: #dbe6f3; max-width: 540px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ii-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--red-tint);
  color: var(--red);
}
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.02rem; margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--muted); font-size: .98rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 99, 176, .14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 16px; font-size: .95rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #157347; }

/* ---------- Map ---------- */
.map-embed {
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  filter: grayscale(.15);
}

/* ---------- Service area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .92rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid #d4e2f3;
  padding: 8px 16px;
  border-radius: 30px;
}

/* ---------- Footer ---------- */
.site-footer { background: #0c1d35; color: #9fb2c9; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #9fb2c9; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; color: #8497ad; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 11px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: #ff6b73; flex-shrink: 0; margin-top: 3px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: .82rem;
  color: #b9c6d6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 7px 13px;
  border-radius: 8px;
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: #7d90a8;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-actions .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px 18px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .hero-inner { padding: 70px 0 76px; }
  .step { padding-left: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .project:hover { transform: none; }
}
