/*
Theme Name: Drain Force Plumbing
Theme URI: https://drainforceplumbing.com
Author: Leading Click
Description: Custom theme for Drain Force Plumbing. Built for the Scorpion -> WordPress migration; matches the prior site's section rhythm with clean semantic markup.
Version: 1.0.0
License: Proprietary
Text Domain: dfp
*/

/* ---------------------------------------------------------------
   Brand palette -- taken from the client's own logo/brand colors.
   --------------------------------------------------------------- */
:root {
  --navy:        #023676;
  --navy-dark:   #01224b;
  --cyan:        #0990C0;
  --cyan-dark:   #07729a;
  --link:        #044BA1;
  --link-light:  #5FD6DE;
  --ink:         #2D2D2D;
  --ink-soft:    #55606d;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F7F8;
  --bg-band:     #eef2f5;
  --line:        #dde4ea;
  --white:       #FFFFFF;

  --wrap:        1180px;
  --wrap-narrow: 820px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 1px 3px rgba(2,54,118,.08), 0 6px 20px rgba(2,54,118,.07);
  --shadow-lg:   0 8px 30px rgba(2,54,118,.13);

  --step--1: clamp(.86rem, .84rem + .1vw, .93rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + .35vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.32rem + .64vw, 1.9rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.65rem + 2.1vw, 3.4rem);

  --sp-band: clamp(3rem, 1.8rem + 4.5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .55em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -.02em; }
h2 { font-size: var(--step-3); letter-spacing: -.01em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .45em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }

/* ---------------------------------------------------------------
   Header

   Two bands: a slim utility bar and one main row (logo | nav | phone + CTA).
   On the front page body.overlap floats the whole header over the hero with a
   transparent background, mirroring the source site, and a scroll handler
   swaps it to the solid sticky treatment once the hero is behind you -- so the
   phone CTA never scrolls out of reach.
   --------------------------------------------------------------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  position: sticky; top: 0; z-index: 50;
}

.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.92);
  font-size: var(--step--1);
}
.header-top .wrap {
  display: flex; flex-wrap: wrap; gap: .3rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: .4rem;
}
.header-top a { color: rgba(255,255,255,.92); text-decoration: none; }
.header-top a:hover { color: var(--link-light); }
.header-top .ht-license { opacity: .82; }
.header-top .ht-phone { display: none; font-weight: 700; }
.header-top .ht-phone a { color: #fff; }
.ht-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin: 0; padding: 0; }
.ht-links li { margin: 0; }

.header-main .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .6rem;
}

/* Nav gets its own band: eight items will not fit on one line beside the logo
   and the phone/CTA, and squeezing them there made them collide. */
.header-nav { border-top: 1px solid var(--line); }
.header-nav .wrap { display: flex; justify-content: center; }
.site-logo { flex: 0 0 auto; line-height: 0; }
.site-logo img { width: auto; max-height: 54px; }
.site-logo .logo-light { display: none; }

.header-actions { display: flex; align-items: center; gap: .8rem; margin-left: auto; flex: 0 0 auto; }
.header-phone {
  display: inline-flex; flex-direction: column; line-height: 1.12;
  text-decoration: none; color: var(--navy); font-weight: 800;
  font-size: var(--step-0); white-space: nowrap;
}
.header-phone small {
  font-size: .68em; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .05em; text-transform: uppercase;
}

/* Drawer chrome -- mobile only, hidden at desktop widths. */
.nav-panel-head, .nav-quick, .sub-toggle { display: none; }
.nav-backdrop { display: none; }

/* Nav */
.nav-toggle {
  display: none; background: var(--navy); color: #fff; border: 0;
  border-radius: var(--radius); padding: .55rem .8rem; font-size: .95rem;
  font-weight: 700; cursor: pointer; align-items: center; gap: .45rem;
}
.primary-nav { min-width: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 0;
}
.primary-nav li { position: relative; margin: 0; }
.primary-nav a {
  display: block; padding: .62rem .78rem; text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: .87rem;
  letter-spacing: .005em; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  color: var(--cyan); border-bottom-color: var(--cyan);
}
.primary-nav .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 252px;
  background: #fff; box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .35rem 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a {
  padding: .52rem 1.05rem; border-bottom: 0; font-weight: 500;
  color: var(--ink); white-space: normal;
}
.primary-nav .sub-menu a:hover { background: var(--bg-soft); color: var(--cyan); }
.primary-nav .sub-menu .sub-menu { left: 100%; top: 0; border-radius: var(--radius); }

