/* TEMPLATE (skill sites-premium-editorial)
   CSS completo do projeto de referencia, ja auditado (WCAG AA, focus-visible,
   reduced-motion, [hidden] fix, alvos 48px). PARTA DELE: mantenha classes e
   estrutura; adapte a forma-assinatura (radius-arch), tokens e o que a marca
   pedir. Nao reescreva do zero. */

/* ==========================================================================
   Sul Piscinas — main.css
   Base 18px · WCAG 2.1 AA · "The Calm Home"
   ========================================================================== */

/* @font-face vive em assets/css/fonts.css (self-hosted, subset latin). */

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

html {
  font-size: 112.5%; /* 1rem = 18px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

/* --- Focus (never removed, always visible) ------------------------------ */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.band-navy :focus-visible {
  outline: var(--focus-ring-dark);
}

/* --- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus-visible { top: var(--space-4); }

/* --- Type ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 80, "WONK" 0;
  font-weight: 580;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.3; }

h1 em, h2 em {
  font-style: normal;
  color: var(--ember-deep);
}

p { max-width: 68ch; }

.lead {
  font-size: var(--text-lead);
  line-height: 1.65;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: var(--space-4);
}

a { color: var(--tide); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.small { font-size: var(--text-small); }

/* --- Layout ---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--sand { background: var(--sand-soft); }
.section--paper { background: var(--paper); }

.section-head { max-width: 42rem; margin-bottom: var(--space-8); }
.section-head h2 { margin-bottom: var(--space-4); }

/* --- Buttons (navigating CTAs are real <a href> — agency standard) -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.111rem; /* 56px */
  padding: 0.7rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease,
              border-color var(--dur-ui) ease, transform var(--dur-ui) ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--ink); color: var(--linen); }
.btn--primary:hover { background: var(--tide); color: #fff; }

.btn--ember { background: var(--ember-deep); color: #FFF9F3; }
.btn--ember:hover { background: #8C4820; color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--linen); }

.btn--on-dark { background: var(--linen); color: var(--ink); }
.btn--on-dark:hover { background: #fff; color: var(--ink); }

.btn--ghost-dark { background: transparent; color: var(--linen); border-color: rgba(247,244,239,.6); }
.btn--ghost-dark:hover { background: rgba(247,244,239,.12); border-color: var(--linen); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--linen);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 5rem;
}
.site-header__logo { flex: none; display: inline-flex; align-items: center; }
.site-header__logo img { width: auto; height: 3.2rem; }

.site-nav { display: flex; align-items: center; gap: var(--space-2); }
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 2.667rem; /* 48px */
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.945rem;
  transition: background-color var(--dur-ui) ease;
}
.site-nav a:not(.btn):hover { background: var(--sand-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav .btn { margin-left: var(--space-3); min-height: 2.667rem; padding-block: 0.35rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.889rem;  /* 52px */
  height: 2.889rem;
  padding: 0;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .bar {
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-ui) ease, opacity var(--dur-ui) ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 62em) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { min-height: 3rem; font-size: var(--text-body); }
  .site-nav .btn { margin: var(--space-3) 0 0; min-height: 3.111rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section-pad); overflow: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(var(--space-6), 5vw, var(--space-10));
  align-items: center;
}
.hero__copy h1 { margin-bottom: var(--space-5); }
.hero__copy .lead { margin-bottom: var(--space-7); }
.hero__note {
  margin-top: var(--space-5);
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.hero__note strong { color: var(--ink); }

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: end;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 12% -8% -10% -8%;
  background: var(--sand-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero__photo {
  border-radius: var(--radius-arch);
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-md);
  background: var(--sand);
}
.hero__photo--offset { margin-bottom: var(--space-8); }
.hero__badge {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: var(--text-small);
  font-weight: 600;
  white-space: nowrap;
}
.hero__badge svg { color: var(--leaf); }

@media (max-width: 56em) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 30rem; }
}

/* --- Trust bar ---------------------------------------------------------- */
.trust-bar { background: var(--ink); color: var(--linen); padding-block: var(--space-5); }
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.945rem;
}
.trust-bar svg { color: var(--sky); flex: none; }
@media (max-width: 46em) {
  .trust-bar ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); }
}

