/* ==========================================================================
   Eastern Waterproofing & Construction
   assets/css/style.css
   ========================================================================== */

:root {
  --navy: #12283f;
  --navy-deep: #0d1e2f;
  --navy-soft: #1c3a5a;
  --blue: #3a7ca5;
  --blue-light: #eaf2f8;
  --blue-line: #cddfec;
  --gray-900: #1f2933;
  --gray-700: #4a5763;
  --gray-500: #6b7885;
  --gray-200: #e4e8ec;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 40, 63, .08);
  --shadow-md: 0 6px 20px rgba(18, 40, 63, .10);
  --wrap: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

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

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c8d6e3;
  font-size: .86rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { color: var(--blue); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.06rem;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .73rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 2px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--blue); text-decoration: none; }
.nav a.active { border-bottom-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #2f6a8e; border-color: #2f6a8e; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--blue-light); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.header-cta { display: inline-flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(105deg, rgba(13, 30, 47, .93) 0%, rgba(13, 30, 47, .80) 46%, rgba(18, 40, 63, .55) 100%),
                    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero .wrap { position: relative; padding-top: 78px; padding-bottom: 78px; }
.hero-content { max-width: 700px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9dc3dd;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: .5em; }
.hero p.lead { font-size: 1.12rem; color: #dbe6f0; max-width: 640px; }
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .96rem;
  color: #cfdeea;
}
.hero-facts li { display: flex; align-items: center; gap: 9px; margin: 0; }
.hero-facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy); color: #d7e3ee; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--gray-700); margin-bottom: 0; }
.section-navy .section-head p { color: #c3d4e2; }

.kicker {
  display: block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Split intro ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split figure { margin: 0; }
.split figcaption {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: 10px;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.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: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-top-line { border-top: 3px solid var(--blue); }

.media-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.media-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-card-body { padding: 22px 22px 24px; }
.media-card-body h3 { margin-bottom: .4em; }
.media-card-body p:last-child { margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin: 0;
  position: relative;
}
.section-navy .steps li {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .16);
}
.steps li .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps li h3 { margin-bottom: .4em; }
.steps li p { margin-bottom: 0; font-size: .98rem; }

/* ---------- Feature list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- Areas ---------- */
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.area-list li {
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: .96rem;
  margin: 0;
}
.section-navy .area-list li {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
  color: #eaf2f8;
}

/* ---------- Service detail blocks (services page) ---------- */
.service-block {
  border-top: 1px solid var(--gray-200);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
}
.service-block:first-of-type { border-top: 0; padding-top: 6px; }
.service-block h3 { margin-bottom: .5em; }
.service-block .service-label {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  padding-top: 5px;
}
.service-block p:last-child { margin-bottom: 0; }

.service-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 22px;
}
.service-nav li { margin: 0; }
.service-nav a { font-weight: 600; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 0 0 26px; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .label {
  flex: 0 0 118px;
  font-weight: 700;
  color: var(--navy);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: 2px;
}
.info-list .value { color: var(--gray-700); }
.info-list .value strong { color: var(--navy); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--gray-200);
}
.hours-table th { color: var(--navy); font-weight: 600; width: 55%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: .94rem;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-900);
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 124, 165, .16);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .85rem; color: var(--gray-500); margin: 6px 0 0; }
.form-note { font-size: .88rem; color: var(--gray-500); margin: 16px 0 0; }
.form-status {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--blue-light);
  border: 1px solid var(--blue-line);
  color: var(--navy);
  font-size: .95rem;
  display: none;
}
.form-status.is-visible { display: block; }

.map-frame {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
}
.cta-band .wrap {
  padding-top: 46px;
  padding-bottom: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; font-size: 1.55rem; }
.cta-band p { color: #cddced; margin: 0; max-width: 620px; }

/* ---------- Contact block (home) ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.contact-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.contact-panel dl { margin: 0; }
.contact-panel dt {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 700;
  margin-top: 16px;
}
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd { margin: 3px 0 0; color: var(--navy); font-weight: 600; }

/* ---------- Page header ---------- */
.page-head {
  background: var(--navy);
  color: #d5e2ee;
  border-bottom: 4px solid var(--blue);
}
.page-head .wrap { padding-top: 54px; padding-bottom: 54px; }
.page-head h1 { color: #fff; margin-bottom: .4em; }
.page-head p { max-width: 700px; color: #c9d9e6; margin-bottom: 0; }
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  font-size: .86rem;
  color: #9fbdd4;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #6b8ba6; }
.breadcrumb a { color: #cfe0ee; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #a9bdd0;
  font-size: .96rem;
  padding-top: 52px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .95fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer a { color: #dce8f2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.02rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .88rem;
  color: #8fa5b9;
}
.footer-bottom p { margin: 0; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid, .contact-block { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .service-block { grid-template-columns: 1fr; gap: 12px; }
  .service-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.95rem; }
  .hero h1 { font-size: 2.05rem; }
  h2 { font-size: 1.5rem; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--gray-200); }
  .nav a { display: block; padding: 14px 0; border-bottom: 0; }
  .nav .btn { margin-top: 16px; width: 100%; }

  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band .wrap { padding-top: 38px; padding-bottom: 38px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .cta-band .btn-row { width: 100%; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .topbar-hours { display: none; }
  .info-list li { flex-direction: column; gap: 3px; }
  .info-list .label { flex: none; }
  .service-nav { grid-template-columns: 1fr; }
  .map-frame iframe { height: 320px; }

  body { padding-bottom: 62px; }
  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .mobile-call-bar a {
    flex: 1 1 50%;
    text-align: center;
    padding: 15px 8px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
  }
  .mobile-call-bar a + a {
    border-left: 1px solid rgba(255, 255, 255, .16);
    background: var(--blue);
  }
}

@media (max-width: 460px) {
  .brand-tag { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .98rem; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .topbar, .mobile-call-bar, .cta-band, .map-frame { display: none; }
}
