/* ===================================
   Niagara Dry Basement — Styles
   Technical Precision aesthetic
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:         #0a2540;
  --navy-mid:     #1e3a5f;
  --navy-light:   #e8f2fa;
  --sky:          #0277bd;
  --sky-light:    #e1f5fe;
  --water-edge:   #b3e5fc;
  --spring:       #e65100;
  --spring-light: #fff3e0;
  --text:         #0d1e30;
  --muted:        #3d5a7a;
  --border:       #b8d0e4;
  --bg:           #f0f7fb;
  --white:        #ffffff;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 14px rgba(10,37,64,.10);
  --shadow-md:    0 6px 24px rgba(10,37,64,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  letter-spacing: -.01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-spring  { background: var(--spring); color: var(--white); }
.btn-spring:hover { background: #bf360c; }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-sky:hover { background: #01579b; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-large  { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-header { padding: .5rem 1.2rem; font-size: .9rem; background: var(--spring); color: var(--white); }
.btn-header:hover { background: #bf360c; }

/* ========================
   SITE HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--sky);
  padding: .9rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-text {
  color: var(--white);
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.logo-text:hover { text-decoration: none; }
.logo-tag {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: .4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ========================
   HERO
   ======================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 65%, #1a4a7a 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
/* CSS wave bottom separator */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.85);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -.03em;
}
.hero h1 span { color: var(--water-edge); }
.hero-sub {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.65;
  font-weight: 300;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.25rem;
}
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.hero-badge .check { color: var(--water-edge); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========================
   URGENCY METRICS BAR
   ======================== */
.metrics-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  text-align: center;
}
.metric {
  padding: .75rem 1.25rem;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .3rem;
  letter-spacing: -.03em;
}
.metric-label { font-size: .8rem; color: var(--muted); line-height: 1.4; font-weight: 500; }

/* ========================
   SECTIONS
   ======================== */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  line-height: 1.15;
}
.section-header p { color: var(--muted); font-size: .96rem; max-width: 540px; margin: 0 auto; font-weight: 400; }

/* ========================
   SPRING ALERT
   ======================== */
.spring-alert {
  background: var(--spring-light);
  border: 1px solid #ffcc80;
  border-left: 4px solid var(--spring);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.alert-icon { font-size: 1.75rem; flex-shrink: 0; }
.spring-alert h3 { font-size: 1rem; font-weight: 700; color: #7f3200; margin-bottom: .3rem; }
.spring-alert p { font-size: .9rem; color: #5a2500; line-height: 1.55; }

/* ========================
   SERVICE CARDS
   ======================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card .svc-icon {
  width: 44px; height: 44px;
  background: var(--sky-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; letter-spacing: -.01em; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; font-weight: 400; }

/* ========================
   HOW IT WORKS
   ======================== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; letter-spacing: -.01em; }
.step p { font-size: .88rem; color: var(--muted); font-weight: 400; }

/* ========================
   REASONS
   ======================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.reason-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy-light);
  border: 1px solid var(--border);
}
.reason-icon { font-size: 2rem; margin-bottom: .75rem; }
.reason-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; letter-spacing: -.01em; }
.reason-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; font-weight: 400; }

/* ========================
   PRICING
   ======================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pricing-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.pricing-row h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; letter-spacing: -.01em; }
.pricing-row .range { font-size: 1.15rem; font-weight: 800; color: var(--sky); margin-bottom: .25rem; letter-spacing: -.02em; }
.pricing-row p { font-size: .82rem; color: var(--muted); font-weight: 400; }
.pricing-disclaimer {
  background: var(--sky-light);
  border-left: 4px solid var(--sky);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .88rem;
  color: #013a5e;
  line-height: 1.6;
  font-weight: 400;
}

/* ========================
   SERVICE AREA
   ======================== */
.city-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.city-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  transition: background .15s, border-color .15s;
  letter-spacing: -.01em;
}
.city-pill:hover { background: var(--navy-light); border-color: var(--sky); }

/* ========================
   QUOTE FORM
   ======================== */
.quote-section {
  background: var(--navy);
  padding: 4rem 0;
}
.quote-section .section-header h2 { color: var(--white); }
.quote-section .section-header p { color: rgba(255,255,255,.72); }

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; letter-spacing: -.01em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid #c4d8e8;
  border-radius: var(--radius);
  font-family: 'Lexend', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  font-weight: 400;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(2,119,189,.15);
}
.form-group textarea { resize: vertical; min-height: 88px; }

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent-line input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; accent-color: var(--sky); }
.consent-line a { color: var(--sky); }

.btn-submit {
  width: 100%;
  background: var(--spring);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: 'Lexend', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: -.01em;
}
.btn-submit:hover { background: #bf360c; transform: translateY(-1px); }

/* ========================
   SITE FOOTER
   ======================== */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--white); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 640px) {
  .form-row   { grid-template-columns: 1fr; }
  .hero-cta   { flex-direction: column; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: none; }
  .metric { border-bottom: 1px solid var(--border); }
  .hero       { padding: 3rem 0 4rem; }
  .hero::after { height: 40px; }
  .quote-card { padding: 1.5rem; }
  .spring-alert { flex-direction: column; }
}
