/* Warren's Plumbing — static stylesheet */
:root {
  --navy-950: #06222a; --navy-900: #0e4d5c; --navy-800: #156577; --navy-700: #1d7d92;
  --amber-300: #f9cf8e; --amber-400: #f6b45e; --amber-500: #f2a33c; --amber-600: #d17f22; --amber-700: #a86218;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569; --slate-700: #334155; --slate-900: #0f172a; --white: #ffffff;
  --radius: 14px; --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(5, 20, 35, 0.08); --shadow-md: 0 8px 24px rgba(5, 20, 35, 0.12); --shadow-lg: 0 20px 48px rgba(5, 20, 35, 0.18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; transition: all 0.2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-amber { background: var(--amber-500); color: var(--navy-950); }
.btn-amber:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(210,127,34,0.35); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.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); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.18rem; font-weight: 700; color: var(--navy-950); letter-spacing: -0.01em; }
.brand-text span { color: var(--navy-900); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.93rem; font-weight: 500; color: var(--slate-600); padding: 6px 0; position: relative; transition: color 0.2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber-500); transition: width 0.25s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.95rem; color: var(--navy-900); }
.phone-link:hover { color: var(--amber-600); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 85% -10%, rgba(242,163,60,0.18), transparent 55%),
              radial-gradient(100% 90% at 0% 10%, rgba(14,77,92,0.10), transparent 50%),
              linear-gradient(180deg, var(--slate-50), var(--white));
  padding: 70px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 14px; }
.eyebrow-light { color: var(--amber-400); }
.hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.05; font-weight: 800; color: var(--navy-950); letter-spacing: -0.02em; }
.hero-copy h1 .accent { color: var(--amber-600); display: block; }
.hero-sub { margin-top: 18px; font-size: 1.1rem; color: var(--slate-600); max-width: 520px; }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.trust-badges { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 22px; }
.trust-badges li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--slate-700); }
.trust-badges svg { color: var(--amber-500); }
.trust-badges li:nth-child(2) svg { color: var(--amber-500); }
.trust-badges li:nth-child(3) svg { color: var(--navy-800); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-card {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--white); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-md); max-width: 240px;
}
.hero-card-stars { color: var(--amber-500); font-size: 1rem; letter-spacing: 2px; }
.hero-card-text { font-size: 1.02rem; font-weight: 700; color: var(--navy-950); margin-top: 4px; }
.hero-card-name { font-size: 0.8rem; color: var(--slate-500); margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-950); padding: 38px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; color: var(--amber-400); line-height: 1; }
.stat-label { margin-top: 8px; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.78); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--slate-50); }
.section-navy {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; color: var(--navy-950); letter-spacing: -0.02em; line-height: 1.12; }
.section-head h2.light { color: var(--white); }
.section-sub { margin-top: 14px; font-size: 1.05rem; color: var(--slate-500); }
.section-sub.light-sub { color: rgba(255,255,255,0.78); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--amber-400);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-top: 20px; font-size: 1.22rem; font-weight: 700; color: var(--navy-950); }
.service-card p { margin-top: 10px; font-size: 0.96rem; color: var(--slate-600); }
.card-link { display: inline-block; margin-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--amber-600); }
.card-link:hover { color: var(--amber-700); }

