/* ==========================================================================
   Terrenos e Árvores Leiria — folha de estilos principal
   Paleta: azul petróleo / amarelo maquinaria / cinza aço / branco frio / laranja
   ========================================================================== */

/* -------------------------------------------------- tokens -------------- */
:root {
  /* cor */
  --petrol: #183b4e;
  --petrol-deep: #102a37;
  --petrol-mid: #20506a;
  --petrol-tint: #e9eef1;
  --yellow: #e5a623;
  --yellow-deep: #c88c14;
  --yellow-tint: #fdf4e2;
  --steel: #a9b5b9;
  --steel-light: #cfd8db;
  --steel-pale: #e4eaec;
  --cold: #f3f5f3;
  --white: #ffffff;
  --rust: #d65b35;
  --rust-deep: #b7461f;
  --ink: #16262f;
  --body: #46585f;
  --body-soft: #6b7b82;

  /* raio */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* escala de espaçamento (base 8) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-9: 4rem;
  --s-10: 5rem;
  --s-11: 6.5rem;

  /* sombra */
  --sh-sm: 0 1px 2px rgba(16, 42, 55, 0.06), 0 2px 8px rgba(16, 42, 55, 0.05);
  --sh: 0 2px 4px rgba(16, 42, 55, 0.05), 0 12px 28px rgba(16, 42, 55, 0.09);
  --sh-lg: 0 4px 10px rgba(16, 42, 55, 0.07), 0 26px 56px rgba(16, 42, 55, 0.14);

  /* tipografia */
  --f-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --hdr-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 1.25rem);
}

body {
  margin: 0;
  background: var(--cold);
  color: var(--body);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  color: var(--petrol);
  margin: 0 0 var(--s-4);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.18rem + 2.1vw, 2.75rem); line-height: 1.12; }
h3 { font-size: clamp(1.14rem, 1.04rem + 0.42vw, 1.4rem); line-height: 1.22; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--rust-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15rem; }

strong { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------- layout ------------- */
.wrap {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.75rem);
}
.wrap--narrow { max-width: 880px; }

.sec { padding-block: clamp(3.25rem, 6.5vw, 6.75rem); position: relative; }
.sec--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.sec--air { padding-block: clamp(4rem, 8vw, 8.5rem); }
.sec--flush { padding-block: 0; }

