/* ==========================================================================
   Plumbing RM — Design Tokens
   Palette taken directly from the client's real business card:
   trade blue + gold-yellow accent. Droplet/wrench signature motif
   echoes the card's icon mark.
   Display: Poppins (rounded, friendly, matches the card's wordmark weight)
   Body: Inter
   Data/labels: IBM Plex Mono
   ========================================================================== */

:root {
  --blue-deep: #0d2233;
  --blue: #12314a;
  --blue-2: #163c5c;
  --blue-3: #1c4870;
  --brand-blue: #3176aa;
  --gold: #e8c541;
  --gold-dim: #c7a52f;
  --white: #f6f8f9;
  --muted: #aebfcc;
  --muted-dim: #7a8d9c;
  --line: rgba(246, 248, 249, 0.14);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }

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

.eyebrow {
  font-family: var(--font-mono);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--gold); }

/* ---------- Droplet signature (echoes the card's icon mark) ---------- */
.droplet-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 40px; width: fit-content;
}
.droplet-divider::before, .droplet-divider::after {
  content: '';
  width: 70px; height: 1px;
  background: var(--line);
}
.droplet-divider svg { width: 20px; height: 20px; }

.level-rule { height: 1px; background: var(--line); margin: 46px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 34, 51, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.brand-text span { color: var(--gold); display: block; }
.brand-text small { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; display: block; margin-top: 3px; }

nav.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 0.86rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); transition: color 0.2s; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.call-btn {
  font-family: var(--font-mono); background: var(--gold); color: var(--blue-deep);
  padding: 11px 20px; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px; transition: background 0.15s, transform 0.15s;
  border-radius: 4px;
}
.call-btn:hover { background: #f5d666; transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--blue); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 84px 0 96px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-image-panel { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.hero-image-panel img { width: 100%; height: 340px; object-fit: cover; }

.btn {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em;
  padding: 15px 28px; font-size: 0.85rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px; transition: transform 0.15s, background 0.15s;
  border-radius: 4px;
}
.btn-primary { background: var(--gold); color: var(--blue-deep); }
.btn-primary:hover { transform: translateY(-2px); background: #f5d666; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.spec-card { border: 1px solid var(--line); background: var(--blue-2); padding: 26px; border-radius: 6px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-family: var(--font-mono); font-size: 0.85rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.spec-row span:last-child { color: var(--white); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--blue); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.trust-item { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.trust-item::before { content: '\2713'; color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 82px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--blue-2); border: 1px solid var(--line); padding: 28px; border-radius: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card .tag { font-family: var(--font-mono); color: var(--gold); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.service-card h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 0; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 800px) { .steps-row { grid-template-columns: 1fr; gap: 30px; } }
.step { padding: 0 20px; text-align: center; }
.step::before {
  content: attr(data-n);
  display: block; width: 46px; height: 46px; line-height: 44px;
  border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--font-mono);
  margin: 0 auto 18px; font-size: 0.95rem; border-radius: 50%;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { background: var(--blue-2); border: 1px solid var(--line); padding: 24px; border-radius: 6px; transition: border-color 0.2s; }
.area-card:hover { border-color: var(--gold); }
.area-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.area-card p { font-size: 0.88rem; margin-bottom: 0; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.02em;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--white); font-size: 0.9rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* Rating callout - real Checkatrade data */
.rating-callout {
  display: flex; align-items: center; gap: 20px; background: var(--blue-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; max-width: fit-content; margin: 0 auto;
}
.rating-callout .score { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--gold); }
.rating-callout .meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.rating-callout .meta a { color: var(--gold); text-decoration: underline; }

.cta-band { background: var(--gold); color: var(--blue-deep); padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--blue-deep); margin: 0; }
.cta-band p { color: #4a3d0d; margin: 4px 0 0; }
.cta-band .btn-primary { background: var(--blue-deep); color: var(--gold); }
.cta-band .btn-primary:hover { background: #163c5c; }

footer.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--gold); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--muted-dim); font-family: var(--font-mono);
}

.text-center { text-align: center; }

.page-hero { padding: 56px 0 46px; border-bottom: 1px solid var(--line); background: var(--blue); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5.5rem; color: var(--gold); line-height: 1; font-weight: 700; }
