/* =========================================================
   Peter Piper's Plumbing — Design System
   Brand-matched: cobalt blue + red (from the company logo)
   ========================================================= */

:root {
  /* Brand palette — matched to the Peter Piper's logo (cobalt blue + red) */
  --navy-900: #0A1240;
  --navy-800: #0E1A5A;
  --navy-700: #17257C;
  --blue-600: #1F2BC0;   /* logo cobalt blue */
  --blue-500: #3742D6;
  --blue-100: #E9EBFB;
  /* Accent (logo red). Token names kept as --orange-* for compatibility. */
  --orange-600: #A6141C;
  --orange-500: #D21C24;  /* logo red */
  --orange-400: #E84A50;
  --orange-100: #FCEAEA;

  /* Neutrals */
  --ink: #16233A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg: #F8FAFC;
  --white: #FFFFFF;

  /* Semantic */
  --success: #16A34A;
  --star: #F59E0B;

  /* Type */
  --font-head: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,31,61,.06), 0 2px 8px rgba(10,31,61,.06);
  --shadow-md: 0 6px 20px rgba(10,31,61,.10);
  --shadow-lg: 0 18px 50px rgba(10,31,61,.18);
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.center { text-align: center; }
.muted { color: var(--slate-500); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--orange-600); margin-bottom: 10px;
}
.lead { font-size: 1.18rem; color: var(--slate-700); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  min-height: 52px; line-height: 1; text-align: center; justify-content: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px rgba(210,28,36,.35); }
.btn--primary:hover { background: var(--orange-600); box-shadow: 0 12px 28px rgba(166,20,28,.45); }
.btn--phone { background: #fff; color: var(--navy-800); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn--phone:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn--ghost { background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--lg { padding: 18px 34px; font-size: 1.1rem; min-height: 60px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900); color: #dbe6f4; font-size: .9rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar__badge { display: inline-flex; align-items: center; gap: 6px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--slate-200); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--navy-800); font-size: 1.08rem; letter-spacing: -.02em; flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand small { display:block; font-size: .66rem; font-weight: 600; color: var(--orange-600); letter-spacing: .07em; text-transform: uppercase; }
/* Header text lockup */
.brand-mark { width:46px; height:46px; flex:none; border-radius:12px; background:linear-gradient(135deg, var(--blue-600), var(--navy-700)); color:#fff; font-family:var(--font-head); font-weight:800; font-size:1.75rem; display:grid; place-items:center; line-height:1; box-shadow: var(--shadow-sm); }
.brand-text { display:flex; flex-direction:column; line-height:1.05; }
.brand-text b { font-family:var(--font-head); font-weight:800; font-size:1.2rem; color:var(--blue-600); letter-spacing:-.01em; }
.brand-text small { font-size:.6rem; font-weight:700; color:var(--orange-500); letter-spacing:.11em; text-transform:uppercase; margin-top:3px; }
/* His real logo image (header + footer badge) */
.brand-img { height: 90px; width: auto; display: block; }
.logo-badge { display:inline-flex; background:#fff; padding:12px 16px; border-radius:14px; box-shadow: var(--shadow-sm); }
.logo-badge .brand-img { height: 64px; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav__links > li { flex: none; }
.nav__links a { color: var(--slate-700); font-family: var(--font-head); font-weight: 600; font-size: .93rem; padding: 9px 11px; border-radius: 10px; white-space: nowrap; }
.nav__links a:hover { background: var(--slate-100); color: var(--navy-800); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__cta .btn { white-space: nowrap; padding-inline: 20px; }
.has-dd { position: relative; }
.dd { position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dd a { padding: 8px 12px; font-size: .9rem; border-radius: 8px; }
.dd--wide { min-width: 460px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--slate-200); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle svg { width: 24px; height: 24px; color: var(--navy-800); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%); }
.hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 88% 14%, rgba(58,66,214,.55), transparent 46%), radial-gradient(circle at 6% 94%, rgba(31,43,192,.55), transparent 44%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: var(--sp-9) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6e2f2; }
.hero__stars { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; color:#fff; }
.hero__stars .stars { color: var(--star); letter-spacing: 2px; font-size: 1.1rem; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; color:#cfe0f3; font-size:.92rem; }
.hero__trust span { display:flex; align-items:center; gap:8px; }
.hero__card { background: rgba(255,255,255,.98); color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.hero__card h3 { margin-top: 0; }

/* Quote form */
.quote-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--slate-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(45,123,229,.15); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .8rem; color: var(--slate-500); }
.form-success { display:none; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; padding: 16px; border-radius: var(--radius-sm); font-weight: 600; }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--slate-200); }
.trustbar .container { display: flex; justify-content: space-around; gap: 20px; padding-block: 22px; flex-wrap: wrap; text-align:center; }
.trustbar .stat b { display:block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy-800); line-height:1.1; }
.trustbar .stat span { font-size: .85rem; color: var(--slate-500); font-weight:600; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); margin-bottom: 16px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-700); font-size: .98rem; margin-bottom: 14px; }
.card a.more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display:inline-flex; align-items:center; gap:6px; }
.card--service .card__icon { background: var(--orange-100); color: var(--orange-600); }