/* --- Front page: float the header over the hero ------------------- */
@media (min-width: 950px) {
  .overlap .site-header {
    position: absolute; top: 0; left: 0; right: 0;
    background: transparent; box-shadow: none;
  }
  .overlap .header-top {
    background: rgba(1,22,50,.30);
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .overlap .header-nav { border-top-color: rgba(255,255,255,.18); }
  .overlap .site-logo .logo-dark { display: none; }
  .overlap .site-logo .logo-light { display: block; }
  .overlap .primary-nav a { color: #fff; }
  .overlap .primary-nav a:hover,
  .overlap .primary-nav .current-menu-item > a,
  .overlap .primary-nav .current-page-ancestor > a { color: var(--link-light); border-bottom-color: var(--link-light); }
  .overlap .primary-nav .sub-menu a { color: var(--ink); }
  .overlap .primary-nav .sub-menu a:hover { color: var(--cyan); }
  .overlap .header-phone { color: #fff; }
  .overlap .header-phone small { color: rgba(255,255,255,.8); }

  /* Once the hero is scrolled past, revert to the solid sticky header so the
     phone number and CTA stay reachable. */
  .overlap .site-header.is-stuck {
    position: fixed; background: #fff; box-shadow: var(--shadow);
    animation: dfp-drop .22s ease;
  }
  .overlap .site-header.is-stuck .header-top { background: var(--navy); border-bottom: 0; }
  .overlap .site-header.is-stuck .header-nav { border-top-color: var(--line); }
  .overlap .site-header.is-stuck .site-logo .logo-dark { display: block; }
  .overlap .site-header.is-stuck .site-logo .logo-light { display: none; }
  .overlap .site-header.is-stuck .primary-nav a { color: var(--navy); }
  .overlap .site-header.is-stuck .primary-nav a:hover,
  .overlap .site-header.is-stuck .primary-nav .current-menu-item > a { color: var(--cyan); border-bottom-color: var(--cyan); }
  .overlap .site-header.is-stuck .header-phone { color: var(--navy); }
  .overlap .site-header.is-stuck .header-phone small { color: var(--ink-soft); }
}
@keyframes dfp-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------------------------------------------------------------
   Hero / banner
   --------------------------------------------------------------- */
.hero, .banner {
  position: relative; color: #fff; background: var(--navy);
  background-size: cover; background-position: center;
  isolation: isolate;
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(1,34,75,.90) 0%, rgba(2,54,118,.80) 48%, rgba(1,34,75,.72) 100%);
}

/*
   Hero. The artwork is a fixed composite (van, technician, coastline), so it
   is an <img> inside a <picture> -- never a cropping background. The copy is
   stacked over it with a scrim that is heavy on the left, where the artwork is
   open sky, and clears to nothing on the right so the subject stays visible.
*/
.hero {
  display: grid;
  isolation: isolate;
  background: var(--navy);
}
.hero > * { grid-area: 1 / 1; }

.hero-media { display: block; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
  display: block;
}

.hero::after {
  content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none;
  background: linear-gradient(
    172deg,
    rgba(1,34,75,.90) 0%,
    rgba(1,34,75,.70) 34%,
    rgba(2,54,118,.34) 66%,
    rgba(2,54,118,.14) 100%
  );
}

/* Clear the floating header -- only where it actually floats. Below 950px the
   header is solid and in normal flow, so extra padding just shoves the copy
   down onto the van. */
@media (min-width: 950px) { .overlap .hero > .wrap { padding-top: 9rem; } }

/*
   Darken just the band the floating header sits in. The logo's white wordmark
   and the blue "FORCE" mark both sit on mid-blue sky here; without this the
   mark and the nav links hover around the AA threshold.
*/
@media (min-width: 950px) {
  .overlap .hero::before {
    content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none;
    align-self: start; height: 15rem; width: 100%;
    background: linear-gradient(180deg,
      rgba(1,22,50,.66) 0%,
      rgba(1,22,50,.40) 45%,
      rgba(1,22,50,0)   100%);
  }
}

.hero > .wrap {
  z-index: 2;
  align-self: start;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  /* Portrait mobile art puts the van and technician in the lower third, so the
     copy sits top-aligned with room beneath rather than centred over them. */
  padding-block: 2.25rem 14rem;
}
@media (min-width: 501px) {
  .hero > .wrap { padding-block: 2.5rem 11rem; }
}
@media (min-width: 950px) {
  .hero > .wrap { align-self: center; padding-block: clamp(2.25rem, 1.5rem + 3.5vw, 4rem); }
}
.hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 1px 14px rgba(1,22,50,.5); }

@media (min-width: 950px) {
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(1,34,75,.90) 0%,
      rgba(1,34,75,.66) 30%,
      rgba(2,54,118,.24) 55%,
      rgba(2,54,118,0)   76%
    );
  }
}