.bg-cold { background: var(--cold); }
.bg-white { background: var(--white); }
.bg-pale { background: var(--steel-pale); }
.bg-petrol { background: var(--petrol); }
.bg-petrol h2, .bg-petrol h3, .bg-petrol h1 { color: var(--white); }
.bg-petrol { color: #cbd8de; }

/* traço decorativo sob os títulos (não é eyebrow: fica depois do título) */
.rule {
  width: 62px; height: 4px; background: var(--yellow);
  border-radius: var(--r-pill); margin-bottom: var(--s-5);
}
.rule--c { margin-inline: auto; }
.bg-petrol .rule { background: var(--yellow); }

.lead {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.bg-petrol .lead { color: #e7eef1; }

.sec-head { max-width: 58ch; margin-bottom: var(--s-7); }
.sec-head--c { margin-inline: auto; text-align: center; }
.sec-head--c .rule { margin-inline: auto; }

/* -------------------------------------------------- botões ------------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--petrol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--rust);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(214, 91, 53, 0.3);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--rust { --btn-bg: var(--rust); --btn-fg: var(--white); }
.btn--rust:hover, .btn--rust:focus-visible {
  background: var(--yellow); color: var(--petrol);
  box-shadow: 0 10px 22px rgba(229, 166, 35, 0.34);
}

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--petrol);
  border-color: var(--steel);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--petrol); color: var(--white); border-color: var(--petrol);
  box-shadow: 0 10px 22px rgba(24, 59, 78, 0.22);
}
.bg-petrol .btn--ghost,
.cta .btn--ghost,
.hero .btn--ghost,
.hero2 .btn--ghost,
.hero3 .btn--ghost,
.mobile-cta .btn--ghost {
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}
.bg-petrol .btn--ghost:hover, .bg-petrol .btn--ghost:focus-visible,
.cta .btn--ghost:hover, .cta .btn--ghost:focus-visible,
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible,
.hero2 .btn--ghost:hover, .hero2 .btn--ghost:focus-visible,
.hero3 .btn--ghost:hover, .hero3 .btn--ghost:focus-visible,
.mobile-cta .btn--ghost:hover, .mobile-cta .btn--ghost:focus-visible {
  background: var(--white); color: var(--petrol); border-color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); }
.btn-row--c { justify-content: center; }

/* -------------------------------------------------- header ------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--petrol);
  border-bottom: 1px solid rgba(169, 181, 185, 0.28);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--hdr-h);
}

.logo { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.logo img { height: 70px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a,
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.995rem;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a:focus-visible,
.nav__btn:hover, .nav__btn:focus-visible { color: var(--yellow); }
.nav a[aria-current="page"],
.nav__item--on > .nav__btn,
.nav__item--on > a { color: var(--yellow); }

/* submenu */
.nav__item { position: relative; }
.nav__btn svg { width: 0.72em; height: 0.72em; transition: transform 0.25s var(--ease); }

.nav__sub {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: -0.4rem;
  min-width: 332px;
  padding: 0.55rem;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s;
}
.nav__sub::before {
  content: "";
  position: absolute; inset: -0.6rem 0 auto; height: 0.7rem;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item--open > .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__item:hover > .nav__btn svg,
.nav__item:focus-within > .nav__btn svg,
.nav__item--open > .nav__btn svg { transform: rotate(180deg); }

.nav__sub a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--petrol);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  border-radius: var(--r-sm);
}
.nav__sub a:hover, .nav__sub a:focus-visible {
  background: var(--yellow-tint); color: var(--petrol);
}
.nav__sub a[aria-current="page"] { background: var(--yellow-tint); color: var(--petrol); }
.nav__sub a[aria-current="page"]::after { content: ""; }

/* telefone destacado */
.tel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 1.2rem 0.62rem 0.95rem;
  background: rgba(229, 166, 35, 0.12);
  border: 2px solid var(--yellow);
  border-radius: var(--r-pill);
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tel:hover, .tel:focus-visible {
  background: var(--yellow); border-color: var(--yellow);
  color: var(--petrol); transform: translateY(-1px);
}
.tel svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--yellow); transition: color 0.25s; }
.tel:hover svg, .tel:focus-visible svg { color: var(--petrol); }
.tel__txt { display: flex; flex-direction: column; line-height: 1.1; }
.tel__lab {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel);
  transition: color 0.25s;
}
.tel:hover .tel__lab, .tel:focus-visible .tel__lab { color: var(--petrol-mid); }
.tel__num { font-family: var(--f-head); font-weight: 700; font-size: 1.14rem; }