/* --- Promise (3 pillars, staggered) -------------------------------------- */
.promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.promise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6);
}
.promise-card:nth-child(2) { margin-top: var(--space-6); }
.promise-card:nth-child(3) { margin-top: var(--space-9); }
.promise-card h3 { margin-bottom: var(--space-3); }
.promise-card .promise-num {
  display: block;
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 100;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ember);
  line-height: 1;
  margin-bottom: var(--space-5);
}
.promise-card p { color: var(--ink-soft); }
@media (max-width: 56em) {
  .promise__grid { grid-template-columns: 1fr; }
  .promise-card:nth-child(2), .promise-card:nth-child(3) { margin-top: 0; }
}

/* --- Services grid --------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.service-card:hover h3 { color: var(--tide); }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--sand-soft);
  border-radius: 14px;
  color: var(--ink);
}
.service-card p { color: var(--ink-soft); font-size: 0.945rem; }
.service-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--tide);
  font-size: 0.945rem;
}
@media (max-width: 56em) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38em) { .services__grid { grid-template-columns: 1fr; } }

/* --- Senior care (second hero) ------------------------------------------- */
.senior { background: var(--sand-soft); }
.senior__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(var(--space-7), 6vw, var(--space-11));
  align-items: center;
}
.senior__media { position: relative; max-width: 26rem; justify-self: center; }
.senior__media img {
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-lg);
}
.senior__media::after {
  content: "";
  position: absolute;
  inset: auto -1.4rem -1.4rem auto;
  width: 62%;
  height: 46%;
  border: 2px solid var(--ember);
  border-radius: 999px 999px 20px 20px;
  opacity: 0.5;
  z-index: -1;
}
.senior__list {
  list-style: none;
  margin: var(--space-6) 0 var(--space-7);
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.senior__list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.senior__list svg { flex: none; color: var(--ember-deep); margin-top: 0.22rem; }
@media (max-width: 56em) {
  .senior__grid { grid-template-columns: 1fr; }
  .senior__media { order: -1; max-width: 22rem; }
}

/* --- Estimate entry -------------------------------------------------------- */
.estimate-entry__card {
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-7), 5vw, var(--space-10));
  position: relative;
  overflow: hidden;
}
.estimate-entry__card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(127, 196, 232, 0.16), transparent 65%);
  pointer-events: none;
}
.estimate-entry__card h2 { color: #fff; margin-bottom: var(--space-3); }
.estimate-entry__card > p { color: rgba(247, 244, 239, 0.85); margin-bottom: var(--space-7); }
.estimate-entry__question {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 80;
  font-size: var(--text-h3);
  margin-bottom: var(--space-5);
  color: var(--sky);
}
.estimate-entry__options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.estimate-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 3.111rem;
  padding: var(--space-5);
  background: rgba(247, 244, 239, 0.07);
  border: 1.5px solid rgba(247, 244, 239, 0.25);
  border-radius: var(--radius-md);
  color: var(--linen);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-ui) ease;
}
.estimate-option:hover {
  background: rgba(247, 244, 239, 0.14);
  border-color: var(--sky);
  color: #fff;
  transform: translateY(-2px);
}
.estimate-option svg { color: var(--sky); }
.estimate-entry__fallback {
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: rgba(247, 244, 239, 0.75);
}
.estimate-entry__fallback a { color: var(--sky); font-weight: 600; }
.estimate-entry__fallback a:hover { color: #fff; }
@media (max-width: 56em) { .estimate-entry__options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34em) { .estimate-entry__options { grid-template-columns: 1fr; } }

/* --- How it works ----------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  counter-reset: step;
}
.step { position: relative; padding-top: var(--space-2); }
.step__num {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 100;
  font-size: 3.4rem;
  font-weight: 350;
  line-height: 1;
  color: var(--ember);
  margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--ink-soft); }
@media (max-width: 56em) { .steps { grid-template-columns: 1fr; gap: var(--space-6); } }

/* --- Why trust ----------------------------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-7);
}
.why-item {
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.why-item svg { flex: none; color: var(--ember-deep); margin-top: 0.15rem; }
.why-item h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.why-item p { color: var(--ink-soft); font-size: 0.945rem; }
@media (max-width: 46em) { .why__grid { grid-template-columns: 1fr; } }

/* --- Areas ----------------------------------------------------------------- */
.areas__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.areas__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.667rem;
  padding: 0.4rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.areas__list a:hover { border-color: var(--tide); background: #fff; color: var(--tide); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 3.111rem;
  padding: var(--space-4) var(--space-2);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ember-deep), var(--ember-deep)) center/14px 2px no-repeat,
    linear-gradient(var(--ember-deep), var(--ember-deep)) center/2px 14px no-repeat;
  transition: transform var(--dur-ui) ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--space-2) var(--space-5); color: var(--ink-soft); }
