/* =========================================================================
   PINK FLAMINGO — SHARED COMPONENTS
   Loaded by every page on top of that page's own inline <style>.
   Self-contained on purpose: the pages use two slightly different variable
   sets (--line2 vs --line-2, --paper2 vs --paper-2), so nothing here depends
   on a page-specific custom property without a literal fallback.
   ========================================================================= */

:root{
  --pf-pink:#FF2E93;
  --pf-pink-dark:#D9187B;
  --pf-ink:#0A1524;
  --pf-slate:#3E5268;
  --pf-muted:#6C7E90;
  --pf-line:#DEE4EC;
  --pf-paper:#F7F9FB;
}

/* ---------------- Hero lead form ----------------
   Sits in the hero on every page that has one. Deliberately short — name,
   phone, ZIP, service, optional message — so the whole card is reachable
   without scrolling on a 390px phone. */
.pf-hf{
  background:#fff;
  border:1px solid var(--pf-line);
  border-radius:20px;
  box-shadow:0 12px 30px rgba(10,21,36,.12), 0 30px 70px rgba(10,21,36,.14);
  padding:20px 20px 18px;
  position:relative;
  z-index:4;
  text-align:left;
}
.pf-hf h2{
  font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:1.26rem;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--pf-ink);
  margin:0 0 3px;
}
.pf-hf .pf-hf-sub{
  font-size:.86rem;
  color:var(--pf-slate);
  margin:0 0 13px;
  line-height:1.4;
}
.pf-hf .pf-row{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;}
.pf-hf .pf-f{margin-bottom:9px;}
.pf-hf label{
  display:block;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--pf-slate);
  margin-bottom:4px;
}
.pf-hf input,
.pf-hf select,
.pf-hf textarea{
  width:100%;
  padding:11px 12px;
  border:1.5px solid var(--pf-line);
  border-radius:11px;
  font-size:1rem;           /* 16px — stops iOS zooming the page on focus */
  font-family:inherit;
  color:var(--pf-ink);
  background:var(--pf-paper);
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.pf-hf textarea{min-height:58px;resize:vertical;}
.pf-hf input:focus,
.pf-hf select:focus,
.pf-hf textarea:focus{
  outline:none;
  border-color:var(--pf-pink);
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,46,147,.1);
}
.pf-hf .pf-f.invalid input,
.pf-hf .pf-f.invalid select{
  border-color:var(--pf-pink);
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,46,147,.1);
}
.pf-hf button[type=submit]{
  width:100%;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:inherit;font-weight:700;font-size:1.04rem;
  padding:14px 20px;margin-top:4px;
  border:none;border-radius:999px;cursor:pointer;
  color:#fff;
  background:linear-gradient(180deg,#FF3D9C,var(--pf-pink));
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px rgba(255,46,147,.36);
  transition:transform .16s, box-shadow .16s;
}
.pf-hf button[type=submit]:hover{transform:translateY(-2px);}
.pf-hf .pf-fine{
  margin:10px 0 0;
  font-size:.72rem;
  line-height:1.5;
  color:var(--pf-muted);
  text-align:center;
}
.pf-hf .pf-fine a{color:var(--pf-pink-dark);font-weight:600;text-decoration:underline;}

/* Hero grid: copy left, form right on desktop. */
.hero-grid.pf-has-form{align-items:start;}
.hero-grid.pf-has-form .pf-hf-col{align-self:center;}

/* ---------------- Mobile: headline, then form, then call ----------------
   Order is explicit so the form clears the fold on a 390px screen. */
@media (max-width:900px){
  .hero-grid.pf-has-form{display:flex;flex-direction:column;gap:16px;}
  .hero-grid.pf-has-form .pf-copy-col{order:1;}
  .hero-grid.pf-has-form .pf-hf-col{order:2;width:100%;}
  .hero-grid.pf-has-form .pf-mobile-call{order:3;}
  .hero-grid.pf-has-form .pf-hf{padding:16px 15px 15px;border-radius:16px;}
  .hero-grid.pf-has-form .pf-hf h2{font-size:1.12rem;}
  .hero-grid.pf-has-form .pf-hf .pf-hf-sub{font-size:.8rem;margin-bottom:10px;}
  .hero-grid.pf-has-form .pf-hf .pf-f{margin-bottom:7px;}
  .hero-grid.pf-has-form .pf-hf input,
  .hero-grid.pf-has-form .pf-hf select{padding:10px 11px;}
  .hero-grid.pf-has-form .pf-hf textarea{min-height:48px;}
}
/* Phone: trim everything non-essential above the form. */
@media (max-width:560px){
  .hero-grid.pf-has-form{padding-top:12px !important;padding-bottom:26px !important;gap:13px;}
  .hero-grid.pf-has-form .pf-hero-sub{display:none;}      /* subhead moves below the fold */
  /* Both page families: .hero-trust on the home page, .trust-row/.undercta on
     the service and city pages. All of it is below-the-fold material on a phone. */
  .hero-grid.pf-has-form .hero-trust,
  .hero-grid.pf-has-form .trust-row,
  .hero-grid.pf-has-form .undercta,
  .hero-grid.pf-has-form .slogan-inflow,
  .hero-grid.pf-has-form .hero-mascot,
  .hero-grid.pf-has-form .float-card{display:none;}
  .hero-grid.pf-has-form .hero-cta{display:none;}         /* replaced by .pf-mobile-call */
  .hero-grid.pf-has-form .price-badge{padding:7px 14px;margin-bottom:2px;}
  .hero-grid.pf-has-form .price-badge .amt{font-size:1.7rem;}
  .hero-grid.pf-has-form .price-badge .lbl{font-size:.84rem;}
  .hero-grid.pf-has-form h1{font-size:1.86rem !important;margin:8px 0 0 !important;line-height:1.08;}
  .hero-grid.pf-has-form .eyebrow{font-size:.66rem;}
  .pf-hf .pf-row{grid-template-columns:1fr 1fr;}
}
/* The call button that replaces the hero CTA row on phones. */
.pf-mobile-call{display:none;}
@media (max-width:560px){
  .pf-mobile-call{
    display:flex;align-items:center;justify-content:center;gap:9px;
    width:100%;padding:14px 18px;border-radius:999px;
    font-weight:700;font-size:1.04rem;color:#fff;
    background:linear-gradient(180deg,#FF3D9C,var(--pf-pink));
    box-shadow:0 8px 20px rgba(255,46,147,.32);
  }
  .pf-mobile-call svg{width:19px;height:19px;}
}

/* Subhead below the fold on phones (shown where the hero sub was hidden). */
.pf-sub-mobile{display:none;}
@media (max-width:560px){
  .pf-sub-mobile{display:block;font-size:1rem;line-height:1.55;}
}

/* ---------------- Commercial video, moved below the trust cards ---------------- */
.pf-vid-sec{padding:10px 0 56px;}
.pf-vid-wrap{max-width:860px;margin:0 auto;}
.pf-vid-head{text-align:center;margin-bottom:18px;}
.pf-vid-head h2{
  font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:clamp(1.6rem,3.4vw,2.2rem);
  letter-spacing:-.025em;color:var(--pf-ink);margin:0 0 6px;
}
.pf-vid-head p{color:var(--pf-slate);font-size:1rem;margin:0;}
.pf-vframe{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#05080d;
  box-shadow:0 12px 30px rgba(10,21,36,.12), 0 30px 70px rgba(10,21,36,.18);
  /* Matches the poster's own ratio so the frame never crops it — the cover
     chip below is positioned as a % of this box and must line up exactly. */
  aspect-ratio:1920/1088;
}
.pf-vframe video,
.pf-vframe img{width:100%;height:100%;object-fit:cover;display:block;}
.pf-vframe .pf-poster{position:absolute;inset:0;z-index:1;}
.pf-vplay{
  position:absolute;inset:0;margin:auto;
  width:74px;height:74px;border-radius:50%;border:none;cursor:pointer;z-index:3;
  background:rgba(255,46,147,.96);
  box-shadow:0 10px 30px rgba(255,46,147,.45);
  transition:transform .16s;
}
.pf-vplay:hover{transform:scale(1.07);}
.pf-vplay svg{width:28px;height:28px;color:#fff;margin-left:3px;}
.pf-vtag{
  position:absolute;left:12px;top:12px;z-index:3;
  background:rgba(10,21,36,.6);
  backdrop-filter:blur(6px);
  color:#fff;font-size:.72rem;font-weight:600;letter-spacing:.04em;
  padding:6px 11px;border-radius:999px;
  display:inline-flex;align-items:center;gap:7px;
}
.pf-vtag .rec{width:8px;height:8px;border-radius:50%;background:var(--pf-pink);}
.pf-vframe.playing .pf-vplay,
.pf-vframe.playing .pf-vtag,
.pf-vframe.playing .pf-poster,
.pf-vframe.playing .pf-vcover{display:none;}

/* Covers the phone number baked into the bottom-left of the poster frame.
   The number in that frame is not a current site number and it could not be
   cropped out without slicing the faucet or the logo, so it is covered here.
   Measured pill box in the source image: x 2.0%-28.2%, y 79.9%-93.1%. */
.pf-vcover{
  position:absolute;
  left:0;
  bottom:4.5%;
  width:32%;
  height:17.5%;
  z-index:2;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#FF3D9C,var(--pf-pink));
  border-top-right-radius:999px;
  border-bottom-right-radius:999px;
  box-shadow:0 6px 18px rgba(255,46,147,.3);
}
.pf-vcover span{
  color:#fff;font-weight:800;
  font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:clamp(.6rem,1.5vw,1rem);
  letter-spacing:.04em;text-transform:uppercase;
  padding:0 8px;text-align:center;line-height:1.1;
}

/* ---------------- Warranty callout ---------------- */
.pf-warranty{
  display:flex;align-items:center;gap:14px;
  background:#FFF1F8;
  border:1px solid #F8C9E2;
  border-radius:16px;
  padding:16px 18px;
  margin:26px 0;
}
.pf-warranty svg{width:26px;height:26px;color:var(--pf-pink-dark);flex:none;}
.pf-warranty p{margin:0;font-size:.97rem;color:var(--pf-slate);line-height:1.5;}
.pf-warranty b{color:var(--pf-ink);}
.pf-warranty a{color:var(--pf-pink-dark);font-weight:700;text-decoration:underline;}

/* ---------------- Footer legal / licensing ---------------- */
.pf-legal{
  margin-top:14px;
  font-size:.76rem;
  line-height:1.7;
  opacity:.85;
}
.pf-legal a{text-decoration:underline;}
.pf-legal .sep{opacity:.5;padding:0 7px;}

/* ---------------- Nearby-cities cross links ---------------- */
.pf-nearby{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.pf-nearby a{
  font-size:.84rem;font-weight:600;
  padding:7px 13px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  color:inherit;
}
.pf-nearby a:hover{border-color:var(--pf-pink);}


/* ---------------- Services dropdown: two columns + Service Areas ----------------
   Desktop: services in the left column, the 18 city pages in the right one as a
   2-up list so the panel stays short. Phone: single column with Service Areas
   collapsed behind its own toggle, so the menu doesn't become a wall of links. */
.dd-menu.dd-wide{
  /* Wide enough that the 2-up city grid fits "Vancouver (WA)" (the widest name)
     with a right inset matching the panel's left inset. The service-page menus
     are anchored right:0 to a toggle well left of the phone block, so width is
     capped per breakpoint to keep the panel on-screen — measured at 1024px. */
  width:min(570px, calc(100vw - 24px));
  min-width:0;
  max-width:calc(100vw - 24px);
  max-height:min(72vh, 560px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media (max-width:1100px){
  /* 528px is the widest that still clears the left edge at 1024px; the city
     grid keeps two columns by tightening its gap and paddings instead. */
  .dd-menu.dd-wide{width:min(528px, calc(100vw - 24px));}
}
.dd-cols{display:grid;grid-template-columns:minmax(226px,1fr) minmax(284px,1.26fr);gap:0;align-items:start;}
/* Thin rule separating the services column from the service areas. The right
   padding is what keeps city names and their hover boxes off the panel edge. */
.dd-cols .dd-areas{border-left:1px solid var(--pf-line);margin-left:12px;padding-left:12px;padding-right:14px;}
@media (max-width:1100px){
  .dd-cols{grid-template-columns:minmax(222px,1fr) minmax(282px,1.2fr);}
  .dd-cols .dd-areas{margin-left:8px;padding-left:8px;padding-right:10px;}
}

.dd-areas-toggle{
  display:flex;align-items:center;gap:7px;
  width:100%;background:none;border:none;font:inherit;text-align:left;cursor:default;
  padding:9px 10px 6px;
  font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--pf-muted);
}
/* The only pin in this column — the individual city rows carry none. */
.dd-areas-toggle .ddpin{width:13px;height:13px;flex:none;color:var(--pf-pink);}
.dd-areas-toggle .ddchev{width:14px;height:14px;flex:none;display:none;margin-left:auto;transition:transform .2s;}

.dd-areas-list{display:grid;grid-template-columns:1fr 1fr;gap:0 8px;}
.dd-menu .dd-areas-list a{
  font-size:.88rem;line-height:1.25;
  padding:8px 10px;gap:0;
  white-space:nowrap;            /* city names must never wrap */
}
@media (max-width:1100px){
  .dd-areas-list{gap:0 4px;}
  .dd-menu .dd-areas-list a{padding:8px;}
}
/* The current page's own city, pinned to the top of the visible list. */
.dd-menu .dd-areas-list a[aria-current="page"]{
  color:var(--pf-pink-dark);
  background:#FFF1F8;
  font-weight:700;
}
/* The single link out to the full service-areas page, last item in the group.
   Bottom padding matches the services column's last row so the two columns
   finish on the same rhythm. */
.dd-menu .dd-areas-list .dd-seeall{
  grid-column:1 / -1;
  margin-top:2px;
  padding:8px 10px 12px;
  font-size:.82rem;font-weight:700;
  color:var(--pf-pink-dark);
}
@media (max-width:860px){
  /* Phone: pin the panel to the viewport instead of the toggle, so it can be
     full width without any chance of hanging off an edge. */
  .dd-menu.dd-wide{
    position:fixed;
    top:76px;left:10px;right:10px;
    width:auto;min-width:0;max-width:none;
    max-height:calc(100vh - 92px);
  }
  .dd-cols{grid-template-columns:1fr;}
  .dd-cols .dd-areas{border-left:none;margin-left:0;padding-left:0;border-top:1px solid var(--pf-line);margin-top:6px;padding-top:4px;}
  .dd-areas-toggle{cursor:pointer;}
  .dd-areas-toggle .ddchev{display:block;}
  /* Two columns still fit at 390px with a 4px gap — measured, no wrapping. */
  .dd-areas-list{display:none;grid-template-columns:1fr 1fr;gap:0 4px;}
  .dd-areas.open .dd-areas-list{display:grid;}
  .dd-areas.open .dd-areas-toggle .ddchev{transform:rotate(180deg);}
}

/* The home page hides .nav-links on phones and its burger had nothing to open.
   Give the burger a real panel so the Services menu is reachable on mobile. */
@media (max-width:900px){
  header.site.pf-open .nav-links{
    display:flex !important;flex-direction:column;align-items:stretch;
    position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--pf-line);
    box-shadow:0 18px 40px rgba(10,21,36,.12);
    padding:10px 14px 16px;gap:2px;z-index:70;
  }
  header.site.pf-open .nav-links .dropdown{position:static;}
  header.site.pf-open .nav-links .dd-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;padding:0 0 0 6px;max-height:none;}
}

/* ---------------- SMS consent ---------------- */
.pf-sms{
  display:flex;align-items:flex-start;gap:9px;
  margin:4px 0 10px;
  font-size:.74rem;line-height:1.5;color:var(--pf-muted);
  cursor:pointer;
}
.pf-sms input[type=checkbox]{
  width:17px;height:17px;flex:none;margin:1px 0 0;
  accent-color:var(--pf-pink);cursor:pointer;
}
.pf-sms a{color:var(--pf-pink-dark);font-weight:600;text-decoration:underline;}
