/* ============================================
   CSS Variables — Plumbing Prevention Theme
   Fresh take: slate blue + teal + warm copper
   ============================================ */
:root {
  --slate: #1e3a5f;
  --slate-dark: #0f2540;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #2dd4bf;
  --copper: #e67e22;
  --copper-dark: #d35400;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 37, 64, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 37, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 37, 64, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--slate);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover, a:focus { color: var(--teal); }

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

.eyebrow {
  display: inline-block;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal-dark);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
}
.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}
.btn-outline:hover {
  background: var(--slate);
  color: #fff;
}
.btn-full { width: 100%; }
.btn-arrow {
  transition: transform var(--duration) var(--ease);
  font-weight: 500;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--duration) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate) 0%, var(--teal) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1rem; color: var(--slate); font-weight: 800; }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width var(--duration) var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--slate); }

.header-cta {
  background: var(--slate);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}
.header-cta:hover {
  background: var(--copper);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(13, 148, 136, 0.88) 100%);
  overflow: hidden;
  border-bottom: 4px solid var(--copper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 85% 20%, rgba(45, 212, 191, 0.22), transparent),
    radial-gradient(ellipse 500px 300px at 10% 80%, rgba(15, 37, 64, 0.4), transparent);
}

.hero-bg::before {
  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: 50px 50px;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero .eyebrow {
  background: rgba(230, 126, 34, 0.2);
  color: #ffd9b3;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0.5rem 0 1.4rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hero-badges {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}
.hero-badges li { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.hero-badges a { color: var(--teal-light); font-weight: 600; }
.hero-badges a:hover { color: #fff; }

/* ============================================
   Article
   ============================================ */
.article {
  max-width: 780px;
  padding: 4.5rem 1.25rem 3.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.meta-tag {
  background: var(--slate);
  color: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meta-sep { color: var(--border-strong); }

.article h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  color: var(--slate);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 3.25rem 0 1.1rem;
  padding: 0.6rem 0 0.6rem 1.1rem;
  border-left: 4px solid var(--teal);
  line-height: 1.25;
  position: relative;
}
.article h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 40%;
  background: var(--copper);
}

.article h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--teal-dark);
  font-weight: 700;
}

.article p { margin-bottom: 1.25rem; color: var(--text); }

.article ul {
  margin: 1rem 0 1.5rem 0.5rem;
  padding-left: 1.5rem;
}
.article ul li {
  margin-bottom: 0.55rem;
  color: var(--text);
  position: relative;
  list-style: none;
  padding-left: 1.5rem;
}
.article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  background: var(--copper);
  border-radius: 2px;
  transform: rotate(45deg);
}

.article strong { color: var(--slate); }

.article a {
  color: var(--slate);
  font-weight: 700;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration) var(--ease), color var(--duration) var(--ease);
}
.article a:hover {
  color: var(--teal);
  background-size: 100% 2px;
}

.article-cta {
  margin-top: 3.5rem;
  padding: 2.75rem 2rem;
  background:
    linear-gradient(135deg, var(--slate) 0%, var(--teal) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--copper);
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(45, 212, 191, 0.2);
  border-radius: 50%;
}
.article-cta::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 250px; height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.article-cta h3 {
  position: relative;
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.article-cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.article-cta .btn { position: relative; }
.article-cta .btn-primary {
  background: var(--copper);
  border-color: var(--copper);
}
.article-cta .btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(230, 126, 34, 0.5);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 5rem 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--slate);
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
}
.contact-list li:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.contact-text a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  word-break: break-word;
}
.contact-text a:hover { color: var(--teal); }

.contact-form {
  background: var(--surface);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--slate);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.form-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--surface);
  transition: all var(--duration) var(--ease);
  color: var(--text);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-full { margin-top: 0.5rem; }

.form-status {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
  text-align: center;
}
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 5rem 0;
  background: var(--bg);
}

.faq-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.faq-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--slate);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-size: 1rem;
  transition: color var(--duration) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--copper);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
  line-height: 1;
}
.faq-item[open] summary { color: var(--teal-dark); }
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--slate-dark);
  color: #c8d6e4;
  padding: 3.5rem 0 1rem;
  border-top: 4px solid var(--copper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand .brand-mark {
  background: linear-gradient(135deg, #2e4a6f, #0d9488);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; font-weight: 800; }
.footer-brand .brand-sub { color: #8ca8c2; }

.footer-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #8ca8c2;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.5rem;
}
.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--copper);
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer a {
  color: #a8bfd4;
  font-size: 0.92rem;
  transition: color var(--duration) var(--ease);
  word-break: break-word;
}
.site-footer a:hover { color: var(--teal-light); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: #7a8a9f; }

/* ============================================
   Scroll to top
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  z-index: 500;
  text-decoration: none;
  border: 2px solid #fff;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--slate);
  color: var(--teal-light);
  transform: translateY(-4px);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav, .header-cta { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    gap: 0;
  }
  .main-nav.open a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .main-nav.open a:last-child { border-bottom: none; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-badges { flex-direction: column; gap: 0.75rem; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .article { padding: 3rem 1.25rem 2.5rem; }
  .article-cta { padding: 2rem 1.5rem; }
  .faq { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .btn { padding: 0.85rem 1.3rem; font-size: 0.93rem; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .brand-name { font-size: 0.9rem; }
  .brand-sub { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}