/* ==========================================================================
   Peavine Plumbing Co. — Site Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700;800&family=Barlow:wght@400;500;600&display=swap');

:root {
  /* Color tokens */
  --red: #D10000;
  --red-dark: #A50000;
  --ink: #1B1B1A;
  --ink-soft: #3A3937;
  --steel: #4B5A63;
  --steel-light: #7C8A93;
  --white: #FFFFFF;
  --paper: #F6F4F1;
  --line: #E3DFD8;

  /* Type */
  --font-head: 'Jost', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Layout */
  --max-width: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.eyebrow-line {
  width: 46px;
  height: 4px;
  background: var(--red);
  margin-bottom: 18px;
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-soft); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-invert {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-invert:hover { background: var(--white); color: var(--red); }

.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover { background: var(--paper); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 58px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--red); }

.nav-links a.active { color: var(--ink); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--red);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--steel);
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand img { height: 40px; margin-bottom: 16px; }

.footer-brand p {
  color: #C9C6C1;
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: #C9C6C1;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.98rem;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8B8985;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 20px 0 32px;
}

.hero-headline-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.2px;
  margin-top: 12px;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-trust-item svg { flex-shrink: 0; color: var(--red); }

.hero-art {
  width: 100%;
  height: auto;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.hero-logo-large {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.hero-est {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--ink-soft);
}

.hero-est .placeholder-text {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
}

.pipe-line { fill: none; stroke: var(--steel-light); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.pipe-line-accent { fill: none; stroke: var(--red); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.pipe-joint { fill: var(--white); stroke: var(--steel); stroke-width: 5; }
.pipe-joint-accent { fill: var(--red); stroke: var(--red-dark); stroke-width: 5; }

.hero-droplet { fill: var(--red); }
.hero-droplet-shine { fill: rgba(255,255,255,0.32); }

/* Simple page hero (interior pages) */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.page-hero .container { max-width: 760px; }

.page-hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 60ch;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip .container {
  display: flex;
  padding: 32px var(--gutter);
}

.stat {
  flex: 1;
  text-align: left;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
  margin-top: 6px;
}

/* ==========================================================================
   Section spacing / headers
   ========================================================================== */

.section { padding: 88px 0; }
.section-alt { background: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head p {
  max-width: 46ch;
  color: var(--ink-soft);
  margin-top: 14px;
}

.section-head .btn { flex-shrink: 0; }

/* ==========================================================================
   Service rows (list style, not cards)
   ========================================================================== */

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.6fr;
  gap: 28px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-left-color 0.15s ease, background-color 0.15s ease;
}

.service-row:hover {
  border-left-color: var(--red);
  background: var(--paper);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.service-row:hover .service-icon { background: var(--white); }

.service-row h3 { margin-bottom: 4px; }

.service-row .service-desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.service-row .service-desc.placeholder,
.placeholder-text {
  color: var(--steel-light);
  font-style: italic;
}

/* ==========================================================================
   About preview / split sections
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

.media-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px dashed var(--steel-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--steel);
  text-align: center;
  padding: 24px;
}

.media-placeholder.wide { aspect-ratio: 16 / 10; }

.media-placeholder svg { color: var(--steel-light); }

.media-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 26ch;
}

.media-photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.media-photo .photo-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(27, 27, 26, 0.78);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 3px;
}

.credential-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credential-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.98rem;
}

.credential-list svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   Timeline (About page)
   ========================================================================== */

.timeline {
  position: relative;
  margin-top: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  margin-bottom: 44px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.5px;
}

.timeline-item h3 { margin-top: 4px; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-soft); max-width: 60ch; }

/* ==========================================================================
   Values row
   ========================================================================== */

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-item svg { color: var(--red); margin-bottom: 16px; }
.value-item p { color: var(--ink-soft); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.gallery-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo img {
  transform: scale(1.035);
}

.gallery-caption {
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--red);
  color: var(--white);
  padding: 72px 0;
}

.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 { max-width: 18ch; }
.cta-banner .cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.contact-info-list h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.contact-info-list p { color: var(--ink-soft); font-size: 0.95rem; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.map-placeholder {
  margin-top: 40px;
  aspect-ratio: 16 / 6;
  background: var(--paper);
  border: 1px dashed var(--steel-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--steel);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero .container,
  .split,
  .split.reverse .split-media,
  .split.reverse .split-copy,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media,
  .split.reverse .split-copy { order: initial; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .values-row { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-strip .container { flex-direction: column; gap: 20px; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .stat:first-child { border-top: none; padding-top: 0; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 32px var(--gutter); gap: 32px; transform: translateX(100%); transition: transform 0.2s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 22px; font-size: 1.2rem; }
  .header-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-toggle { display: flex; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row .service-desc { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}
