/* =========================================================
   LEGEND PLUMBING — stylesheet
   Design language: stamped steel nameplate / pressure-gauge
  Monochrome industrial palette inspired by logo.
   ========================================================= */

:root{
  /* color */
  --ink:        #0a0a0a;
  --ink-2:      #111111;
  --panel:      #171717;
  --panel-2:    #1d1d1d;
  --line:       #303030;
  --line-soft:  #232323;
  --brass:      #d2d2d2;
  --brass-bright:#ffffff;
  --steel:      #b8b8b8;
  --paper:      #f3f3f3;
  --mute:       #b6b6b6;
  --mute-2:     #8e8e8e;
  --danger:     #d0d0d0;

  /* type */
  --f-display: 'Barlow Condensed', sans-serif;
  --f-body: 'Source Sans 3', sans-serif;
  --f-mono: 'Source Sans 3', sans-serif;

  /* layout */
  --maxw: 1200px;
  --gap: 24px;
  --radius: 3px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin: 0 0 .5em;
  line-height: 1.08;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 96px 0; }
@media (max-width: 720px){
  section{ padding: 64px 0; }
}

:focus-visible{
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--brass);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--brass-bright); }
.btn-outline{
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-outline:hover{ border-color: var(--paper); color: var(--paper); background: rgba(255,255,255,.06); }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 32px; }

/* ---------- nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 34px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--paper);
  border-color: var(--paper);
}
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-phone{
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--paper);
  letter-spacing: .03em;
  display:none;
}
.nav-toggle{
  display:none;
  background:none; border:1px solid var(--line); color: var(--paper);
  width: 42px; height:42px; border-radius: var(--radius);
  flex-direction: column; align-items:center; justify-content:center; gap:4px;
  cursor:pointer;
}
.nav-toggle span{ width: 18px; height:2px; background: var(--paper); display:block; }

@media (min-width: 880px){
  .nav-phone{ display:inline; }
}
@media (max-width: 879px){
  .nav-links{
    position:absolute; top:84px; left:0; right:0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0;
    padding: 8px 24px 18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle{ display:flex; }
  .nav-cta .btn span.btn-text-full{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding: 84px 0 90px;
  overflow:hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items:center;
}
.hero h1{
  font-size: clamp(40px, 5.6vw, 72px);
  margin-bottom: 22px;
}
.hero h1 em{
  color: var(--brass);
  font-style: normal;
}
.hero p.lead{
  font-size: 18px;
  color: var(--mute);
  max-width: 540px;
}
.hero-figure{ display:flex; justify-content:center; }
.hero-logo-card{
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  padding: 20px;
  width: min(460px, 100%);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
}
.hero-logo{
  width: 100%;
  height: auto;
  object-fit: contain;
}
.badge-row{
  display:flex; flex-wrap:wrap; gap: 14px 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.badge-row .item{
  display:flex; align-items:center; gap:10px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-row svg{ width:18px; height:18px; flex-shrink:0; color: var(--brass); }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-figure{ order:-1; margin-bottom: 8px; }
  .hero-logo-card{ width: min(360px, 100%); }
}

/* ---------- plate / nameplate card system (signature) ---------- */
.plate{
  position:relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background-image:
    radial-gradient(circle at 14px 14px, var(--mute-2) 0 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--mute-2) 0 2.4px, transparent 3px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--mute-2) 0 2.4px, transparent 3px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--mute-2) 0 2.4px, transparent 3px);
  transition: border-color .2s ease, transform .2s ease;
}
.plate:hover{ border-color: var(--paper); transform: translateY(-3px); }
.plate h3{ font-size: 21px; margin-bottom: 10px; }
.plate p{ color: var(--mute); font-size: 15px; margin-bottom: 0; }
.plate .icon{ width:30px; height:30px; color: var(--brass); margin-bottom: 18px; }

/* ---------- section heads ---------- */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px,3.6vw,42px); }
.section-head p{ color: var(--mute); font-size: 17px; }

/* ---------- grids ---------- */
.grid{ display:grid; gap: var(--gap); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-2{ grid-template-columns: repeat(2,1fr); }
@media (max-width: 980px){ .grid-3{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure{
  margin:0; position:relative; overflow:hidden; border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
}
.gallery img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery figure:hover img{ transform: scale(1.06); }
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.92) 75%);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
}
.gallery figure.tall{ grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 880px){
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .gallery figure.tall{ grid-row: span 1; aspect-ratio: 4/5; }
}
@media (max-width: 540px){
  .gallery{ grid-template-columns: 1fr; }
}

/* ---------- alt panel section ---------- */
.panel-section{ background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(420px 220px at 90% 20%, rgba(255,255,255,.12), transparent 70%);
}
.cta-banner h2{ font-size: clamp(24px,3vw,34px); margin-bottom:8px; position:relative; }
.cta-banner p{ color: var(--mute); margin:0; position:relative; }
.cta-banner .btn-row{ margin-top:0; position:relative; }

