/* ==========================================================================
   Quantum Plumbing — prospect concept
   Copper pipe & water. Slate / copper / foam white / water blue.
   ========================================================================== */

:root {
  /* Palette — proposed demo direction (no verified brand colours) */
  --slate: #24323a;
  --slate-2: #2f3f48;
  --copper: #a85a26;        /* button-safe copper */
  --copper-dark: #8a4a1f;
  --copper-bright: #d27a3c;
  --foam: #f3efe8;
  --steel: #c9ced1;
  --water: #7cc3d6;
  --water-soft: #e3f2f6;

  --text: #1f2a30;
  --text-soft: #56636a;
  --on-dark: #f3efe8;
  --on-dark-soft: #b7c3c8;
  --line: #ddd6cb;
  --focus: #d27a3c;

  --font-display: "Calibri", "Carlito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-6: 3rem; --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7rem);
  --container: 74rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--foam); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 var(--space-2); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h1 span { display: block; color: var(--copper-bright); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--slate); color: #fff; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: var(--space-2); }
.eyebrow--light { color: var(--copper-bright); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.9rem; padding: .7rem 1.35rem; border: 2px solid transparent; border-radius: 999px; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn--lg { min-height: 3.4rem; padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn--copper { background: var(--copper); color: #fff; }
.btn--copper:hover { background: var(--copper-dark); }
.btn--ghost { border-color: rgba(243, 239, 232, .5); color: var(--foam); }
.btn--ghost:hover { border-color: var(--copper-bright); color: var(--copper-bright); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(36, 50, 58, .97); backdrop-filter: blur(8px); color: var(--on-dark); border-bottom: 4px solid var(--copper-bright); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-drop { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--copper-bright); flex: none; }
.brand-drop svg { width: 1.3rem; height: 1.3rem; fill: var(--foam); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: .2rem; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--on-dark-soft); padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--foam); border-bottom-color: var(--copper-bright); }
.header-call { padding-inline: .9rem; min-height: 2.6rem; flex: none; }
.header-call span { display: none; }
@media (min-width: 34rem) { .header-call span { display: inline; } }
@media (min-width: 60rem) { .site-nav { display: block; } }

/* Hero */
.hero { background: var(--slate); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: var(--space-3); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.22rem); color: var(--on-dark-soft); max-width: 35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: var(--space-4); }
.avail { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.avail li { padding: .3rem .8rem; border-radius: 999px; background: var(--slate-2); border: 1px solid rgba(210, 122, 60, .5); font-size: .85rem; font-weight: 700; }
.avail li::before { content: "● "; color: #3cc37a; }
.pipes svg { width: min(100%, 26rem); margin-inline: auto; }
.flow { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.drop { animation: drip 2s ease-in infinite; opacity: 0; }
.d2 { animation-delay: 1s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(40px); opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }

/* Sections */
.section { padding-block: var(--section); }
.section-head { max-width: 42rem; margin-bottom: var(--space-6); }

/* Services as a pipe run */
.pipeline { list-style: none; margin: 0; padding: 0 0 0 2.2rem; position: relative; display: grid; gap: var(--space-4); }
.pipeline::before { content: ""; position: absolute; left: .7rem; top: .4rem; bottom: .4rem; width: 12px; border-radius: 6px; background: linear-gradient(90deg, #9c5a2a, var(--copper-bright) 40%, #9c5a2a); }
.pipeline li { position: relative; }
.pipeline h3 { margin-bottom: .3rem; }
.pipeline p { margin: 0; color: var(--text-soft); }
.joint { position: absolute; left: -2.2rem; top: .15rem; width: 1.9rem; height: 1.9rem; border-radius: 6px; background: #b8682f; box-shadow: inset 0 0 0 4px #9c5a2a; }
@media (min-width: 52rem) {
  .pipeline { grid-template-columns: repeat(3, 1fr); padding: 2.6rem 0 0; column-gap: var(--space-6); row-gap: var(--space-6); }
  .pipeline::before { left: 0; right: 0; top: .55rem; bottom: auto; width: auto; height: 12px; background: linear-gradient(180deg, #9c5a2a, var(--copper-bright) 40%, #9c5a2a); }
  .joint { left: 0; top: -2.6rem; }
  .pipeline li:nth-child(n+4) .joint { display: none; }
}

/* How */
.how { background: var(--slate-2); color: var(--on-dark); }
.how-grid { display: grid; gap: var(--space-6); }
.how-lede { color: var(--on-dark-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: var(--space-2); padding: var(--space-3); border-radius: 16px; background: var(--slate); }
.steps p { margin: 0; color: var(--on-dark-soft); }
.steps h3 { margin-bottom: .3rem; }
.step-no { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--water); color: var(--slate); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
@media (min-width: 64rem) { .how-grid { grid-template-columns: 1fr 1.4fr; gap: var(--space-8); align-items: start; } }

/* Contact */
.contact { background: var(--water-soft); }
.contact-grid { display: grid; gap: var(--space-6); align-items: center; }
.big-phone { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.02em; text-decoration: none; color: var(--slate); margin: var(--space-2) 0; }
.big-phone:hover { color: var(--copper); }
.where { font-weight: 700; color: var(--text-soft); margin-bottom: var(--space-4); }
.tip-card { padding: var(--space-4); border-radius: 20px; background: #fff; border-top: 8px solid var(--copper-bright); }
.tip-card h3 { font-size: 1.25rem; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: .55rem 0 .55rem 1.8rem; border-top: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: .85rem; width: .8rem; height: 1rem; background: var(--water); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }

/* Footer */
.site-footer { background: var(--slate); color: var(--on-dark-soft); padding: var(--space-8) 0 calc(var(--space-4) + 4.5rem); font-size: .95rem; }
.footer-inner { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(243, 239, 232, .14); }
.footer-inner strong { color: var(--foam); }
.footer-inner p { margin: 0; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--foam); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclosure { margin: var(--space-3) 0 0; font-size: .8rem; opacity: .75; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } .site-footer { padding-bottom: var(--space-4); } }

/* Call bar + toast */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(36, 50, 58, .97); border-top: 4px solid var(--copper-bright); backdrop-filter: blur(8px); }
.call-bar .btn { width: 100%; }
.call-bar .btn span { font-weight: 500; opacity: .9; }
@media (min-width: 48rem) { .call-bar { display: none; } }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; max-width: calc(100% - 2rem); padding: .8rem 1.3rem; background: var(--slate); color: var(--foam); border-left: 5px solid var(--copper-bright); border-radius: 10px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 47.99rem) { .toast { bottom: 5.5rem; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