@media (min-width: 1280px) {
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(1,34,75,.88) 0%,
      rgba(1,34,75,.58) 28%,
      rgba(2,54,118,.16) 50%,
      rgba(2,54,118,0)   68%
    );
  }
}
.banner { padding-block: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
.hero h1, .banner h1 { color: #fff; margin-bottom: .4em; }
.hero p.lede { font-size: var(--step-1); max-width: 46ch; color: rgba(255,255,255,.93); }
/* Keep hero copy clear of the van/technician on wide screens. */
@media (min-width: 1100px) { .hero .hero-copy { max-width: 52%; } }
@media (min-width: 1500px) { .hero .hero-copy { max-width: 46%; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.banner .breadcrumbs { margin-bottom: .7rem; }

.breadcrumbs { font-size: var(--step--1); color: rgba(255,255,255,.82); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: var(--link-light); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .55; padding-inline: .4rem; }

/* ---------------------------------------------------------------
   Bands
   --------------------------------------------------------------- */
.band { padding-block: var(--sp-band); }
.band-soft { background: var(--bg-soft); }
.band-navy { background: var(--navy); color: rgba(255,255,255,.93); }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-tight { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }

.band-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2rem,1.5rem+1.6vw,3rem); }
.band-head p { color: var(--ink-soft); font-size: var(--step-1); margin-bottom: 0; }
.band-navy .band-head p { color: rgba(255,255,255,.85); }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: var(--step--1); font-weight: 700; color: var(--cyan); margin-bottom: .5rem;
}

/* ---------------------------------------------------------------
   Two-column content + sidebar
   --------------------------------------------------------------- */
.layout {
  display: grid; gap: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--sp-band);
}
@media (min-width: 950px) {
  .layout { grid-template-columns: minmax(0, 1fr) 330px; }
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: var(--radius); margin-block: 1.5rem; }
.entry-content ul li::marker { color: var(--cyan); }
.entry-content blockquote {
  margin: 1.8rem 0; padding: 1.1rem 1.5rem;
  border-left: 4px solid var(--cyan); background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 950px) { .sidebar { position: sticky; top: 96px; align-self: start; } }
