/* ==========================================================
   Copperline Plumbing & Heating — CanadaWebs trades template
   WCAG 2.1 AA contrast-checked palette. Charcoal + copper.
   ========================================================== */
:root {
  --charcoal: #22303C;      /* 13.5:1 with white text */
  --charcoal-deep: #18232D;
  --copper: #B4551E;        /* 4.9:1 with white / on white */
  --copper-deep: #96461A;
  --copper-bright: #E8935A; /* text-on-charcoal accent, 5.6:1 */
  --steel: #5B6470;         /* muted text, 6:1 on white */
  --paper: #F7F5F2;
  --line: #E1DDD7;
  --ink: #1E2830;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { font-family: 'Barlow', -apple-system, sans-serif; font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--white); }
a { color: var(--copper); }
a:hover { color: var(--copper-deep); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
h1, h2, h3 { font-family: 'Barlow Condensed', 'Barlow', sans-serif; color: var(--charcoal); line-height: 1.1; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-transform: uppercase; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: #fff; padding: 0.7rem 1.2rem; z-index: 99; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.6rem; font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer; min-height: 44px; }
.btn-copper { background: var(--copper); color: #fff !important; }
.btn-copper:hover { background: var(--copper-deep); }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.65); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 1rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.25rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Emergency strip */
.emerg-strip { background: var(--copper); color: #fff; font-weight: 600; font-size: 0.95rem; }
.emerg-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; flex-wrap: wrap; }
.emerg-phone { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--charcoal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 8px; background: var(--copper); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; }
.brand-text em { display: block; font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--copper-bright); letter-spacing: 0.14em; }
.navmenu { display: flex; align-items: center; gap: 0.4rem; }
.navmenu > a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 6px; }
.navmenu > a:not(.btn):hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: var(--copper); color: #fff; border: none; padding: 0.55rem 1rem; font-weight: 700; font-size: 1rem; border-radius: 6px; cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 20px; height: 2.5px; background: #fff; position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .navmenu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .navmenu.open { display: flex; }
  .navmenu > a { padding: 0.85rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.12); border-radius: 0; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-deep) 70%), var(--charcoal); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -60px; width: 420px; height: 420px; border: 26px solid rgba(232,147,90,0.12); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; padding: 4.2rem 1.25rem 3.4rem; }
.eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--copper-deep); margin-bottom: 0.6rem; font-size: 1rem; }
.eyebrow-light { color: var(--copper-bright); }
.hero .eyebrow { color: var(--copper-bright); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; max-width: 16em; margin-bottom: 0.6rem; }
.hero h1 .copper { color: var(--copper-bright); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 40rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.license-line { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.hero-stats { list-style: none; display: flex; gap: 2.6rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.18); margin-top: 2.2rem; padding-top: 1.6rem; }
.hero-stats strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--copper-bright); }
.hero-stats span { font-size: 0.92rem; color: rgba(255,255,255,0.8); }

/* Sections */
section { padding: 4.2rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }

/* Services */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--copper); border-radius: 8px; padding: 1.6rem 1.5rem; }
.svc-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 8px; background: var(--charcoal); color: var(--copper-bright); align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.svc-card p { color: var(--steel); font-size: 0.98rem; }

/* Why */
.why { background: var(--charcoal); color: #fff; }
.why h2 { color: #fff; }
.why-lead { color: rgba(255,255,255,0.85); margin-top: 0.7rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.why-list li { padding: 1rem 1.2rem; background: rgba(255,255,255,0.06); border-left: 4px solid var(--copper-bright); border-radius: 6px; color: rgba(255,255,255,0.88); }
.why-list strong { color: #fff; }
@media (max-width: 52rem) { .why-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.proj-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.proj-photo { position: relative; min-height: 180px; }
.p-a { background: linear-gradient(140deg, #46586A, #22303C); }
.p-b { background: linear-gradient(140deg, #B4551E, #7A3A14); }
.p-c { background: linear-gradient(140deg, #5E7286, #384А5C); }
.p-c { background: linear-gradient(140deg, #5E7286, #384A5C); }
.proj-loc { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,0.94); color: var(--charcoal); font-weight: 700; font-size: 0.85rem; padding: 0.3rem 0.8rem; border-radius: 999px; }
.proj-body { padding: 1.2rem 1.3rem 1.4rem; }
.proj-body h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.35rem; }
.proj-body p { color: var(--steel); font-size: 0.96rem; }

/* Reviews */
.reviews { background: var(--charcoal-deep); color: #fff; }
.reviews h2 { color: #fff; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.rev-card { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 1.5rem 1.5rem 1.3rem; }
.stars { color: var(--copper-bright); letter-spacing: 0.2em; margin-bottom: 0.6rem; font-size: 1.05rem; }
.rev-card p { color: rgba(255,255,255,0.9); margin-bottom: 0.8rem; }
.rev-card footer { color: var(--copper-bright); font-weight: 700; font-size: 0.95rem; }

/* Quote */
.quote { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.quote-info p { margin-bottom: 1rem; }
.quote-details { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.98rem; }
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem; }
.qf-note { font-size: 0.88rem; color: var(--steel); margin-bottom: 1rem; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qf-field { margin-bottom: 1rem; }
.qf-field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--charcoal); }
.qf-field input, .qf-field select, .qf-field textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white); }
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(180,85,30,0.15); }
@media (max-width: 52rem) { .quote-grid { grid-template-columns: 1fr; gap: 1.6rem; } .qf-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.85); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.4rem; padding-bottom: 2rem; }
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; text-transform: uppercase; }
.footer-brand em { font-style: normal; color: var(--copper-bright); font-size: 0.95rem; display: block; letter-spacing: 0.12em; }
.footer-line { font-size: 0.92rem; color: rgba(255,255,255,0.72); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding: 1rem 0 1.2rem; }
.footer-legal p { font-size: 0.85rem; color: rgba(255,255,255,0.68); margin: 0.15rem 0; }
.demo-note a { color: var(--copper-bright); font-weight: 700; }