/* ---------- footer ---------- */
.site-footer{ border-top: 1px solid var(--line-soft); padding: 64px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4{ font-size:14px; color: var(--mute); letter-spacing:.1em; margin-bottom:18px; }
.footer-grid p, .footer-grid a{ color: var(--mute); font-size:14.5px; }
.footer-grid a:hover{ color: var(--brass-bright); }
.footer-grid li{ margin-bottom:10px; }
.footer-brand img{ height:30px; margin-bottom: 16px; }
.footer-brand p{ max-width:320px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  font-family: var(--f-mono); font-size:12.5px; color: var(--mute-2);
  flex-wrap:wrap; gap:12px;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: span 2; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-brand{ grid-column: span 1; }
}

/* ---------- page hero (subpages) ---------- */
.page-hero{
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.page-hero h1{ font-size: clamp(34px,5vw,54px); margin-bottom:14px; }
.page-hero p{ color: var(--mute); font-size:17px; max-width:620px; margin-bottom:0; }
.breadcrumb{
  font-family: var(--f-mono); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--mute-2); margin-bottom:18px;
}
.breadcrumb span{ color: var(--brass); }

/* ---------- service detail rows ---------- */
.service-row{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap:48px; align-items:center;
  padding: 56px 0; border-bottom: 1px solid var(--line-soft);
}
.service-row:last-child{ border-bottom:none; }
.service-row.reverse .service-media{ order:2; }
.service-media img{ border-radius: var(--radius); border:1px solid var(--line); aspect-ratio: 4/3; object-fit:cover; }
.service-num{ font-family: var(--f-mono); color: var(--brass); font-size:13px; letter-spacing:.12em; margin-bottom:12px; display:block; }
.service-row h3{ font-size: clamp(22px,2.6vw,30px); }
.service-row p{ color: var(--mute); }
.tag-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.tag-list span{
  font-family: var(--f-mono); font-size:12px; letter-spacing:.05em; text-transform:uppercase;
  color: var(--steel); border:1px solid var(--line); padding:6px 12px; border-radius: var(--radius);
}
@media (max-width: 880px){
  .service-row, .service-row.reverse .service-media{ grid-template-columns: 1fr; order:0; }
  .service-row{ grid-template-columns: 1fr; }
}

/* ---------- about page ---------- */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.about-grid img{ border-radius: var(--radius); border:1px solid var(--line); }
.value-list{ display:grid; gap:18px; margin-top:28px; }
.value-list .item{ display:flex; gap:16px; }
.value-list .num{ font-family: var(--f-mono); color: var(--brass); font-size:14px; padding-top:3px; }
.value-list h4{ font-size:17px; text-transform:none; letter-spacing:0; margin-bottom:4px; }
.value-list p{ color: var(--mute); font-size:14.5px; margin:0; }
@media (max-width: 880px){ .about-grid{ grid-template-columns:1fr; } }

/* ---------- contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; }
.contact-info .plate{ margin-bottom:20px; }
.contact-info .row{ display:flex; align-items:flex-start; gap:14px; margin-bottom:22px; }
.contact-info .row svg{ width:20px; height:20px; color: var(--brass); margin-top:3px; flex-shrink:0; }
.contact-info .row h4{ font-size:13px; letter-spacing:.08em; color: var(--mute); text-transform:uppercase; margin-bottom:4px; }
.contact-info .row p, .contact-info .row a{ font-size:16px; color: var(--paper); margin:0; }

.field{ margin-bottom: 20px; }
.field label{
  display:block; font-family: var(--f-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--mute); margin-bottom:8px;
}
.field input, .field textarea, .field select{
  width:100%; background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  color: var(--paper); padding: 13px 14px; font-family: var(--f-body); font-size:15px;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--brass); outline:none; }
.field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size:13px; color: var(--mute-2); margin-top:4px; }
@media (max-width: 880px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- hours table ---------- */
.hours-table{ width:100%; border-collapse: collapse; }
.hours-table td{ padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size:14.5px; }
.hours-table td:last-child{ text-align:right; font-family: var(--f-mono); color: var(--mute); }
.hours-table tr:last-child td{ border-bottom:none; }

/* ---------- misc ---------- */
.divider{ height:1px; background: var(--line-soft); margin: 0; }
.text-brass{ color: var(--brass); }
.kicker-line{ display:flex; align-items:center; gap:14px; margin: 64px 0 0; color: var(--mute-2); font-family: var(--f-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.kicker-line::before, .kicker-line::after{ content:""; flex:1; height:1px; background: var(--line-soft); }

.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