.widget {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.widget h2, .widget h3 { font-size: var(--step-1); margin-bottom: .8rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a {
  display: block; padding: .6rem 0; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: var(--step--1);
}
.widget li a:hover, .widget li.is-current > a { color: var(--cyan); }
.widget li.is-current > a { font-weight: 800; }

.widget-cta { background: var(--navy); border-color: var(--navy); color: #fff; text-align: center; }
.widget-cta h3 { color: #fff; }
.widget-cta p { color: rgba(255,255,255,.85); font-size: var(--step--1); }
.widget-cta .btn { width: 100%; justify-content: center; }
.widget-phone {
  display: block; font-size: var(--step-2); font-weight: 800;
  color: #fff; text-decoration: none; margin-bottom: .5rem;
}
.widget-phone:hover { color: var(--link-light); }

/* ---------------------------------------------------------------
   Cards / grids
   --------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-band); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: var(--step-1); margin-bottom: .45rem; }
.card-body p { color: var(--ink-soft); font-size: var(--step--1); flex: 1; }
.card-link { text-decoration: none; color: inherit; display: contents; }
.card-more { color: var(--cyan); font-weight: 700; font-size: var(--step--1); margin-top: .6rem; }

/* Value props */
.values { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); }
.value { text-align: center; }
.value-icon {
  width: 62px; height: 62px; margin: 0 auto .9rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(9,144,192,.12); color: var(--cyan);
}
.band-navy .value-icon { background: rgba(255,255,255,.13); color: var(--link-light); }
.value-icon svg { width: 30px; height: 30px; }
.value h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.value p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.band-navy .value p { color: rgba(255,255,255,.82); }

/* Area list */
.area-list { columns: 3 200px; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.area-list li { break-inside: avoid; margin-bottom: .4rem; }
.area-list a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--step--1); }
.area-list a:hover { color: var(--cyan); }

/* Gallery */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%,220px),1fr)); }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* ---------------------------------------------------------------
   CTA strip
   --------------------------------------------------------------- */
.cta-strip {
  position: relative; isolation: isolate; color: #fff;
  padding-block: clamp(2.6rem,1.8rem+2.6vw,4rem);
  background: var(--cyan) url("assets/img/bg/cta.jpg") center/cover no-repeat;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9,144,192,.92) 0%, rgba(2,54,118,.86) 100%);
}
.cta-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.2rem;
}
.cta-strip h2 { color: #fff; margin: 0; font-size: var(--step-2); }
.cta-strip p { margin: .3rem 0 0; color: rgba(255,255,255,.9); }
.cta-strip .btn-ghost:hover { color: var(--cyan); }

/* ---------------------------------------------------------------
   Posts
   --------------------------------------------------------------- */
.post-list { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); }
.post-card time { font-size: var(--step--1); color: var(--ink-soft); }
.post-meta { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.5rem; }
.post-meta a { color: var(--cyan); }

.related-service {
  margin-top: 2.5rem; padding: 1.4rem 1.6rem;
  background: var(--bg-soft); border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.related-service h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.related-service p { margin-bottom: .7rem; color: var(--ink-soft); }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--navy); font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.fluentform .ff-el-input--label label { font-weight: 600; color: var(--navy); }
