/* =========================================================
   Copperline Plumbing — shared stylesheet
   Palette is grounded in the trade: deep "water" slate,
   copper pipe accent, clean porcelain surfaces.
   Swap colors/fonts here once and every page updates.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink:        #12232E;  /* deep slate — water depth */
  --ink-2:      #1C3A4B;  /* lighter slate for gradients */
  --copper:     #C1693B;  /* the signature: copper pipe */
  --copper-dk:  #A2532B;  /* copper hover */
  --porcelain:  #F3F5F6;  /* cool clean surface */
  --white:      #FFFFFF;
  --steel:      #566169;  /* muted body text */
  --line:       #E2E6E8;  /* hairline borders */

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(18, 35, 46, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.02em; }

p { margin: 0 0 1rem; }
a { color: var(--copper); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Eyebrow label — a small utility tag used above headings */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--copper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
}
/* little copper "pipe joint" inside the mark */
.brand-mark::before {
  content: "";
  width: 20px; height: 8px;
  background: var(--copper);
  border-radius: 2px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px; height: 20px;
  background: var(--copper);
  border-radius: 2px;
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand-name span { color: var(--copper); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--copper); }
.nav-links a.active { color: var(--copper); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--copper);
}
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.03em;
  font-size: 1.15rem;
  color: var(--ink);
}
.nav-phone:hover { color: var(--copper); }

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

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(193,105,59,0.28), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* faint pipe seam running across the hero — the signature motif */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--copper-dk));
}
.hero-inner {
  padding: 92px 0 100px;
  max-width: 760px;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--copper); font-style: normal; }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.trust-item {
  display: flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,0.9);
  font-size: 0.96rem;
}
.trust-item svg { flex: none; }
.trust-item strong { color: var(--white); font-weight: 600; }

/* ---------- Generic section ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--porcelain); }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head p { color: var(--steel); font-size: 1.08rem; margin: 0; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(193,105,59,0.12);
  color: var(--copper);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.18rem; }
.card p { color: var(--steel); font-size: 0.98rem; margin: 0; }

/* ---------- Feature / why-us list ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:first-child { border-top: 0; }
.feature-list .fi-ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--copper);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list h3 { font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; font-size: 1.08rem; margin: 0 0 3px; }
.feature-list p { margin: 0; color: var(--steel); font-size: 0.97rem; }

.stat-panel {
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.stat-panel .stat { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.stat-panel .stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-panel .stat:first-child { padding-top: 0; }
.stat-panel .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem; font-weight: 700; color: var(--copper); line-height: 1;
}
.stat-panel .lbl { color: rgba(255,255,255,0.82); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--copper); margin-bottom: 10px;
}
.step h3 { text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--steel); font-size: 0.97rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(193,105,59,0.3), transparent 55%),
    linear-gradient(160deg, var(--ink), var(--ink-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page hero (about / contact) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(193,105,59,0.22), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--ink-2));
  color: var(--white);
  padding: 70px 0 64px;
  position: relative;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: linear-gradient(90deg, var(--copper), var(--copper-dk));
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 560px; font-size: 1.12rem; margin: 0; }

/* ---------- About specifics ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.value .ico { width: 46px; height: 46px; border-radius: 11px; background: rgba(193,105,59,0.12); color: var(--copper); display: grid; place-items: center; margin-bottom: 16px; }
.value h3 { text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; font-size: 1.14rem; margin-bottom: 6px; }
.value p { color: var(--steel); font-size: 0.97rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .ci-ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--copper); display: grid; place-items: center; }
.contact-info .ci-label { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--steel); }
.contact-info .ci-value { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.contact-info .ci-value a { color: var(--ink); }
.contact-info .ci-value a:hover { color: var(--copper); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--porcelain);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); background: var(--white);
  box-shadow: 0 0 0 3px rgba(193,105,59,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.86rem; color: var(--steel); margin: 4px 0 0; }

/* map / hours block */
.hours-card { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-top: 26px; }
.hours-card h3 { text-transform: none; letter-spacing: 0; font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 12px; }
.hours-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.96rem; border-bottom: 1px dashed var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .em { color: var(--copper); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand-name { color: var(--white); }
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.96rem; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem; color: var(--white); margin: 0 0 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); padding: 6px 0; font-size: 0.96rem; }
.footer-col a:hover { color: var(--copper); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.5); }

/* ---------- Motion on load ---------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.16s; }
.rise.d3 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .values { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-3, .steps, .values, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-phone { margin-top: 8px; }
  .nav-toggle { display: block; }
  .cta-band { padding: 40px 28px; }
  .hero-inner { padding: 64px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- Logo image (used when logoFile is set in config) ---------- */
.brand-logo { max-height: 44px; width: auto; display: block; }

/* ---------- About page: readable single-column paragraph ---------- */
.about-body { max-width: 720px; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- Generic highlight rows inside the dark panel ---------- */
.highlight {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 1.02rem;
}
.highlight:last-child { border-bottom: 0; padding-bottom: 0; }
.highlight:first-of-type { padding-top: 0; }
.highlight svg { flex: none; margin-top: 3px; }
