/* =================================================================
   Brassline — Plumbing & Heating Demo
   Inspired-by Pipecraft. Standalone (no Tailwind, no shared deps).
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Backgrounds (dark) */
  --bg: #0e0e0e;
  --bg-2: #171717;
  --bg-3: #1a1a1a;
  --bg-4: #222222;

  /* Surfaces (light) */
  --paper: #f5f5f5;
  --paper-2: #ececec;

  /* Text */
  --text: #f5f5f5;
  --text-2: #d8d8d8;
  --text-3: #cfcfcf;
  --text-4: #888888;
  --text-5: #636363;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Brand — warm copper / brass */
  --copper: #C8763A;
  --copper-2: #E29762;
  --copper-3: #A8612A;

  /* Type */
  --ff-display: "Phudu", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ff-body: "Inter", system-ui, sans-serif;

  /* Spacing */
  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 9vw, 132px);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--copper); color: var(--bg);
  padding: 10px 16px; border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- 3. Type system ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 6.8vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--copper);
  font-weight: 500;
}
.display--md {
  font-size: clamp(28px, 4.4vw, 56px);
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--text-3);
  max-width: 56ch;
  margin: 24px 0 0;
}
.mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-4);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--copper);
}
.eyebrow--copper {
  color: var(--copper-2);
  border-color: rgba(200, 118, 58, 0.35);
  background: rgba(200, 118, 58, 0.08);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn--lg { height: 56px; padding: 0 26px; font-size: 15.5px; }
.btn--copper {
  background: var(--copper);
  color: var(--bg);
}
.btn--copper:hover { background: var(--copper-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-2); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--copper);
}
.dot--pulse {
  box-shadow: 0 0 0 0 rgba(200, 118, 58, 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 118, 58, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(200, 118, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 118, 58, 0); }
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(14, 14, 14, 0.92);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--copper);
  color: var(--bg);
  border-radius: 10px;
}
.brand--lg { font-size: 30px; gap: 12px; }
.brand--lg .brand__mark { width: 48px; height: 48px; }

.nav__links {
  justify-self: center;
  display: flex; gap: 0;
}
.nav__links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-3);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--bg-3); }

.nav__cta { display: flex; gap: 14px; align-items: center; }
.nav__phone {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav__phone:hover { color: var(--copper-2); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .nav__cta .btn { padding: 0 14px; height: 42px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 112px) 0 0;
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__copy .display { margin-top: 24px; }
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 12px;
  color: var(--text-4);
}
.hero__trust strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
  margin-bottom: 56px;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 8px 12px;
  background: rgba(14, 14, 14, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 11px;
}

/* ---------- 7. Section heads ---------- */
.section-head {
  max-width: 60ch;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.section-head .display { margin-top: 16px; }
.section-head__lede {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 16px;
  max-width: 52ch;
}
.section-head--center {
  margin: 0 auto;
  text-align: center;
}
.section-head--center .eyebrow { display: inline-flex; }
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(32px, 4vw, 56px);
}
@media (max-width: 700px) {
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

/* ---------- 8. About ---------- */
.about {
  padding: var(--section-y) 0;
}
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.pill-card {
  background: var(--bg-2);
  padding: 32px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  transition: background 0.4s var(--ease);
}
.pill-card:hover { background: var(--bg-3); }
.pill-card__num {
  color: var(--copper);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.pill-card h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.pill-card p {
  color: var(--text-3);
  font-size: 15px;
  margin: 0;
}

/* ---------- 9. Services ---------- */
.services {
  background: var(--bg-2);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head--row + .services__grid,
.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service:hover { border-color: var(--copper); transform: translateY(-2px); }
.service__img {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}
.service__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service:hover .service__img img { transform: scale(1.04); }
.service__num { color: var(--copper); font-size: 11px; }
.service h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.service p {
  color: var(--text-3);
  font-size: 14px;
  margin: 0;
}

/* ---------- 10. Work ---------- */
.work {
  padding: var(--section-y) 0;
}
.work__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .work__grid { grid-template-columns: 1fr; } }

.work__card { display: grid; gap: 18px; }
.work__img {
  aspect-ratio: 16/11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.work__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work__card:hover .work__img img { transform: scale(1.04); }
.work__meta { display: grid; gap: 8px; }
.work__meta h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.work__meta p { margin: 0; }

.tag {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--copper-2);
  font-size: 10px;
  letter-spacing: 0.1em;
  width: max-content;
}

/* ---------- 11. Process ---------- */
.process {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.process__list {
  max-width: var(--max);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 var(--pad-x);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process__list { grid-template-columns: 1fr; } }

.process__list li {
  padding: 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 18px;
  align-content: start;
  transition: border-color 0.3s var(--ease);
}
.process__list li:hover { border-color: var(--copper); }
.process__num {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--copper);
  line-height: 1;
  letter-spacing: -0.04em;
}
.process__list h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.process__list p {
  color: var(--text-3);
  font-size: 14px;
  margin: 0;
}

/* ---------- 12. Testimonials ---------- */
.quotes {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head + .quotes__grid,
.quotes__grid,
.quotes .section-head {
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

.quote {
  margin: 0;
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 28px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.quote--copper { background: var(--copper); border-color: var(--copper); color: var(--bg); }
.quote--copper blockquote { color: var(--bg); }
.quote figcaption {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
}
.quote figcaption img {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
}
.quote figcaption strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.quote--copper figcaption strong { color: var(--bg); }
.quote--copper figcaption .mono { color: rgba(14, 14, 14, 0.7); }

/* ---------- 13. Blog ---------- */
.blog {
  padding: var(--section-y) 0;
}
.blog__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog__grid { grid-template-columns: 1fr; } }
.post { display: grid; gap: 14px; }
.post__img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-3);
}
.post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { color: var(--copper-2); font-size: 11px; margin-top: 8px; }
.post h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

/* ---------- 14. FAQ ---------- */
.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
}
.faq__list { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.015em;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--text);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--copper);
  color: var(--bg);
  border-color: var(--copper);
}
.faq details p {
  margin: 0 0 22px;
  color: var(--text-3);
  font-size: 15px;
  max-width: 62ch;
}

/* ---------- 15. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 144px) 0;
}
.cta__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.92), rgba(14, 14, 14, 0.7));
}
.cta__inner {
  position: relative; z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.cta .display { margin-top: 16px; }
.cta__inner > p {
  margin: 22px auto 36px;
  color: var(--text-3);
  font-size: 17px;
  max-width: 52ch;
}
.cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__list {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-3);
}
.cta__list li { display: flex; align-items: center; gap: 8px; }
.cta__list li::before {
  content: "✓";
  color: var(--copper);
  font-family: sans-serif;
}

/* ---------- 16. Footer ---------- */
.footer {
  background: #060606;
  color: var(--text-4);
  padding: clamp(56px, 7vw, 96px) 0 24px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(28px, 5vw, 72px);
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand .brand { color: var(--text); }
.footer__brand p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--text-4);
  font-size: 15px;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .footer__cols { grid-template-columns: 1fr; } }
.footer__cols h4 { margin: 0 0 14px; color: var(--text-5); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.footer__cols a:hover { color: var(--copper-2); }
.footer__bar {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-5);
}
@media (max-width: 700px) { .footer__bar { flex-direction: column; } }

/* ---------- 17. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot--pulse { animation: none; }
}
