/* HabeasNabis — estilos globais (mobile-first) */

:root {
  --dark: #1a2420;
  --dark-surface: #212e29;
  --cream: #f0eeeb;
  --white: #fafaf8;
  --accent: #2f5f5a;
  --accent-light: #3a7a73;
  --accent-muted: #e4edeb;
  --gold: #b8966e;
  --text: #1a1f24;
  --text-muted: #5a6560;
  --light-mid: #b0bab6;
  --border: #d4d8d6;
  --surface: #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-xs: 0.35rem;
  --space-sm: 0.65rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 7rem;

  --radius: 4px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --max-width: 42rem;
  --max-width-wide: 54rem;

  /* Mobile gutters (prevents overly narrow text on small screens) */
  --gutter: clamp(1rem, 4vw, var(--space-xl));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.3s;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 36, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ── BRAND / LOGO ── */
.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-header__brand:hover {
  opacity: 0.8;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.brand__accent {
  color: var(--gold);
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light-mid);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* ── HERO ── */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--gutter);
  padding-top: clamp(4.75rem, 12vw, var(--space-3xl));
  min-height: min(100vh, 2000px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(47, 95, 90, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__credentials {
  margin: 0 0 var(--space-xl);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero__credentials-text {
  display: inline-block;
}

.hero__credentials-note {
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--light-mid);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-xl);
  color: var(--white);
  max-width: 18ch;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero__lead {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-mid);
  max-width: 36rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero__lead strong {
  color: var(--white);
  font-weight: 400;
}

.hero__cta {
  margin-top: var(--space-2xl);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
}

/* ── BUTTONS ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button--primary {
  background: var(--gold);
  color: var(--dark);
}

.button--primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.button--secondary {
  background: transparent;
  color: var(--light-mid);
  border-color: rgba(255, 255, 255, 0.2);
}

.button--secondary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Secondary button variant on light backgrounds */
.section .button--secondary,
.prose .button--secondary {
  color: var(--text-muted);
  border-color: var(--border);
}

.section .button--secondary:hover,
.prose .button--secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* ── SECTIONS ── */
.section {
  padding: var(--space-3xl) var(--gutter);
}

.section__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section__inner.prose {
  max-width: var(--max-width);
}

.section__inner--wide {
  max-width: 72rem;
}

.section--alt {
  background: var(--surface);
}

.section--disclaimer {
  margin-top: 0;
  background: var(--cream);
}

.section__label {
  display: block;
  margin-bottom: var(--space-lg);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__intro {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ── PROSE (body text blocks) ── */
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-xl);
  color: var(--text);
  max-width: 20ch;
}

.prose p {
  margin: 0 0 var(--space-lg);
  font-weight: 300;
  color: var(--text-muted);
  max-width: var(--max-width);
  line-height: 1.8;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 500;
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.prose a:hover {
  color: var(--gold);
}

.prose strong a {
  font-weight: 500;
  color: var(--text);
}

.prose strong a:hover {
  color: var(--gold);
}

.legal-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-xl);
  color: var(--text);
  max-width: 20ch;
  opacity: 1;
  animation: none;
}

/* Legal / long-form pages (privacy policy, etc.) */
.legal-page.prose h2 {
  max-width: none;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 400;
  margin-top: var(--space-2xl);
}

.legal-page.prose h2:first-child {
  margin-top: 0;
}

/* ── SERVICE STEPS ── */
.service-steps {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.service-step:last-child {
  padding-bottom: 0;
}

.service-step__num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  opacity: 0.7;
  padding-top: 0.15em;
}

.service-step__body {
  flex: 1;
}

.service-step__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 var(--space-sm);
}

.service-step__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
  max-width: var(--max-width);
}

/* ── PROSE LIST (bullets) ── */
.prose-list {
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
  max-width: var(--max-width);
}

.prose-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

.prose-list li:last-child {
  margin-bottom: 0;
}

.prose-list li strong {
  font-weight: 500;
  color: var(--text);
}

/* ── CHECKLIST PROMO ── */
.checklist-promo {
  max-width: var(--max-width);
  margin: 0 auto;
}

.checklist-promo__inner {
  --holo-x: 50;
  --holo-y: 50;
  background: #041718;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 7vw, var(--space-3xl)) clamp(1.25rem, 5vw, var(--space-2xl));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.checklist-promo__inner > * {
  position: relative;
  z-index: 2;
}