.faq details > div p { margin-bottom: var(--space-3); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- Final CTA band ----------------------------------------------------------- */
.band-navy {
  background: var(--ink);
  color: var(--linen);
  text-align: center;
  padding-block: var(--section-pad);
}
.band-navy h2 { color: #fff; margin-bottom: var(--space-4); }
.band-navy p { margin: 0 auto var(--space-7); color: rgba(247, 244, 239, 0.85); }
.band-navy .btn-row { justify-content: center; }

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.82);
  padding-block: var(--space-10) var(--space-7);
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  font-size: var(--text-small);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-8);
  margin-bottom: var(--space-9);
}
.site-footer__brand img { height: 2.6rem; width: auto; margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 26ch; }
.site-footer .site-footer__title {
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a {
  color: rgba(247, 244, 239, 0.82);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.667rem; /* 48px touch target */
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
  border-top: 1px solid rgba(247, 244, 239, 0.15);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  color: rgba(247, 244, 239, 0.6);
}
@media (max-width: 56em) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 38em) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* --- Sticky mobile CTA bar --------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -6px rgba(11, 31, 51, 0.12);
}
.mobile-cta .btn { flex: 1; min-height: 2.889rem; padding-inline: var(--space-4); font-size: 0.945rem; }
@media (max-width: 46em) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.6rem; }
}

/* --- Internal page hero -------------------------------------------------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); overflow: clip; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--space-6), 5vw, var(--space-10));
  align-items: center;
}
.page-hero__copy h1 { margin-block: 0 var(--space-5); }
.page-hero__copy .lead { margin-bottom: var(--space-7); }
.page-hero__media { position: relative; width: 100%; max-width: 24rem; justify-self: end; }
.page-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: auto -1.2rem -1.2rem auto;
  width: 58%;
  height: 42%;
  border: 2px solid var(--sky);
  border-radius: 999px 999px 20px 20px;
  opacity: 0.55;
  z-index: -1;
}
@media (max-width: 56em) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { justify-self: start; max-width: 19rem; order: -1; }
}

/* --- Checklist -------------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { flex: none; color: var(--leaf); margin-top: 0.24rem; }
.checklist strong { display: block; }

/* --- Panel -------------------------------------------------------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
}
.panel h2, .panel h3 { margin-bottom: var(--space-5); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-7), 5vw, var(--space-10)); align-items: start; }
@media (max-width: 56em) { .split { grid-template-columns: 1fr; } }

/* --- Pull quote (About) -------------------------------------------------- */
.pull-quote {
  border-left: 4px solid var(--ember);
  padding-left: var(--space-6);
  margin-block: var(--space-7);
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 80;
  font-size: var(--text-h3);
  line-height: 1.45;
  max-width: 34rem;
}

/* --- Team figures (About) -------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 18rem)); gap: var(--space-7); }
.team-grid figure { margin: 0; }
.team-grid img { border-radius: var(--radius-arch); box-shadow: var(--shadow-md); background: var(--sand); }
.team-grid figcaption { margin-top: var(--space-4); font-weight: 600; }
.team-grid figcaption span { display: block; font-weight: 400; font-size: var(--text-small); color: var(--ink-soft); }
@media (max-width: 46em) { .team-grid { grid-template-columns: 1fr; } }

/* --- Forms -------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--space-5); }
.form-field label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.form-field .hint { display: block; font-weight: 400; font-size: var(--text-small); color: var(--ink-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3.111rem; /* 56px */
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(11, 31, 51, 0.3);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: var(--text-small); color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 56em) { .contact-grid { grid-template-columns: 1fr; } }
.contact-big { font-size: var(--text-h3); font-weight: 700; }
.contact-big a { text-decoration: none; }