/* hambúrguer (CSS, sem JS) */
.navchk { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger:hover { color: var(--yellow); border-color: var(--yellow); }
.burger svg { width: 22px; height: 22px; }
.burger .ic-x { display: none; }

@media (max-width: 1080px) {
  :root { --hdr-h: 70px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--hdr-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding: 0 clamp(1.15rem, 4vw, 2.75rem);
    overflow: hidden auto;
    background: var(--petrol-deep);
    border-bottom: 1px solid rgba(169, 181, 185, 0.22);
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .navchk:checked ~ .hdr .nav {
    max-height: calc(100vh - var(--hdr-h));
    padding-block: var(--s-3) var(--s-6);
  }
  .navchk:checked ~ .hdr .burger .ic-x { display: block; }
  .navchk:checked ~ .hdr .burger .ic-menu { display: none; }
  .nav a, .nav__btn {
    width: 100%; padding: 0.95rem 0.25rem; font-size: 1.08rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .nav__item { position: static; }
  .nav__btn { justify-content: space-between; }
  .nav__sub {
    position: static; min-width: 0; padding: 0 0 0 0.9rem; margin: 0;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub,
  .nav__item--open > .nav__sub { max-height: 420px; }
  .nav__sub a { color: #cedbe1; font-size: 0.99rem; border-bottom: 0; }
  .nav__sub a:hover { background: none; color: var(--yellow); }
  .nav__sub a[aria-current="page"] { background: none; color: var(--yellow); }
  .logo img { height: 38px; }
  .tel { margin-left: auto; order: 2; padding: 0.62rem; }
  .tel__txt { display: none; }
  .burger { order: 3; }
}
@media (max-width: 420px) { .logo img { height: 32px; } }
@media (min-width: 1081px) { .burger { display: none; } }

/* -------------------------------------------------- hero home ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(76vh, 720px);
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  background: var(--petrol);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgba(16, 42, 55, 0.94) 0%, rgba(16, 42, 55, 0.86) 42%,
    rgba(16, 42, 55, 0.45) 72%, rgba(16, 42, 55, 0.3) 100%);
}
.hero__in { width: 100%; }
.hero__txt { max-width: 50%; }
.hero h1 { color: var(--white); margin-bottom: var(--s-5); }
.hero p { color: #d7e2e7; font-size: clamp(1.04rem, 1rem + 0.3vw, 1.2rem); }
.hero__cta { margin-top: var(--s-6); }
.hero__strip {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__strip span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #cfdde3; font-size: 0.94rem; font-weight: 500;
}
.hero__strip svg { width: 1.05rem; height: 1.05rem; color: var(--yellow); flex: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; background: var(--petrol-deep); }
  .hero__bg { display: none; }
  .hero::after { background: none; }
  .hero__txt { max-width: none; }
}

/* -------------------------------------------------- hero interior ------ */
.hero2 {
  position: relative;
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(32, 80, 106, 0.95) 0%, rgba(24, 59, 78, 0) 58%),
    linear-gradient(165deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  overflow: hidden;
}
.hero2::before {
  content: "";
  position: absolute; top: -18%; right: -6%;
  width: 420px; height: 420px;
  background: var(--yellow);
  opacity: 0.09;
  border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  pointer-events: none;
}
.hero2__grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: start;
}
.hero2__txt { min-width: 0; }
.hero2 h1 { color: var(--white); }
.hero2 p { color: #d4e0e6; max-width: 62ch; }
.hero2 .lead { color: #e9f0f3; }
.hero2__img {
  margin-top: var(--s-6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r);
  overflow: hidden;
}
.hero2__img img { width: 100%; max-height: 300px; object-fit: cover; }

@media (max-width: 980px) {
  .hero2__grid { grid-template-columns: 1fr; }
  .hero2__img img { max-height: 260px; }
}

/* hero simples (sobre-nós, contacto, legais) */
.hero3 {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  background: linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  overflow: hidden;
}
.hero3::before {
  content: "";
  position: absolute; right: -80px; bottom: -140px;
  width: 360px; height: 360px;
  border: 28px solid rgba(229, 166, 35, 0.12);
  border-radius: 50%;
}
.hero3__in { position: relative; max-width: 68ch; }
.hero3 h1 { color: var(--white); }
.hero3 p { color: #d6e2e8; }

/* -------------------------------------------------- split 50/50 -------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: center;
}
.split--rev > .split__media { order: -1; }
.split--66 { grid-template-columns: 1.62fr 1fr; align-items: start; }
.split--top { align-items: start; }
.split--text { align-items: center; }
.split__txt { min-width: 0; }
.split__media { min-width: 0; align-self: stretch; display: flex; }

.frame {
  position: relative;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.frame img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* moldura com desenho: barra amarela deslocada atrás */
.frame--offset { box-shadow: none; }
.frame--offset::before {
  content: "";
  position: absolute; inset: auto -14px -14px 24px;
  height: 58%;
  background: var(--yellow);
  border-radius: var(--r);
  z-index: -1;
}
.split__media--offset { position: relative; isolation: isolate; padding: 0 14px 14px 0; }
.split__media--offset .frame { box-shadow: var(--sh); }
.split__media--offset::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 46%; height: 52%;
  background: var(--yellow);
  border-radius: var(--r);
  z-index: -1;
}

@media (max-width: 900px) {
  .split, .split--66 { grid-template-columns: 1fr; }
  .split--rev > .split__media { order: 0; }
  .frame img { min-height: 220px; }
}

/* -------------------------------------------------- formulário --------- */
.form-card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.form-card--sticky { position: sticky; top: calc(var(--hdr-h) + 1.25rem); }
.form-card__h {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.14;
  color: var(--petrol);
  margin: 0 0 0.5rem;
}
.form-card__p { font-size: 0.95rem; color: var(--body-soft); margin: 0 0 var(--s-5); }

.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--petrol);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cold);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field textarea:focus {
  outline: 0;
  background: var(--white);
  border-color: var(--petrol-mid);
  box-shadow: 0 0 0 3px rgba(32, 80, 106, 0.14);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(214, 91, 53, 0.13);
}
.field__err { display: none; margin-top: 0.3rem; font-size: 0.82rem; color: var(--rust-deep); }
.field input:user-invalid ~ .field__err,
.field textarea:user-invalid ~ .field__err { display: block; }

.form-note { margin-top: var(--s-3); font-size: 0.8rem; color: var(--body-soft); line-height: 1.5; }
.form-note a { color: var(--petrol-mid); }

.form-msg {
  display: none;
  margin-top: var(--s-4);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.form-msg--on { display: block; }
.form-msg--ok { background: #eef7f0; border-color: #bcdcc6; color: #1f5d33; }
.form-msg--ko { background: #fdf0ec; border-color: #f0c3b5; color: var(--rust-deep); }

form[data-busy="1"] .btn { opacity: 0.6; pointer-events: none; }

/* alternativa móvel ao formulário (home secção 1) */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta {
    display: block;
    padding: var(--s-5);
    background: var(--petrol);
    border-radius: var(--r-lg);
    box-shadow: var(--sh);
  }
  .mobile-cta h3 { color: var(--white); font-size: 1.3rem; }
  .mobile-cta p { color: #cbd9df; font-size: 0.95rem; margin-bottom: var(--s-5); }
  .mobile-cta .btn-row { flex-direction: column; }
  .mobile-cta .btn { width: 100%; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) { .only-mobile { display: none !important; } }

/* -------------------------------------------------- cartões serviço ---- */
.svc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.svc__card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.svc__card:nth-child(1) { grid-column: span 4; }
.svc__card:nth-child(2) { grid-column: span 2; }
.svc__card:nth-child(3) { grid-column: span 2; }
.svc__card:nth-child(4) { grid-column: span 4; }
.svc__card:hover, .svc__card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--steel);
  box-shadow: var(--sh-lg);
}
.svc__img { position: relative; overflow: hidden; background: var(--steel-pale); }
.svc__img img {
  width: 100%; height: 100%; min-height: 190px; max-height: 236px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.svc__card:hover .svc__img img { transform: scale(1.045); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5) var(--s-5) var(--s-6); }
.svc__card h3 { margin-bottom: 0.6rem; }
.svc__card p { color: var(--body); font-size: 0.97rem; margin-bottom: var(--s-5); }
.svc__more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: auto;
  font-weight: 700; font-size: 0.93rem; color: var(--rust-deep);
}
.svc__more svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.svc__card:hover .svc__more svg { transform: translateX(4px); }

@media (max-width: 1000px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__card, .svc__card:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .svc { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- trio / quad -------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}
.card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }
.card--plain { background: transparent; border: 0; padding: var(--s-4) 0; }
.card--plain:hover { transform: none; box-shadow: none; }

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: var(--s-4);
  color: var(--petrol);
  background: var(--yellow);
  border-radius: 14px;
  flex: none;
}
.ico svg { width: 26px; height: 26px; }
.ico--steel { background: var(--steel-pale); color: var(--petrol); }
.ico--outline { background: transparent; border: 2px solid var(--yellow); color: var(--petrol); }
.bg-petrol .ico--outline { color: var(--yellow); }

@media (max-width: 1000px) { .quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .quad { grid-template-columns: 1fr; } }

/* -------------------------------------------------- benefícios --------- */
.bens { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.bens--2 { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-6); }
.bens li {
  position: relative;
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r-sm);
  font-size: 0.99rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bens li:hover { transform: translateX(3px); box-shadow: var(--sh-sm); }
.bens svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--rust); margin-top: 0.22rem; }
@media (max-width: 820px) { .bens--2 { grid-template-columns: 1fr; } }

/* -------------------------------------------------- passos ------------- */
.steps { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); counter-reset: st; }
.step {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r);
  counter-increment: st;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.step::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; top: var(--s-5); right: var(--s-5);
  font-family: var(--f-head); font-weight: 700; font-size: 2.1rem;
  line-height: 1; color: var(--steel-light);
}
.step__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: var(--s-4);
  color: var(--petrol); background: var(--yellow-tint);
  border: 2px solid var(--yellow); border-radius: 12px;
}
.step__ico svg { width: 23px; height: 23px; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; padding-right: 2.4rem; }
.step p { font-size: 0.94rem; }
.bg-petrol .step { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.bg-petrol .step p { color: #c6d5db; }
.bg-petrol .step::before { color: rgba(255, 255, 255, 0.16); }

/* -------------------------------------------------- fila de fotos ------ */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.photos figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--steel-pale); }
.photos img {
  width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.photos figure:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:last-child { grid-column: span 2; }
}

