/* =============================================================
   RG Credit — style.css
   -------------------------------------------------------------
   Abordagem mobile-first. Breakpoints usados em todo o ficheiro:
     40em  (640px)  — telemóveis grandes e tablets
     60em  (960px)  — tablets na horizontal e portáteis
     75em  (1200px) — desktop (menu completo no header)
   ============================================================= */


/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  /* Cores da marca */
  --gold: #dac267;
  --gold-deep: #b7a748;
  --gold-ink: #806a1a;        /* dourado escuro: texto e ícones sobre fundo claro (contraste AA) */
  --ink: #1a1a1a;
  --ink-soft: #242424;
  --graphite: #2d2d2d;
  --paper: #faf9f6;
  --cream: #fffbe2;
  --white: #fff;

  /* Texto e linhas */
  --text: var(--graphite);
  --text-muted: #5b5852;
  --text-on-dark: #f2eee5;
  --muted-on-dark: #bab5a9;
  --line: #e6e1d6;
  --line-strong: #968e7e;     /* contorno dos campos (contraste mínimo de 3:1) */
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Estados */
  --success: #1d6b44;
  --success-bg: #ebf5ef;
  --error: #b42318;
  --error-bg: #fdeceb;

  /* Tipografia */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 0.99rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 2.875rem);
  --fs-h1: clamp(2.625rem, 1.7rem + 4.6vw, 5.25rem);
  --fs-page-title: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);

  /* Espaçamento e layout */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 2.8rem + 5.5vw, 7.5rem);
  --container: 75rem;
  --header-h: 4rem;
  --header-h-compact: 4rem;

  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(45, 38, 14, 0.06), 0 6px 16px -10px rgba(45, 38, 14, 0.18);
  --shadow-lg: 0 2px 6px rgba(45, 38, 14, 0.05), 0 32px 64px -30px rgba(45, 38, 14, 0.4);
  --ring: 0 0 0 4px rgba(218, 194, 103, 0.42);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 800ms;

  /* Cor do contorno de foco (muda nas secções escuras) */
  --focus: var(--gold-ink);
}

@media (min-width: 75em) {
  :root {
    --header-h: 5.5rem;
    --header-h-compact: 4.5rem;
  }
}


/* -------------------------------------------------------------
   2. Base
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

address {
  font-style: normal;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.theme-dark {
  --focus: var(--gold);
  color: var(--text-on-dark);
}

section[id] {
  scroll-margin-top: var(--header-h-compact);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}


/* -------------------------------------------------------------
   3. Botões
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    color var(--dur) ease,
    box-shadow var(--dur) ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 3.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(183, 167, 72, 0.9);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline-dark {
  border-color: rgba(26, 26, 26, 0.5);
  color: var(--ink);
}

@media (hover: hover) {
  .btn-gold:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -14px rgba(183, 167, 72, 0.95);
  }

  .btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
  }

  .btn-dark:hover {
    background: var(--graphite);
    transform: translateY(-2px);
  }

  .btn-outline-dark:hover {
    background: rgba(26, 26, 26, 0.08);
    border-color: var(--ink);
    transform: translateY(-2px);
  }
}

.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

[aria-busy="true"] .spinner {
  display: inline-block;
}


/* -------------------------------------------------------------
   4. Header
   O header não muda de altura: o fundo aparece com opacity e o
   conteúdo sobe/encolhe com transform (só transform + opacity).
   ------------------------------------------------------------- */
.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  pointer-events: none;
}

.main-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--header-h-compact);
  background: rgba(22, 22, 22, 0.88);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(218, 194, 103, 0.16);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity var(--dur) ease;
  z-index: -1;               /* fica por baixo do logótipo e do menu */
}

.main-header.scrolled::before,
.menu-open .main-header::before {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  pointer-events: none;
  transition: transform var(--dur) var(--ease-out);
}

.header-inner > * {
  pointer-events: auto;
}

.main-header.scrolled .header-inner {
  transform: translateY(calc((var(--header-h-compact) - var(--header-h)) / 2));
}

.header-brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border-radius: 6px;
}

