/* ===================================================================
   Next Era Contractors
   Design language modeled on dmihomes.com:
   navy (#001f41) + bright blue (#0067bd / #2ea3f2) + white, Open Sans
   =================================================================== */

:root {
  --navy:        #001f41;
  --navy-2:      #002b5c;
  --blue:        #0067bd;
  --blue-bright: #2ea3f2;
  --blue-dark:   #0b45bd;
  --ink:         #1b2430;
  --gray:        #5a6473;
  --line:        #e5e5e5;
  --bg-soft:     #f4f6f9;
  --white:       #ffffff;
  --radius:      6px;
  --shadow:      0 10px 30px rgba(0, 31, 65, .12);
  --shadow-sm:   0 4px 14px rgba(0, 31, 65, .08);
  --maxw:        1180px;
  --header-h:    84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--gray); }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-bright); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 86px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy p { color: #c6d3e6; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue-bright); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  text-align: center;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(0, 31, 65, .92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: background .3s ease, height .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: var(--navy);
  height: 70px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 44px; width: auto; }
.brand__logo { height: 56px; width: auto; display: block; transition: height .3s ease; }
.site-header.scrolled .brand__logo { height: 46px; }
.footer-brand .brand__logo { height: 76px; }
.brand__text { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .5px; line-height: 1.1; }
.brand__text span { display: block; font-weight: 500; font-size: .68rem; letter-spacing: 3px; color: var(--blue-bright); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: #e8eef6;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-bright);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.header-phone span { display: block; font-size: .64rem; font-weight: 500; letter-spacing: 2px; color: var(--blue-bright); text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 38px; height: 32px; padding: 4px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(rgba(0,18,40,.62), rgba(0,18,40,.72)),
              url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  padding-top: var(--header-h);
}
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { color: #dbe6f3; font-size: 1.18rem; margin-bottom: 32px; }
.hero .eyebrow { color: var(--blue-bright); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* trust strip under hero */
.trust {
  background: var(--navy-2);
  color: #fff;
  padding: 26px 0;
}
.trust .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; text-align: center; }
.trust .stat { flex: 1; min-width: 150px; }
.trust .stat b { display: block; font-size: 2.1rem; color: var(--blue-bright); font-weight: 800; }
.trust .stat span { font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; color: #b7c6da; }

/* ===================== INTRO / PROMISE ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul { list-style: none; padding: 0; margin: 18px 0 28px; }
.split li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.split li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #fff; background: var(--blue);
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .72rem; display: grid; place-items: center;
}

/* ===================== SERVICE / PROJECT CARDS ===================== */
.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { height: 220px; background-size: cover; background-position: center; position: relative; }
.card__body { padding: 26px 24px 30px; }
.card__body h3 { margin-bottom: 10px; }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__link { font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* project card overlay tag */
.card__media .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 4px; text-transform: uppercase;
}

/* ===================== TESTIMONIALS ===================== */
.quote {
  background: #fff; border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
}
.quote p { font-style: italic; color: var(--ink); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.quote .who b { color: var(--navy); display: block; }
.quote .who small { color: var(--gray); }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color:#fff; display: grid; place-items: center; font-weight: 800; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }

/* ===================== AREAS ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 12px 22px; border-radius: 40px;
  font-weight: 600; font-size: .92rem;
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(rgba(0,31,65,.88), rgba(0,31,65,.92)),
              url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80") center/cover fixed no-repeat;
  color: #fff; text-align: center; padding: 90px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cfdcec; max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .info-row { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .info-row .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-info .info-row b { color: var(--navy); display: block; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,103,189,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: #b7c6da; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 1px; margin-bottom: 18px; }
.site-footer a { color: #b7c6da; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand p { color: #94a6bf; font-size: .92rem; }
.footer-brand .brand__text { font-size: 1.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px; padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #8194ad;
}
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color:#fff; }
.socials a:hover { background: var(--blue); }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: linear-gradient(rgba(0,18,40,.7), rgba(0,18,40,.8)),
              url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  color: #fff; text-align: center;
  padding: calc(var(--header-h) + 70px) 0 70px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #cfdcec; }
.breadcrumb { font-size: .85rem; color: var(--blue-bright); letter-spacing: 1px; }
.breadcrumb a { color: var(--blue-bright); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); padding: 20px 24px; gap: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 86vh; }
}
