/* ============================================
   Hydro Pro Plumbing — design tokens
   Palette matches the layout/colours the client asked to match:
   red + dark navy + blue on an off-white base, square-cornered,
   bold condensed headlines (Oswald) over Work Sans body text.
   ============================================ */
:root {
  --navy-950: #0e1c28;
  --navy-900: #15293a;
  --navy-800: #1c3348;
  --navy-700: #26415a;
  --red-600: #c50220;
  --red-500: #e3122f;
  --blue-700: #0062a6;
  --blue-500: #2f8fe6;
  --paper: #f9fcfe;
  --white: #ffffff;
  --ink-900: #0e1c28;
  --ink-600: #475569;
  --ink-400: #8a97a6;
  --line: #e2e8ef;

  --font-display: "Oswald", "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", "Inter", sans-serif;

  --max-width: 1160px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0 0 0.4em;
  color: var(--ink-900);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-600); max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(197, 2, 32, 0.55);
}
.btn-primary:hover { background: var(--red-500); }

.btn-ghost {
  background: rgba(14, 28, 40, 0.75);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-dark {
  background: var(--navy-950);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }

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

.btn-outline-dark {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--navy-950);
}
.btn-outline-dark:hover { background: var(--navy-950); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1800px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand-name .accent { color: var(--blue-700); }

.main-nav { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; margin-left: 24px; }
.main-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink-600);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-700); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: 28px; }
.header-quote-btn { display: none; }
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-link svg { flex-shrink: 0; }

.btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-900);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 10px;
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; min-height: calc(100vh - 76px);
    background: var(--white);
    flex-direction: column; padding: 30px 24px; gap: 22px; align-items: flex-start;
    transform: translateY(-150vh); transition: transform 0.25s ease; z-index: 40; }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 0.95rem; }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .header-quote-btn { display: inline-flex; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .brand { gap: 6px; }
  .brand img { height: 32px; }
  .brand-name { font-size: 0.82rem; }
  .header-actions { gap: 4px; margin-left: 6px; }
  .header-quote-btn { padding: 8px 8px; font-size: 0.58rem; gap: 0; }
  .header-actions .btn-primary { padding: 8px 8px; font-size: 0.58rem; }
  .nav-toggle { padding: 3px 6px; font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 10px; }
  .brand { gap: 4px; }
  .brand img { height: 28px; }
  .brand-name { font-size: 0.72rem; }
  .header-actions { gap: 3px; margin-left: 4px; }
  .header-quote-btn { padding: 7px 6px; font-size: 0.52rem; }
  .header-actions .btn-primary { padding: 7px 6px; font-size: 0.52rem; }
  .nav-toggle { padding: 3px 5px; font-size: 1rem; }
}

@media (max-width: 340px) {
  .wrap { padding: 0 8px; }
  .brand img { height: 24px; }
  .brand-name { font-size: 0.62rem; }
  .header-actions { gap: 2px; margin-left: 2px; }
  .header-quote-btn { padding: 6px 5px; font-size: 0.46rem; letter-spacing: 0; }
  .header-actions .btn-primary { padding: 6px 5px; font-size: 0.46rem; letter-spacing: 0; }
  .nav-toggle { padding: 2px 4px; font-size: 0.9rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950) center/cover no-repeat
    url('images/hero-fallback.jpg');
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10,16,22,0.94) 0%, rgba(10,16,22,0.55) 42%, rgba(10,16,22,0.3) 65%, rgba(10,16,22,0.7) 100%),
    linear-gradient(100deg, rgba(10,16,22,0.7) 0%, rgba(10,16,22,0.08) 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px;
  width: 100%;
}
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-500);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 12px 3px rgba(47, 143, 230, 0.8);
}
.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 900;
  max-width: 14ch;
  color: var(--white);
}
.hero h1 .accent { color: var(--blue-500); }
.hero .lede {
  color: #d7dee5;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-top: 18px;
  text-transform: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- trust strip ---------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-900);
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}
.trust-strip .wrap .trust-item:last-child { border-right: none; }
.trust-item svg { color: var(--blue-700); flex-shrink: 0; margin-top: 2px; }
.trust-item span { display: block; }
.trust-item .trust-sub { font-weight: 400; color: var(--ink-600); font-size: 0.85rem; margin-top: 2px; text-transform: none; }

