/* =========================================================
   FlowGuard Plumbing — Stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #082B45;
  --navy-soft: #0f3a5c;
  --blue: #0A84D8;
  --blue-dark: #086bb0;
  --white-warm: #F7F8F6;
  --pale-blue: #E9F2F7;
  --orange: #F47A32;
  --orange-dark: #dd6420;
  --charcoal: #14212B;

  --text-body: #2c3a44;
  --text-muted: #5c6b75;
  --border-soft: #dfe7ea;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(8, 43, 69, 0.08);
  --shadow-md: 0 12px 32px rgba(8, 43, 69, 0.12);
  --shadow-lg: 0 24px 60px rgba(8, 43, 69, 0.18);

  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container-max: 1240px;
  --header-h: 84px;
  --header-h-scrolled: 66px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white-warm);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 122, 50, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px rgba(244, 122, 50, 0.4); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { background: var(--pale-blue); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 32px; font-size: 1rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header.is-scrolled .header-inner { height: var(--header-h-scrolled); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo-mark { color: var(--blue); display: inline-flex; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  color: var(--blue);
}

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  color: #cfe0ec;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: #fff;
  text-align: right;
}
.header-phone-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-phone-number { font-weight: 700; font-size: 0.95rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 84vw);
  background: var(--navy);
  z-index: 700;
  padding: 24px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -20px 0 50px rgba(0,0,0,0.25);
}

.mobile-nav-close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: var(--orange); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { color: #fff; font-weight: 700; font-size: 1.1rem; padding: 12px 4px; display: block; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 700;
  border: 2px solid var(--orange);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  justify-content: center;
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 43, 69, 0.55);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-actions .btn-sm { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 901px) {
  .mobile-nav, .mobile-nav-backdrop { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(16px, 3vw, 32px) 0 0; }

.hero-shell {
  position: relative;
  background: var(--pale-blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 56px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
}
.trust-row li { display: flex; align-items: center; gap: 10px; }
.trust-row strong { display: block; font-family: var(--font-heading); font-size: 0.92rem; color: var(--navy); }
.trust-row span { display: block; font-size: 0.78rem; color: var(--text-muted); }

.hero-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.hero-wave { display: block; width: 100%; height: clamp(40px, 6vw, 70px); position: relative; z-index: 1; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; max-height: 360px; }
  .hero-copy h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
}
@media (max-width: 560px) {
  .hero-shell { border-radius: 22px; padding-top: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .trust-row { gap: 18px 24px; }
}

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 52px);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

/* =========================================================
   PRIMARY SERVICE CARDS
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 3.7;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img { transform: scale(1.06); }

.service-card-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(8,43,69,0) 35%, rgba(8,43,69,0.72) 80%, rgba(8,43,69,0.92) 100%);
  color: #fff;
}
.service-card-overlay h3 { color: #fff; font-size: 1.15rem; font-weight: 800; }
.service-card-overlay p { margin-top: 6px; font-size: 0.85rem; color: #dce8f0; max-width: 22ch; }

.card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.service-card-overlay .card-arrow { position: static; align-self: flex-start; margin-top: 14px; }
.card-arrow:hover { background: var(--orange); transform: translateX(3px); }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 4 / 3.1; }
}

/* =========================================================
   FEATURED COMPOSITION (drain & sewer)
   ========================================================= */
.featured-composition { background: var(--pale-blue); }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
}

.featured-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}
.featured-photo img { width: 100%; height: 100%; object-fit: cover; }
.featured-photo-left img { object-position: 60% 40%; }
.featured-photo-right img { object-position: 50% 30%; }

.featured-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card-inner {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 32px);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.featured-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pale-blue);
  display: flex; align-items: center; justify-content: center;
}
.featured-card-inner h3 { font-size: 1.35rem; }
.featured-card-inner p { color: var(--text-muted); font-size: 0.95rem; max-width: 30ch; }
.featured-card-inner .btn { margin-top: 6px; }

@media (max-width: 940px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-photo { min-height: 260px; order: 2; }
  .featured-photo-right { order: 3; }
  .featured-card { order: 1; }
}

/* =========================================================
   EMERGENCY FEATURE
   ========================================================= */
.emergency-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
}

.emergency-copy {
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  position: relative;
  z-index: 2;
}
.emergency-copy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
}
.emergency-copy p {
  margin-top: 16px;
  color: #b9cddc;
  max-width: 42ch;
  line-height: 1.65;
}

.emergency-stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin: 32px 0 34px;
  flex-wrap: wrap;
}
.emergency-stats strong { display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--orange); }
.emergency-stats span { display: block; font-size: 0.82rem; color: #b9cddc; margin-top: 4px; }

.emergency-media { position: relative; min-height: 320px; }
.emergency-media::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(8,43,69,0) 22%);
  z-index: 1;
}
.emergency-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }

@media (max-width: 900px) {
  .emergency-panel { grid-template-columns: 1fr; border-radius: 22px; }
  .emergency-media { min-height: 260px; order: -1; }
  .emergency-media::before { background: linear-gradient(180deg, rgba(8,43,69,0) 55%, var(--navy) 100%); }
}

/* =========================================================
   ADDITIONAL SERVICES
   ========================================================= */
.additional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.additional-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-sm);
}
.additional-card:hover { box-shadow: var(--shadow-md); }
.additional-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.additional-card:hover img { transform: scale(1.06); }
.additional-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(20,33,43,0) 40%, rgba(20,33,43,0.82) 100%);
  color: #fff;
}
.additional-card-overlay h3 { color: #fff; font-size: 1.1rem; font-weight: 800; }
.additional-card-overlay p { margin-top: 6px; font-size: 0.85rem; color: #e2ebf0; max-width: 26ch; }
.additional-card-overlay .card-arrow { position: static; align-self: flex-start; margin-top: 14px; }

@media (max-width: 900px) {
  .additional-grid { grid-template-columns: 1fr; }
  .additional-card { aspect-ratio: 16 / 11; }
}

/* =========================================================
   FINAL PROMOTIONAL SECTION
   ========================================================= */
.final-promo { background: var(--pale-blue); }
.promo-shell {
  background: #eef4f6;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 52px);
}
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(28px, 4vw, 40px);
}

.promo-offer {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: clamp(30px, 3.4vw, 44px);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.promo-badge {
  position: relative; z-index: 1;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(244, 122, 50, 0.18);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  width: fit-content;
}
.promo-offer h3 {
  position: relative; z-index: 1;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.2;
}
.promo-offer > p {
  position: relative; z-index: 1;
  margin-top: 12px;
  color: #b9cddc;
  max-width: 32ch;
}
.promo-offer .btn { position: relative; z-index: 1; margin-top: 22px; width: fit-content; }

.promo-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-sm);
}
.promo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.promo-photo-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(8,43,69,0) 30%, rgba(8,43,69,0.85) 100%);
  color: #fff;
}
.promo-photo-overlay h3 { color: #fff; font-size: 1.4rem; }
.promo-photo-overlay p { margin-top: 8px; color: #dce8f0; max-width: 34ch; }
.promo-photo-overlay .btn { margin-top: 18px; width: fit-content; }

@media (max-width: 860px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-offer, .promo-photo { min-height: 260px; }
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
}
.review-stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--text-body); }
.review-card figcaption { margin-top: 16px; font-weight: 700; color: var(--navy); font-size: 0.88rem; }

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--charcoal); color: #c9d4da; padding: clamp(48px, 6vw, 72px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 40px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-footer { margin-bottom: 14px; }
.footer-brand p { color: #9fb0b9; margin-top: 4px; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #c9d4da;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #9fb0b9; line-height: 1.5; }
.footer-contact a { color: #c9d4da; }
.footer-cta { margin-top: 16px; border-color: rgba(255,255,255,0.3); color: #fff; }
.footer-cta:hover { background: #fff; color: var(--navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #8697a1;
}
.footer-fictional { display: block; margin-top: 4px; color: #6d7d87; font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   MODAL / ESTIMATE FORM
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 43, 69, 0.55);
  backdrop-filter: blur(2px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-backdrop.is-open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--pale-blue);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal-close:hover { background: var(--orange); color: #fff; }

.modal-body { padding: clamp(28px, 4vw, 40px); }
.modal-body h2 { font-size: 1.5rem; padding-right: 30px; }
.modal-sub { margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

#estimate-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--white-warm);
  color: var(--text-body);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--blue); outline: none; }
.form-row.has-error input,
.form-row.has-error select { border-color: #d9483a; }
.form-error { font-size: 0.78rem; color: #d9483a; min-height: 1em; }

.form-submit { margin-top: 6px; width: 100%; }

.form-success { text-align: center; padding: 20px 0 4px; }
.form-success h3 { margin-top: 14px; font-size: 1.3rem; }
.form-success p { margin-top: 10px; color: var(--text-muted); line-height: 1.55; }
.form-success .btn { margin-top: 20px; }
.form-success[hidden] { display: none; }

@media (max-width: 480px) {
  .modal { border-radius: 18px; }
}