.checklist-promo__inner::before {
  content: "";
  position: absolute;
  inset: -90%;
  background: repeating-linear-gradient(
    calc(var(--holo-x) * 1.2deg + var(--holo-y) * 0.8deg + 45deg),
    rgba(184, 150, 110, 0.0) 0%,
    rgba(184, 150, 110, 0.07) 3%,
    rgba(58, 122, 115, 0.10) 7%,
    rgba(140, 120, 180, 0.06) 11%,
    rgba(184, 150, 110, 0.04) 15%,
    rgba(58, 122, 115, 0.07) 19%,
    rgba(140, 120, 180, 0.0) 23%,
    transparent 40%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.checklist-promo .section__label {
  color: var(--gold);
}

.checklist-promo__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 var(--space-xl);
}

.checklist-promo__heading .brand__name {
  font-size: clamp(2.2rem, 5vw, 2.2rem);
  line-height: 1.1;
}

.checklist-promo__heading br {
  line-height: 0.6;
}

.checklist-promo__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-mid);
  max-width: 34rem;
  margin: 0 auto var(--space-2xl);
}

.checklist-promo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  position: relative;
}

.checklist-promo__btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 1px;
  padding: 3px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(184, 150, 110, 0.15) 0%,
    rgba(210, 170, 110, 0.85) 25%,
    rgba(184, 150, 110, 0.4) 45%,
    rgba(184, 150, 110, 0.15) 55%,
    rgba(210, 170, 110, 0.85) 75%,
    rgba(184, 150, 110, 0.4) 95%,
    rgba(184, 150, 110, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: promoOrbit 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(210, 170, 110, 0.3));
}

.checklist-promo__btn:hover {
  color: var(--gold);
  border-color: rgba(184, 150, 110, 0.4);
  transform: translateY(-2px);
}

.checklist-promo__note {
  display: block;
  margin-top: var(--space-lg);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--light-mid);
}

.section__cta {
  margin-top: var(--space-xl);
  margin-bottom: 0 !important;
  display: flex;
  justify-content: center;
}

.section__cta .button--secondary {
  position: relative;
  background: rgba(95, 47, 71, 0.22);
  color: var(--text);
  border-color: rgba(47, 95, 90, 0.38);
}

.section__cta .button--secondary::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 1px;
  padding: 3px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 40%,
    rgba(184, 150, 110, 0.75) 70%,
    rgba(184, 150, 110, 0.28) 80%,
    transparent 95%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderOrbit 6s linear infinite;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(184, 150, 110, 0.28));
}

/* ── CTA CARD (contact) ── */
.cta-card-section {
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Mobile: reduce only bottom padding on contact section */
.cta-card-section.section {
  padding-bottom: clamp(3rem, 10vw, 5rem);
}

.cta-card-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/bgmodal.webp") center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.cta-card {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-card__inner {
  --holo-x: 50;
  --holo-y: 50;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 7vw, var(--space-3xl)) clamp(1.25rem, 5vw, var(--space-2xl));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card__inner > * {
  position: relative;
  z-index: 2;
}

.cta-card__inner::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: repeating-linear-gradient(
    calc(var(--holo-x) * 2.2deg + var(--holo-y) * 0.8deg + 45deg),
    rgba(184, 150, 110, 0.0) 0%,
    rgba(184, 150, 110, 0.07) 3%,
    rgba(58, 122, 115, 0.10) 7%,
    rgba(140, 120, 180, 0.06) 11%,
    rgba(184, 150, 110, 0.04) 15%,
    rgba(58, 122, 115, 0.07) 19%,
    rgba(140, 120, 180, 0.0) 23%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.cta-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 50% at calc(var(--holo-x) * 1%) calc(var(--holo-y) * 1%),
    rgba(255, 255, 255, 0.08) 0%,
    rgba(87, 122, 136, 0.04) 80%,
    transparent 99%
  );
  pointer-events: none;
  z-index: 1;
}

.cta-card .section__label {
  color: var(--gold);
}

.cta-card__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 var(--space-xl);
}

.cta-card__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-mid);
  max-width: 34rem;
  margin: 0 auto var(--space-2xl);
}

.cta-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  position: relative;
}

@media (max-width: 30em) {
  .checklist-promo__btn,
  .cta-card__btn {
    padding: 14px 22px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }
}