.logo {
  height: 2.5rem;
  width: auto;
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

/* Navegação desktop */
.main-nav {
  display: none;
}

.main-nav a {
  position: relative;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.main-nav a[aria-current="page"],
.main-nav a.is-active {
  color: var(--gold);
}

.main-nav a[aria-current="page"]::after,
.main-nav a.is-active::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .main-nav a:hover {
    color: var(--gold);
  }

  .main-nav a:hover::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-social {
  display: none;
}

.header-cta {
  display: none;
}

/* Ícones sociais (SVG inline) */
.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--gold);
  transition: background-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (hover: hover) {
  .social-link:hover {
    background: rgba(218, 194, 103, 0.14);
    transform: translateY(-2px);
  }
}

/* Botão hambúrguer */
.hamburger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.25);
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.125rem;
  height: 2px;
  margin: -1px 0 0 -0.5625rem;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}

.hamburger span:nth-child(1) {
  transform: translateY(-6px);
}

.hamburger span:nth-child(3) {
  transform: translateY(6px);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (min-width: 40em) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 75em) {
  .header-inner {
    gap: 1.5rem;
  }

  .header-brand {
    margin-right: 0;
  }

  .logo {
    height: 3.5rem;
  }

  .main-header.scrolled .logo {
    transform: scale(0.8);
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 1.8vw, 2.25rem);
    margin-inline: auto;
  }

  .header-social {
    display: flex;
    gap: 0.15rem;
  }

  .hamburger {
    display: none;
  }
}


/* -------------------------------------------------------------
   5. Menu mobile
   ------------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(12, 12, 12, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) ease, visibility 0s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: min(88vw, 25rem);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  border-left: 1px solid rgba(218, 194, 103, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.mobile-menu.active {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease-out), visibility 0s;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-on-dark);
  text-decoration: none;
}

.mobile-menu-links a[aria-current="page"] {
  color: var(--gold);
}

.mobile-menu-links li {
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}

.mobile-menu.active .mobile-menu-links li {
  opacity: 1;
  transform: none;
  transition-delay: calc(90ms + var(--i, 0) * 45ms);
}

.mobile-menu-links li:nth-child(2) { --i: 1; }
.mobile-menu-links li:nth-child(3) { --i: 2; }
.mobile-menu-links li:nth-child(4) { --i: 3; }
.mobile-menu-links li:nth-child(5) { --i: 4; }

.mobile-menu-contact {
  display: grid;
  gap: 0.15rem;
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}

.mobile-menu-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-on-dark);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu-social {
  display: flex;
  gap: 0.25rem;
  margin-top: auto;
}

.mobile-menu-social .social-link {
  border: 1px solid var(--line-dark);
}

@media (min-width: 75em) {
  .mobile-menu,
  .mobile-overlay {
    display: none;
  }
}


/* -------------------------------------------------------------
   6. Fita métrica (elemento de assinatura: "à sua medida")
   ------------------------------------------------------------- */
.ruler {
  --tick: var(--gold);
  width: min(100%, calc(21rem + 2px));
  height: 1rem;
  background:
    linear-gradient(var(--tick), var(--tick)) left bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 2px, transparent 2px 3.5rem) left bottom / 100% 1rem no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 0.7rem) left bottom / 100% 0.5rem no-repeat;
  transform-origin: left center;
}


/* -------------------------------------------------------------
   7. Hero (página inicial)
   ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2.5rem) 3.5rem;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink) url("img/hero-bg.jpg") center / cover no-repeat;
  animation: heroZoom 2.4s var(--ease-out) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.78) 0%, rgba(20, 20, 20, 0.7) 45%, rgba(20, 20, 20, 0.92) 100%);
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--white);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em 0.1em;
}

.hero-title .line > span {
  display: inline-block;
  animation: lineUp 0.95s var(--ease-out) both;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero .ruler {
  margin-block: 1.5rem 1.75rem;
  animation: rulerDraw 1.2s var(--ease-out) 0.45s both;
}

.hero-lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  animation: fadeUp 0.8s var(--ease-out) 0.65s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeUp 0.8s var(--ease-out) 0.78s both;
}

.hero-actions .btn {
  flex: 1 1 13rem;
}

.hero-facts {
  display: grid;
  gap: 0.65rem;
  max-width: 50rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  color: var(--muted-on-dark);
  animation: fadeUp 0.8s var(--ease-out) 0.92s both;
}

.hero-facts li {
  position: relative;
  padding-left: 1.75rem;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 40em) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 60em) {
  .hero {
    min-height: clamp(38rem, 94svh, 60rem);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.78) 42%, rgba(20, 20, 20, 0.35) 100%);
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}


/* -------------------------------------------------------------
   8. Topo das páginas interiores
   ------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  padding-block: calc(var(--header-h) + clamp(2.25rem, 5vw, 4rem)) clamp(2.5rem, 5vw, 4rem);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--muted-on-dark);
  animation: fadeUp 0.7s var(--ease-out) both;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: var(--fs-page-title);
  letter-spacing: -0.025em;
  color: var(--white);
  animation: fadeUp 0.8s var(--ease-out) 0.08s both;
}

.page-hero .ruler {
  width: min(100%, calc(14rem + 2px));
  margin-top: 1.25rem;
  animation: rulerDraw 1.1s var(--ease-out) 0.3s both;
}

.page-lead,
.page-meta {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--muted-on-dark);
  animation: fadeUp 0.8s var(--ease-out) 0.45s both;
}

.page-lead {
  font-size: var(--fs-lead);
}

.page-meta {
  font-size: var(--fs-sm);
}


/* -------------------------------------------------------------
   9. Secções
   ------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.section-head a {
  color: var(--gold-ink);
  font-weight: 500;
}

.theme-dark .section-head h2 {
  color: var(--white);
}

.theme-dark .section-head p {
  color: var(--muted-on-dark);
}


/* -------------------------------------------------------------
   10. Simulador
   ------------------------------------------------------------- */
