/* KC Plumbing & Leak Detection: site styles */

/* Fonts: Barlow and Barlow Condensed (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/BarlowCondensed-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Barlow-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Barlow-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Barlow-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Barlow-Bold.woff2') format('woff2'); }

:root {
  --black: #0A0A0A;
  --ink: #161616;
  --muted: #4A4D47;
  --body-ink: #3F423C;
  --green: #59B133;          /* logo green */
  --green-hover: #4E9E2C;
  --green-ink: #3D7D20;      /* green for text on light backgrounds */
  --green-ink-hover: #2C5C17;
  --light: #F3F4F0;
  --line: #E2E4DD;
  --line-2: #D6D9D0;
  --input: #CDD0C8;
  --on-dark: #D2D5CE;
  --on-dark-2: #C4C7C0;
  --faint: #8E918A;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); }
a:hover { color: var(--green-ink-hover); }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--green); color: var(--black); font-weight: 700;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow--dark { color: var(--green); font-size: 18px; letter-spacing: 0.16em; }

.section-title {
  margin-top: 10px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 4.4vw, 54px); line-height: 1;
  text-transform: uppercase; color: var(--black);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; }
.btn-phone { letter-spacing: 0.02em; text-transform: none; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--green-hover); color: var(--black); }
.btn-outline-green { border-color: var(--green); background: transparent; color: var(--green); }
.btn-outline-green:hover { background: rgba(89, 177, 51, 0.12); color: var(--green); }
.btn-black { background: var(--black); color: #FFFFFF; }
.btn-black:hover { background: #262626; color: #FFFFFF; }
.btn-outline-black { border-color: var(--black); background: transparent; color: var(--black); }
.btn-outline-black:hover { background: rgba(10, 10, 10, 0.08); color: var(--black); }
.btn:disabled { opacity: 0.7; cursor: wait; }

.link-btn {
  min-height: 44px; padding: 0 4px;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--green-ink);
}
.link-btn--underline { text-decoration: underline; }

/* Header */
.site-header { background: var(--black); border-bottom: 1px solid #222222; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand img { height: 66px; width: auto; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: #E9EAE6; text-decoration: none; font-weight: 600; font-size: 16px; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; gap: 12px; }
.header-actions .btn { min-height: 48px; padding: 0 18px; font-size: 20px; }
.header-call-icon { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--black); color: #FFFFFF; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 25% 15%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10, 10, 10, 0.72) 16%, rgba(10, 10, 10, 0.18) 46%, rgba(10, 10, 10, 0.05) 100%);
}
.hero-inner {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: flex-end; justify-content: space-between;
  padding-top: 60px; padding-bottom: 60px;
}
.hero-text { flex: 1 1 520px; max-width: 610px; min-width: 0; }
.hero h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 6vw, 84px); line-height: 0.95;
  letter-spacing: 0.005em; text-transform: uppercase;
}
.hero h1 span { color: var(--green); }
.hero-lead { margin: 26px 0 0; max-width: 520px; font-size: 20px; color: var(--on-dark); }

.checks { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.checks svg { flex-shrink: 0; color: var(--green); }

.hero-call { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 17px; color: var(--on-dark); }
.hero-call a {
  display: flex; align-items: center; gap: 10px;
  color: var(--green); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0.02em;
}

/* Request form card */
.request-card {
  flex: 0 1 420px; width: 420px; max-width: 100%; min-width: 0;
  padding: 26px 26px 22px;
  background: #FFFFFF; color: var(--ink);
  border-top: 8px solid var(--green); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h2 {
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1;
  text-transform: uppercase; color: var(--black);
}
.card-head h2:focus { outline: none; }
.step-label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.card-sub { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field-row .field { margin-top: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1.5px solid var(--input); border-radius: 8px;
}
.field input, .field select { height: 48px; padding: 0 14px; }
.field select { padding: 0 12px; }
.field textarea { min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field input:user-invalid, .field select:user-invalid { border-color: #B42318; }

.chips { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: #FFFFFF; border: 2px solid var(--input); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: #2A2C28; cursor: pointer;
}
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--black); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--green-ink); }

.request-card .btn-block { margin-top: 16px; min-height: 58px; font-size: 24px; }
.card-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.card-note a { font-weight: 700; }
.card-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); text-align: right; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #FEF3F2; color: #912018; font-size: 15px; }
.form-error a { color: #912018; font-weight: 700; }

.form-done { padding: 22px 4px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.form-done:focus { outline: none; }
.done-icon { color: var(--green-ink); }
.form-done h2 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1;
  text-transform: uppercase; color: var(--black);
}
.form-done p { margin: 12px 0 0; max-width: 340px; font-size: 17px; color: var(--muted); }
.done-call { margin-top: 22px; width: 100%; padding: 16px; background: var(--light); border-radius: 10px; }
.done-call span { display: block; font-size: 15px; color: var(--muted); }
.done-call a { display: inline-block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--black); text-decoration: none; }
.form-done .link-btn { margin-top: 14px; }

/* Services */
.services { padding: 96px 0 100px; }
.services-head { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.services-head > div:first-child { flex: 1 1 480px; min-width: 0; }
.services-head h2 {
  margin-top: 10px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 5.4vw, 76px); line-height: 0.92;
  text-transform: uppercase; color: var(--black);
}
.services-intro { flex: 0 1 460px; min-width: 0; }
.services-intro p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; font-size: 17px; font-weight: 700; text-decoration: none; }

