/* ============================================================
   CRD SEGUROS — Premium Landing Page
   ============================================================ */

/* --- RESET & BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:    #071B3A;
  --blue-main:    #0B2F66;
  --blue-mid:     #1257A8;
  --cyan:         #35B7FF;
  --white-soft:   #F7F9FC;
  --gray-text:    #5D6675;
  --gold:         #C9A24D;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: auto; /* Lenis handles this */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--blue-deep);
  color: var(--white-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- HEADER ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5vw;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
  background: rgba(7, 27, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header-nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 2rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.header-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.header-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(247, 249, 252, 0.65);
  text-decoration: none;
  transition: color 0.25s;
  text-transform: uppercase;
}

.header-links a:hover,
.header-links a:focus-visible { color: var(--white-soft); }

.header-nav-item { position: relative; }

.header-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.header-dropdown-trigger svg {
  width: 8px;
  height: 8px;
  opacity: 0.6;
  transition: transform 0.25s;
}

.header-nav-item:hover .header-dropdown-trigger svg,
.header-nav-item:focus-within .header-dropdown-trigger svg { transform: rotate(180deg); }

.header-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 1rem;
  width: 560px;
  max-width: min(560px, 92vw);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.header-nav-item:hover .header-dropdown,
.header-nav-item:focus-within .header-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-dropdown-panel {
  background: rgba(7,27,58,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem;
}

.header-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.header-dropdown-link:hover,
.header-dropdown-link:focus-visible { background: rgba(255,255,255,0.06); }

.header-dropdown-link-title {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white-soft);
  text-transform: none;
}

.header-dropdown-link-desc {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(247,249,252,0.4);
  line-height: 1.45;
}

.header-dropdown-all {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding: 0.85rem 0.85rem 0.15rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.header-dropdown-all a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.btn-header-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-header-cta:hover,
.btn-header-cta:focus-visible {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-soft);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem 0;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(247,249,252,0.75);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.mobile-menu a.mobile-cta {
  color: var(--cyan);
  border-bottom: none;
  margin-top: 0.5rem;
}

/* --- BUTTONS ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  background: var(--blue-mid);
  border: 1px solid var(--blue-mid);
  padding: 1rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1666be;
  box-shadow: 0 8px 32px rgba(18, 87, 168, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(53, 183, 255, 0.3);
  transition: border-color 0.25s, color 0.25s;
  margin-top: 1.5rem;
}

.btn-secondary::after {
  content: '→';
  margin-left: 0.6rem;
  transition: transform 0.25s;
}

.btn-secondary:hover { border-color: var(--cyan); }
.btn-secondary:hover::after { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247,249,252,0.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255,255,255,0.4);
  color: var(--white-soft);
}

/* --- SECTION LABEL (compartilhado por vários componentes) -- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

/* --- ORBS DECORATIVOS (usados em .page-hero-decor) --------- */
.fallback-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 50vw; height: 50vw;
  top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(18,87,168,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 35vw; height: 35vw;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(53,183,255,0.08) 0%, transparent 70%);
  animation-delay: -3s;
}

.orb-3 {
  width: 28vw; height: 28vw;
  top: 30%; left: -5%;
  background: radial-gradient(circle, rgba(11,47,102,0.3) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, 3%) scale(1.04); }
  66% { transform: translate(-1%, -2%) scale(0.97); }
}

.section-inner {
  position: relative;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 1.25rem;
}

.section-label-light {
  color: rgba(247,249,252,0.4);
}

/* --- STATS ---------------------------------------------- */
.section-heading-light {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 2.5rem;
}

.stat {
  padding: 2rem;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 800;
  color: var(--white-soft);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 300;
  color: rgba(247,249,252,0.45);
}

.stat-label {
  display: block;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.35);
}

.stats-note {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(247,249,252,0.4);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.75;
}

/* --- HOW-TO STEPS ----------------------------------------- */
.howto-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.howto-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.step-num {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(53,183,255,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
  letter-spacing: -0.04em;
}

.step-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white-soft);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.87rem;
  font-weight: 300;
  color: rgba(247,249,252,0.5);
  line-height: 1.7;
}

.step-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0;
}

/* --- FORM SECTION ----------------------------------------- */
.page-section {
  position: relative;
  z-index: 10;
  background: var(--white-soft);
}

.section-form-wrap {
  padding: 8rem 5vw;
}

.form-container {
  max-width: 600px;
}

.section-form-wrap .section-label {
  color: var(--blue-mid);
}

.form-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

.form-subtext {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-main);
}

.form-group input,
.form-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0; /* um <select> com opção longa não pode alargar o grid no mobile */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(11,47,102,0.15);
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B2F66' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(18,87,168,0.08);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.75rem;
  color: #c0392b;
  font-weight: 400;
  min-height: 1em;
}

.btn-form-submit {
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
}

.btn-form-submit .btn-loading {
  display: none;
  position: absolute;
}

.btn-form-submit.loading .btn-text { opacity: 0; }
.btn-form-submit.loading .btn-loading { display: flex; }

.spin {
  animation: spinAnim 0.8s linear infinite;
}

@keyframes spinAnim {
  to { transform: rotate(360deg); }
}

/* =========================================================
   FORMULÁRIOS DE LEAD (produto e contato)
   Compartilhado por product-form.js e contact-form.js.
   ========================================================= */