/* -------------------------------------------------- banda CTA ---------- */
.cta {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(118deg, var(--petrol-deep) 0%, var(--petrol) 54%, var(--petrol-mid) 100%);
  overflow: hidden;
  text-align: center;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  opacity: 0.1;
  pointer-events: none;
}
.cta::before { top: -70px; left: -60px; width: 300px; height: 300px; border-radius: 50%; }
.cta::after { right: -90px; bottom: -120px; width: 340px; height: 340px; border-radius: 42% 58% 54% 46% / 52% 48% 52% 48%; }
.cta__in { position: relative; max-width: 54ch; margin-inline: auto; }
.cta__t {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.95rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta__p { color: #dbe6eb; font-size: clamp(1.03rem, 1rem + 0.3vw, 1.18rem); margin-bottom: var(--s-6); }
.cta .btn-row { justify-content: center; }

/* -------------------------------------------------- slider ------------- */
.slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.slider::before,
.slider::after {
  content: "";
  position: absolute; top: 0; bottom: 0; z-index: 2;
  width: clamp(24px, 5vw, 80px);
  pointer-events: none;
}
.slider::before { left: 0; background: linear-gradient(90deg, var(--sl-fade, var(--cold)), transparent); }
.slider::after { right: 0; background: linear-gradient(270deg, var(--sl-fade, var(--cold)), transparent); }
.slider--on-white { --sl-fade: var(--white); }
.slider--on-petrol { --sl-fade: var(--petrol); }

.slider__track {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  width: max-content;
  padding-block: 0.5rem;
  animation: slide 64s linear infinite;
}
.slider:hover .slider__track,
.slider:focus-within .slider__track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - clamp(0.5rem, 0.9vw, 0.75rem))); }
}