/* ---------- Split sections ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.exp-badge {
  position: absolute; right: -14px; top: 24px;
  background: var(--amber-500); color: var(--navy-950);
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-md); display: flex; align-items: baseline; gap: 6px;
}
.exp-badge span { font-size: 1.5rem; font-weight: 800; }
.split-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy-950); letter-spacing: -0.02em; line-height: 1.12; }
.split-copy > p { margin-top: 16px; font-size: 1.05rem; color: var(--slate-600); }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 0.98rem; color: var(--slate-700); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306222a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.split-copy .btn { margin-top: 30px; }

/* ---------- About points ---------- */
.about-points { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-point { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 16px; }
.about-point strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.about-point span { display: block; margin-top: 3px; font-size: 0.82rem; color: var(--slate-500); }

/* ---------- Feature strip ---------- */
.feature-strip {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white);
}
.feature-strip img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.feature-strip-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-strip-copy h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy-950); }
.feature-strip-copy p { margin-top: 12px; font-size: 1rem; color: var(--slate-600); }
.feature-strip-copy .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Reviews carousel ---------- */
.carousel { position: relative; max-width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.review-card {
  flex: 0 0 100%; padding: 0 6px;
}
.review-card > *:not(.review-top) { padding: 0; }
.review-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 30px; margin: 0 6px;
}
.review-top { display: flex; align-items: center; gap: 12px; }
.g-logo {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.review-name { font-weight: 700; color: var(--navy-950); }
.review-meta { font-size: 0.82rem; color: var(--slate-500); }
.stars { color: var(--amber-500); font-size: 1.05rem; letter-spacing: 2px; margin-top: 14px; }
.review-card blockquote { margin-top: 12px; font-size: 1.02rem; color: var(--slate-700); line-height: 1.6; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--slate-200);
  background: var(--white); color: var(--navy-900); font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: var(--slate-200); transition: all 0.2s;
}
.carousel-dots button.active { background: var(--amber-500); width: 26px; border-radius: 999px; }

/* ---------- Service area ---------- */
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
.area-list li { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); color: var(--white); font-weight: 600; font-size: 0.97rem; }
.area-list svg { color: var(--amber-400); flex-shrink: 0; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy-950); letter-spacing: -0.02em; }
.form-copy > p { margin-top: 14px; font-size: 1.05rem; color: var(--slate-600); }
.inline-link { color: var(--amber-600); font-weight: 600; }
.inline-link:hover { color: var(--amber-700); text-decoration: underline; }
.contact-facts { margin-top: 26px; display: grid; gap: 12px; }
.contact-facts li { font-size: 0.96rem; color: var(--slate-700); }
.contact-facts strong { color: var(--navy-900); }
.quote-form { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; font-size: 0.95rem; font-family: inherit; color: var(--slate-900);
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(29,125,146,0.15); background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-error { color: #b91c1c; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; }
.form-note { margin-top: 12px; font-size: 0.82rem; color: var(--slate-500); text-align: center; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success svg { color: #16a34a; margin: 0 auto; }
.form-success h3 { margin-top: 14px; font-size: 1.3rem; color: var(--navy-950); }
.form-success p { margin-top: 8px; font-size: 0.95rem; color: var(--slate-600); }
.form-success.hidden, .form-success[hidden] { display: none; }
.quote-form.submitted .form-row, .quote-form.submitted .form-field, .quote-form.submitted > .btn, .quote-form.submitted > .form-note { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text span { color: var(--amber-400); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: 0.9rem; }
.footer-col a:hover { color: var(--amber-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Demo bar ---------- */
.demo-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px;
  background: var(--navy-950); color: var(--white); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px);
}
.demo-bar-text { font-size: 0.88rem; }
.demo-bar-text strong { color: var(--amber-400); }
.demo-bar-close { color: rgba(255,255,255,0.6); font-size: 1.4rem; line-height: 1; padding: 0 6px; }
.demo-bar-close:hover { color: var(--white); }
.demo-bar.hidden { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 8px 24px 18px;
    transform: translateY(-130%); transition: transform 0.3s ease; box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--slate-100); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .phone-link { display: none; }
  .hero { padding: 48px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { left: 12px; bottom: -16px; padding: 12px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-copy { order: 0; }
  .exp-badge { right: 12px; top: 16px; padding: 10px 16px; font-size: 0.85rem; }
  .exp-badge span { font-size: 1.2rem; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip-copy { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .about-points { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .nav-cta .btn-amber.btn-sm { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-bar { padding: 10px 10px 10px 18px; gap: 10px; }
  .demo-bar-text { font-size: 0.8rem; }
  .demo-bar-btn { padding: 8px 12px; font-size: 0.8rem; }
}
