/*
  SHINYMAIDS COPY 2: motion and feel polish (Emil Kowalski design engineering principles)
  Loaded after each page's own styles. Remove this file and polish.js to go back to copy 1.

  Rules used:
  - Only animate transform and opacity (plus color fades). Never "transition: all".
  - Strong custom ease-out for anything entering; nothing animates from scale(0).
  - Every pressable thing scales to 0.97 on press, so the page feels like it is listening.
  - UI motion stays under 300ms. Exits are faster than entrances.
  - Popovers grow from their trigger, not from the middle.
  - Hover effects only on devices with a real mouse.
  - Reduced motion: movement removed, gentle fades kept.
*/
:root{
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: scale(0.97);
}

/* ---------- Press feedback ---------- */
.btn, .topbar a, .topbar button.terms, .terms-close, .info, .rating, .nav-links a.txt, .gw-badge,
button, .chip span, .opt label{
  -webkit-tap-highlight-color: transparent;
}
.btn, .topbar a, .terms-close, .info, .gw-badge{
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active, .topbar a:active, .terms-close:active, .info:active, .gw-badge:active{ transform: var(--press); }
.btn:disabled{ transform: none; opacity: .7; }

/* Option cards: quick color change, slight press */
.opt label{
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.opt label:active{ transform: scale(0.985); }
.opt.included label:active{ transform: none; }
.opt input:checked + label .opt-title::after{ display:inline-block; animation: sm-tick 220ms var(--ease-out); }
@keyframes sm-tick{ from{ opacity:0; transform: scale(0.6) translateY(1px); } to{ opacity:1; transform:none; } }
.type-menu .art{ transition: background-color 150ms ease; }

/* Hover lifts only where there is a mouse */
@media (hover: hover) and (pointer: fine){
  .btn-dark:hover{ box-shadow: 0 6px 18px rgba(20,40,75,.18); }
  .why-item, .card, .plan{ transition: transform 200ms var(--ease-out), box-shadow 200ms ease, opacity 400ms var(--ease-out); }
  .why-item:hover, .card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,75,.08); }
  .opt label:hover{ box-shadow: 0 2px 10px rgba(20,40,75,.06); }
}