.simulador {
  background: var(--paper);
}

.simulador-layout {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.simulador-photo {
  display: none;
}

.simulador-aside h3 {
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(183, 167, 72, 0.5);
  border-radius: 50%;
  background: var(--cream);
  font-weight: 600;
  color: var(--ink);
}

.steps strong {
  padding-top: 0.45rem;
  font-weight: 600;
  color: var(--ink);
}

.steps span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 60em) {
  .simulador-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .simulador-aside {
    position: sticky;
    top: calc(var(--header-h-compact) + 2rem);
  }

  .simulador-photo {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 2.25rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--line);
  }

  .simulador-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* -------------------------------------------------------------
   11. Formulários
   ------------------------------------------------------------- */
.form-panel {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 4px 0 var(--gold), var(--shadow-lg);
}

.form-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 1.75rem;
}

.form-title {
  font-size: var(--fs-h3);
  color: var(--ink);
}

.form-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 1.25rem 1rem;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* impede que nomes de ficheiro longos alarguem o campo */
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}

.field > label,
.field-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.req {
  margin-left: 0.15em;
  color: var(--gold-ink);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;           /* 16px: evita o zoom automático no iOS */
  line-height: 1.4;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.input,
.checkbox,
.file-input input {
  scroll-margin-top: calc(var(--header-h-compact) + 1.5rem);
}

.input::placeholder {
  color: #77726a;
  opacity: 1;
}

@media (hover: hover) {
  .input:hover {
    border-color: var(--graphite);
  }
}

.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--gold-ink);
  box-shadow: var(--ring);
}

select.input {
  padding-right: 2.75rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23806a1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 1rem center / 1rem no-repeat;
  cursor: pointer;
}

textarea.input {
  min-height: 9rem;
  resize: vertical;
}

.input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-affix {
  position: relative;
}

.input-affix .input {
  padding-right: 2.75rem;
}

.input-affix::after {
  content: attr(data-suffix);
  position: absolute;
  top: 50%;
  right: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.field-error {
  display: flex;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.has-error .input {
  border-color: var(--error);
}

.has-error .input:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.16);
}

/* Upload do Cartão de Cidadão */
.file-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.75rem;
  padding: 0.7rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color var(--dur-fast) ease, background-color var(--dur) ease, box-shadow var(--dur-fast) ease;
}

.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-input:focus-within {
  border-color: var(--gold-ink);
  box-shadow: var(--ring);
}

@media (hover: hover) {
  .file-input:hover {
    border-color: var(--gold-ink);
    background: var(--cream);
  }
}

.file-input-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-ink);
}

.file-input-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.file-input-icon .icon-check,
.file-input.has-file .icon-upload {
  display: none;
}

.file-input.has-file .icon-check {
  display: block;
}

