/* ==========================================================
   John's Plumbing & Rooter — Homepage styles
   1. Tokens  2. Base  3. Buttons  4. Top bar + Header
   5. Hero  6. Quick cards  7. About  8. Services
   9. Why us  10. Reviews  11. CTA  12. Footer
   13. Animations  14. Responsive
   ========================================================== */

/* ---------- 1. Design tokens (from the logo navy + water blue) ---------- */
:root {
  --navy: #14245A;           /* logo navy */
  --navy-dark: #0B1638;
  --navy-2: #1C3170;
  --blue: #1E7BE0;           /* water-drop blue */
  --sky: #5BB8FF;
  --ice: #EAF4FF;
  --yellow: #FFC233;         /* call-to-action accent */
  --yellow-dark: #F2A900;
  --white: #FFFFFF;
  --bg: #F5F8FC;
  --ink: #0F1B3D;
  --text: #4A5672;
  --muted: #7C879F;
  --line: rgba(15, 27, 61, .1);
  --line-light: rgba(255, 255, 255, .14);

  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;     /* client's heading font */
  --body: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif; /* client's body font */

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(80px, 10vw, 120px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 26px 50px -26px rgba(11, 22, 56, .45);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.blue { color: var(--blue); }
.yellow { color: var(--yellow); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 10px; height: 14px; background: currentColor; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: path("M5 0C5 0 10 6 10 9a5 5 0 0 1-10 0C0 6 5 0 5 0z"); }
.eyebrow-light { color: var(--sky); }
.section-title { font-size: clamp(32px, 4.2vw, 50px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-sub { max-width: 400px; }

/* ---------- 3. Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  font-family: var(--head); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s, color .3s, border-color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-yellow { background: var(--yellow); color: var(--navy-dark); box-shadow: 0 14px 28px -14px rgba(242, 169, 0, .8); }
.btn-yellow::before { background: var(--yellow-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue::before { background: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy::before { background: var(--blue); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { color: var(--navy); }
.btn-outline { color: var(--navy); border-color: var(--line); }
.btn-outline::before { background: var(--navy); }
.btn-outline:hover { color: var(--white); border-color: var(--navy); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 4. Top bar + Header ---------- */
.topbar { background: var(--navy-dark); color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar p, .topbar a { display: flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; color: var(--sky); }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(11, 22, 56, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 92px; transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 76px; }
.logo { flex-shrink: 0; }
.logo img { width: 210px; transition: width .3s var(--ease); }
.is-scrolled .logo img { width: 190px; }

.main-nav ul { display: flex; gap: 20px; }
.main-nav a:not(.btn) { position: relative; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 0; white-space: nowrap; transition: color .3s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--blue); transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--blue); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 12px; }
.hp-icon { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.hp-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: ping 2s ease-out infinite; }
.hp-icon .icon { animation: ring 2.6s ease-in-out infinite; }
.hp-text small { display: block; font-size: 12.5px; font-weight: 600; color: var(--blue); line-height: 1.2; }
.hp-text b { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); transition: transform .35s var(--ease), opacity .3s, top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-dark); color: rgba(255, 255, 255, .85); padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 9vw, 120px); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; opacity: .35; animation: kenburns 22s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 22, 56, .97) 0%, rgba(20, 36, 90, .9) 45%, rgba(20, 36, 90, .65) 100%), radial-gradient(600px 400px at 85% 20%, rgba(91, 184, 255, .25), transparent 70%); }
.hero-pipe { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; pointer-events: none; opacity: .55; }
.pipe-body { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 14; stroke-linecap: round; }
.pipe-flow { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 26; animation: flow 1.6s linear infinite; filter: drop-shadow(0 0 4px var(--sky)); }
.drops span { position: absolute; top: -20px; width: 8px; height: 12px; background: var(--sky); opacity: .5; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: fall 6s linear infinite; }
.drops span:nth-child(1) { left: 8%; animation-delay: 0s; }
.drops span:nth-child(2) { left: 22%; animation-delay: 2.2s; animation-duration: 7s; }
.drops span:nth-child(3) { left: 41%; animation-delay: 4s; }
.drops span:nth-child(4) { left: 58%; animation-delay: 1.2s; animation-duration: 8s; }
.drops span:nth-child(5) { left: 76%; animation-delay: 3.4s; }
.drops span:nth-child(6) { left: 92%; animation-delay: 5s; animation-duration: 7.5s; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 194, 51, .15); border: 1px solid rgba(255, 194, 51, .45); color: var(--yellow); font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1.8s infinite; }
.hero-title { color: var(--white); font-size: clamp(38px, 4.3vw, 60px); font-weight: 800; line-height: 1.04; margin-bottom: 18px; text-transform: uppercase; letter-spacing: -.015em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--sky); }
.hero-sub { font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--yellow); margin-bottom: 14px; }
.hero-text { max-width: 560px; font-size: 19px; margin-bottom: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 36px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.hero-trust .icon { color: var(--sky); }

.estimate-card { position: relative; background: var(--white); color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px; }
.estimate-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--yellow)); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
.ec-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.ec-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex-shrink: 0; }
.ec-icon .icon { width: 24px; height: 24px; animation: bob 3s ease-in-out infinite; }
.ec-head h2 { font-size: 22px; }
.ec-head p { font-size: 15.5px; color: var(--muted); line-height: 1.4; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span { font-family: var(--head); font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s, background .3s; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 123, 224, .15); }
.ec-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; color: var(--muted); text-align: center; }
.ec-note .icon { width: 16px; height: 16px; color: #1FA463; stroke-width: 2.6; }

/* ---------- 6. Quick cards ---------- */
.quick { position: relative; margin-top: -50px; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .4s var(--ease), background .4s, color .4s; }
.q-card:hover { transform: translateY(-8px); }
.q-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--blue); transition: transform .5s var(--ease); }
.q-card:hover .q-icon { transform: rotate(-10deg) scale(1.08); }
.q-icon .icon { width: 26px; height: 26px; }
.q-card h3 { font-size: 20px; margin-bottom: 4px; text-transform: uppercase; }
.q-card p { font-size: 16.5px; line-height: 1.5; }
.q-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--blue); }
.q-card:hover .q-link .icon { transform: translateX(4px); }
.q-link .icon { transition: transform .3s var(--ease); width: 18px; height: 18px; }
.q-card-hl { background: var(--blue); color: rgba(255, 255, 255, .85); border-color: var(--blue); }
.q-card-hl h3, .q-card-hl .q-link { color: var(--white); }
.q-card-hl .q-icon { background: rgba(255, 255, 255, .15); color: var(--yellow); }

