/* ==========================================================================
   Vero Beach Mold Pros — v3 design (mockup look, original text)
   Bright lime + dark green + white, in the language of the user-supplied
   mockup: dark top info bar, white sticky header, full-bleed photo heroes
   with two-tone headlines, photo service cards, numbered process steps,
   checkmark lists, green FAQ bars, dark-green footer.
   ========================================================================== */

/* --- 1. Tokens & base ---------------------------------------------------- */

:root {
  --lime: #7cb342;
  --lime-dark: #689f38;
  --lime-bright: #a5d66d;
  --lime-pale: #eef5e6;
  --green: #1b6b4a;
  --green-dark: #14543c;
  --green-deep: #0d3a28;
  --tint: #f1f7f1;
  --ink: #22332b;
  --muted: #5b6d63;
  --line: #dbe7dd;
  --white: #ffffff;
  --max-width: 1120px;
  --font-heading: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.9rem;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(13, 58, 40, 0.1);
  --shadow-md: 0 10px 28px rgba(13, 58, 40, 0.14);
}

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

html {
  scroll-padding-top: 5.25rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--green-dark);
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--green-dark);
  font-weight: 600;
}

a:hover {
  color: var(--green);
}

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

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

/* --- 2. Top info bar ----------------------------------------------------- */

.topbar {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.87rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0;
}

.topbar-icon {
  flex: none;
  color: var(--lime-bright);
}

.topbar-address {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- 3. Header (white, sticky) ------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(13, 58, 40, 0.14);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  flex: none;
  line-height: 0;
}

.brand-mark svg {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--green-dark);
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

/* Mobile nav toggle: visible label plus a hamburger drawn from the three
   empty <span> bars inside .nav-toggle-icon. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: var(--lime-pale);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
  height: 1rem;
  flex: none;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--green-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate the hamburger into an X while the panel is open. */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel: hidden until JS adds .open. */
.main-nav {
  display: none;
  width: 100%;
  order: 3;
}

.main-nav.open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  display: flex;
  flex-direction: column;
}

.main-nav li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.main-nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.main-nav a:visited {
  color: var(--ink);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--lime-pale);
  color: var(--green-dark);
  text-decoration: none;
}

/* Current page: lime pill with dark-green text. */
.main-nav a.nav-current,
.main-nav a[aria-current="page"] {
  background: var(--lime);
  color: var(--green-deep);
}

.main-nav a.nav-current:hover,
.main-nav a[aria-current="page"]:hover {
  background: var(--lime-dark);
  color: var(--white);
}

/* Phone badge: prominent but NOT a link (the number is a placeholder).
   Styled as a dark-green pill with a lime phone icon. */
.header-phone {
  order: 3;
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: default;
}

.phone-icon {
  flex: none;
  color: var(--lime-bright);
}

/* --- 4. Breadcrumb bar --------------------------------------------------- */

.breadcrumb-bar {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--muted);
}

.breadcrumb-bar .container {
  padding: 0.4rem 0;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green-dark);
}

/* --- 5. Heroes & homepage slider ----------------------------------------- */

.hero,
.hero-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep);
  color: var(--white);
  min-height: clamp(26rem, 58vh, 38rem);
}

/* The <img> is a direct child after .hero-content in the markup. */
.hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after,
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 32, 23, 0.84) 0%, rgba(7, 32, 23, 0.48) 48%, rgba(7, 32, 23, 0.16) 78%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
}

.hero-content h1 {
  margin: 0 0 0.55em;
  max-width: 24ch;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Two-tone headline: the <strong> tail renders in bright lime. */
.hero-hl {
  font-weight: inherit;
  color: var(--lime-bright);
}

.hero-subtext {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-content a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.hero-content a:visited {
  color: var(--white);
}

.hero-content a:hover,
.hero-content a:focus-visible {
  color: var(--white);
  text-decoration-color: var(--white);
}

.hero-slider :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--white);
}

/* --- Homepage slider --- */

/* Taller floor on small screens so the long subtext fits the overlay. */
.hero-slider {
  min-height: 35rem;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay sits above the slides and holds the H1, arrows, dots, and
   subtext. inset:0 with a max-width and auto margins centers it. */
.hero-slider .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem 3.25rem;
  min-height: 0;
}

/* Circular glass arrow buttons, vertically centered. The chevron glyphs
   come from the <span> elements in the markup, not from CSS. */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(7, 32, 23, 0.55);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(7, 32, 23, 0.85);
  border-color: var(--white);
}

.slider-prev span,
.slider-next span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.slider-prev {
  left: 0.6rem;
}

.slider-next {
  right: 0.6rem;
}

