/* PeritoWeb — Design System v2 */

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

:root {
  --navy: #0b1f3a;
  --navy-mid: #143456;
  --navy-soft: #1e3a5f;
  --gold: #c9a227;
  --gold-hover: #b8921f;
  --gold-light: #e8d48a;
  --white: #ffffff;
  --bg: #f4f6f9;
  --bg-warm: #faf8f5;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #d1dbe8;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.12);
  --nav-h: 72px;
  --nav-h-scrolled: 64px;
  --logo-h: 58px;
  --logo-h-scrolled: 46px;
  --container: 1140px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.45);
}
.btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--navy);
  background: var(--bg);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--bg); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(11, 31, 58, 0.04);
  transition:
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.nav.is-scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom-color: rgba(209, 219, 232, 0.6);
  box-shadow: 0 10px 40px rgba(11, 31, 58, 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: var(--logo-h);
  width: auto;
  object-fit: contain;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled .nav__logo img {
  height: var(--logo-h-scrolled);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--navy); }

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  border-radius: 8px;
}
.nav__toggle:hover { background: var(--bg); }

.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 16px;
}

.nav__menu.is-open { display: block; }
.nav__menu a {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
}
.nav__menu a:hover { background: var(--bg); }
.nav__menu .btn { margin-top: 8px; width: 100%; }

body.nav-open { overflow: hidden; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  :root {
    --nav-h: 88px;
    --nav-h-scrolled: 76px;
    --logo-h: 80px;
    --logo-h-scrolled: 54px;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 68px;
    --nav-h-scrolled: 60px;
    --logo-h: 52px;
    --logo-h-scrolled: 44px;
  }
}

/* ─── Section utilities ─── */
.section { padding: 72px 0; }
.section--dark { background: var(--navy); color: #cbd5e1; }
.section--bg { background: var(--bg); }
.section--warm { background: var(--bg-warm); }

.section__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section--dark .section__label { color: var(--gold-light); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.section--dark .section__title { color: var(--white); }

.section__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}
.section--dark .section__lead { color: #94a3b8; }
.contact__lead { margin-top: 16px; }
.contact__lead strong { color: var(--navy); }

.section__header { margin-bottom: 48px; }
.section__header--center { text-align: center; }
.section__header--center .section__lead { margin-left: auto; margin-right: auto; }

/* ─── Hero ─── */
.hero {
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: 40px;
  background: var(--white);
}

.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.35);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6d15;
  margin-bottom: 20px;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--gold); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
}
.hero__title em {
  font-style: normal;
  color: #8a6d15;
}

.hero__text {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
}
.hero__text strong { color: var(--navy); font-weight: 700; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}
.hero__tag svg { width: 14px; height: 14px; color: var(--gold); }

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero__photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero__photo-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  max-height: 480px;
}

.hero__photo-meta {
  padding: 16px 20px;
  background: var(--navy);
  text-align: center;
}
.hero__photo-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
}
.hero__photo-meta span {
  font-size: 0.8125rem;
  color: var(--gold-light);
}

@media (min-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .btn--full-mobile { width: auto; }
}

/* ─── Stats bar ─── */
.stats {
  background: var(--navy);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stats__value--white { color: var(--white); }

.stats__label {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .stats__item + .stats__item { border-left: 1px solid rgba(255,255,255,0.12); }
}

/* ─── Process ─── */
.process__grid {
  display: grid;
  gap: 20px;
}

.process__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 800;
}
.process__card h3 {
  margin-top: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}
.process__card p {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── About ─── */
.about__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.about__role {
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}
.about__text p {
  margin-top: 16px;
  line-height: 1.75;
}
.about__text p:first-of-type { margin-top: 20px; }
.about__text strong { color: var(--navy); }
.about__card-em { color: #fff; }

.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.about__cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}
.about__cred svg { width: 16px; height: 16px; color: var(--gold); }

.about__card {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}
.about__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201,162,39,0.15);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.3;
}
.about__card p { margin-top: 14px; line-height: 1.7; font-size: 0.9375rem; }
.about__card .btn { margin-top: 24px; }

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ─── Services ─── */
.services__grid {
  display: grid;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(201,162,39,0.4);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  margin-bottom: 16px;
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.service-card__sub {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8a6d15;
}
.service-card__summary {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.service-card__details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
.service-card__link:hover { color: #8a6d15; }

.services__cta { text-align: center; margin-top: 40px; }

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── CTA strip ─── */
.cta-strip {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--white);
  line-height: 1.25;
}
.cta-strip p {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 1.0625rem;
  color: #94a3b8;
  line-height: 1.65;
}
.cta-strip__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}
@media (min-width: 640px) {
  .cta-strip__actions { flex-direction: row; justify-content: center; }
}

/* ─── Credentials ─── */
.credentials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.credential-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
}
.credential-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  margin-bottom: 12px;
}
.credential-card__icon svg { width: 24px; height: 24px; }
.credential-card__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}
.credential-card__value {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}