.service-groups { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px 32px; }
.service-group { padding-top: 22px; border-top: 4px solid var(--green); }
.service-group h3 {
  font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1;
  text-transform: uppercase; color: var(--black);
}
.service-group p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.service-group ul { margin: 16px 0 0; padding: 0; list-style: none; }
.service-group li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }

.emergency {
  margin-top: 56px; padding: 28px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--black); color: #FFFFFF; border-radius: 14px;
}
.emergency > div { flex: 1 1 420px; min-width: 0; }
.emergency h3 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.emergency p { margin: 8px 0 0; color: var(--on-dark-2); }
.emergency .btn { min-height: 58px; font-size: 24px; }

/* About */
.about { padding: 96px 0; background: var(--light); }
.about-inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.about-media {
  flex: 1 1 380px; max-width: 460px; min-width: 0; aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: var(--black); border-radius: 14px; overflow: hidden;
}
.about-media img { width: 100%; }
.about-text { flex: 1 1 560px; max-width: 700px; min-width: 0; }
.about-body { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.65; color: var(--body-ink); }
.about-body p { margin: 0; }
.about-body .lead { font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.signature { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.signature strong { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--black); }
.signature span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Closing call to action */
.cta { background: var(--green); color: var(--black); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta-inner > div:first-child { flex: 1 1 520px; min-width: 0; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 58px); line-height: 1; text-transform: uppercase; }
.cta p { margin: 12px 0 0; font-size: 20px; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn { min-height: 58px; font-size: 22px; }

/* Footer */
.site-footer { padding: 64px 0 28px; background: var(--black); color: var(--on-dark-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.footer-logo { width: 240px; }
.footer-tagline { margin: 18px 0 0; font-size: 15px; }
.site-footer h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; }
.site-footer ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .footer-phone { color: var(--green); font-weight: 700; }
.site-footer .area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.site-footer .email-link { font-size: 14px; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #262626; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: var(--faint); }

/* Phone call bar (phones only) */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-photo { width: 100%; opacity: 0.4; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 88px; }
  .container { padding: 0 20px; }

  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 50px; }
  .header-actions { display: none; }
  .header-call-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 10px;
    background: var(--green); color: var(--black);
  }

  .hero-photo { width: 100%; height: 340px; bottom: auto; opacity: 1; }
  .hero-photo img { object-position: 30% 10%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.3) 38%, rgba(10, 10, 10, 0.9) 66%, var(--black) 100%); }
  .hero-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding-top: 172px; padding-bottom: 30px; }
  .hero-text { display: contents; }
  .hero .eyebrow { order: 1; font-size: 14px; letter-spacing: 0.14em; }
  .hero h1 { order: 2; margin-top: 8px; font-size: 44px; }
  .request-card { order: 3; flex: none; width: 100%; margin-top: 20px; padding: 20px 18px 18px; border-top-width: 7px; }
  .checks { order: 4; margin-top: 24px; gap: 12px; }
  .checks li { align-items: flex-start; font-size: 16px; }
  .hero-lead, .hero-call { display: none; }

  .card-head h2, .form-done h2 { font-size: 30px; }
  .card-sub { display: none; }
  .request-card .btn-block { min-height: 54px; font-size: 22px; }

  .services { padding: 48px 0 44px; }
  .services-head h2 { font-size: 48px; }
  .service-groups { margin-top: 28px; gap: 32px; }
  .service-group h3 { font-size: 28px; }
  .emergency { margin-top: 36px; padding: 22px 18px; }
  .emergency h3 { font-size: 28px; }
  .emergency .btn { width: 100%; font-size: 22px; }

  .about { padding: 48px 0; }
  .about-inner { gap: 28px; }
  .about-media { flex-basis: auto; max-width: none; aspect-ratio: auto; padding: 36px; }
  .about-body { margin-top: 16px; gap: 14px; font-size: 16px; line-height: 1.6; }
  .about-body .lead { font-size: 19px; }

  .cta-inner { padding-top: 48px; padding-bottom: 48px; }
  .cta-actions, .cta .btn { width: 100%; }

  .mobile-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--black); border-top: 1px solid #262626;
  }
  .mobile-bar .btn { flex: 1 1 0; min-height: 52px; padding: 0 12px; font-size: 20px; }
  .mobile-bar .btn-green { flex: 1.5 1 0; }
}