.slider-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.slider-dot {
  width: 0.9rem;
  height: 0.9rem;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slider-dot:hover {
  transform: scale(1.15);
}

.slider-dot.active,
.slider-dot[aria-current="true"] {
  background: var(--lime-bright);
  border-color: var(--lime-bright);
}

/* --- 6. Lead paragraph --------------------------------------------------- */

.container--lead {
  padding-top: 2rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 76ch;
}

/* --- 7. Section bands ---------------------------------------------------- */

.band {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.band--tint {
  background: var(--tint);
}

.band > .container > h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Lime accent rule under band headings: a shape, no added text. */
.band h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 0.25rem;
  margin: 0.6rem auto 0;
  border-radius: var(--radius-full);
  background: var(--lime);
}

.band > .container > h2 + p {
  margin-bottom: 1.75rem;
}

.section-photo {
  margin: 0 0 1.75rem;
}

.section-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- 8. Card grids & cards ----------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

/* Photo cards: image on top, h3 as a dark-green label bar, body below. */
.card--photo {
  padding: 0;
  overflow: hidden;
}

.card--photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card--photo h3 {
  margin: 0;
  padding: 0.7rem 1.1rem;
  background: var(--green-dark);
  color: var(--white);
  font-size: 1.05rem;
}

.card--photo > p,
.card--photo > ul,
.card--photo > ol {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

.card--photo > p:first-of-type,
.card--photo > ul:first-of-type,
.card--photo > ol:first-of-type {
  margin-top: 1rem;
}

.card--photo > :last-child {
  margin-bottom: 1.1rem;
}

/* Tip cards: centered lime icon circle + heading, body left-aligned. */
.card--tip {
  text-align: center;
}

.card--tip .tip-icon {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--lime-pale);
}

.card--tip p,
.card--tip ul,
.card--tip ol {
  text-align: left;
}

/* Process steps: numbered dark-green circles; arrows join cards in a row
   on desktop (see the >=1000px block). */
.steps-band .card-grid {
  counter-reset: step;
}

.steps-band .card {
  counter-increment: step;
  position: relative;
  padding-top: 4.6rem;
}

.steps-band .card::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--lime-pale);
}

/* ZIP pills: <strong> wrappers in the service-areas ZIP paragraph. */
.zip-pill {
  display: inline-block;
  margin: 0.1rem 0.05rem;
  padding: 0.05rem 0.6rem;
  border: 1.5px solid var(--lime);
  border-radius: var(--radius-full);
  background: var(--lime-pale);
  color: var(--green-dark);
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}

/* --- 9. Lists in main content -------------------------------------------- */

/* Unordered lists get lime-ringed green checkmarks (scoped to <main> so
   header, breadcrumb, and footer lists are unaffected). */
main ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

main ul:not(.breadcrumb) li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.9rem;
}

main ul:not(.breadcrumb) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background-color: var(--lime-pale);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M4%2012.5%209.5%2018%2020%206.5'%20fill='none'%20stroke='%231b6b4a'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 62%;
  background-position: center;
  background-repeat: no-repeat;
}

main ol:not(.breadcrumb) {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

main ol:not(.breadcrumb) li {
  margin: 0 0 0.45rem;
}

main ol:not(.breadcrumb) li::marker {
  color: var(--green);
  font-weight: 700;
}

/* --- 10. FAQ accordion (green bars) -------------------------------------- */

.faq-band .faq-item:last-child {
  margin-bottom: 0;
}

.faq-item {
  margin-bottom: 0.8rem;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: var(--green);
}

.faq-question::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--white);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- 11. Mold risk checker ----------------------------------------------- */

.risk-checker .container > p {
  max-width: 76ch;
}

.risk-questions {
  display: grid;
  gap: 1rem;
}

.risk-questions fieldset {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.risk-questions legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: var(--green-dark);
}

.risk-questions label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0.5rem 0 0;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.risk-questions label:hover {
  border-color: var(--lime);
}

.risk-questions label:has(input:checked) {
  border-color: var(--lime);
  background: var(--lime-pale);
}

.risk-questions input {
  accent-color: var(--green);
}

#risk-checker-button {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

#risk-checker-button:hover {
  background: var(--green);
}

#risk-result {
  margin-top: 1.25rem;
  font-weight: 500;
}

#risk-result:empty {
  display: none;
}

/* --- 12. Closing CTA band ------------------------------------------------ */

.cta-band {
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep));
  color: var(--white);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band h2::after {
  background: var(--lime-bright);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.93);
}

/* The band's existing links render as lime pills (same pattern as v2). */
.cta-band p a {
  display: inline-block;
  margin: 0.15rem 0.1rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--green-deep);
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta-band p a:visited {
  color: var(--green-deep);
}

.cta-band p a:hover,
.cta-band p a:focus-visible {
  background: var(--lime-bright);
  color: var(--green-deep);
}

/* The contact form sits on a white card inside the dark CTA band, so its
   fields keep dark text and the dark focus ring. */
.cta-band .quote-form :focus-visible {
  outline-color: var(--lime-dark);
}

/* --- 13. Contact layout & form ------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-address {
  font-weight: 700;
  color: var(--white);
}

.contact-photo {
  margin: 0;
}

.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quote-form {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.quote-form > div {
  margin-bottom: 1rem;
}

.quote-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--green-dark);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid var(--lime-pale);
  outline-offset: 0;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button[type="submit"] {
  width: 100%;
  padding: 0.8rem 1.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.quote-form button[type="submit"]:hover {
  background: var(--green);
}

.quote-form .form-note {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--lime);
  border-radius: var(--radius-sm);
  background: var(--lime-pale);
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-form #form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

.quote-form #form-status:empty {
  display: none;
}

/* --- 14. Footer ---------------------------------------------------------- */