@media (max-width: 760px) {
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2n) { border-right: none; }
}

/* ---------- section shells ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy-950); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #b9c4cf; }
.section-head { max-width: 640px; margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .kicker {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--blue-700);
}
.section-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---------- numbered services list ---------- */
.services-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
}
.service-row:nth-child(even) { background: var(--white); }
.service-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-700);
}
.service-row h3 { margin: 0 0 6px; font-size: 1.15rem; text-transform: uppercase; }
.service-row p { margin: 0 0 10px; font-size: 0.92rem; }
.service-row .learn-more { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 560px) {
  .service-row { grid-template-columns: 1fr; }
}

/* ---------- why-us / feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  background: var(--white);
  padding: 30px 28px;
}
.feature-card .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-700);
  display: block;
  margin-bottom: 10px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- insights / blog cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.insight-card .thumb {
  aspect-ratio: 16/10;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ea3b5;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.insight-card .body { padding: 22px; }
.insight-card .tag { color: var(--blue-700); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.insight-card h3 { margin: 10px 0 10px; font-size: 1.05rem; text-transform: none; }
.insight-card p { font-size: 0.9rem; margin-bottom: 12px; }
@media (max-width: 860px) { .insights-grid { grid-template-columns: 1fr; } }

/* ---------- pricing / value cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px;
}
.value-card .headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--blue-700);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.value-card .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-900); margin-bottom: 12px; }
.value-card.accent { background: var(--blue-700); color: var(--white); }
.value-card.accent .headline, .value-card.accent .label { color: var(--white); }
.value-card.accent p { color: #d7e7f3; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- split CTA band (blue) ---------- */
.cta-split {
  background: var(--blue-700);
  color: var(--white);
  padding: 64px 0;
}
.cta-split h2 { color: var(--white); }
.cta-split p { color: #d7e7f3; font-size: 1.05rem; }
.cta-split-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- CTA banner (card style, used on interior pages) ---------- */
.cta-banner {
  background: var(--navy-950);
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; color: var(--white); }
.cta-banner p { margin: 0; color: #b9c4cf; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- quote form ---------- */
.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.form-tabs {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.form-tab {
  flex: 1;
  background: var(--paper);
  border: none;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink-600);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.form-tab + .form-tab { border-left: 1px solid var(--line); }
.form-tab:hover { color: var(--ink-900); }
.form-tab.active { background: var(--blue-700); color: var(--white); }
.contact-form { display: none; }
.contact-form.active { display: block; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-900); text-transform: uppercase; letter-spacing: 0.3px; }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0,98,166,0.15);
}
.form-note { font-size: 0.82rem; color: var(--ink-600); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; }

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-950);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-col h3 {
  font-size: 0.8rem;
  color: #8ea3b5;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: #d7dee5; }
.footer-col a:hover { color: var(--white); }
.footer-brand p { color: #8ea3b5; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid #2a3c4c;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #d7dee5;
}
.social-row a:hover { border-color: var(--blue-500); color: var(--white); }
.footer-bottom {
  border-top: 1px solid #1c3348;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8ea3b5;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- page banner (interior pages) ---------- */
.page-banner {
  padding: 150px 0 60px;
  background: var(--navy-950);
}
.page-banner .kicker { color: var(--blue-500); font-weight: 700; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; }
.page-banner h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 8px; color: var(--white); }
.page-banner .lede { color: #b9c4cf !important; }

/* ---------- services detail cards ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 30px;
}
.service-card .service-num { font-size: 1.5rem; }
.service-card h3 { margin-top: 10px; text-transform: uppercase; }
@media (max-width: 760px) { .service-detail-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--line);
  margin: 0;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(14,28,40,0.92), rgba(14,28,40,0));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 28, 40, 0.94);
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(90vw, 980px); text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
  margin: 0 auto;
}
.lightbox figcaption {
  color: var(--chrome-200, #c7d4df);
  font-size: 0.92rem;
  margin-top: 16px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { color: var(--blue-500); }

/* ---------- simple list pages (careers, about) ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-600);
  font-size: 0.95rem;
}
.check-list li svg { color: var(--blue-700); flex-shrink: 0; margin-top: 2px; }

/* ---------- utility ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