.lead-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.5rem;
}

.lead-question {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.lead-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 50ch;
}

.lead-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lead-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(11,47,102,0.12);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--blue-deep);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lead-option:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 12px rgba(18,87,168,0.08);
}

.lead-option.selected {
  border-color: var(--cyan);
  background: rgba(53,183,255,0.05);
  box-shadow: 0 2px 16px rgba(53,183,255,0.12);
}

.lead-opt-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11,47,102,0.2);
  transition: border-color 0.2s, background 0.2s;
}

.lead-option.selected .lead-opt-dot {
  border-color: var(--cyan);
  background: var(--cyan);
}

.lead-opt-text { flex: 1; }

.lead-btn-start,
.lead-btn {
  margin-top: 1rem;
  width: 100%;
}

.qfield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.qfield-full {
  grid-column: 1 / -1;
}

/* --- Result ------------------------------------------ */
.lead-result-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53,183,255,0.08);
  border: 1px solid rgba(53,183,255,0.2);
  border-radius: 2px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

.lead-result-heading {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

.lead-result-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.lead-result-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.lead-result-ctas .btn-secondary {
  margin-top: 0;
}

@media (max-width: 600px) {
  .qfield-grid { grid-template-columns: 1fr; }
  .lead-result-ctas { flex-direction: column; }
}

/* --- CTA FINAL -------------------------------------------- */
.section-cta-final {
  position: relative;
  z-index: 10;
  background: var(--blue-deep);
  padding: 10rem 5vw 8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.section-cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(18,87,168,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(53,183,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-cta-final--photo {
  background-size: cover;
  background-position: center right;
}

.section-cta-final--photo::before {
  background: linear-gradient(90deg, rgba(7,27,58,0.97) 0%, rgba(7,27,58,0.9) 38%, rgba(7,27,58,0.55) 62%, rgba(7,27,58,0.15) 100%);
}

@media (max-width: 768px) {
  .section-cta-final--photo { background-position: center 25%; }
  .section-cta-final--photo::before {
    background: linear-gradient(180deg, rgba(7,27,58,0.55) 0%, rgba(7,27,58,0.9) 45%, rgba(7,27,58,0.97) 100%);
  }
}

.cta-final-inner {
  max-width: 55vw;
}

.cta-final-heading {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white-soft);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.cta-final-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,249,252,0.55);
  margin-bottom: 3rem;
  max-width: 55ch;
}

.btn-cta-final {
  font-size: 0.9rem;
  padding: 1.1rem 2.8rem;
}

/* --- COMO FUNCIONA ------------------------------------------ */
.section-howto-page {
  background: var(--white-soft);
  padding: 8rem 5vw;
  position: relative;
  overflow: hidden;
}

.howto-page-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
}

.howto-page-heading {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
  margin-bottom: 1.2rem;
}

.howto-page-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 55ch;
}

.howto-label { color: var(--blue-mid); }

.section-howto-page .step-content h4 { color: var(--blue-deep); }
.section-howto-page .step-content p  { color: var(--gray-text); }
.section-howto-page .step-num        { color: rgba(18,87,168,0.25); }
.section-howto-page .step-divider    { background: rgba(11,47,102,0.1); }

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 10;
  background: #040e1e;
  padding: 5rem 5vw 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-brand { max-width: 32ch; }

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white-soft);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  padding: 0.6rem 1rem;
  transition: border-color 0.25s, color 0.25s;
}

.footer-wa svg { width: 16px; height: 16px; }

.footer-wa:hover,
.footer-wa:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.footer-address {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(247,249,252,0.45);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.footer-address strong {
  display: block;
  font-weight: 600;
  color: rgba(247,249,252,0.85);
  margin-bottom: 0.15rem;
}

.footer-address a,
.footer-email {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(247,249,252,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-address a:hover,
.footer-email:hover { color: var(--white-soft); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(247,249,252,0.3);
  line-height: 1.7;
  max-width: 80ch;
}

.footer-copy {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(247,249,252,0.3);
  white-space: nowrap;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,249,252,0.85);
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white-soft);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(247,249,252,0.45);
  line-height: 1.7;
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(247,249,252,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white-soft); }

/* ============================================================
   MOBILE — < 768px
   ============================================================ */
@media (max-width: 768px) {

  .header-links,
  .btn-header-cta { display: none; }

  .mobile-menu-toggle { display: flex; }

  .mobile-menu.open { display: flex; }

  /* Opaco (não rgba): com o menu aberto sobre o hero em vídeo, uma
     transparência de 0.98 ainda deixava o texto claro do hero vazar por
     trás dos links do menu. */
  .site-header.menu-open { background: var(--blue-deep); }

  .section-heading { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.07); }
  .stat:first-child { border-top: none; padding-left: 0; }

  .cta-final-inner { max-width: 100%; }
  .cta-final-heading { font-size: clamp(2rem, 8vw, 3rem); }

  .section-form-wrap { padding: 5rem 5vw; }

  .btn-primary { width: 100%; justify-content: center; }

  .howto-steps { gap: 0; }

  .howto-page-inner { grid-template-columns: 1fr; }
  .howto-page-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .footer-copy { white-space: normal; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- UTILITY ---------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }

