/* ==========================================================================
   A&A Sewer and Drain Maintenance Inc. — Site Stylesheet
   ========================================================================== */

:root {
  --color-primary: #0b3d5c;
  --color-primary-dark: #082a40;
  --color-primary-light: #124b70;
  --color-accent: #2e9e4f;
  --color-accent-dark: #227a3d;
  --color-accent-light: #e8f6ec;
  --color-ink: #182530;
  --color-body: #45505a;
  --color-muted: #6b7680;
  --color-line: #e2e7ea;
  --color-surface: #f6f8f9;
  --color-white: #ffffff;

  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 61, 92, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 61, 92, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 61, 92, 0.18);

  --radius: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-ink);
  line-height: 1.22;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--surface { background: var(--color-surface); }
.section--primary { background: var(--color-primary); color: #cfe0ec; }
.section--primary h2, .section--primary h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin: 0 auto 48px; text-align: center; }

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--accent { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); color: #fff; }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

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

.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: var(--color-primary-dark); color: #fff; }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------- Top bar ---------------------------- */
.topbar {
  background: var(--color-primary-dark);
  color: #b9cddb;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #e7f0f6; font-weight: 600; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contacts span, .topbar__contacts a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__badge { color: #9db6c8; }

/* ---------------------------- Header / Nav ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand__mark img, .brand__mark svg { width: 72%; height: 72%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--color-primary); }
.brand__text span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
  justify-content: center;
}
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav__links > li > a:hover { background: var(--color-surface); text-decoration: none; color: var(--color-primary); }
.nav__links > li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  position: relative;
  top: -2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.nav__links > li.has-dropdown:hover .dropdown,
.nav__links > li.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-ink);
  font-size: 0.92rem;
}
.dropdown a:hover { background: var(--color-accent-light); color: var(--color-accent-dark); text-decoration: none; }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { margin: 6px 0; }
.nav__toggle[aria-expanded="true"]::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }
.nav__toggle[aria-expanded="true"]::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #1a6b45 130%);
  color: #eaf3f8;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(63, 185, 118, 0.35), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 92px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: #cfe2ee; max-width: 540px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.86rem;
  color: #d9e8f0;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero__trust svg { width: 16px; height: 16px; flex: none; color: #7fe0a4; }

.hero__panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero__panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.hero__panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__panel-row:first-of-type { border-top: none; }
.hero__panel-row .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(63,185,118,0.22);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.hero__panel-row .ico svg { width: 20px; height: 20px; color: #7fe0a4; }
.hero__panel-row strong { display: block; color: #fff; font-size: 0.95rem; }
.hero__panel-row span { font-size: 0.82rem; color: #b9d3e2; }

/* page hero (sub pages) */
.page-hero {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 56px 0 46px;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: #d9f2e2; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cfe2ee; max-width: 640px; font-size: 1.05rem; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: #9dc0d6; margin-bottom: 14px; }
.breadcrumb a { color: #cfe2ee; }
.breadcrumb span { margin: 0 6px; }

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

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; color: var(--color-accent-dark); }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { color: var(--color-muted); font-size: 0.94rem; margin-bottom: 0; }
.card--link { display: block; }
.card--link:hover { text-decoration: none; }

.brand-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-card img { width: 100%; height: 190px; object-fit: cover; }
.brand-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brand-card__body p { color: var(--color-muted); font-size: 0.92rem; flex: 1; }

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check svg { width: 18px; height: 18px; color: var(--color-accent-dark); flex: none; margin-top: 3px; }

.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.media-block img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.media-block.reverse .media-block__text { order: 2; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-row strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: #fff; }
.stat-row span { font-size: 0.85rem; color: #b9d3e2; }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-row .pill {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--color-ink);
  font-weight: 500;
}

/* ---------------------------- CTA band ---------------------------- */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------------------------- Prose (sub-page long content) ---------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--color-primary); }
.prose p { color: var(--color-body); }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin-bottom: 0.5em; }
.callout {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--color-ink);
}
.callout strong { color: var(--color-accent-dark); }

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: var(--color-primary-dark); color: #a9c1d1; }
.site-footer .container {
  padding-top: 56px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer p { font-size: 0.9rem; color: #a9c1d1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfe0ec; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.footer-contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact-line svg { width: 17px; height: 17px; color: var(--color-accent); flex: none; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px;
  text-align: center;
  font-size: 0.8rem;
  color: #7d97a8;
}

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1020px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__panel { max-width: 480px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 860px) {
  .topbar .container { justify-content: center; text-align: center; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 90px 22px 30px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 12px;
    display: none;
  }
  .nav__links > li.has-dropdown.is-open .dropdown { display: block; }
  .nav__cta .btn--sm-hide { display: none; }
  .media-block { grid-template-columns: 1fr; }
  .media-block.reverse .media-block__text { order: 0; }
}

@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .section { padding: 52px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .site-footer .container { grid-template-columns: 1fr; padding-top: 40px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

.nav-open-lock { overflow: hidden; }
.nav__overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,20,30,0.4);
  z-index: 90;
}
.nav__overlay.is-open { display: block; }