/* ---------- 7. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 0 90px 0; }
.a-img-1 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% center; border-radius: 20px; box-shadow: var(--shadow); }
.a-img-2 { position: absolute; right: -10px; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 7px solid var(--white); box-shadow: var(--shadow); }
.years { position: absolute; left: 24px; bottom: 30px; display: grid; grid-template-columns: auto auto; align-items: start; column-gap: 2px; padding: 18px 22px; border-radius: 16px; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.years b { font-family: var(--head); font-size: 46px; font-weight: 800; line-height: 1; }
.years > span { font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--yellow); line-height: 1; }
.years small { grid-column: 1 / -1; font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy > p + p { margin-top: 14px; }
.owner-note { display: flex; gap: 14px; align-items: center; margin: 26px 0 28px; padding: 18px 20px; border-radius: 14px; background: var(--ice); border-left: 4px solid var(--blue); }
.owner-note .icon { width: 28px; height: 28px; color: var(--blue); }
.owner-note p { font-size: 17px; line-height: 1.5; }
.owner-note b { color: var(--ink); }

/* ---------- 8. Services ---------- */
.services { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.svc::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex-shrink: 0; transition: background .4s, color .4s; }
.svc:hover .svc-icon { background: var(--blue); color: var(--white); }
.svc-icon .icon { width: 24px; height: 24px; }
.svc h3 { font-size: 16px; line-height: 1.3; }
.svc-cta { padding: 0; background: var(--navy); border-color: var(--navy); }
.svc-cta a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 100%; padding: 20px; color: var(--white); font-family: var(--head); font-weight: 700; font-size: 16px; }
.svc-cta .icon { transition: transform .3s var(--ease); }
.svc-cta:hover .icon { transform: translateX(4px); }

.tankless { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; margin-top: 30px; padding: 30px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.tk-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ice); color: var(--blue); font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tk-copy h3 { font-size: clamp(30px, 3.4vw, 42px); text-transform: uppercase; color: #D7262E; margin: 12px 0 14px; }
.tk-copy ul { display: grid; gap: 8px; margin-bottom: 24px; }
.tk-copy li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.tk-copy li .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #1FA463; color: var(--white); stroke-width: 3; }
.tk-img { border-radius: 14px; overflow: hidden; }
.tk-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 100% 40%; transition: transform 1s var(--ease); }
.tankless:hover .tk-img img { transform: scale(1.04); }

/* ---------- 9. Why us ---------- */
.why { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .8); }
.why .section-title { color: var(--white); margin-bottom: 20px; }
.ripples span { position: absolute; left: 12%; top: 70%; width: 160px; height: 160px; margin: -80px; border-radius: 50%; border: 1.5px solid rgba(91, 184, 255, .35); animation: ripple 6s ease-out infinite; }
.ripples span:nth-child(2) { animation-delay: 2s; }
.ripples span:nth-child(3) { animation-delay: 4s; }
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.angie { width: 130px; margin-top: 30px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .4)); animation: float 6s ease-in-out infinite; }
.why-list { display: grid; gap: 14px; }
.why-list li { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-light); transition: background .4s, transform .4s var(--ease); }
.why-list li:hover { background: rgba(255, 255, 255, .1); transform: translateX(6px); }
.w-num { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-weight: 800; font-size: 34px; color: rgba(255, 255, 255, .07); }
.w-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--navy-dark); flex-shrink: 0; }
.why-list h3 { color: var(--white); font-size: 18px; margin-bottom: 2px; }
.why-list p { font-size: 16px; }

