/* Everyday Plumbing — layout based on the Fixpro template, Everyday Plumbing colours */

:root {
  --blue: #8bb3c7;        /* brand blue (from the original site) */
  --blue-deep: #4a7a91;   /* buttons / text on white */
  --blue-darker: #3a6378;
  --blue-soft: #e3eef3;
  --tint: #f4f8f9;        /* brand tint (from the original site) */
  --ink: #161922;
  --body: #5b6470;
  --line: #e6edf0;
  --star: #f5b818;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(22, 25, 34, .18);
  --font: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 600; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 16px; }
p { margin: 0; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: 90px 0; }
.section-tint { background: var(--tint); padding: 90px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 10px; max-width: 520px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 500; font-size: 14px;
  border: 2px solid var(--blue-deep);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--blue-darker); border-color: var(--blue-darker); transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #fff; color: var(--blue-darker); border-color: #fff; }
.btn-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue-darker); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 128px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink); }
.site-nav a:not(.btn):hover { color: var(--blue-deep); }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { padding: 40px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.pill {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-darker);
  font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--blue-deep); }
.hero-copy > p { margin-top: 20px; max-width: 480px; }

.hero-media { position: relative; padding: 30px 30px 30px 0; }
.hero-card {
  border-radius: 36px;
  overflow: hidden;
  background: var(--blue);
  aspect-ratio: 4 / 4.3;
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.float-badge {
  position: absolute; right: 0; bottom: 70px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow);
}
.float-badge img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.float-badge strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.3; }
.float-badge .stars { font-size: 12px; }
.float-icon {
  position: absolute;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px;
}
.float-icon svg { width: 24px; fill: currentColor; }
.float-icon-a { top: 8px; left: -24px; background: #fff; color: var(--blue-deep); }
.float-icon-b { top: 60px; right: 4px; background: var(--blue-deep); color: #fff; }

/* Services */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 22px 0 10px; }
.card p { font-size: 14px; }
.icon-tile {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--blue-soft);
}
.icon-tile img { width: 46px; }
.icon-tile svg { width: 26px; fill: var(--blue-deep); }
.icon-tile-sm { width: 56px; height: 56px; margin-bottom: 18px; }

/* CTA band */
.section:has(.cta-band) { padding-bottom: 0; }
.cta-band {
  background: var(--blue-deep);
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  color: #e9f2f6;
  background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,.08) 0 120px, transparent 121px),
                    radial-gradient(circle at 92% 90%, rgba(255,255,255,.07) 0 160px, transparent 161px);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 14px auto 28px; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.gary-portrait { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.gary-portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.ring {
  position: absolute; top: 4%; left: 2%;
  width: 52px; height: 52px; border-radius: 50%;
  border: 12px solid var(--blue);
}
.split-copy > p { margin-top: 18px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: 0 0 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-soft);
}
.feature-icon svg { width: 22px; fill: var(--blue-deep); }
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { font-size: 14px; }

/* Why us */
.why { background: var(--blue); padding: 90px 0 50px; }
.why-card {
  background: #fff;
  border-radius: 28px;
  padding: 56px;
  box-shadow: var(--shadow);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-grid h3 { margin-bottom: 8px; }
.why-grid p { font-size: 14px; }
.logo-strip {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: 46px;
}
.logo-strip img { width: 140px; opacity: .95; }
.logo-strip .nextdoor { width: 120px; filter: brightness(0) invert(1); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px -20px rgba(22,25,34,.2);
}
.review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.review figcaption { font-weight: 600; color: var(--ink); font-size: 15px; }
.review figcaption span { display: block; font-weight: 400; font-size: 12px; color: var(--body); }
.review blockquote { margin: 0; font-size: 14px; }
.review-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* Areas served */
.section#areas { padding-top: 20px; }
.areas-band {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px;
  background: var(--blue-deep);
  border-radius: 28px;
  padding: 48px;
  color: #e9f2f6;
}
.areas-band h2 { color: #fff; }
.areas-copy > p { margin-top: 14px; max-width: 460px; }
.pill-light { background: rgba(255,255,255,.15); color: #fff; }
.area-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.area-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #fff; }
.area-list li::before {
  content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a7a91' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.areas-map { border-radius: var(--radius); overflow: hidden; background: var(--blue); aspect-ratio: 4 / 3; border: 6px solid rgba(255,255,255,.18); }
.areas-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--blue-deep); }
.footer-logo { width: 150px; margin-bottom: 4px; }
.site-footer h4 { font-size: 15px; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 50px; padding: 22px 0 30px; font-size: 12px; }

/* Tablet */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 50px; }
  .hero-media { max-width: 520px; }
  .card-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .areas-band { grid-template-columns: 1fr; padding: 40px; }
}

/* Mobile */
@media (max-width: 680px) {
  .section, .section-tint, .why { padding: 64px 0; }
  .hero { padding: 24px 0 64px; }
  .nav-burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; cursor: pointer;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .card-grid, .why-grid, .review-grid { grid-template-columns: 1fr; }
  .why-card { padding: 36px 24px; }
  .float-icon-a { left: -6px; }
  .gary-portrait { max-width: 280px; }
  .areas-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