.cta-card__btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 1px;
  padding: 3px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(184, 150, 110, 0.15) 0%,
    rgba(210, 170, 110, 0.85) 25%,
    rgba(184, 150, 110, 0.4) 45%,
    rgba(184, 150, 110, 0.15) 55%,
    rgba(210, 170, 110, 0.85) 75%,
    rgba(184, 150, 110, 0.4) 95%,
    rgba(184, 150, 110, 0.15) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: promoOrbit 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(210, 170, 110, 0.3));
}

.cta-card__btn:hover {
  color: var(--gold);
  border-color: rgba(184, 150, 110, 0.4);
  transform: translateY(-2px);
}

/* ── HOME PAGE: all-dark background ── */
.page-home {
  background: var(--dark);
}

.page-home .section,
.page-home .section--alt {
  background: var(--dark);
  color: var(--light-mid);
}

.page-home .cta-card-section {
  background: #000000;
}

.page-home .section--alt .section__label {
  color: var(--gold);
}

.page-home .section--alt h2 {
  color: var(--white);
}

.page-home .section--alt .prose p {
  color: var(--light-mid);
}

.page-home .section--alt .prose strong {
  color: var(--light-mid);
  font-weight: 500;
}

.page-home .section--alt .prose a {
  color: var(--gold);
}

.page-home .service-step {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-xl);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: var(--space-md);
}

.page-home .service-step:last-child {
  margin-bottom: 0;
}

.page-home .service-step__num {
  color: var(--gold);
  opacity: 1;
}

.page-home .service-step__title {
  color: var(--white);
}

.page-home .service-step__text {
  color: var(--light-mid);
}

.page-home .service-steps {
  gap: var(--space-md);
}

/* ── DARK SECTION ── */
.section--dark {
  background: var(--dark);
  color: var(--light-mid);
}

.section--dark .section__label {
  color: var(--gold);
}

/* ── TIMELINE ── */
.timeline__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-2xl);
  color: var(--white);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.timeline__card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: border-color 0.4s, background 0.4s;
}

.timeline__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 150, 110, 0.3);
}

.timeline__card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.timeline__card-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-mid);
  margin: 0;
}

.timeline__card-text strong {
  color: var(--white);
  font-weight: 400;
}

/* Animated glow border on the final card */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.timeline__card--highlight {
  position: relative;
}

.timeline__card--highlight::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 40%,
    rgba(184, 150, 110, 0.4) 70%,
    rgba(184, 150, 110, 0.15) 80%,
    transparent 95%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderOrbit 6s linear infinite;
}

@keyframes borderOrbit {
  0%   { --border-angle: 0deg;   opacity: 1; }
  50%  {                         opacity: 0.1; }
  100% { --border-angle: 360deg; opacity: 1; }
}

@keyframes promoOrbit {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}


@media (min-width: 54em) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }

  .timeline__step {
    flex-direction: column;
    gap: var(--space-lg);
    padding-bottom: 0;
  }

  .timeline__marker {
    width: auto;
    align-items: flex-start;
  }
}

/* ── DISCLAIMER ── */
.disclaimer {
  padding: var(--space-3xl) var(--gutter);
  background: var(--cream);
}

.disclaimer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--light-mid);
}

.disclaimer h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  margin: 0 0 var(--space-xl);
  color: var(--white);
}

.disclaimer__highlight {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.disclaimer__highlight-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 var(--space-lg);
}

.disclaimer__section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin: var(--space-2xl) 0 var(--space-lg);
}

.disclaimer__section-title:first-of-type {
  margin-top: 0;
}

.disclaimer__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--light-mid);
  margin: 0 0 var(--space-lg);
}

.disclaimer__text:last-of-type {
  margin-bottom: 0;
}

.disclaimer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.disclaimer__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

.disclaimer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.disclaimer__list li:last-child {
  margin-bottom: 0;
}

.disclaimer__list li strong {
  color: var(--white);
  font-weight: 400;
}

/* Sobre page: cream background + no dark disclaimer card */
.page-about main {
  background: var(--cream);
}

.page-about .section--alt {
  background: var(--cream);
}

.page-about .section__inner,
.page-about .disclaimer__inner {
  max-width: var(--max-width);
}

.page-about .disclaimer__inner {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted);
}

.page-about .disclaimer h2,
.page-about .disclaimer__section-title,
.page-about .disclaimer__highlight-title {
  color: var(--text);
}