/* ---------- 10. Google reviews ---------- */
.reviews { background: var(--ice); overflow: hidden; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.g-badge { display: flex; align-items: center; gap: 16px; background: var(--white); padding: 16px 24px; border-radius: 16px; box-shadow: var(--shadow); }
.g-logo { width: 40px; height: 40px; }
.g-score { display: flex; align-items: center; gap: 10px; }
.g-score b { font-family: var(--head); font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1; }
.g-badge small { color: var(--muted); font-size: 15px; }
.stars { color: #F5B301; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.star-part { background: linear-gradient(90deg, #F5B301 10%, #CBD3E1 10%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.review-slider { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); margin: 0 calc(50% - 50vw); }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(290px, 28vw, 380px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); padding: 10px var(--edge) 30px; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 28px 26px 24px; box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.r-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.r-g { width: 22px; height: 22px; }
.review blockquote { margin: 0 0 22px; font-size: 17.5px; line-height: 1.65; color: var(--ink); }
.r-author { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.r-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 700; flex-shrink: 0; }
.review:nth-child(3n+2) .r-avatar { background: var(--navy); }
.review:nth-child(3n) .r-avatar { background: var(--yellow-dark); }
.r-author b { display: block; font-family: var(--head); font-size: 15px; color: var(--ink); }
.r-author small { color: var(--muted); font-size: 14px; }
.reviews-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.slider-btn[data-dir="-1"] .icon { transform: scaleX(-1); }
.slider-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.reviews-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 11. CTA band ---------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--blue), #2B8CF0 60%, var(--sky)); padding: clamp(56px, 7vw, 80px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 28px); animation: slideBg 12s linear infinite; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(30px, 3.8vw, 46px); text-transform: uppercase; margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .9); font-size: 19px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .7); padding: 80px 0 30px; font-size: 16.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-brand img { width: 230px; padding: 12px 14px; background: var(--white); border-radius: 12px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { color: var(--white); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--sky); padding-left: 4px; }
.footer-phone { display: block; font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--yellow); }
.footer-mail { display: block; margin-top: 6px; word-break: break-all; }
.footer-mail:hover { color: var(--white); }
.footer-sub { margin-top: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .5); }
.cards { width: 162px; margin-top: 8px; border-radius: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 14.5px; color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: var(--white); }

.mobile-call { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--yellow); color: var(--navy-dark); font-family: var(--head); font-weight: 800; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transform: translateY(150%); transition: transform .45s var(--ease); }
.mobile-call .icon { animation: ring 2.6s ease-in-out infinite; }
.show-call .mobile-call { transform: none; }

/* ---------- 13. Animations ---------- */
@keyframes rise     { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cardIn   { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.15) translateX(-2%); } }
@keyframes flow     { to { stroke-dashoffset: -44; } }
@keyframes fall     { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .6; } 100% { transform: translateY(105vh); opacity: 0; } }
@keyframes pulse    { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 51, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 194, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); } }
@keyframes ping     { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ring     { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }
@keyframes bob      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes float    { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes shimmer  { to { background-position: 200% 0; } }
@keyframes ripple   { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes slideBg  { to { background-position: 280px 0; } }

.is-loaded .hero-title .line > span { animation: rise 1s var(--ease) var(--d, 0s) both; }
.is-loaded .anim { animation: fadeUp .9s var(--ease) var(--d, 0s) both; }
.is-loaded .anim-card { animation: cardIn 1.1s var(--ease) var(--d, 0s) both; }

.js-reveal .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1360px) {
  .main-nav ul { gap: 16px; }
  .main-nav a:not(.btn) { font-size: 13px; }
  .hp-text small { display: none; }
  .logo img { width: 200px; }
}

@media (max-width: 1100px) {
  .topbar .tb-mid { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; background: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 100px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: 12px; }
  .main-nav a:not(.btn) { font-size: 22px; }
  .nav-cta { display: inline-flex; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .hp-text small { display: block; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .why-grid { grid-template-columns: 1fr; }
  .estimate-card { max-width: 560px; }
  .quick { margin-top: 40px; }
  .quick-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tankless { grid-template-columns: 1fr; }
  .mobile-call { display: inline-flex; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .topbar { font-size: 13px; }
  .topbar .tb-mail { display: none; }
  .header-inner, .is-scrolled .header-inner { height: 72px; }
  .logo img, .is-scrolled .logo img { width: 160px; }
  .hp-text { display: none; }
  .hp-icon { width: 44px; height: 44px; }
  .hero-title { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-sub { font-size: 17px; }
  .hero-text { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-trust { gap: 10px 18px; font-size: 15.5px; }
  .estimate-card { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .a-img-2 { right: 0; }
  .years { left: 12px; bottom: 16px; padding: 14px 16px; }
  .years b { font-size: 36px; }
  .svc-grid { grid-template-columns: 1fr; }
  .tankless { padding: 20px; }
  .tk-copy .btn { width: 100%; }
  .review-track { grid-auto-columns: calc(100vw - 2 * var(--gutter) - 30px); gap: 16px; }
  .g-badge { width: 100%; }
  .reviews-foot { flex-direction: column; align-items: stretch; }
  .slider-nav { justify-content: center; }
  .reviews-links .btn { flex: 1; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

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