.fluentform input[type=text], .fluentform input[type=email],
.fluentform input[type=tel], .fluentform textarea, .fluentform select {
  border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
  padding: .7rem .9rem !important; font-size: var(--step-0) !important;
}
.fluentform .ff-btn-submit {
  background: var(--cyan) !important; border-radius: var(--radius) !important;
  font-weight: 700 !important; padding: .8rem 1.7rem !important; border: 0 !important;
}
.fluentform .ff-btn-submit:hover { background: var(--navy) !important; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  position: relative; isolation: isolate;
  color: rgba(255,255,255,.8); font-size: var(--step--1);
  background: var(--navy) url("assets/img/bg/footer.jpg") center/cover no-repeat;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1,34,75,.93) 0%, rgba(2,54,118,.90) 100%);
}
.footer-main { padding-block: clamp(2.6rem,2rem+2.4vw,4rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,215px),1fr)); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--step-1); margin-bottom: .8rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--link-light); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo img { max-height: 66px; width: auto; margin-bottom: 1rem; }
.footer-phone { font-size: var(--step-2); font-weight: 800; color: #fff !important; text-decoration: none !important; }
.footer-phone:hover { color: var(--link-light) !important; }
.footer-badges { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.footer-badges img { max-height: 54px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: var(--step--1); color: rgba(255,255,255,.62);
}
.footer-bottom a { color: rgba(255,255,255,.62); }

/* ---------------------------------------------------------------
   Mobile
   --------------------------------------------------------------- */
@media (max-width: 949px) {
  .nav-toggle { display: inline-flex; }

  /* The nav band becomes an off-canvas drawer. It stays in the DOM (one menu
     render, no duplicate markup) and slides in from the right. visibility is
     toggled with it so off-canvas links are not tabbable while closed. */
  .header-nav {
    display: block; border-top: 0;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(90vw, 380px);
    background: #fff; box-shadow: var(--shadow-lg);
    z-index: 120; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(101%); visibility: hidden;
    transition: transform .24s ease, visibility 0s linear .24s;
  }
  .header-nav.is-open {
    transform: none; visibility: visible;
    transition: transform .24s ease, visibility 0s;
  }
  .header-nav .wrap { display: block; width: auto; margin: 0; }

  .nav-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 0;
    background: rgba(1,22,50,.45); z-index: 110;
    animation: dfp-fade .2s ease;
  }
  /* Lift the whole header context above page content while the drawer is open,
     otherwise the backdrop (a child of the header) only dims the header. */
  body.nav-open .site-header { z-index: 130; }
  body.nav-open { overflow: hidden; }

  .nav-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1rem; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: #fff; z-index: 2;
  }
  .nav-panel-title {
    font-weight: 800; color: var(--navy); text-transform: uppercase;
    letter-spacing: .08em; font-size: .82rem;
  }
  .nav-close {
    border: 0; background: var(--bg-soft); color: var(--navy);
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
  }

  /* Pinned quick links. Coupons and Financing are the two the client wants
     reachable in one tap -- on phones they are hidden from the top bar. */
  .nav-quick {
    display: grid; grid-template-columns: 1fr; gap: .5rem;
    padding: .9rem 1rem; border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .nq {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; min-height: 52px;
    padding: .5rem .8rem; border-radius: var(--radius);
    text-decoration: none; font-weight: 800; line-height: 1.2;
  }
  .nq-label { font-size: 1rem; }
  .nq-sub { font-size: .74rem; font-weight: 600; opacity: .88; }
  .nq-call { background: var(--cyan); color: #fff; }
  .nq-book { background: var(--navy); color: #fff; }
  .nq-links {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  }
  .nq-links li { margin: 0; }
  .nq-links a {
    display: flex; align-items: center; justify-content: center;
    text-align: center; min-height: 46px; padding: .5rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--navy); font-weight: 700; font-size: .85rem; text-decoration: none;
  }
  /* Keyed off the href, not nth-child, so reordering the menu cannot silently
     move the emphasis onto Reviews. */
  .nq-links a[href*="/coupons/"],
  .nq-links a[href*="/financing/"] { border: 2px solid var(--navy); }

  .primary-nav { display: block; padding: .3rem 1rem 1.4rem; }
  .primary-nav > ul { flex-direction: column; flex-wrap: wrap; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    padding: .78rem 3.2rem .78rem .2rem; border-bottom: 0; font-size: var(--step-0);
  }

  /* Submenus collapse. Fully expanded, this menu is a ~60 link wall. */
  .primary-nav .menu-item-has-children { position: relative; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 0; right: 0; width: 3rem; height: 3rem;
    border: 0; background: none; color: var(--navy);
    font-size: 1.35rem; line-height: 1; cursor: pointer;
  }
  .sub-toggle::before { content: "+"; }
  .primary-nav li.is-open > .sub-toggle::before { content: "\2013"; }
  .primary-nav .sub-menu {
    position: static; display: none; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; padding: 0 0 .4rem .9rem;
    min-width: 0; border-radius: 0;
  }
  .primary-nav li.is-open > .sub-menu { display: block; }
  .primary-nav .sub-menu a { font-size: var(--step--1); opacity: .92; }
  .primary-nav .sub-menu .sub-toggle { height: 2.6rem; }

  .header-main .wrap { flex-wrap: wrap; }
  .site-logo img { max-height: 46px; }
  .area-list { columns: 2 150px; }
}

@keyframes dfp-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 620px) {
  /* The header row cannot hold the stacked phone block without wrapping the
     number over three lines, so it moves into the utility bar instead. */
  .header-phone { display: none; }
  .header-top .ht-phone { display: block; }
  .header-actions .btn { padding: .55rem .95rem; font-size: var(--step--1); }
  .ht-links { display: none; }
}

@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .header-top .wrap { justify-content: center; text-align: center; }
  .header-top .ht-license { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-strip .wrap { flex-direction: column; text-align: center; }
}

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

/* ---------------------------------------------------------------
   Locations -- two shops, rendered in the footer and on /contact/.
   --------------------------------------------------------------- */
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list .loc { margin: 0; }
.loc-list address { font-style: normal; margin: 0; }
.loc-name { margin: 0 0 .3rem; font-size: 1.05rem; line-height: 1.3; }
.loc-map { display: inline-block; margin-top: .35rem; font-weight: 600; }

.loc-cards {
  display: grid; gap: 1rem; margin: 1.1rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.loc-cards .loc {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
}
.loc-cards .loc-name { color: var(--navy); }

.footer-locs { margin-top: .6rem; }
.footer-locs .loc + .loc { margin-top: .9rem; }
.footer-locs .loc-name { color: #fff; font-size: .95rem; margin-bottom: .2rem; }
.footer-locs address { color: rgba(255,255,255,.78); font-size: .92rem; }
.footer-locs .loc-map { color: var(--link-light); font-size: .9rem; }

/* ---------------------------------------------------------------
   FluentForms -- pull the plugin defaults onto the brand palette.
   --------------------------------------------------------------- */
.dfp-form { margin: 1.2rem 0; }
.dfp-form .ff-el-input--label label { color: var(--navy); font-weight: 600; }
.dfp-form .ff-el-form-control {
  border-radius: var(--radius); border-color: var(--line); padding: .62rem .75rem;
}
.dfp-form .ff-el-form-control:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(9,144,192,.16); outline: 0;
}
.dfp-form .ff-btn-submit { border-radius: var(--radius) !important; font-weight: 700; }
.dfp-form .ff-message-success {
  background: var(--bg-soft); border-left: 4px solid var(--cyan);
  padding: 1rem 1.2rem; border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   Coupons.

   Geometry is measured off the client's flyer at 200dpi, so a card on
   screen is the same size it is on their paper: 2.85in x 3.91in, band
   83% of the card width and 21% of its height, logo 70%, CTA 90%.
   Type scales from the card's own font-size, so the whole coupon can be
   resized by changing one number. Colours are sampled pixels: band
   #6B97C0, CTA #5B9BD5. Calibri is the flyer's typeface.

   The flyer draws two of its nine cards with a black dashed edge and the
   rest blue -- that is an inconsistency in the source file, not a design,
   so all nine use the blue here.
   --------------------------------------------------------------- */
.coupon-grid {
  display: grid; gap: .8rem; margin: 1.4rem 0 0;
  grid-template-columns: repeat(auto-fit, 274px);
  justify-content: center;
}
.coupon {
  width: 274px; min-height: 375px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 2px dashed #6B97C0; border-radius: 20px;
  padding: 14px 13px 12px;
  font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; color: #000;
}
.coupon-logo { width: 70%; height: auto; margin: 0 0 8px; }
.coupon-band {
  width: 83%; background: #6B97C0; color: #fff;
  padding: 7px 6px 9px; display: flex; flex-direction: column; gap: 0;
}
.coupon-line1, .coupon-line2 {
  font-weight: 700; line-height: 1.05; overflow-wrap: break-word;
}
.band-lg .coupon-line1, .band-lg .coupon-line2 { font-size: 2.05em; }
.band-md .coupon-line1, .band-md .coupon-line2 { font-size: 1.78em; }
.band-sm .coupon-line1, .band-sm .coupon-line2 { font-size: 1.52em; }
.coupon-notes {
  list-style: none; margin: 12px 0 4px; padding: 0;
  font-weight: 700; font-size: 1.45em; line-height: 1.2;
}
.coupon-notes li + li { margin-top: .5em; }
.coupon-terms {
  margin: 10px 0 10px; font-size: .8em; line-height: 1.3; color: #000;
}
.coupon-cta {
  margin-top: auto; width: 90%; background: #5B9BD5; color: #fff;
  border: 2px solid #000; border-radius: 7px;
  font-weight: 700; font-size: 1.3em; line-height: 1.12;
  padding: 7px 5px; text-decoration: none;
}
.coupon-cta:hover { background: var(--cyan); color: #fff; }
.coupon-badge { width: 52%; height: auto; margin: 10px 0 0; }
.coupon-footnote { margin: 1.1rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.coupon-print { margin: 1rem 0 0; }

@media (max-width: 360px) {
  /* Only below this does a true-size card stop fitting the viewport. */
  .coupon-grid { grid-template-columns: 1fr; }
  .coupon { width: 100%; font-size: 15px; }
}

@page { margin: .35in; }

@media print {
  .site-header, .site-footer, .sidebar, .cta-strip, .nav-toggle { display: none !important; }
  body { color: #000; }
  /* Coupons are meant to be cut out, so never let one straddle a page break. */
  .banner, .breadcrumbs, .coupon-print, .coupon-footnote { display: none !important; }
  .layout { display: block !important; }
  /* Three across, like the flyer. Cards come down from 2.85in to 2.5in so
     three fit inside letter margins. */
  .coupon-grid { grid-template-columns: repeat(3, 2.5in); gap: .12in; justify-content: start; }
  .coupon { width: 2.5in; min-height: 3.45in; font-size: 14px; break-inside: avoid; page-break-inside: avoid; }
  /* Keep the flyer's colours on paper -- this is the client's artwork. */
  .coupon, .coupon-band, .coupon-cta, .coupon-badge {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ---------------------------------------------------------------
   Home section bands carrying the source site's artwork
   --------------------------------------------------------------- */

/* Full-bleed artwork behind a band, as an <img> so it never crops oddly. */
.band-bg {
  position: absolute; inset: 0; z-index: -1; display: block;
}
.band-bg img, img.band-bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

.band-services {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy);
}
.band-services::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Light enough that the artwork behind it actually reads, dark enough to
     hold white text at AA contrast. */
  background: linear-gradient(180deg, rgba(1,34,75,.84) 0%, rgba(2,54,118,.78) 100%);
}
.band-services h2, .band-services .band-head p { color: #fff; }
.band-services .band-head p { color: rgba(255,255,255,.85); }

/* Text one side, artwork the other. */
.split-grid {
  display: grid; gap: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  align-items: center; grid-template-columns: minmax(0,1fr);
}
@media (min-width: 900px) {
  .split-grid { grid-template-columns: minmax(0,1fr) minmax(0,.82fr); }
  .split-grid.f-rev { grid-template-columns: minmax(0,.82fr) minmax(0,1fr); }
}

.split-art { position: relative; }
.split-art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-art .art-2 {
  position: absolute; right: -1rem; bottom: -2rem;
  width: 46%; border: 6px solid #fff;
}
.split-art.single .art-2 { position: static; width: auto; border: 0; }
.split-art.single img { box-shadow: none; }
@media (max-width: 899px) {
  .split-art .art-2 { position: static; width: 60%; margin: 1rem 0 0 auto; }
}

/* CTA band with its own background + cut-out foreground art. */
.cta-band {
  position: relative; isolation: isolate; color: #fff;
  padding-block: clamp(2.8rem, 2rem + 3vw, 4.5rem);
  background: var(--navy);
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(1,34,75,.92) 0%, rgba(2,54,118,.72) 55%, rgba(2,54,118,.42) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 46ch; }
.cta-band-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0,1fr);
}
@media (min-width: 900px) {
  .cta-band-grid { grid-template-columns: minmax(0,1fr) minmax(0,.7fr); }
}
.cta-band-art { position: relative; display: none; }
@media (min-width: 900px) { .cta-band-art { display: block; } }
.cta-band-art img { border-radius: var(--radius-lg); }
.cta-band-art .art-2 {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  width: 48%; border: 6px solid #fff; border-radius: var(--radius-lg);
}
