/* =========================================================
   Hydro-FlowTech — Plumbing Company Stylesheet
   Colour scheme: deep trust-blue + warm urgency-orange,
   the pairing that performs best for plumbing/trade brands
   (blue = water/reliability, orange = fast emergency action)
   ========================================================= */

:root {
  --blue-900: #072b4f;
  --blue-800: #0a3a68;
  --blue-700: #0d4d87;
  --blue-600: #1067ab;
  --blue-500: #1279c6;
  --blue-100: #e7f1f9;
  --blue-50:  #f4f9fd;

  --orange-600: #d9601a;
  --orange-500: #f2761f;
  --orange-400: #ff8c3d;
  --orange-100: #fff1e6;

  --ink-900: #14202b;
  --ink-700: #3a4a58;
  --ink-500: #64758a;
  --ink-300: #a9b8c7;

  --white: #ffffff;
  --gray-50: #f6f8fa;
  --gray-100: #eef2f5;
  --gray-200: #dde5eb;

  --success: #1c8a5a;
  --star: #ffb400;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(7, 43, 79, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 43, 79, 0.12);
  --shadow-lg: 0 20px 48px rgba(7, 43, 79, 0.18);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 800; color: var(--blue-900); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--ink-700); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 10px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--blue-50); }
.section-dark {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue-800); border-color: var(--blue-100); }
.btn-secondary:hover { border-color: var(--blue-500); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Top utility bar */
.topbar {
  background: var(--blue-900);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; flex: none; }
.topbar-links { display: flex; gap: 18px; }
.topbar a:hover { color: var(--orange-400); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--blue-900); min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-text { min-width: 0; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text .sub { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--orange-600); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-700); border-color: var(--orange-500); }
.mobile-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-800); }
.nav-phone svg { width: 20px; height: 20px; color: var(--orange-500); }

.nav-toggle {
  display: none;
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--blue-900); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-phone span.label { display: none; }
  .nav-cta { gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .site-header.open .mobile-cta { display: inline-flex; margin-top: 4px; border: none; }
}

@media (max-width: 560px) {
  .nav-phone { display: none; }
  .nav-cta .btn-primary { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242,118,31,0.18), transparent 60%),
              linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 76px;
}
.hero h1 { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--orange-400); }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-trust { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust .stat b { display: block; font-size: 1.6rem; color: var(--white); }
.hero-trust .stat span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: var(--white); margin-bottom: 6px; }
.hero-panel p.small { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 20px; }
.hero-service-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.hero-service-list li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.94rem; color: var(--white);
}
.hero-service-list svg { width: 18px; height: 18px; color: var(--orange-400); flex: none; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
}

/* Area strip */
.area-strip { background: var(--orange-500); color: var(--white); padding: 14px 0; }
.area-strip .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 700; font-size: 0.92rem; }
.area-strip svg { width: 18px; height: 18px; flex: none; }
.area-chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.area-chip { background: rgba(255,255,255,0.18); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; color: var(--blue-700); }
.card-emergency .icon-badge { background: var(--orange-100); }
.card-emergency .icon-badge svg { color: var(--orange-600); }

.card ul.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; font-size: 0.92rem; color: var(--ink-700); }
.check-list svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 3px; }

.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-700); margin-top: 14px; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}

/* Reviews */
.rating-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
}
.rating-score { font-size: 2.6rem; font-weight: 800; color: var(--blue-900); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.15rem; }
.google-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-700); font-size: 0.9rem; }
.google-badge svg { width: 20px; height: 20px; }

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-600); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex: none;
}
.review-name { font-weight: 700; color: var(--ink-900); }
.review-meta { font-size: 0.78rem; color: var(--ink-500); }
.review-card .stars { font-size: 0.95rem; }
.review-text { font-size: 0.94rem; color: var(--ink-700); }

/* Testimonial marquee-ish strip on home */
.reviews-cta { text-align: center; margin-top: 30px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-banner .btn-secondary { color: var(--orange-600); }

/* Blog */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: rgba(255,255,255,0.9);
}
.blog-thumb svg { width: 46px; height: 46px; }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; width: fit-content; }
.blog-date { font-size: 0.8rem; color: var(--ink-500); }
.blog-body h3 { margin-bottom: 4px; }
.blog-excerpt { font-size: 0.92rem; color: var(--ink-700); flex: 1; }
.read-more { font-weight: 700; color: var(--orange-600); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }

.article-hero {
  background: var(--blue-50);
  padding: 56px 0 40px;
}
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { margin-top: 36px; }
.article-body h3 { margin-top: 24px; }
.article-body ul, .article-body ol { color: var(--ink-700); padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.article-cta {
  margin-top: 44px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-700); margin-bottom: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--gray-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 4px; }
.form-success {
  display: none;
  background: #eafaf1;
  border: 1px solid #b7ebce;
  color: var(--success);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.form-error {
  display: none;
  background: #fdecec;
  border: 1px solid #f3b9b9;
  color: #b3261e;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.form-error a { color: #b3261e; text-decoration: underline; }

.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .icon-badge { margin-bottom: 0; flex: none; }
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 280px;
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  color: var(--blue-900);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange-500);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--ink-700); }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.78); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 0.9rem; }
.footer-grid a:hover { color: var(--orange-400); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--orange-500); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* Sticky call button (mobile) */
.sticky-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  background: var(--orange-500);
  color: var(--white);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.sticky-call svg { width: 26px; height: 26px; }
@media (max-width: 720px) { .sticky-call { display: flex; } }

/* Breadcrumb / page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 56px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 620px; margin-bottom: 0; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
