/* ==========================================================
   Revere Water Heater Pros - Main Stylesheet
   Mobile-first. Edit colors and fonts in the :root tokens.
   ========================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --teal: #0F4C5C;
  --teal-dark: #0A3540;
  --teal-tint: #E3EEF0;
  --copper: #B45309;
  --copper-dark: #92400E;
  --copper-light: #F2B57A;
  --bg-light: #F7F5F2;
  --text: #1F2933;
  --text-muted: #4B5563;
  --white: #FFFFFF;
  --border: #DDD8D1;

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

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(15, 76, 92, 0.10);
  --container: 1180px;
  --gutter: 20px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal-dark);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 64px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--tint {
  background: var(--teal-tint);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-intro p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.text-center {
  text-align: center;
}

.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-call {
  background: var(--copper);
  color: var(--white);
}

.btn-call:hover {
  background: var(--copper-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--teal-dark);
}

.btn-light:hover {
  background: var(--bg-light);
  color: var(--copper);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo img {
  width: 150px;
  height: auto;
}

.header-call {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.main-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 20px;
}

.nav-list > li {
  margin: 0;
  border-bottom: 1px solid var(--bg-light);
}

.nav-list a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 4px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.nav-list a:hover,
.dropdown-toggle:hover {
  color: var(--copper);
}

.nav-list a[aria-current="page"] {
  color: var(--copper);
}

.dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 10px 12px;
}

.dropdown-menu.is-open {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 9px 4px;
  font-family: var(--font-body);
  font-weight: 400;
}

.dropdown-menu .sub-item a {
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-cta {
  padding-top: 16px;
}

.nav-cta .btn {
  width: 100%;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-light);
  font-size: 0.9rem;
  padding: 12px 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li {
  margin: 0;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-muted);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 53, 64, 0.95) 0%, rgba(10, 53, 64, 0.86) 55%, rgba(10, 53, 64, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 0 52px;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.12rem;
  color: #E8F1F3;
  margin-bottom: 22px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.hero-points svg {
  width: 20px;
  height: 20px;
  color: var(--copper-light);
  flex-shrink: 0;
}

.hero .cta-note {
  color: #D3E4E8;
}

/* ---------- Service hero ---------- */
.page-hero {
  background: var(--teal-tint);
  padding: 36px 0 48px;
}

.page-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero .hero-sub {
  color: var(--text);
}

.page-hero .hero-points svg {
  color: var(--copper);
}

.page-hero-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--teal);
  color: var(--white);
  padding: 22px 0;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
}

.trust-list svg {
  width: 30px;
  height: 30px;
  color: var(--copper-light);
  flex-shrink: 0;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.section--light .card,
.section--tint .card {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
}

.card h3 a {
  color: var(--teal-dark);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--copper);
  text-decoration: underline;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .learn-more {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--copper);
  text-decoration: none;
}

.card .learn-more:hover {
  text-decoration: underline;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-sublinks {
  font-size: 0.95rem;
}

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Pain point / signs ---------- */
.sign-card {
  border-left: 4px solid var(--copper);
}

.sign-card h3 {
  font-size: 1.12rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 560px;
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  color: var(--teal-dark);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
}

tbody tr:nth-child(even) {
  background: var(--bg-light);
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody th {
  font-weight: 600;
  color: var(--teal-dark);
}

/* ---------- Brands strip ---------- */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.brand-list li {
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--teal-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal);
  color: var(--white);
  padding: 56px 0;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: #E3EEF0;
  max-width: 720px;
}

.cta-band .text-center p {
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-group {
  margin-top: 22px;
}

.text-center .btn-group {
  justify-content: center;
}

.cta-band--strong {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  border-top: 5px solid var(--copper);
}

.cta-phone-big {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  text-decoration: none;
  margin: 10px 0 4px;
}

.cta-phone-big:hover {
  color: var(--copper-light);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px 80px;
  box-shadow: var(--shadow);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
}

/* ---------- Info block ---------- */
.info-block + .info-block {
  margin-top: 48px;
}

.callout {
  background: var(--bg-light);
  border-left: 4px solid var(--teal);
  border-radius: 0;
  padding: 18px 20px;
  margin: 0 0 1.2em;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Neighborhoods ---------- */
.area-card h3 {
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--copper);
  flex-shrink: 0;
}

.map-wrap {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--teal-tint);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary h3 {
  font-size: 1.05rem;
  margin: 0;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--copper);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding-bottom: 18px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #D3E4E8;
  padding: 56px 0 0;
  font-size: 0.96rem;
}

.site-footer a {
  color: #D3E4E8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--copper-light);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 34px;
}

.footer-logo img {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}

.footer-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 9px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--copper-light);
  flex-shrink: 0;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 10px;
}

.social-list li {
  margin: 0;
}

.social-list a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-list a:hover {
  background: var(--copper);
}

.social-list svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 96px;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Floating call button ---------- */
.float-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  border-radius: 999px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.float-call:hover {
  background: var(--copper-dark);
  color: var(--white);
}

.float-call svg {
  width: 26px;
  height: 26px;
}

.float-call span {
  display: none;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-0 {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.4em;
}

/* ==========================================================
   Tablet (min 640px)
   ========================================================== */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-points {
    grid-template-columns: repeat(3, auto);
    gap: 12px 24px;
  }

  .float-call {
    padding: 14px 22px;
  }

  .float-call span {
    display: inline;
  }
}

/* ==========================================================
   Desktop (min 1000px)
   ========================================================== */
@media (min-width: 1000px) {
  .section {
    padding: 84px 0;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split--reverse > :first-child {
    order: 2;
  }

  .page-hero {
    padding: 56px 0 64px;
  }

  .page-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .hero-content {
    padding: 96px 0 100px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps > li {
    padding: 78px 22px 24px;
  }

  .steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps--5 {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Desktop navigation */
  .nav-toggle {
    display: none;
  }

  .header-call {
    display: inline-flex;
    padding: 12px 20px;
    font-size: 0.98rem;
  }

  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    overflow: visible;
    max-height: none;
    background: transparent;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .nav-list > li {
    position: relative;
    border: 0;
  }

  .nav-list > li > a,
  .dropdown-toggle {
    padding: 10px 12px;
    width: auto;
    gap: 6px;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }

  .dropdown-menu a {
    padding: 9px 18px;
  }

  .dropdown-menu .sub-item a {
    padding-left: 34px;
  }

  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .logo img {
    width: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Spacing helpers ---------- */
.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--copper-light);
}
