/* ===========================================
   Peace of Mind Plumbing — Stylesheet
   Brand: deep navy + copper accent, residential-friendly
   =========================================== */

:root {
  --navy: #0c2a3d;
  --navy-dark: #061826;
  --copper: #c47b3a;
  --copper-dark: #a86428;
  --copper-light: #e9a96b;
  --cream: #faf7f2;
  --warm-white: #ffffff;
  --text: #1f2a32;
  --text-muted: #5a6772;
  --line: #e5dfd4;
  --shadow: 0 10px 30px rgba(12, 42, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(12, 42, 61, 0.18);
  --radius: 6px;
  --radius-lg: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-dark); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

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

/* ============ TOP UTILITY BAR ============ */
.topbar {
  background: var(--navy-dark);
  color: #c9d4dc;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-left { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar a { color: #e9a96b; }
.topbar a:hover { color: #fff; }
.topbar-cta { color: #fff !important; font-weight: 600; }
.license-badge {
  background: rgba(196, 123, 58, 0.15);
  color: #f0c89a;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ============ NAV ============ */
header {
  background: var(--warm-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-light);
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--copper); }
.nav-links a.active { color: var(--copper); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
}
.nav-phone {
  background: var(--copper);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.2s;
}
.nav-phone:hover { background: var(--copper-dark); color: #fff !important; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(6, 24, 38, 0.92) 0%, rgba(12, 42, 61, 0.7) 60%, rgba(12, 42, 61, 0.4) 100%),
    url('../images/hero-plumber.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
}
.hero .container { position: relative; z-index: 2; max-width: var(--max); }
.hero-content { max-width: 680px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(196, 123, 58, 0.2);
  color: var(--copper-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(196, 123, 58, 0.4);
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--copper-light); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 123, 58, 0.4);
}
.btn-primary:hover { background: var(--copper-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 2rem; color: var(--copper-light); font-family: 'Playfair Display', serif; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; text-transform: uppercase; }

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--warm-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.trust-item-icon {
  width: 52px;
  height: 52px;
  background: rgba(196, 123, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
}
.trust-item-icon svg { width: 28px; height: 28px; }
.trust-item strong { font-size: 1.4rem; color: var(--navy); font-family: 'Playfair Display', serif; }
.trust-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ============ SECTIONS ============ */
section { padding: 5rem 0; }
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title { text-align: center; margin-bottom: 1rem; }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.service-body { padding: 1.5rem; }
.service-body h3 { color: var(--navy); }
.service-body p { color: var(--text-muted); font-size: 0.95rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ============ ABOUT PREVIEW ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { text-align: left; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; }
.about-list {
  list-style: none;
  margin: 1.5rem 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.about-list svg { color: var(--copper); flex-shrink: 0; margin-top: 4px; }
.about-list strong { color: var(--navy); }

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/testimonial-bg.jpg') center/cover;
  opacity: 0.08;
  z-index: 0;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials h2, .testimonials .section-eyebrow { color: #fff; }
.testimonials .section-eyebrow { color: var(--copper-light); }
.testimonials .section-sub { color: rgba(255,255,255,0.7); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.review-stars { color: var(--copper-light); margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.2rem;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--copper);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.review-name { font-weight: 600; color: #fff; }
.review-meta { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; opacity: 0.95; }
.cta-band .btn {
  background: #fff;
  color: var(--copper-dark);
  margin: 0 0.4rem;
}
.cta-band .btn:hover { background: var(--cream); transform: translateY(-2px); }
.cta-band .btn-ghost-band {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cta-band .btn-ghost-band:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ============ FOOTER ============ */
footer {
  background: var(--navy-dark);
  color: #c9d4dc;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 1rem; color: #9aafbf; font-size: 0.95rem; }
.footer h4 {
  color: var(--copper-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; }
.footer a { color: #c9d4dc; }
.footer a:hover { color: var(--copper-light); }
.footer-contact-line { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.7rem; }
.footer-contact-line svg { color: var(--copper-light); flex-shrink: 0; margin-top: 3px; }
.footer-hours {
  background: rgba(196, 123, 58, 0.08);
  border-left: 3px solid var(--copper);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.footer-hours strong { color: var(--copper-light); display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #7e94a3;
}

/* ============ PAGE HEADER (sub-pages) ============ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/service-area-bg.jpg') center/cover;
  opacity: 0.12;
  z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 700px; font-size: 1.1rem; }
.breadcrumb {
  color: var(--copper-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--copper-light); }
.breadcrumb a:hover { color: #fff; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { background: var(--warm-white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-info h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.contact-block { margin-bottom: 1.8rem; }
.contact-block h3 { color: var(--navy); font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; }
.contact-block p, .contact-block a { font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.contact-block .big { font-size: 1.6rem; font-family: 'Playfair Display', serif; font-weight: 700; }
.contact-form {
  background: var(--warm-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 123, 58, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* ============ REVIEWS PAGE ============ */
.reviews-hero {
  background:
    linear-gradient(105deg, rgba(6, 24, 38, 0.85) 0%, rgba(12, 42, 61, 0.5) 100%),
    url('../images/reviews-bg.jpg') center/cover no-repeat;
}
.rating-summary {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.rating-big { text-align: center; }
.rating-big .num { font-size: 4.5rem; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); line-height: 1; }
.rating-big .stars { color: var(--copper); font-size: 1.5rem; letter-spacing: 0.1em; margin: 0.5rem 0; }
.rating-big .count { color: var(--text-muted); font-size: 0.9rem; }
.rating-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.rating-bar { display: flex; align-items: center; gap: 1rem; }
.rating-bar .label { width: 50px; color: var(--text-muted); font-size: 0.9rem; }
.rating-bar .bar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rating-bar .bar-fill { height: 100%; background: var(--copper); }
.rating-bar .pct { width: 50px; text-align: right; color: var(--navy); font-weight: 600; font-size: 0.9rem; }

.review-list { display: grid; gap: 1.5rem; }
.review-full {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--copper);
}
.review-full .review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.review-full .review-text { color: var(--text); font-style: normal; }
.review-full .review-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.review-tag {
  background: rgba(196, 123, 58, 0.1);
  color: var(--copper-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============ SERVICE AREA PAGE ============ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.area-card {
  background: var(--warm-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
  border-top: 3px solid var(--copper);
}
.area-card:hover { transform: translateY(-4px); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.area-map {
  background: linear-gradient(135deg, var(--navy) 0%, var(--copper-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}
.area-map h2 { color: #fff; }
.area-map p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto; }
.area-cities {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.area-city {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
}

/* ============ SERVICES PAGE (detail) ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { grid-template-columns: 1.5fr 1fr; }
.service-detail.reverse .service-detail-img { order: 2; }
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail h2 { font-size: 1.8rem; }
.service-detail ul {
  list-style: none;
  margin-top: 1rem;
}
.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.service-detail ul li::before {
  content: '✓';
  color: var(--copper);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .rating-summary { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    gap: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; }
  .menu-toggle { display: block; }
  .hero { min-height: 480px; padding: 3.5rem 0; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 560px) {
  .topbar .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