.site-footer {
  padding: 2.75rem 0 2rem;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-mark {
  line-height: 0;
}

.footer-mark svg {
  width: 3.5rem;
  height: 3.5rem;
  display: block;
}

.footer-brand {
  margin: 0;
  max-width: 42ch;
}

.footer-brand strong {
  color: var(--white);
}

.footer-contact,
.footer-address {
  margin: 0;
}

.footer-address {
  font-weight: 600;
  color: var(--white);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:visited {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal,
.footer-updated {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* --- 15. Back-to-top ----------------------------------------------------- */

#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s, background 0.15s ease;
}

/* CSS arrow; the button's text stays in the DOM for assistive tech. */
#back-to-top::before {
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0.25rem auto 0;
  border-top: 3px solid var(--white);
  border-left: 3px solid var(--white);
  transform: rotate(45deg);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s, background 0.15s ease;
}

#back-to-top:hover {
  background: var(--green);
}

/* --- 16. Scroll reveal (JS-gated: no-JS stays fully visible) ------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- 17. Responsive ------------------------------------------------------ */

@media (min-width: 640px) {
  .topbar-inner {
    justify-content: flex-end;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav,
  .footer-legal,
  .footer-updated {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 1rem 1.5rem;
  }

  .brand {
    margin-right: 0;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    order: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 0.35rem;
    padding-bottom: 0;
  }

  .main-nav li {
    border-top: 0;
  }

  .main-nav a {
    padding: 0.45rem 0.55rem;
    font-size: 0.95rem;
  }

  .header-phone {
    order: 0;
    flex-basis: auto;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process-step arrows: chevrons in the gaps between cards in a row.
     Hidden on row ends (every 3rd card) and on the last card. */
  .steps-band .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-band .card::after {
    content: "";
    position: absolute;
    top: 2.55rem;
    right: -1.1rem;
    z-index: 2;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 3px solid var(--lime);
    border-right: 3px solid var(--lime);
    transform: rotate(45deg);
  }

  .steps-band .card:nth-child(3n)::after,
  .steps-band .card:last-child::after {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 4rem 1.4fr 1fr;
    grid-template-areas:
      "mark brand contact"
      "mark brand address"
      "nav nav nav"
      "legal legal updated";
    align-items: start;
  }

  .footer-mark {
    grid-area: mark;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-contact {
    grid-area: contact;
  }

  .footer-address {
    grid-area: address;
  }

  .footer-nav {
    grid-area: nav;
  }

  .footer-legal {
    grid-area: legal;
  }

  .footer-updated {
    grid-area: updated;
    text-align: right;
  }
}

/* Grids with exactly 4 cards go 4-across on wide screens (graceful
   fallback to 3 columns where :has() is unsupported). */
@media (min-width: 1100px) {
  .card-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Small phones: keep the brand compact so brand + toggle fit one row. */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .brand-tag {
    font-size: 0.55rem;
  }

  .hero-content {
    padding: 2.25rem 1.25rem;
  }

  .hero-slider .hero-content {
    padding-bottom: 3.5rem;
  }
}

/* --- 18. Reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slide {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

/* --- 19. Print ----------------------------------------------------------- */

@media print {
  .topbar,
  .nav-toggle,
  .main-nav,
  .header-phone,
  .slider-prev,
  .slider-next,
  .slider-dots,
  #back-to-top,
  .quote-form button[type="submit"] {
    display: none !important;
  }

  .site-header {
    position: static;
    box-shadow: none;
  }

  .hero,
  .hero-slider {
    min-height: 0;
    background: var(--white);
    color: var(--ink);
  }

  .hero > img,
  .hero-slides,
  .hero::after,
  .hero-slider::after {
    display: none;
  }

  .hero-content,
  .hero-slider .hero-content {
    position: static;
    min-height: 0;
    padding: 1rem 0;
  }

  .hero-content h1 {
    color: var(--green-dark);
    text-shadow: none;
  }

  .hero-hl {
    color: var(--green);
  }

  .hero-subtext,
  .hero-content a {
    color: var(--ink);
    text-shadow: none;
  }

  /* Print all FAQ answers, including collapsed ones. */
  .faq-answer[hidden] {
    display: block !important;
  }

  .faq-question {
    background: var(--white);
    color: var(--green-dark);
    border: 1px solid var(--line);
  }

  .faq-question::after {
    display: none;
  }

  .cta-band {
    background: var(--white);
    color: var(--ink);
  }

  .cta-band h2,
  .cta-band p {
    color: var(--ink);
  }

  .cta-band p a {
    background: none;
    color: var(--green-dark);
    text-decoration: underline;
    padding: 0;
  }

  .site-footer {
    background: var(--white);
    color: var(--ink);
  }

  .footer-brand strong,
  .footer-address,
  .footer-nav a,
  .footer-nav a:visited {
    color: var(--ink);
  }

  .footer-legal,
  .footer-updated {
    color: var(--muted);
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  a {
    text-decoration: underline;
  }
}
