/* Essex Home Plumbing — static site styles */

:root {
  --navy-900: #0b1c33;
  --navy-800: #122845;
  --navy-700: #1a3459;
  --blue-600: #2f6fed;
  --blue-500: #4c86f5;
  --blue-50: #eef4ff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #52606d;
  --gray-900: #0f172a;
  --white: #ffffff;
  --gold: #f5a524;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(11, 28, 51, 0.18);
  --max-width: 1160px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--gray-600); margin-top: 14px; font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--white); color: var(--navy-900); }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(255,255,255,0.15); }

.btn--outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover { background: rgba(255,255,255,0.16); }

.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { box-shadow: 0 10px 24px -8px rgba(11,28,51,0.5); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 10px 24px -8px rgba(37,211,102,0.55); }

.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 28, 51, 0.97);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo img { height: 54px; width: auto; border-radius: 10px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; color: var(--white); }
.brand-text span { font-size: 12.5px; color: #a9bcd8; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #cdd9ef;
  font-size: 14.5px;
  font-weight: 600;
}
.main-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 11px 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, #17335c 0%, var(--navy-900) 55%);
  color: var(--white);
  padding: 80px 0 70px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #d7e3f8;
  margin-bottom: 24px;
}
.hero-badge svg { width: 15px; height: 15px; color: #6fe3a3; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.01em; color: var(--white); }
.hero h1 .accent { color: #6fa4ff; }
.hero p.lead {
  margin-top: 20px;
  font-size: 18px;
  color: #b7c6e4;
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: #b7c6e4;
}
.hero-meta .stars { color: var(--gold); letter-spacing: 1px; }
.hero-meta .divider { width: 1px; height: 16px; background: rgba(255,255,255,0.25); }
.hero-meta strong { color: var(--white); }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.hero-panel .big-stat { font-size: 44px; font-weight: 800; color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; }
.hero-panel .big-stat-label { color: #b7c6e4; font-size: 14px; margin-top: 4px; }
.hero-panel hr { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 22px 0; }
.hero-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.hero-panel-grid .item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #dbe6f8; font-weight: 600; }
.hero-panel-grid svg { width: 18px; height: 18px; color: #6fe3a3; flex-shrink: 0; }

/* Trust marquee */
.marquee-band {
  background: var(--navy-800);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.marquee-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  animation: scroll-left 26s linear infinite;
  width: max-content;
}
.marquee-track span {
  color: #b7c6e4;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.marquee-track span::before { content: '✓'; color: #6fe3a3; font-weight: 800; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--blue-600); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 15px; }

/* Commercial contracts bar */
.commercial-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 22px 28px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.commercial-bar:hover { background: var(--navy-700); transform: translateY(-1px); }
.commercial-bar svg { width: 20px; height: 20px; color: #6fa4ff; flex-shrink: 0; }

/* Why choose us */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--white); }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { color: var(--gray-600); font-size: 14.5px; }

/* Pricing */
.pricing-card {
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  background: var(--white);
}
.pricing-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-900);
  padding: 24px 30px;
}
.pricing-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pricing-icon svg { width: 22px; height: 22px; }
.pricing-head h3 { color: var(--white); font-size: 20px; }
.pricing-body { padding: 6px 30px; }
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-label { display: flex; flex-direction: column; gap: 5px; }
.pricing-label strong { font-size: 16px; color: var(--navy-900); font-weight: 700; }
.pricing-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dc2626;
}
.pricing-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  white-space: nowrap;
}
.pricing-price span { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-left: 2px; }
.pricing-note { text-align: center; color: var(--gray-500); font-size: 13.5px; padding: 20px 30px 28px; }

/* Testimonials */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial p.quote { font-size: 15.5px; color: var(--gray-900); }
.testimonial-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.testimonial-who strong { display: block; font-size: 14.5px; }
.testimonial-who span { font-size: 13px; color: var(--gray-500); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, #1a4fb0, #123a86);
  border-radius: 22px;
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.cta-banner p { color: #cddcfb; font-size: 15.5px; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item strong { font-size: 15.5px; display: block; }
.contact-info-item span { font-size: 13.5px; color: var(--gray-500); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--gray-900); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--gray-50);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-500); background: var(--white); }
.field { margin-bottom: 16px; }
.form-note { font-size: 12.5px; color: var(--gray-500); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success svg { width: 46px; height: 46px; color: #16a34a; margin: 0 auto 14px; }
.form-success h3 { font-size: 19px; margin-bottom: 8px; }
.form-success p { color: var(--gray-600); font-size: 14.5px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b7c6e4; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand .brand-logo img { height: 44px; }
.footer-brand strong { color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col .get-in-touch li { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .get-in-touch svg { width: 16px; height: 16px; margin-top: 2px; color: var(--blue-500); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,0.6);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.55;
  animation: ping 2.2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* About page extras */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.checklist svg { width: 19px; height: 19px; color: #16a34a; margin-top: 2px; flex-shrink: 0; }

.stat-band { background: var(--navy-900); color: var(--white); padding: 54px 0; }
.stat-band .grid-4 { text-align: center; }
.stat-band .grid-4 .num { font-size: 40px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-band .grid-4 .label { color: #b7c6e4; font-size: 14px; margin-top: 6px; }

.van-photo { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 40px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-panel { max-width: 420px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn span.hide-mobile { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 26px; text-align: center; justify-content: center; }
  .cta-banner-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .commercial-bar { font-size: 15px; padding: 18px 20px; text-align: center; }
  .pricing-head { padding: 20px 22px; }
  .pricing-body { padding: 4px 22px; }
  .pricing-note { padding: 18px 22px 24px; }
}


/* header email button fit */
.main-nav { gap: 20px; }
.header-actions { gap: 8px; }
.header-actions .btn--outline { padding: 11px 14px; }
a.btn[href^="mailto"] { background: var(--white); color: var(--navy-900); border-color: transparent; }
a.btn[href^="mailto"]:hover { background: var(--white); box-shadow: 0 8px 20px rgba(255,255,255,0.15); }
.header-actions a[href^="mailto"] span { display: none; }
@media (max-width: 480px) {
  .header-actions .btn--whatsapp span { display: none; }
  .header-actions .btn { padding: 10px 12px; }
}
