/* ==========================================================================
   South Weymouth Plumbing & Heating — brand tokens
   ========================================================================== */
:root {
  --maroon: #5c1826;
  --maroon-dark: #3a0f18;
  --maroon-darker: #260a10;
  --gold: #c9a227;
  --gold-light: #e8d9a0;
  --charcoal: #1b1714;
  --cream: #f7f2e7;
  --cream-dim: #efe6d3;
  --ink: #2a2320;

  --font-display: 'Fraunces', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--maroon-darker);
}

a { text-decoration: none; }

.section-pad { padding: 6rem 0; }
@media (max-width: 767.98px) {
  .section-pad { padding: 4rem 0; }
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.bg-charcoal { background: var(--charcoal); }
.bg-maroon { background: var(--maroon); }
.bg-cream-dim { background: var(--cream-dim); }

.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  background: rgba(27, 23, 20, 0.92);
  backdrop-filter: blur(6px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream) !important;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.navbar-brand .brand-top {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 600;
}
.navbar-brand .brand-script {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: var(--cream) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.4rem 0.2rem !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold);
}

.btn-nav-call {
  background: var(--gold);
  color: var(--maroon-darker) !important;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
}
.btn-nav-call:hover { background: var(--gold-light); color: var(--maroon-darker) !important; }

.navbar-toggler { border: none; color: var(--cream); }
.navbar-toggler:focus { box-shadow: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center 38%/cover no-repeat;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(38,10,16,0.45) 0%, rgba(38,10,16,0.06) 100%),
    linear-gradient(to bottom, rgba(26,10,14,0.42) 0%, rgba(26,10,14,0.18) 45%, rgba(26,10,14,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: rgba(20, 8, 12, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 1.25rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-light);
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin: 0.6rem 0 0.3rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-title .script {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.15em;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--gold-light);
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  color: #fdfaf3;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 1rem auto 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.btn-gold {
  background: var(--gold);
  color: var(--maroon-darker);
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--maroon-darker); transform: translateY(-2px); }

.btn-outline-cream {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.85);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-outline-cream:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==========================================================================
   About
   ========================================================================== */
.about-photo {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(38,10,16,0.25);
  border: 6px solid #fff;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-quote {
  font-family: var(--font-script);
  color: var(--maroon);
  font-size: 1.5rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (max-width: 767.98px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(38,10,16,0.08);
}
.stat-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.stat-card .stat-label {
  font-weight: 600;
  color: var(--maroon-darker);
  font-size: 0.95rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-section { background: var(--charcoal); color: var(--cream); }
.services-section .section-title { color: #fff; }
.services-section .section-intro { color: var(--gold-light); }

.service-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 1rem;
  padding: 2.25rem;
  height: 100%;
}
.service-col h3 {
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.service-col h3 i { color: var(--gold); font-size: 1.3rem; }

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #e9e2d3;
}
.service-list li:last-child { border-bottom: none; }
.service-list li i { color: var(--gold); margin-top: 0.2rem; flex-shrink: 0; }

.emergency-banner {
  margin-top: 3rem;
  background: linear-gradient(120deg, var(--maroon), var(--maroon-dark));
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid rgba(201,162,39,0.4);
}
.emergency-banner h4 {
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
}
.emergency-banner p { color: var(--gold-light); margin: 0.25rem 0 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 8px 20px rgba(38,10,16,0.12);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(26,10,14,0.85), rgba(26,10,14,0));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1.5rem 0.75rem 0.6rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(92,24,38,0.12);
}
.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--maroon); }

.towns-label {
  font-weight: 700;
  color: var(--maroon-darker);
  margin-bottom: 0.25rem;
}
.towns-list { color: #5a4f47; }

.map-frame {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 15px 35px rgba(38,10,16,0.15);
  margin-top: 1.5rem;
}

.contact-form-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(38,10,16,0.1);
}
.form-control, .form-select {
  border: 1px solid #d9cfc0;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 0.2rem rgba(92,24,38,0.15);
}
.form-label { font-weight: 600; color: var(--maroon-darker); font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--maroon-darker);
  color: var(--cream-dim);
  padding: 3.5rem 0 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
}
.footer-brand .script { font-family: var(--font-script); color: var(--gold); font-size: 1.5rem; }
.footer-nav a {
  color: var(--cream-dim);
  margin: 0 0.6rem;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--gold); }
.footer-social a {
  color: var(--cream-dim);
  font-size: 1.3rem;
  margin-left: 0.9rem;
}
.footer-social a:hover { color: var(--gold); }
.footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 2rem 0 1.5rem;
}
.powered-by { font-size: 0.85rem; color: #b9a998; }
.powered-by a { color: var(--gold); font-weight: 600; }