.file-input-text {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input.has-file {
  border-style: solid;
  border-color: var(--gold-deep);
  background: var(--cream);
}

.file-input.has-file .file-input-icon {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.file-input.has-file .file-input-text {
  font-weight: 500;
  color: var(--ink);
}

.has-error .file-input {
  border-color: var(--error);
}

/* Consentimento RGPD */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.consent label {
  font-size: 0.9rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent a {
  font-weight: 500;
  color: var(--gold-ink);
}

.consent .field-error {
  grid-column: 2;
}

.has-error.consent {
  border-color: rgba(180, 35, 24, 0.45);
}

.checkbox {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white) center / 0.95rem no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.checkbox:checked {
  border-color: var(--gold-deep);
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.has-error .checkbox {
  border-color: var(--error);
}

.form-actions {
  margin-top: 1.75rem;
}

/* Mensagem de envio (substitui os alert) */
.form-status:not(:empty) {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: statusIn 0.4s var(--ease-out) both;
}

.form-status.is-success {
  border-color: rgba(29, 107, 68, 0.25);
  background: var(--success-bg);
  color: var(--success);
}

.form-status.is-error {
  border-color: rgba(180, 35, 24, 0.25);
  background: var(--error-bg);
  color: var(--error);
}

.form-status > div {
  flex: 1;
  min-width: 0;
}

.form-status-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.form-status strong {
  display: block;
  font-weight: 600;
}

.form-status p {
  color: var(--text);
}

@media (min-width: 40em) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full,
  .form-grid > .consent {
    grid-column: 1 / -1;
  }
}


/* -------------------------------------------------------------
   12. Sobre nós
   ------------------------------------------------------------- */
.sobre-nos {
  background: var(--ink);
}

.about-grid {
  display: grid;
  gap: 1rem;
}

.about-brand {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.about-brand img {
  width: min(62%, 15rem);
}

.about-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.about-card h3 {
  margin-bottom: 0.75rem;
  font-size: var(--fs-h3);
  color: var(--gold);
}

.about-card p {
  line-height: 1.75;
  color: var(--muted-on-dark);
}

@media (min-width: 40em) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* -------------------------------------------------------------
   13. Intermediário de crédito (FAQ)
   ------------------------------------------------------------- */
.faq-section {
  background: var(--white);
}

.faq-theme {
  display: grid;
  gap: 0.5rem;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.faq-theme:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-theme-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold-ink);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-q {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 0;
  border: 0;
  background: none;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1.5px;
  margin: -0.75px 0 0 -0.375rem;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}

.faq-icon::after {
  transform: rotate(90deg);
}

@media (hover: hover) {
  .faq-question:hover .faq-icon {
    border-color: var(--gold);
  }
}

.faq-item.active .faq-icon {
  border-color: var(--gold);
  background: var(--gold);
  transform: rotate(180deg);
}

.faq-item.active .faq-icon::after {
  transform: rotate(0deg);
}

/* Altura animada com grid-template-rows (0fr → 1fr) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  max-width: 62ch;
  padding: 0 3rem 1.25rem 0;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-0.4rem);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.faq-item.active .faq-answer p {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

@media (min-width: 60em) {
  .faq-theme {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
  }

  .faq-theme-title {
    padding-top: 1.1rem;
  }
}


/* -------------------------------------------------------------
   14. Faixa de contacto (final da página inicial)
   ------------------------------------------------------------- */
.cta-band {
  --focus: var(--ink);
  padding-block: clamp(3rem, 2.4rem + 3vw, 5rem);
  background: var(--gold);
  color: var(--ink);
}

.cta-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  letter-spacing: -0.025em;
}

.cta-band p {
  margin-top: 0.6rem;
  color: rgba(26, 26, 26, 0.8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-actions .btn {
  flex: 1 1 13rem;
}

.cta-band .call-note {
  margin-top: 0.6rem;
  font-size: var(--fs-xs);
  color: rgba(26, 26, 26, 0.75);
}

@media (min-width: 40em) {
  .cta-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 60em) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
  }
}


/* -------------------------------------------------------------
   15. Contactos
   ------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.contact-info > h2 {
  margin-bottom: 1.5rem;
  font-size: var(--fs-h3);
  color: var(--ink);
}

.contact-list {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(183, 167, 72, 0.45);
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-ink);
}

.contact-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.contact-details h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--ink);
}

.contact-details p {
  color: var(--text-muted);
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: rgba(128, 106, 26, 0.45);
}

.contact-details .text-link {
  min-height: 0;
  margin-top: 0.35rem;
  color: var(--gold-ink);
}

.call-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.contact-social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-social h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--ink);
}

.contact-social .social-links {
  display: flex;
  gap: 0.5rem;
}

.contact-social .social-link {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--gold-ink);
}

.map-section {
  padding-bottom: var(--section-y);
}

.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.map-head h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.map-head a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--gold-ink);
}

.map-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 40em) {
  .map-frame {
    aspect-ratio: 16 / 7;
  }
}

@media (min-width: 60em) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}


/* -------------------------------------------------------------
   16. Páginas legais
   ------------------------------------------------------------- */
.legal-layout {
  display: grid;
  gap: 2.5rem;
}

.legal-content {
  min-width: 0;
  padding: clamp(1.5rem, 1rem + 3vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.legal-content > * + * {
  margin-top: 1rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  color: var(--ink);
}

.legal-content .legal-intro {
  font-size: var(--fs-lead);
  color: var(--ink);
}

.legal-content a {
  font-weight: 500;
  color: var(--gold-ink);
}

.cookie-types {
  display: grid;
  gap: 1rem;
}

.cookie-type {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.cookie-type h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--ink);
}

.cookie-type p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.legal-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.legal-figure img {
  width: 100%;
}

.legal-figure figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.legal-back {
  margin-top: 2rem;
}

.legal-nav h2 {
  margin-bottom: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--gold-ink);
}

@media (hover: hover) {
  .legal-nav a:hover {
    color: var(--gold-ink);
  }
}

@media (min-width: 40em) {
  .cookie-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60em) {
  .legal-layout {
    grid-template-columns: minmax(0, 48rem) 15rem;
    justify-content: space-between;
    align-items: start;
  }

  .legal-nav {
    position: sticky;
    top: calc(var(--header-h-compact) + 2rem);
  }
}


/* -------------------------------------------------------------
   17. Rodapé
   ------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink);
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
}

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

.footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--gold);
}

.footer-desc {
  max-width: 36ch;
  line-height: 1.7;
}

.site-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
}

@media (hover: hover) {
  .site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
  }
}

.footer-social {
  display: flex;
  gap: 0.25rem;
  margin-top: 1.25rem;
  margin-left: -0.6rem;
}

.site-footer .social-link {
  color: var(--gold);
}

.footer-contact address {
  display: grid;
  gap: 0.15rem;
  line-height: 1.6;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

.footer-contact .call-note {
  color: var(--muted-on-dark);
}

.footer-links {
  display: grid;
  gap: 0.15rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

.site-footer .livro-reclamacoes-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(218, 194, 103, 0.5);
  border-radius: var(--radius-sm);
  color: var(--gold);
}

.footer-legal {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
  line-height: 1.6;
  text-align: center;
}

.footer-legal p,
.footer-arbitration li {
  text-wrap: balance;
}

.footer-arbitration ul {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.3rem;
  padding: 0;
  list-style: none;
}

.site-footer .footer-legal a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(218, 194, 103, 0.35);
}

.footer-bottom {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.footer-credit {
  font-size: var(--fs-xs);
}

@media (min-width: 60em) {
  .footer-bottom {
    display: flex;
    justify-content: center;
    align-items: baseline;
  }

  .footer-credit {
    font-size: inherit;
  }

  .footer-credit::before {
    content: "|";
    margin-inline: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
  }
}
@media (min-width: 40em) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60em) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-about {
    grid-column: auto;
  }
}
/* -------------------------------------------------------------
   18. Aviso de cookies
   ------------------------------------------------------------- */
.cookie-popup {
  position: fixed;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  left: 0.75rem;
  z-index: 990;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid rgba(218, 194, 103, 0.24);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.cookie-popup[hidden] {
  display: none;
}

.cookie-popup.show {
  opacity: 1;
  transform: none;
}

.cookie-title {
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--white);
}

.cookie-text {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted-on-dark);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-left: auto;
  padding-inline: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold);
}

@media (min-width: 40em) {
  .cookie-popup {
    padding: 1.25rem;
    right: auto;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: 1.5rem;
    width: 26rem;
  }
}


/* -------------------------------------------------------------
   19. Animações
   ------------------------------------------------------------- */

/* Revelação ao fazer scroll (a classe .js é adicionada pelo main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes lineUp {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

@keyframes rulerDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

@keyframes statusIn {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

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


/* -------------------------------------------------------------
   20. Impressão
   ------------------------------------------------------------- */
@media print {
  .main-header,
  .mobile-menu,
  .mobile-overlay,
  .cookie-popup,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  .hero,
  .page-hero {
    min-height: 0;
    padding-block: 1.5rem;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