/* ---------- Info popups: grow from the "i" button (top right) ---------- */
.pop{
  display:block !important;
  opacity:0; visibility:hidden; pointer-events:none;
  transform: translateY(-4px) scale(0.96);
  transform-origin: top right;
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}
.pop.open{
  opacity:1; visibility:visible; pointer-events:auto; transform:none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
@media (hover: none), (pointer: coarse){
  .info-wrap:hover .pop:not(.open){ opacity:0; visibility:hidden; pointer-events:none; }
}
@media (hover: hover) and (pointer: fine){
  .info-wrap:hover .pop{
    opacity:1; visibility:visible; pointer-events:auto; transform:none;
    transition: opacity 180ms var(--ease-out) 60ms, transform 180ms var(--ease-out) 60ms, visibility 0s 60ms;
  }
}

/* ---------- Offer terms popup: grows down from the Terms link ---------- */
.terms-pop{
  transform-origin: top center;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@starting-style{
  .terms-pop{ opacity:0; transform: translateX(-50%) translateY(-6px) scale(0.97); }
}

/* ---------- Quote form ---------- */
/* Each step slides up a touch as it appears (step changes are occasional, so a short move is earned) */
.step{ transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@starting-style{ .step{ opacity:0; transform: translateY(8px); } }
.bar i{ transition: width 300ms var(--ease-out) !important; }

/* Boxes that appear while filling the form: offer, estimate, notes, success */
.offer-live, .estimate, .club-note, .success, #bsqft-wrap, #specific-wrap{
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style{
  .offer-live, .estimate, .club-note, #bsqft-wrap, #specific-wrap{ opacity:0; transform: translateY(6px); }
  .success{ opacity:0; transform: scale(0.97); }
}
.estimate .est-num{ font-variant-numeric: tabular-nums; }
.error:not(.hidden){ animation: sm-nudge 260ms var(--ease-out); }
@keyframes sm-nudge{ 0%{ transform: translateX(0); } 30%{ transform: translateX(-4px); } 60%{ transform: translateX(3px); } 100%{ transform: none; } }

/* ---------- Page entrance (once per visit) ---------- */
.js .hero-intro > *{ opacity:0; transform: translateY(8px); animation: sm-rise 420ms var(--ease-out) forwards; }
.js .hero-intro > *:nth-child(1){ animation-delay: 40ms; }
.js .hero-intro > *:nth-child(2){ animation-delay: 100ms; }
.js .hero-intro > *:nth-child(3){ animation-delay: 160ms; }
.js .hero-intro > *:nth-child(4){ animation-delay: 220ms; }
.js .hero-intro > *:nth-child(5){ animation-delay: 280ms; }
.js .quote-card{ opacity:0; transform: translateY(10px); animation: sm-rise 480ms var(--ease-out) 120ms forwards; }
@keyframes sm-rise{ to{ opacity:1; transform:none; } }

/* Sections fade up as they scroll into view (set up by polish.js) */
.js [data-reveal]{ opacity:0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-reveal].in{ opacity:1; transform:none; }

/* ---------- Reduced motion: no movement, keep gentle fades ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn:active, .topbar a:active, .terms-close:active, .info:active, .gw-badge:active, .opt label:active{ transform:none; }
  .pop, .pop.open, .info-wrap:hover .pop{ transform:none !important; }
  .js .hero-intro > *, .js .quote-card{ animation: sm-fade 200ms ease forwards; transform:none; }
  .js [data-reveal]{ transform:none; transition: opacity 200ms ease; transition-delay:0ms; }
  .error:not(.hidden), .opt input:checked + label .opt-title::after{ animation:none; }
  @starting-style{ .step, .offer-live, .estimate, .club-note, .success, #bsqft-wrap, #specific-wrap{ transform:none; } }
  @starting-style{ .terms-pop{ transform: translateX(-50%); } }
  .why-item:hover, .card:hover{ transform:none; }
}
@keyframes sm-fade{ to{ opacity:1; } }

/* ---------- PHONE LAYOUT (Oct 28): compact header with menu, tighter spacing ---------- */
.m-right{display:none}
.view-switch{background:none;border:0;padding:0;font:inherit;color:#fff;text-decoration:underline;cursor:pointer;min-height:32px}
@media (max-width:700px){
  header{position:sticky !important;top:0;z-index:40}
  header .nav{flex-direction:row !important;flex-wrap:wrap !important;align-items:center !important;justify-content:space-between !important;gap:0 !important;padding-top:6px !important;padding-bottom:6px !important}
  header .brand{flex-direction:row !important}
  header .brand .logo{height:54px !important}
  header .brand .parent{display:none !important}
  .m-right{display:flex;align-items:center;gap:6px}
  .m-right .btn{min-height:42px !important;padding:0 16px !important;font-size:15px !important}
  .menu-btn{width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--navy);display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .menu-btn:active{transform:scale(.94)}
  .menu-btn svg{width:26px;height:26px}
  .menu-btn .x{display:none}
  .menu-open .menu-btn .x{display:block}
  .menu-open .menu-btn .bars{display:none}
  header .nav-links{display:none !important;width:100% !important;flex-direction:column !important;align-items:stretch !important;gap:0 !important;padding:6px 0 8px}
  header .menu-open .nav-links{display:flex !important}
  header .nav-links .btn{display:none !important}
  header .nav-links a.txt{display:flex !important;min-height:50px !important;padding:0 4px !important;font-size:17px !important;border-top:1px solid var(--line)}
  /* top offer bar: one tidy line, the hero button is right below */
  .topbar{font-size:13px !important}
  .topbar .wrap,.topbar .in{padding-top:7px !important;padding-bottom:7px !important}
  .topbar .wrap > a,.topbar .in > a{display:none !important}
  .topbar button.terms{min-height:28px;padding:2px 4px}
  .wrap{padding-left:16px;padding-right:16px}
  .lead{font-size:16.5px !important}
  .quote-card{padding:20px 16px !important;border-radius:20px !important}
  /* short choices sit two per row instead of one */
  .menu:has(> .opt.small){grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .opt.small label{min-height:54px !important;padding:12px 14px !important}
}

/* ---------- Site footer (shared by every page) ---------- */
footer.site-foot{background:#13294B;background:var(--navy,#13294B);color:#C9D6E3;margin-top:24px;font-size:14px;line-height:1.55}
footer.site-foot a{color:#fff;text-decoration:none}
footer.site-foot a:hover{text-decoration:underline}
.sf-in{max-width:1160px;margin:0 auto;padding:44px 20px 28px;display:grid;grid-template-columns:1.35fr .9fr .8fr 1.35fr;gap:32px}
.sf-brand{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.sf-tag{margin:4px 0 0;max-width:290px}
.sf-phone{display:inline-flex;align-items:center;gap:8px;font-size:20px;font-weight:800;letter-spacing:.01em;margin-top:4px}
.sf-phone svg{color:#8FD3FF}
.sf-hours{margin:-6px 0 0;font-size:13px;color:#A9BBCD}
footer.site-foot .sf-cta{display:inline-block;margin-top:6px;background:#fff;color:#13294B;font-weight:800;border-radius:999px;padding:10px 18px}
footer.site-foot .sf-cta:hover{text-decoration:none;background:#E8F4FF}
.sf-col h2{margin:0 0 12px;font-size:13px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#fff}
.sf-col ul{list-style:none;margin:0;padding:0}
.sf-col li{margin:0 0 8px}
.sf-col nav a, .sf-col li a{color:#C9D6E3}
.sf-col li a:hover{color:#fff}
.sf-areas h3{margin:0 0 6px;font-size:13px;font-weight:700;color:#8FD3FF}
.sf-cities{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px !important}
.sf-cities li{margin:0;padding:3px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:13px;color:#DCE6F0}
.sf-bottom{border-top:1px solid rgba(255,255,255,.12);max-width:1160px;margin:0 auto;padding:16px 20px 22px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:13px;color:#A9BBCD}
footer.site-foot .gw-badge{display:inline-flex;align-items:center;background:#fff;border-radius:14px;padding:8px 14px;line-height:0}
footer.site-foot .gw-badge img{height:46px;width:auto;display:block}
@media (max-width:960px){ .sf-in{grid-template-columns:1fr 1fr} }
@media (max-width:560px){
  .sf-in{grid-template-columns:1fr 1fr;gap:26px 18px;padding-top:34px}
  .sf-brand, .sf-areas{grid-column:1 / -1}
}
.sf-call{margin:4px 0 -8px;font-size:15px;font-weight:800;color:#fff;letter-spacing:.01em}

/* ---------- Header phone (Oct 29) ---------- */
.nav-phone{display:inline-flex;align-items:center;gap:8px;margin-right:10px;padding:4px 6px;color:var(--navy,#13294B);text-decoration:none;line-height:1.15;border-radius:12px}
.nav-phone .np-ic{width:34px;height:34px;border-radius:50%;background:#E8F4FF;display:grid;place-items:center;color:var(--navy,#13294B)}
.nav-phone .np-ic svg{width:17px;height:17px}
.nav-phone .np-txt{display:flex;flex-direction:column}
.nav-phone small{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#4A6480}
.nav-phone b{font-size:16px;font-weight:800;white-space:nowrap}
.nav-phone:hover b{text-decoration:underline}
.m-phone{display:none}
@media (max-width:860px) and (min-width:701px){ .nav-phone small{display:none} .nav-phone{margin-right:4px} }
@media (max-width:700px){
  header .nav-links .nav-phone{display:none !important}
  .m-phone{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#E8F4FF;color:var(--navy,#13294B)}
  .m-phone svg{width:20px;height:20px}
  .m-phone:active{transform:scale(.94)}
}
.sf-email{font-size:14px;color:#DCE6F0 !important;margin-top:-4px}

/* ---------- Thank-you screen recap (Nov 2) ---------- */
.recap{background:#fff;border-radius:16px;padding:18px 20px;margin-top:16px;text-align:left;color:var(--navy,#13294B)}
.recap h3{margin:0 0 10px;font-size:17px;font-weight:800;color:var(--navy,#13294B)}
.recap dl{display:grid;grid-template-columns:minmax(120px,190px) minmax(0,1fr);gap:7px 16px;margin:0;font-size:14.5px}
.recap dt{font-weight:700;color:#4A5872}
.recap dd{margin:0;color:#1F3354;overflow-wrap:anywhere;white-space:pre-line}
.recap-note{margin:12px 0 0;font-size:13px;color:#6B7891}
@media (max-width:520px){ .recap dl{grid-template-columns:minmax(0,1fr);gap:2px 0} .recap dd{margin-bottom:8px} }
