/* Acqua Fresca conversion UI (2026-10-21): sticky mobile call/quote bar, the
 * short quote form block, and the home proof strip. One --gutter token: every
 * horizontal inset in this file reads it. */
:root {
  --gutter: 1.25rem;
  --af-bar-h: 64px;
  --af-ink: #082f49;
  --af-blue: #0369a1;
  --af-line: #cbd5e1;
}
@media (max-width: 559.98px) {
  :root {
    --gutter: 1.5rem;
  }
}

/* ---- Sticky bar: below 768px only ---- */
.af-bar {
  display: none;
}
@media (max-width: 767.98px) {
  .af-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60; /* under the Krispy widget (z 2147483000), above the WhatsApp bubble */
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    background: #ffffff;
    border-top: 1px solid var(--af-line);
    box-shadow: 0 -4px 16px rgba(8, 47, 73, 0.1);
  }
  .af-bar a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 0.75rem;
    font: 700 1rem/1.2 Manrope, system-ui, sans-serif;
    text-decoration: none;
  }
  .af-bar__call {
    background: var(--af-ink);
    color: #ffffff;
  }
  .af-bar__quote {
    background: #ffffff;
    color: var(--af-ink);
    border: 2px solid var(--af-ink);
  }
  .af-bar a:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
  }
  /* Never hide footer content behind the bar. */
  body.af-has-bar {
    padding-bottom: calc(var(--af-bar-h) + env(safe-area-inset-bottom, 0px));
  }
  /* Lift the two floating launchers (Krispy widget, WhatsApp) above the bar. */
  body.af-has-bar .kw-trigger {
    bottom: calc(var(--af-bar-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.af-has-bar aside[aria-label="Quick contact"] a {
    bottom: calc(var(--af-bar-h) + 1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Quote form block ---- */
.af-quote {
  max-width: 72rem;
  margin: 4rem auto 0;
  scroll-margin-top: 6rem;
}
.af-quote__card {
  border: 1px solid #bae6fd;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
@media (min-width: 768px) {
  .af-quote__card {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
.af-quote h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--af-ink);
}
.af-quote__lead {
  margin: 0.75rem 0 0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
}
.af-quote__lead a {
  color: var(--af-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.af-quote form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .af-quote form {
    grid-template-columns: 1fr 1fr;
  }
  .af-quote__wide {
    grid-column: 1 / -1;
  }
}
.af-quote label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--af-ink);
}
.af-quote input,
.af-quote select,
.af-quote textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--af-line);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.65rem 0.9rem;
  font: 500 1rem/1.4 Manrope, system-ui, sans-serif;
  color: #0f172a;
}
.af-quote textarea {
  min-height: 96px;
  resize: vertical;
}
.af-quote input:focus-visible,
.af-quote select:focus-visible,
.af-quote textarea:focus-visible,
.af-quote button:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}
.af-quote button[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 0.75rem;
  background: var(--af-ink);
  color: #ffffff;
  font: 700 1rem/1.2 Manrope, system-ui, sans-serif;
  cursor: pointer;
}
.af-quote button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}
.af-quote__note {
  margin: 0;
  font-size: 0.8125rem;
  color: #475569;
}

/* ---- Home proof strip (reviews + free estimate) ---- */
.af-proof {
  padding: 3rem var(--gutter);
  background: #f0f9ff;
}
.af-proof__inner {
  max-width: 72rem;
  margin: 0 auto;
}
.af-proof h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--af-ink);
}
.af-proof__sub {
  margin: 0.5rem 0 0;
  color: #334155;
  line-height: 1.6;
}
.af-proof__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.af-proof__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  font: 700 1rem/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
}
.af-proof__cta a:first-child {
  background: var(--af-ink);
  color: #ffffff;
}
.af-proof__cta a:last-child {
  background: #ffffff;
  color: var(--af-ink);
  border: 2px solid var(--af-ink);
}
.af-proof__cta a:focus-visible,
.af-proof__more:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}
.af-proof__list {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .af-proof__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.af-proof__list li {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  background: #ffffff;
}
.af-proof__list blockquote {
  margin: 0;
  color: #0f172a;
  line-height: 1.6;
}
.af-proof__who {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--af-ink);
}
.af-proof__more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--af-blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

#af-quote {
  scroll-margin-top: 6rem;
}

/* ---- Home "Who we serve" industry chips (Round 2, 2026-10-21) ---- */
.af-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .af-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.af-chips a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  color: #0e7490;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.af-chips a:hover {
  border-color: #a5f3fc;
  color: #164e63;
}