@media (min-width: 768px) {
  .credentials__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Partners marquee ─── */
.partners {
  margin-top: 56px;
  background: linear-gradient(180deg, #0a192f 0%, var(--navy) 100%);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 40px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.partners__title {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.partners__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners__track {
  display: flex;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}
.partners__track:hover { animation-play-state: paused; }

.partners__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
}

.partners__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 44px;
  min-width: 80px;
}

.partners__item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.partners__track:hover .partners__item img { opacity: 0.72; }
.partners__item:hover img { opacity: 1; }

@media (min-width: 768px) {
  .partners__item { height: 48px; }
  .partners__item img { height: 40px; max-width: 160px; }
}

@keyframes partners-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ─── Testimonials ─── */
.testimonials__grid {
  display: grid;
  gap: 20px;
}

.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  line-height: 1;
}
.testimonial__stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.testimonial footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
}
.testimonial span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Contact ─── */
.contact__grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
}
.contact__info-item:first-of-type { margin-top: 24px; }
.contact__info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(201,162,39,0.12);
  color: #8a6d15;
}
.contact__info-icon svg { width: 20px; height: 20px; }
.contact__info-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
}
.contact__info-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.form-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.form-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.form-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}
.form-feedback--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.form-feedback[hidden] { display: none; }

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ─── Footer ─── */
.footer {
  background: linear-gradient(180deg, #081829 0%, var(--navy) 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer__top-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: 0.85;
}

.footer__grid {
  display: grid;
  gap: 36px;
  padding: 48px 20px 40px;
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__tagline {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer__badges li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer__heading {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s, transform 0.2s;
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer__contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  opacity: 0.85;
}

.footer__contact a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.footer__contact a:hover { color: var(--white); }

.footer__cta {
  margin-top: 20px;
  padding: 12px 22px;
  font-size: 0.875rem;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.footer__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.footer__copy {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer__legal a {
  font-size: 0.8125rem;
  color: #64748b;
  transition: color 0.2s;
}

.footer__legal a:hover { color: var(--gold-light); }

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .footer__bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .footer__logo img { height: 42px; }
  .footer__cta { width: 100%; }
  .footer__bar-inner {
    padding-bottom: calc(20px + 72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ─── Mobile sticky CTA ─── */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(11,31,58,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; }

@media (min-width: 768px) {
  .mobile-cta { display: none; }
  main { padding-bottom: 0; }
}
main { padding-bottom: 80px; }

/* ─── Animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav__logo img,
  .nav__inner {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
  .partners__viewport { overflow-x: auto; scrollbar-width: none; }
  .partners__viewport::-webkit-scrollbar { display: none; }
  .fade-in { opacity: 1; transform: none; }
}

/* ─── Legal pages ─── */
.legal-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 16px 0;
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-header__inner img { height: 44px; width: auto; object-fit: contain; }
.legal-header__inner a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.legal-header__inner a:hover { color: var(--gold); }

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.legal-main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
}
.legal-main > p { margin-top: 8px; font-size: 0.875rem; color: var(--text-muted); }
.legal-main section { margin-top: 32px; }
.legal-main h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}
.legal-main p, .legal-main li {
  margin-top: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-main ul { padding-left: 20px; list-style: disc; }

/* ─── A11y / UX additions ─── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn:focus-visible,
.form-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav__links a:not(.btn).is-active {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.section--defer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.form-group.is-invalid .form-input {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-error {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b91c1c;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.contact__channels .btn {
  padding: 12px 18px;
  font-size: 0.875rem;
}

.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}
.wa-fab:hover { background: #0f7a6e; transform: translateY(-2px); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab[hidden] { display: none !important; }

@media (max-width: 767px) {
  .wa-fab {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
}
