/* Brian's Plumbing & Heating — palette matched to the logo: charcoal script + red-to-orange gradient */
:root {
  --navy: #2a2724;
  --navy-dark: #181614;
  --navy-mid: #6e2015;
  --navy-pale: #f7ede1;
  --steel: #e2861f;
  --steel-light: #f2cfa0;
  --copper: #c0392b;
  --copper-deep: #7a1f14;
  --copper-pale: #f8ddc8;
  --bg: #faf6f1;
  --card: #ffffff;
  --ink: #241f1c;
  --ink-muted: #5c5450;
  --border: #e6ddd2;
  --star: #d9821f;
  --success: #2e7d4f;
  --brand-gradient: linear-gradient(90deg, #8f1c17 0%, #c0392b 35%, #d9631f 68%, #e2861f 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: "Merriweather", Georgia, serif; font-weight: 700; color: var(--navy-dark); line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Underline in-copy links so they don't rely on color alone */
.content-section p a:not(.btn-primary):not(.btn-secondary),
.content-section li a:not(.btn-primary):not(.btn-secondary),
.about-copy p a:not(.btn-primary):not(.btn-secondary) {
  color: var(--copper-deep);
  text-decoration: underline;
  font-weight: 600;
}

/* Header — light, to match the logo artwork's white background.
   Hidden at the top of the page, fades in once the user scrolls down. */
header.site-header {
  background: #ffffff;
  color: var(--ink);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
header.site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
header.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand-gradient);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 20px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-logo-brians { height: 44px; width: auto; display: block; }
.brand-logo-sub { height: 20px; width: auto; display: block; margin: 4px 0 0 2px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}
nav.main-nav { display: flex; gap: 18px; align-items: center; }
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--copper-deep); }
.call-btn {
  background: var(--brand-gradient);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.call-btn:hover { background: var(--copper-deep); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    gap: 2px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .call-btn { text-align: center; margin-top: 8px; }
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 55%, var(--steel) 130%);
  color: #fff;
  padding: 142px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='white' stroke-width='2' opacity='0.06'%3E%3Cpath d='M0 40 H240 M0 120 H240 M0 200 H240'/%3E%3Cpath d='M60 0 V240 M180 0 V240'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.3rem; margin: 0 0 16px; color: #fff; }
.hero .subhead { font-size: 1.08rem; color: #dbe6ec; margin: 0 0 26px; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--copper-deep); }
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.55);
  font-size: 1rem;
}
.btn-secondary:hover { border-color: #fff; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: #cfe0ea; }
.hero-badges .stars { color: var(--star); font-weight: 600; }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 124px 20px 46px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin: 0 0 12px; font-size: 1.9rem; }
.page-hero p { color: #dbe6ec; max-width: 640px; margin: 0 auto; font-size: 1.02rem; }
.breadcrumb { font-size: 0.85rem; color: #b8cdd9; margin-bottom: 14px; }
.breadcrumb a { color: #b8cdd9; text-decoration: underline; }

/* Sections */
section { padding: 56px 20px; }
.section-title { text-align: center; font-size: 1.7rem; margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--ink-muted); max-width: 680px; margin: 0 auto 36px; }

.mini-cta {
  background: var(--brand-gradient);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}
.mini-cta .container { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.mini-cta p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.mini-cta .btn-primary { background: #fff; color: var(--copper-deep); }
.mini-cta .btn-primary:hover { background: var(--copper-pale); }

/* Trust bar */
.trust-bar { background: var(--navy-pale); padding: 22px 20px; }
.trust-bar .container { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 180px; }
.trust-item .icon { color: var(--copper); }
.trust-item strong { font-size: 0.92rem; color: var(--navy-dark); }
.trust-item span { font-size: 0.78rem; color: var(--ink-muted); }

/* Services grid */
.services-section {
  position: relative;
  background:
    linear-gradient(rgba(18, 16, 14, 0.87), rgba(18, 16, 14, 0.87)),
    url('../images/services-bg.jpg') center / cover no-repeat;
}
.services-section .section-title { color: #fff; }
.services-section .section-sub { color: #e8d9c8; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  text-align: left;
}
.service-card .icon { width: 40px; height: 40px; margin-bottom: 14px; }
.service-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.service-card p { margin: 0 0 12px; color: var(--ink-muted); font-size: 0.95rem; }
.service-card a.card-link { color: var(--copper-deep); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.service-card a.card-link:hover { text-decoration: underline; }

/* Photo Gallery */
.gallery-section { background: var(--bg); }
.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: min(50vh, 420px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide-empty { color: var(--ink-muted); font-style: italic; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.carousel-btn:hover { background: var(--copper); color: #fff; border-color: var(--copper); }
@media (max-width: 640px) {
  .carousel-slide { height: 60vw; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.4rem; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
}

/* About teaser */
.about-section { background: var(--navy-pale); }
.about-section .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-copy p { color: var(--ink); }
.about-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.about-facts dt { font-weight: 700; color: var(--navy-dark); font-size: 0.85rem; }
.about-facts dd { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }
.plain-link { color: var(--copper-deep); font-weight: 600; text-decoration: underline; }
@media (max-width: 800px) { .about-section .container { grid-template-columns: 1fr; } }

/* Process / why us */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.process-step { text-align: center; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 14px; font-family: "Merriweather", serif;
}
.process-step h3 { font-size: 1.02rem; margin: 0 0 6px; }
.process-step p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* Areas grid */
.areas-section { background: var(--card); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 26px; }
.area-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.area-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.area-name { font-weight: 700; color: var(--navy-dark); font-size: 1rem; }
.area-pop { color: var(--ink-muted); font-size: 0.82rem; margin-top: 4px; }

/* Reviews */
.reviews-section { background: var(--bg); text-align: center; }
.stars-full { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.stars-full svg { width: 26px; height: 26px; fill: var(--star); }
.review-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  max-width: 560px;
  margin: 0 auto;
}
.review-badge h3 { margin: 0 0 10px; }
.review-carousel {
  --g: 24px;
  --vis: 3;
  max-width: 1700px;
  margin: 32px auto 0;
}
.review-viewport { overflow: hidden; padding: 8px 0; }
.review-quotes {
  --w: calc((100% - (var(--vis) + 1) * var(--g)) / (var(--vis) + 0.5));
  display: flex;
  gap: var(--g);
  width: 100%;
  margin-left: calc(-0.75 * var(--w));
  text-align: left;
  will-change: transform;
}
.review-quote {
  flex: 0 0 var(--w);
  min-height: 320px;
  padding: 38px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease, box-shadow 0.3s ease;
}
.review-quote .quote-stars { color: var(--star); font-size: 1.35rem; margin-bottom: 16px; letter-spacing: 3px; }
.review-quote p { margin: 0 0 20px; font-style: italic; color: var(--ink); font-size: 1.35rem; line-height: 1.5; flex: 1 1 auto; }
.review-quote .reviewer { font-size: 1.02rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.review-quote .review-link { font-size: 0.95rem; font-weight: 600; color: var(--copper-deep); text-decoration: underline; }
.review-quote.review-peek { opacity: 0.35; cursor: pointer; }
.review-quote.review-peek:hover, .review-quote.review-peek:focus-visible { opacity: 0.6; }
.review-quote.review-peek a { pointer-events: none; }
@media (max-width: 700px) {
  .review-carousel { --vis: 1; --g: 16px; }
  .review-quote { min-height: 280px; padding: 28px 24px; }
  .review-quote p { font-size: 1.15rem; }
}

/* Final CTA */
/* Map */
.map-section { background: var(--card); text-align: center; }
.map-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.cta-section { background: var(--navy-dark); color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: #cfe0ea; }

/* Content section (Step 3 — keyword-rich depth section) */
.content-section { background: var(--card); }
.content-section .container { max-width: 820px; }
.content-section h2 { font-size: 1.5rem; }
.content-section h3 { font-size: 1.15rem; margin-top: 28px; }
.content-section p { color: var(--ink); }
.content-section ul { color: var(--ink); padding-left: 22px; }
.content-section li { margin-bottom: 6px; }

/* Contact form */
.contact-form-section { background: var(--navy-pale); }
.contact-form { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; }
.hidden-field { position: absolute; left: -9999px; }
.contact-form button[type="submit"] { width: 100%; }
.form-status { text-align: center; max-width: 640px; margin: 16px auto 0; font-weight: 600; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--copper-deep); }

/* Contact info block */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto 40px; }
.contact-info-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 22px; text-align: center; }
.contact-info-card h3 { font-size: 0.95rem; margin: 0 0 8px; color: var(--navy-dark); }
.contact-info-card p, .contact-info-card a { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }
.contact-info-card a { text-decoration: underline; color: var(--copper-deep); font-weight: 600; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #f2cfa0; padding: 4px 20px 24px; border-top: 3px solid; border-image: var(--brand-gradient) 1; }
.footer-inner { max-width: 1120px; margin: 42px auto 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 12px; }
.footer-nap a { color: #cfe0ea; text-decoration: none; }
.footer-nap a:hover { text-decoration: underline; }
.footer-sitemap { display: flex; flex-direction: column; gap: 8px; }
.footer-sitemap a { color: #cfe0ea; text-decoration: none; font-size: 0.92rem; }
.footer-sitemap a:hover { text-decoration: underline; }
.footer-col h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.social-icons { display: flex; justify-content: center; gap: 14px; max-width: 1120px; margin: 30px auto 0; padding: 0 20px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.social-icons a:hover { filter: brightness(1.1); transform: translateY(-2px); }
.social-icons svg { width: 18px; height: 18px; fill: #fff; }
.social-icons a.icon-fb { background-color: #1877f2; }
.social-icons a.icon-yelp { background-color: #d32323; }
.social-icons a.icon-yelp svg { width: 24px; height: 24px; }
.social-icons a.icon-nextdoor { background-color: #8ed500; }
.social-icons a.icon-linkedin { background-color: #0a66c2; }
.social-icons a.icon-linkedin span { font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 13px; color: #fff; line-height: 1; }

.footer-bottom { max-width: 1120px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; text-align: center; color: #93aab7; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Accessibility: focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
}