.pill { display:inline-flex; align-items:center; gap:6px; background: var(--blue-100); color: var(--blue-600); font-weight:600; font-size:.82rem; padding:5px 12px; border-radius:999px; font-family: var(--font-head); }
.pill--orange { background: var(--orange-100); color: var(--orange-600); }
.pill--green { background:#E7F8EE; color: var(--success); }

/* ---------- Split feature ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.split .imgph { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.imgph { position: relative; background: linear-gradient(135deg, var(--navy-700), var(--blue-600)); border-radius: var(--radius); min-height: 300px; display:grid; place-items:center; color:#fff; text-align:center; overflow:hidden; }
.imgph::after { content: attr(data-label); position:absolute; bottom:12px; left:12px; font-size:.72rem; background:rgba(0,0,0,.35); padding:4px 10px; border-radius:6px; letter-spacing:.05em; }
.imgph svg { width: 84px; height: 84px; opacity: .9; }
/* Real photos */
.ph-img { width:100%; border-radius: var(--radius); object-fit: cover; display:block; }
.ph-img.split { min-height: 340px; height: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* Photo gallery */
.gallery { display:grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery .gcard { margin:0; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--slate-200); aspect-ratio: 1/1; background: var(--slate-100); }
.gallery .gcard:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .gcard:nth-child(2) { grid-column: span 2; }
.gallery .gcard:nth-child(3) { grid-column: span 2; }
.gallery .gcard img { width:100%; height:100%; object-fit: cover; display:block; transition: transform .4s var(--ease); }
.gallery .gcard:hover img { transform: scale(1.06); }
.checklist { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.checklist li { display:flex; gap:12px; align-items:flex-start; }
.checklist svg { width:24px; height:24px; color: var(--success); flex:none; margin-top:2px; }

/* ---------- Reviews ---------- */
.review-card { background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:12px; }
.review-card .stars { color: var(--star); letter-spacing:2px; }
.review-card p { font-size:1rem; color: var(--slate-700); margin:0; }
.review-card .who { display:flex; align-items:center; gap:12px; margin-top:auto; }
.avatar { width:44px; height:44px; border-radius:50%; background: var(--navy-700); color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; }
.review-card .who b { display:block; font-size:.95rem; color:var(--navy-800); }
.review-card .who span { font-size:.8rem; color: var(--slate-500); }

/* Google reviews badge */
.grev { display:inline-flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--slate-200); border-radius:999px; padding:10px 18px 10px 14px; box-shadow: var(--shadow-sm); text-decoration:none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.grev:hover { text-decoration:none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.grev__logo svg { width:30px; height:30px; display:block; }
.grev__body { display:flex; flex-direction:column; line-height:1.2; text-align:left; }
.grev__top { display:flex; align-items:center; gap:8px; font-family:var(--font-head); color:var(--navy-800); }
.grev__top b { font-size:1.25rem; }
.grev__stars { color: var(--star); letter-spacing:1px; font-size:.95rem; }
.grev__sub { font-size:.8rem; color: var(--slate-500); font-weight:500; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color:#fff; border-radius: var(--radius-lg); padding: var(--sp-8); text-align:center; position:relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 82% 18%, rgba(58,66,214,.5), transparent 48%); }
.cta-band h2 { color:#fff; position:relative; }
.cta-band p { color:#d6e2f2; position:relative; max-width: 56ch; margin-inline:auto; }
.cta-band .hero__ctas { justify-content:center; position:relative; }

/* ---------- Areas ---------- */
.area-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.area-chip { background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 14px 16px; display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:600; color:var(--navy-800); transition: all .18s var(--ease); }
.area-chip:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); text-decoration:none; transform: translateY(-2px); }
.area-chip svg { width:20px; height:20px; color: var(--orange-500); flex:none; }
.area-chip span { font-size:.78rem; color:var(--slate-500); font-weight:500; display:block; }

.zip-list { display:flex; flex-wrap:wrap; gap:8px; }
.zip { background: var(--slate-100); border:1px solid var(--slate-200); border-radius:8px; padding:6px 12px; font-size:.85rem; font-weight:600; color:var(--slate-700); font-family:var(--font-head); }

/* ---------- FAQ ---------- */
.faq { display:grid; gap:12px; max-width: 820px; margin-inline:auto; }
.faq details { background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor:pointer; font-family:var(--font-head); font-weight:600; color:var(--navy-800); padding: 16px 0; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:1.05rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.6rem; color:var(--orange-500); font-weight:400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 18px; margin:0; color:var(--slate-700); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size:.86rem; color: var(--slate-500); padding: 16px 0 0; }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--blue-600); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color:#fff; position:relative; overflow:hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 92% 10%, rgba(58,66,214,.5), transparent 44%); }
.page-hero .container { position:relative; padding: var(--sp-8) 20px; }
.page-hero h1 { color:#fff; max-width: 22ch; }
.page-hero p { color:#d6e2f2; max-width: 62ch; }
.page-hero .hero__ctas { margin-bottom:0; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color:#c3d2e6; padding: var(--sp-8) 0 var(--sp-5); font-size:.94rem; }
.site-footer a { color:#dbe6f4; }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color:#fff; font-size:1rem; margin-bottom: 14px; }
.site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.footer-brand .brand { color:#fff; }
.footer-brand .brand small { color: var(--orange-400); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: var(--sp-6); padding-top: var(--sp-4); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color:#8ea3bd; }
.social-row { display:flex; gap:12px; margin:14px 0 6px; }
.social-row a { width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); display:grid; place-items:center; color:#dbe6f4; transition: all .18s var(--ease); }
.social-row a:hover { background: var(--orange-500); border-color: var(--orange-500); color:#fff; transform: translateY(-2px); }
.social-row svg { width:20px; height:20px; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background:#fff; border-top:1px solid var(--slate-200); box-shadow: 0 -6px 20px rgba(10,31,61,.10); display:none; padding: 8px; gap: 8px; }
.callbar .btn { flex:1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .gcard:first-child { grid-column: span 2; grid-row: span 2; }
  .ph-img.split { min-height: 260px; }
}
@media (max-width: 640px) {
  .brand-img { height: 62px; }
  .logo-badge .brand-img { height: 58px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery .gcard:first-child, .gallery .gcard:nth-child(2), .gallery .gcard:nth-child(3) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__cta .btn--phone span.lbl { display: none; }
  .nav__toggle { display:flex; }
  .site-header.open .nav__links { display:flex; position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; align-items:stretch; padding: 12px; gap:2px; border-bottom:1px solid var(--slate-200); box-shadow: var(--shadow-lg); }
  .site-header.open .nav__links a { padding: 14px; }
  .site-header.open .dd { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; display:block; padding: 0 0 0 12px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .callbar { display:flex; }
  body { padding-bottom: 74px; }
}
@media (max-width: 640px) {
  /* Header CTAs are redundant with the sticky bottom call bar on small screens */
  .nav__cta { display: none; }
  .nav { gap: 10px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar .container { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