/* --- Estimator -------------------------------------------------------------- */
.estimator { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section-pad); }
.estimator__wrap { max-width: 42rem; margin-inline: auto; }
.estimator__head { margin-bottom: var(--space-7); }
.estimator__head h1 { font-size: var(--text-h2); margin-bottom: var(--space-3); }
.estimator__head .lead { font-size: var(--text-body); }

.progress { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-7); }
.progress__label { font-size: var(--text-small); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.progress__track { flex: 1; height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; width: 0%; background: var(--tide); border-radius: 999px; transition: width 300ms var(--ease-out); }
html:not(.js) .progress { display: none; }

.estimator fieldset { border: 0; padding: 0; margin: 0 0 var(--space-8); min-inline-size: auto; }
html.js .estimator fieldset { display: none; margin: 0; }
html.js .estimator fieldset.is-active { display: block; }
.estimator legend {
  font-family: var(--font-serif);
  font-variation-settings: "SOFT" 80;
  font-weight: 580;
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.7rem);
  line-height: 1.25;
  padding: 0;
  margin-bottom: var(--space-5);
}
.estimator legend:focus { outline: none; }
.legend-hint { display: block; font-family: var(--font-sans); font-size: var(--text-small); font-weight: 400; color: var(--ink-soft); margin-top: var(--space-2); }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.opt-grid--nums { grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); }
@media (max-width: 34em) { .opt-grid { grid-template-columns: 1fr; } .opt-grid--nums { grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr)); } }

.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.556rem; /* 64px */
  padding: var(--space-4) var(--space-5);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.opt label:hover { border-color: var(--tide); background: #fff; }
.opt input:checked + label { border-color: var(--tide); background: rgba(127, 196, 232, 0.16); }
.opt input:focus-visible + label { outline: var(--focus-ring); outline-offset: 3px; }
.opt svg { flex: none; color: var(--tide); }

.step-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); }
.js-only { display: none; }
html.js .js-only { display: inline-flex; }
html.js .no-js-only { display: none; }

.field-error { display: none; font-size: var(--text-small); font-weight: 600; color: #A93226; margin-top: var(--space-2); }
.form-field.has-error .field-error { display: block; }
.form-field.has-error input { border-color: #A93226; }

.estimator__fallback { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--ink-soft); }
.estimator__fallback a { font-weight: 600; }

.estimator__success { display: none; }
.estimator__success.is-visible { display: block; }
.estimator__success h2 { margin-bottom: var(--space-4); }
.estimator__success .panel { margin-top: var(--space-6); }

.submit-error {
  display: none;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(169, 50, 38, 0.08);
  border: 1px solid rgba(169, 50, 38, 0.35);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: 500;
}
.submit-error.is-visible { display: block; }

/* --- Utilities -------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0 !important; }

/* --- Reveal motion ------------------------------------------------------------ */
html.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover, .estimate-option:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   SUL PISCINAS — componentes do projeto
   Adições sobre o main.css de referência. Mantém os tokens e as classes base.
   ========================================================================== */

/* --- Assinatura visual: o arco (lâmina d'água sem desenhar onda) --- */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
  display: block;
}

/* --- Barra de confiança --- */
.band-trust {
  background: var(--navy);
  color: #fff;
  padding: var(--space-5) 0;
}
.band-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  font-size: var(--text-small);
  letter-spacing: 0.01em;
}
.band-trust__list li {
  position: relative;
  padding-left: var(--space-5);
  color: #fff;
}
.band-trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--sky-pale);
}

/* --- Seção escura --- */
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--navy h2,
.section--navy h3,
.section--navy .eyebrow { color: #fff; }
.section--navy p { color: var(--sky-pale); }
.section--navy .eyebrow { color: var(--sky-pale); }

/* --- Split editorial 55/45 --- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-6), 5vw, var(--space-10));
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.split__media .arch { border-radius: var(--radius-arch); }
.split__copy > .btn-row { margin-top: var(--space-6); }
.nota {
  font-size: var(--text-small);
  color: var(--ink-soft);
  border-left: 3px solid var(--sky);
  padding-left: var(--space-4);
  margin-top: var(--space-5);
}
.section--navy .nota { color: var(--sky-pale); }

/* --- Cards de solução (assimetria: offset alternado) --- */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.service-card--1 { transform: translateY(var(--space-6)); }
.service-card:hover,
.service-card:focus-within {
  box-shadow: var(--shadow-lg);
}
.service-card__media img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  display: block;
}
.service-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.service-card__body h3 { margin: 0; }
.service-card__body p { margin: 0; flex: 1; }
.service-card__more {
  font-weight: 600;
  color: var(--tide);
  text-decoration: none;
  margin-top: var(--space-2);
}
.service-card__more:hover { color: var(--tide-deep); text-decoration: underline; }