.tcard {
  display: flex;
  flex-direction: column;
  width: clamp(290px, 29vw, 390px);
  flex: none;
  padding: var(--s-6) var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.tcard__stars { display: flex; gap: 0.18rem; margin-bottom: var(--s-4); color: var(--yellow); }
.tcard__stars svg { width: 1.08rem; height: 1.08rem; }
.tcard h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.tcard__loc {
  display: block; margin-bottom: var(--s-4);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--body-soft);
}
.tcard p { font-size: 0.96rem; color: var(--body); }
.bg-petrol .tcard { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.14); }
.bg-petrol .tcard p { color: #c7d6dc; }
.bg-petrol .tcard__loc { color: var(--steel); }

@media (prefers-reduced-motion: reduce) {
  .slider { overflow: visible; width: auto; max-width: none; margin-inline: 0; }
  .slider::before, .slider::after { display: none; }
  .slider__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .slider__track > [data-clone] { display: none; }
  .tcard { width: min(100%, 390px); }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------- variantes (cartões) */
.vars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: clamp(0.9rem, 1.7vw, 1.4rem);
}
.vcard {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 218px;
  padding: var(--s-5);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  background: var(--petrol);
}
.vcard img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.vcard::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(16, 42, 55, 0.92) 0%, rgba(16, 42, 55, 0.5) 48%, rgba(16, 42, 55, 0.2) 100%);
}
.vcard:hover img { transform: scale(1.06); }
.vcard h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
  position: relative;
  padding-top: 0.75rem;
}
.vcard h3::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 34px; height: 3px;
  background: var(--yellow);
  border-radius: var(--r-pill);
  transition: width 0.3s var(--ease);
}
.vcard:hover h3::before { width: 62px; }

/* -------------------------------------------------- FAQ ---------------- */
.faq { display: grid; gap: var(--s-3); max-width: 920px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq details[open] { border-color: var(--steel); box-shadow: var(--sh-sm); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--cold); }
.faq summary h3 { margin: 0; font-size: clamp(1.03rem, 1rem + 0.25vw, 1.16rem); }
.faq__sign {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  margin-top: 0.1rem;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--petrol);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.faq__sign::before { width: 11px; height: 2px; }
.faq__sign::after { width: 2px; height: 11px; }
.faq details[open] .faq__sign { background: var(--yellow); }
.faq details[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 var(--s-5) var(--s-5); }
.faq__a p { font-size: 0.99rem; max-width: 72ch; }
.faq details[open] .faq__a { animation: fadein 0.32s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------- freguesias --------- */
.areas { display: grid; gap: var(--s-6); }
.areas__h {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 1.04rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-mid);
  margin: 0 0 var(--s-4);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--petrol);
}
.chips--alt li { background: var(--yellow-tint); border-color: #eccf93; }

/* -------------------------------------------------- contacto ----------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: stretch;
}
.cinfo {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.cinfo__row { display: flex; gap: var(--s-4); align-items: flex-start; }
.cinfo__row + .cinfo__row { padding-top: var(--s-4); border-top: 1px solid var(--steel-pale); }
.cinfo__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  color: var(--petrol); background: var(--yellow-tint);
  border: 2px solid var(--yellow); border-radius: 12px;
}
.cinfo__ico svg { width: 21px; height: 21px; }
.cinfo__lab {
  display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--body-soft); margin-bottom: 0.15rem;
}
.cinfo__val {
  display: block;
  font-family: var(--f-head); font-weight: 700; font-size: 1.14rem;
  color: var(--petrol); line-height: 1.3;
}
.cinfo__val a { color: var(--petrol); text-decoration: none; }
.cinfo__val a:hover { color: var(--rust-deep); text-decoration: underline; }
.cinfo__sub {
  display: block; margin-top: 0.2rem;
  font-size: 0.9rem; color: var(--body-soft); line-height: 1.45;
}

.map {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--steel-pale);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- legais ------------- */
.legal { max-width: 78ch; }
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--steel-light);
}
.legal h2:first-of-type { margin-top: var(--s-6); }
.legal h3 { font-size: 1.12rem; margin-top: var(--s-6); }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal__upd {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--yellow-tint);
  border: 1px solid #eccf93;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--petrol);
}
.legal__box {
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
}
.legal__box p { margin-bottom: 0.25rem; font-size: 0.97rem; }

/* -------------------------------------------------- footer ------------- */
.ftr {
  background: var(--petrol);
  color: #bccbd2;
  padding-block: clamp(2.75rem, 5vw, 4.25rem) var(--s-6);
  font-size: 0.97rem;
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
}
.ftr h2 {
  font-size: 1.16rem;
  color: var(--white);
  margin-bottom: var(--s-5);
  padding-bottom: 0.65rem;
  position: relative;
}
.ftr h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 42px; height: 3px;
  background: var(--yellow);
  border-radius: var(--r-pill);
}
.ftr__logo { margin-bottom: var(--s-5); display: inline-block; }
.ftr__logo img { height: 42px; width: auto; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ftr a { color: #bccbd2; text-decoration: none; transition: color 0.2s var(--ease); }
.ftr a:hover, .ftr a:focus-visible { color: var(--yellow); }
.ftr__li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ftr__li svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.3rem; color: var(--yellow); }
.ftr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(169, 181, 185, 0.26);
  font-size: 0.9rem;
  color: #9fb2bb;
}
.ftr__bar nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.ckbtn {
  background: none; border: 0; padding: 0;
  font: inherit; color: #bccbd2; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.ckbtn:hover { color: var(--yellow); }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- cookies ------------ */
.ck {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1000;
  width: min(420px, calc(100vw - 1.5rem));
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ck[hidden] { display: none; }
.ck--in { opacity: 1; transform: none; }
.ck__t {
  font-family: var(--f-head); font-weight: 700; font-size: 1.22rem;
  color: var(--petrol); margin: 0 0 0.5rem;
}
.ck__p { font-size: 0.91rem; line-height: 1.6; margin: 0 0 var(--s-5); color: var(--body); }
.ck__p a { color: var(--petrol-mid); }
.ck__btns { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
.ck__btns .btn { padding: 0.72rem 1rem; font-size: 0.93rem; }
.ck__btns .ck__cfg { grid-column: span 2; }
.ck__cfg {
  background: none; border: 0; padding: 0.2rem;
  font: 500 0.88rem var(--f-body); color: var(--petrol-mid);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ck__cfg:hover { color: var(--rust-deep); }

/* painel de preferências */
.ckp {
  position: fixed; inset: 0; z-index: 1001;
  display: grid; place-items: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  background: rgba(16, 42, 55, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.ckp[hidden] { display: none; }
.ckp--in { opacity: 1; }
.ckp__box {
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.ckp--in .ckp__box { transform: none; }
.ckp__hd {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--steel-pale);
}
.ckp__hd h2 { margin: 0; font-size: 1.4rem; }
.ckp__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  background: var(--cold); border: 1px solid var(--steel-light);
  border-radius: 50%; color: var(--petrol); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ckp__x:hover { background: var(--petrol); color: var(--white); }
.ckp__x svg { width: 17px; height: 17px; }
.ckp__bd { padding: var(--s-5); overflow-y: auto; }
.ckp__bd > p { font-size: 0.93rem; margin-bottom: var(--s-5); }
.ckp__ft {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-top: 1px solid var(--steel-pale);
  background: var(--cold);
}
.ckp__ft .btn { flex: 1 1 auto; padding: 0.78rem 1.1rem; font-size: 0.94rem; }

.ckcat {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-4) 0;
}
.ckcat + .ckcat { border-top: 1px solid var(--steel-pale); }
.ckcat__txt { flex: 1; min-width: 0; }
.ckcat__txt h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.ckcat__txt p { font-size: 0.89rem; margin: 0; color: var(--body-soft); }
.ckcat__tag {
  display: inline-block; margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  background: var(--steel-pale); border-radius: var(--r-pill);
  font-family: var(--f-body); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--petrol-mid);
  vertical-align: 2px;
}

/* interruptor */
.sw { position: relative; flex: none; width: 52px; height: 30px; }
.sw input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.sw__ui {
  position: absolute; inset: 0;
  background: var(--steel);
  border-radius: var(--r-pill);
  transition: background 0.25s var(--ease);
  pointer-events: none;
}
.sw__ui::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(16, 42, 55, 0.3);
  transition: transform 0.25s var(--ease);
}
.sw input:checked ~ .sw__ui { background: var(--rust); }
.sw input:checked ~ .sw__ui::after { transform: translateX(22px); }
.sw input:focus-visible ~ .sw__ui { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sw input:disabled { cursor: not-allowed; }
.sw input:disabled ~ .sw__ui { background: var(--steel-light); }
.sw input:disabled:checked ~ .sw__ui { background: #9fb6a8; }

@media (max-width: 520px) {
  .ck { width: calc(100vw - 1.5rem); }
  .ck__btns { grid-template-columns: 1fr; }
  .ck__btns .ck__cfg { grid-column: span 1; }
  .ckp__ft { flex-direction: column; }
}

/* -------------------------------------------------- animações ---------- */
.rise {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.75s var(--ease) forwards;
  animation-timeline: view();
  animation-range: entry 8% cover 26%;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@supports not (animation-timeline: view()) {
  .rise { opacity: 1; transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* -------------------------------------------------- impressão ---------- */
@media print {
  .hdr, .ftr, .ck, .ckp, .form-card, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