.page-about .disclaimer__text {
  color: var(--text-muted);
}

.page-about .disclaimer__highlight {
  background: rgba(47, 95, 90, 0.08);
  border-left: 3px solid var(--gold);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── RESPONSIVE ── */
@media (min-width: 40em) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero__lead {
    font-size: 1.05rem;
  }
}

@media (min-width: 54em) {
  .hero {
    padding: var(--space-3xl) 4rem;
  }

  .section {
    padding: var(--space-3xl) 4rem;
  }

  .disclaimer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .site-footer-compact {
    padding-left: 4rem;
    padding-right: 4rem;
  }


  .page-title {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .checklist-progress {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .checklist-section {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .checklist-actions {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ── CHECKLIST PAGE ── */
.page-title {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-3xl) var(--gutter) var(--space-xl);
}

.page-title h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: var(--text);
  max-width: none;
  opacity: 1;
  animation: none;
}

.page-title p {
  margin: 0;
  color: var(--text-muted);
  max-width: var(--max-width);
  font-weight: 300;
}

.checklist-progress {
  max-width: var(--max-width-wide);
  margin: 0 auto var(--space-lg);
  padding: 0 var(--gutter);
}

.checklist-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.checklist-progress__bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.checklist-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.checklist-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-xl);
}

.checklist-section__title {
  font-family: var(--font-serif);
  margin: 0 0 var(--space-md);
  font-size: 1.4rem;
  font-weight: 400;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.checklist-section__intro {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.checklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.checklist-item:hover {
  border-color: var(--accent);
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-item input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Grouped items (e.g. Relatório médico) ── */

.checklist-item--group {
  flex-direction: column;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.checklist-item--group:hover {
  border-color: var(--border);
}

.checklist-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  transition: background 0.35s, border-color 0.35s;
}

.checklist-group__indicator {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 3px;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: border-color 0.35s, background 0.35s;
  position: relative;
}

.checklist-group__indicator::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background 0.35s;
}

.checklist-group__label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.checklist-group__count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.checklist-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.015);
}

.checklist-item--child {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
  padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) + 1.15rem + var(--space-md));
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.checklist-item--child:last-child {
  border-bottom: none;
}

.checklist-item--child:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

/* Partial state — some children checked */
.checklist-item--partial .checklist-group__indicator {
  border-color: var(--gold);
}

.checklist-item--partial .checklist-group__indicator::after {
  background: var(--gold);
}

.checklist-item--partial .checklist-group__count {
  color: var(--gold);
}

/* Complete state — all children checked */
.checklist-item--complete .checklist-group__header {
  background: #e8f3ec;
}

.checklist-item--complete .checklist-group__indicator {
  border-color: #1f6f3b;
  background: #1f6f3b;
}

.checklist-item--complete .checklist-group__indicator::after {
  content: "✓";
  inset: unset;
  background: transparent;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  position: absolute;
  top: -1px;
  left: 1px;
}

.checklist-item--complete .checklist-group__label {
  color: #1a5c30;
}

.checklist-item--complete .checklist-group__count {
  color: #1f6f3b;
  font-weight: 600;
}

.checklist-item--complete .checklist-sublist {
  border-top-color: rgba(31, 111, 59, 0.15);
}

.checklist-actions {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-lg) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.checklist-actions button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}

.checklist-actions__pdf {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

.checklist-actions__pdf:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: var(--white) !important;
}

.checklist-actions button:hover {
  background: var(--cream);
  border-color: var(--accent);
  color: var(--accent);
}

.checklist-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Compact footer ── */
.site-footer-compact {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-xl) var(--gutter);
}

.site-footer-compact__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.site-footer-compact__disclaimer {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.site-footer-compact__row {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--light-mid);
  letter-spacing: 0.02em;
}

.footer-policy {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--light-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.footer-policy:hover {
  color: var(--gold);
}

@media (max-width: 39.99em) {
  .site-footer-compact__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

@media (min-width: 40em) {
  .whatsapp-float {
    bottom: 40px;
    right: 36px;
  }
}

.whatsapp-float-label {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s;
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float-btn {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.whatsapp-float:hover .whatsapp-float-btn {
  transform: scale(1.1);
}

.whatsapp-float-btn svg {
  width: 26px; height: 26px;
  fill: white;
}