/* --- Galeria de lazer --- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-5);
}
.galeria figure { margin: 0; }
.galeria img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}
.galeria figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--ink-soft);
}

/* --- Checklist em fundo escuro --- */
.checklist--dark li { color: var(--sky-pale); }
.checklist--dark li::before { color: var(--sky-pale); }
.checklist--dark strong { color: #fff; }

/* --- CTA final --- */
.cta-final__inner { text-align: center; max-width: 44rem; margin: 0 auto; }
.btn-row--center { justify-content: center; }
.btn--lg {
  font-size: 1.06rem;
  padding: 1.05rem 2.1rem;
}
.btn--nav { margin-left: var(--space-4); }

/* --- Rodapé: cidades --- */
.site-footer__areas {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--text-small);
  color: var(--sky-pale);
}

/* --- Botão flutuante de WhatsApp (§29: fixo durante toda a navegação) --- */
.barra-zap {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--zap-size);
  padding: 0 var(--space-5) 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(18, 41, 79, 0.45);
  transition: transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.barra-zap svg { width: 28px; height: 28px; flex: none; }
.barra-zap:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(18, 41, 79, 0.5); }
.barra-zap:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

@media (max-width: 640px) {
  .barra-zap {
    min-width: var(--zap-size);
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    width: var(--zap-size);
    height: var(--zap-size);
  }
  .barra-zap__texto {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .service-card--1 { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .barra-zap { transition: none; }
  .service-card--1 { transform: none; }
}

/* --- Alvo de toque do link "saiba mais" dos cards (WCAG 2.5.5: ≥44px) --- */
.service-card__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) 0;
}

/* --- Sem scroll horizontal: a foto do hero não pode vazar o viewport --- */
html, body { overflow-x: hidden; }
.galeria img, .split__media img, .hero__media img { max-width: 100%; }

/* --- Areas: itens sem link (lista informativa) ---------------------------- */
.areas__list > li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-small);
}
.section--sand .areas__list > li { background: #fff; }

/* --- Formulário: botão de submit herda .btn ------------------------------- */
button.btn { border: 1px solid transparent; font: inherit; cursor: pointer; }
button.btn--primary { border-color: var(--ink); }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2341536B' d='M8 11.2 3.2 6.4 4.3 5.3 8 9l3.7-3.7 1.1 1.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.contact-grid .panel h2 { margin-bottom: var(--space-4); }
.contact-big a { color: var(--tide); }

/* --- Checklist: marcador (o ::before era referenciado mas nunca definido) -- */
.checklist li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: var(--tide) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}
.checklist--dark li::before { background-color: var(--sky-pale); }
.checklist--dark li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2312294F' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E"); }

/* --- Prosa (páginas legais) ---------------------------------------------- */
.prosa { max-width: 44rem; }
.prosa h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.prosa h2:first-child { margin-top: 0; }
.prosa p { margin-bottom: var(--space-4); color: var(--ink-soft); }
.prosa a { color: var(--tide); font-weight: 500; }
.prosa .lead { color: var(--ink); }

/* --- Contato: links de contato são alvos de toque, não texto corrido ------ */
.contatos-lista a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tide);
  font-weight: 600;
}
.contatos-lista a:hover { color: var(--tide-deep); }

/* --- Barra de WhatsApp: contraste AA ---------------------------------------
   O verde oficial #25D366 tem só 1.98:1 com branco. Mantemos a cor da marca
   (reconhecimento imediato) e escurecemos o conteúdo: 8.30:1 com --ink. */
.barra-zap { color: var(--ink); }
.barra-zap svg { color: var(--ink); }
