/* ==========================================================================
   Rod Plumbing — main stylesheet
   Palette: charcoal ink, warm copper, soft cream. High-end craftsman tone.
   ========================================================================== */

:root {
  --ink: #1b2352;
  --ink-soft: #242e63;
  --copper: #b06f3a;
  --copper-bright: #cf8a4e;
  --copper-pale: #f3e4d3;
  --cream: #faf7f1;
  --paper: #ffffff;
  --text: #2c333b;
  --text-muted: #6b7280;
  --line: #e6e0d6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(23, 28, 34, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); }
.section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink p { color: rgba(250, 247, 241, 0.78); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17.5px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 6px 18px rgba(176, 111, 58, 0.35);
}
.btn--primary:hover { background: var(--copper-bright); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }

.section--ink .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost { color: var(--cream); border-color: rgba(250, 247, 241, 0.3); }
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { border-color: var(--copper-bright); color: var(--copper-bright); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15.5px;
}
.nav a:hover { color: var(--copper); text-decoration: none; }
.nav a.is-active { color: var(--copper); font-weight: 600; }

.nav__cta { margin-left: 8px; }
.nav .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #232e66 60%, #2b3a7e 100%);
  color: var(--cream);
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 138, 78, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner { max-width: 680px; position: relative; }

.hero h1 {
  color: var(--cream);
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--copper-bright);
}

.hero p.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: rgba(250, 247, 241, 0.82);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 247, 241, 0.15);
}
.hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(250, 247, 241, 0.85);
  font-weight: 500;
}
.hero__badges svg { width: 17px; height: 17px; color: var(--copper-bright); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--copper-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--copper); }

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card ul {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}
.card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--copper);
}
.card .card__link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Split feature (why choose)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(150deg, #2e3861 0%, #3a466f 55%, #46537e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(250, 247, 241, 0.65);
  font-size: 14px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
}
.photo-placeholder svg { width: 40px; height: 40px; opacity: 0.55; }
.photo-placeholder--tall { aspect-ratio: 3 / 4; }
.photo-placeholder--wide { aspect-ratio: 16 / 9; }

.feature-list { list-style: none; padding: 0; margin-top: 28px; }
.feature-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.feature-list__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--copper-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-list__icon svg { width: 20px; height: 20px; color: var(--copper); }
.feature-list h4 { font-size: 17.5px; margin-bottom: 4px; font-family: var(--font-body); font-weight: 650; }
.feature-list p { font-size: 15px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img,
.service-row__media img,
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.img--top { object-position: top; }
.gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */

.area-grid h3 { font-size: 19px; margin-bottom: 4px; }
.area-grid .area-county {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.town-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  columns: 2;
  column-gap: 24px;
}
.town-list li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  break-inside: avoid;
  position: relative;
  padding-left: 18px;
}
.town-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--copper);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.quote-card__stars { color: var(--copper); letter-spacing: 3px; font-size: 15px; margin-bottom: 14px; }
.quote-card blockquote {
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  flex-grow: 1;
}
.quote-card cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Service area / CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(140deg, var(--copper) 0%, #9a5f30 100%);
  border-radius: 16px;
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 480px; }
.cta-band .btn--primary {
  background: var(--ink);
  box-shadow: none;
}
.cta-band .btn--primary:hover { background: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #26316b 100%);
  padding: 72px 0 64px;
}
.page-hero h1 { color: var(--cream); font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.page-hero p { color: rgba(250, 247, 241, 0.78); max-width: 620px; font-size: 18px; }

/* --------------------------------------------------------------------------
   Service detail rows
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.service-row p { color: var(--text-muted); margin-bottom: 8px; }
.service-row ul {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.service-row ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
}
.service-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: 26px; margin-bottom: 18px; }
.contact-info .contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-line svg { width: 22px; height: 22px; color: var(--copper); flex-shrink: 0; margin-top: 3px; }
.contact-line strong { display: block; color: var(--ink); font-size: 15.5px; }
.contact-line a, .contact-line span { font-size: 15.5px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h2 { font-size: 24px; margin-bottom: 6px; }
.contact-form > p { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--copper);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.75);
  padding: 64px 0 32px;
  font-size: 15px;
}
.site-footer a { color: rgba(250, 247, 241, 0.85); }
.site-footer a:hover { color: var(--copper-bright); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 241, 0.12);
}
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-brand .brand { color: var(--cream); margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 14.5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
  color: rgba(250, 247, 241, 0.5);
}

/* --------------------------------------------------------------------------
   Mobile sticky call bar
   -------------------------------------------------------------------------- */

.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ink);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.mobile-call-bar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .service-row, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .nav__cta { margin: 12px 0 0; }
  .nav .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 74px; }

  .cta-band { padding: 40px 28px; }
  .contact-form { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}
