/* ============================================================
   JURIS — Redesign 2026
   ============================================================ */

/* ── 1. Custom Properties ── */
:root {
  --clr-primary:      #a2303c;
  --clr-primary-dark: #7d2430;
  --clr-primary-light:#c94455;
  --clr-primary-bg:   rgba(162,48,60,0.07);
  --clr-bg:           #f8f7f5;
  --clr-surface:      #ffffff;
  --clr-text:         #111827;
  --clr-muted:        #6b7280;
  --clr-border:       rgba(0,0,0,0.08);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.18);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --dur:        0.26s;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-head:  'Poppins', system-ui, sans-serif;
  --section-py: 96px;
  --header-h:   72px;
}

/* ── 2. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
ul { list-style: none; }

/* ── 3. Typography helpers ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.section-divider {
  width: 44px; height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
  margin: 0.9rem auto 1.25rem;
}
.section-center { text-align: center; }

/* ── 4. Section padding ── */
section { padding: var(--section-py) 0; }

/* ── 5. Buttons ── */
.btn-juris {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-juris-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(162,48,60,0.3);
}
.btn-juris-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(162,48,60,0.4);
  color: #fff;
}
.btn-juris-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-juris-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-hero-white {
  background: #fff;
  color: var(--clr-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.btn-hero-white:hover {
  background: #fbbf24;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  position: relative;
  overflow: visible;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Radar pulse dot */
.radar-dot {
  position: absolute;
  top: -7px; right: -7px;
  width: 14px; height: 14px;
  background: #fbbf24;
  border-radius: 50%;
  z-index: 2;
}
.radar-dot::before,
.radar-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fbbf24;
  opacity: 0;
  animation: radarPulse 2.2s ease-out infinite;
}
.radar-dot::after { animation-delay: 1.1s; }
@keyframes radarPulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  100% { transform: scale(4);   opacity: 0; }
}

/* ── 6. Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#header .logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: filter var(--dur) var(--ease);
}
#header.transparent .logo img { filter: brightness(0) invert(1); }
#header.transparent { background: transparent; }
#header.scrolled {
  background: var(--clr-surface);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* Main nav */
.main-nav ul { display: flex; align-items: center; gap: 0.15rem; }
.main-nav ul li a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--dur) var(--ease);
  color: var(--clr-text);
}
.main-nav ul li a:hover,
.main-nav ul li.active a { color: var(--clr-primary); background: var(--clr-primary-bg); }
#header.transparent .main-nav ul li a { color: rgba(255,255,255,0.9); }
#header.transparent .main-nav ul li a:hover,
#header.transparent .main-nav ul li.active a { color: #fff; background: rgba(255,255,255,0.15); }
.lang-pill {
  padding: 0.4rem 1rem;
  border: 2px solid currentColor;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
/* Botão Descarregar na navbar */
.main-nav ul li a.nav-download-btn,
#header.transparent .main-nav ul li a.nav-download-btn {
  background: #fbbf24 !important;
  color: #111827 !important;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.main-nav ul li a.nav-download-btn:hover,
#header.transparent .main-nav ul li a.nav-download-btn:hover {
  background: #f59e0b !important;
  color: #111827 !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
#header.transparent .nav-toggle span { background: #fff; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--clr-surface);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { display: flex; flex-direction: column; }
.mobile-drawer ul li a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.mobile-drawer ul li a:hover { color: var(--clr-primary); }

/* ── 7. Hero ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(140deg, var(--clr-primary-dark) 0%, var(--clr-primary) 55%, #c94455 100%);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 15%, rgba(255,255,255,0.09) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0,0,0,0.12) 0%, transparent 40%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title span { color: #fbbf24; }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 450px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.1rem; }
.hero-visual { display: flex; justify-content: center; align-items: center; overflow: visible; }

/* Cards fan */
.cards-fan {
  position: relative;
  width: 560px;
  height: 480px;
  overflow: visible;
}
.fan-card {
  position: absolute;
  width: 300px;
  height: 400px;
  bottom: 0;
  left: 50%;
  margin-left: -150px;
  border-radius: 18px;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,0.92);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.3);
  transform-origin: bottom center;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.85s ease,
              filter 0.85s ease;
  will-change: transform, opacity, filter;
}
.fan-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fan-card--back  { transform: rotate(-16deg) translateX(-90px) scale(0.88); z-index: 1; opacity: 0.6; filter: brightness(0.75); }
.fan-card--mid   { transform: rotate(-3deg)  translateX(0px)   scale(0.94); z-index: 2; opacity: 0.82; filter: brightness(0.9); }
.fan-card--front { transform: rotate(12deg)  translateX(90px)  scale(1);    z-index: 3; opacity: 1;    filter: brightness(1); }

/* Estado de recolha antes de redistribuir */
.fan-card.fan-gathering {
  transform: rotate(0deg) translateX(0) scale(0.93);
  opacity: 0.72;
  filter: brightness(0.88);
  z-index: 4;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.32s ease,
              filter 0.32s ease;
}

.cards-fan:hover .fan-card--back  { transform: rotate(-20deg) translateX(-110px) scale(0.88); }
.cards-fan:hover .fan-card--mid   { transform: rotate(-3deg)  translateX(0px) translateY(-14px) scale(0.94); }
.cards-fan:hover .fan-card--front { transform: rotate(16deg)  translateX(110px) scale(1); }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  z-index: 2;
  animation: bounce 2.2s ease-in-out infinite;
  transition: color var(--dur) var(--ease);
}
.hero-scroll:hover { color: #fbbf24; }
.hero-scroll::after {
  content: '';
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.35);
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── 8. About ── */
#about { background: var(--clr-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}
.about-img-wrap { position: relative; display: flex; justify-content: center; }
.about-img-wrap img {
  max-height: 820px; width: 100%; object-fit: contain;
  animation: floatImg 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.about-badge {
  position: absolute; bottom: 1rem; right: 0;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-badge strong { display: block; font-size: 1.75rem; line-height: 1; }
.about-feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.about-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.25rem;
  transition: all var(--dur) var(--ease);
}
.about-feature:hover .about-icon { background: var(--clr-primary); color: #fff; }
.about-feature-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.3rem; }
.about-feature-text { font-size: 0.88rem; color: var(--clr-muted); line-height: 1.6; }
.mission-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mission-card {
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-left: 4px solid var(--clr-primary);
}
.mission-card h4 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.65rem; }
.mission-card p { font-size: 0.88rem; color: var(--clr-muted); line-height: 1.7; }

/* ── 9. Rights Banner ── */
#rights-banner {
  background: linear-gradient(140deg, var(--clr-primary-dark) 0%, var(--clr-primary) 60%, #c94455 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
}
#rights-banner::before {
  content: '';
  position: absolute;
  top: -30%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.rights-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
}
.rights-content {
  padding: 5rem 0 5rem;
  position: relative; z-index: 1;
}
.rights-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.rights-title span { color: #fbbf24; }
.rights-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.rights-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.rights-visual img {
  max-height: 520px;
  width: auto;
  display: block;
  filter: brightness(1.35) drop-shadow(0 -8px 32px rgba(0,0,0,0.2));
}

@media (max-width: 1024px) {
  .rights-inner { grid-template-columns: 1fr; }
  .rights-visual { display: none; }
  .rights-content { padding: 4rem 0; }
}

/* ── 9b. Services ── */
#services { background: var(--clr-bg); }
.laws-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.law-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  width: calc(33.333% - 1rem);
  min-width: 260px;
  border: 1px solid var(--clr-border);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.law-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.law-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.law-card:hover::before { transform: scaleX(1); }
.law-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--dur) var(--ease);
}
.law-icon i { font-size: 1.5rem; color: var(--clr-primary); transition: color var(--dur) var(--ease); }
.law-card:hover .law-icon { background: var(--clr-primary); }
.law-card:hover .law-icon i { color: #fff; }
.law-problem {
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-primary-bg);
  border-left: 3px solid var(--clr-primary);
  padding: 0.4rem 0.65rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.law-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.65rem; }
.law-desc { font-size: 0.86rem; color: var(--clr-muted); line-height: 1.65; }

/* ── 10. App CTA ── */
#Download {
  background: linear-gradient(140deg, var(--clr-primary-dark) 0%, var(--clr-primary) 60%, #c94455 100%);
  position: relative;
  overflow: hidden;
}
#Download::before {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.app-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative; z-index: 1;
}
.app-cta-content .section-eyebrow { color: rgba(255,255,255,0.65); }
.app-cta-content .section-title { color: #fff; }
.app-cta-desc { font-size: 1rem; color: rgba(255,255,255,0.78); margin: 1rem 0 2rem; line-height: 1.75; max-width: 460px; }
.app-features { margin-bottom: 2.5rem; }
.app-features li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}
.app-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.15rem;
}
.store-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btn { transition: all var(--dur) var(--ease); }
.store-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.store-btn img { height: 50px; width: auto; border-radius: 9px; }
.app-phone { display: flex; justify-content: center; }
.app-phone img {
  max-height: 460px;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,0.35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── 11. Gallery ── */
#gallery { background: var(--clr-surface); }
.gallery-filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--clr-border);
  background: transparent;
  color: var(--clr-muted);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover,
.filter-btn.is-active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.gallery-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  flex: 1 1 280px;
  height: 220px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(162,48,60,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-title { color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.gallery-overlay-sub { color: rgba(255,255,255,0.75); font-size: 0.78rem; }
.gallery-item.wide { flex: 2 1 460px; }

/* ── 12. Testimonials ── */
#testimonials { background: var(--clr-bg); }
.testimonial-item {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin: 0.5rem;
  border: 1px solid var(--clr-border);
  position: relative;
}
.testimonial-item::before {
  content: '\201C';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4.5rem;
  font-family: Georgia, serif;
  color: var(--clr-primary-bg);
  line-height: 1;
}
.testimonial-item p { font-size: 0.95rem; color: var(--clr-muted); font-style: italic; line-height: 1.75; margin-bottom: 1.5rem; }
.t-author { display: flex; align-items: center; gap: 0.85rem; }
.t-avatar-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--clr-primary-bg);
}
.t-avatar {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.t-name { font-weight: 700; font-size: 0.93rem; }
.t-stars { color: #f59e0b; font-size: 0.8rem; margin-top: 0.2rem; }

/* Owl Carousel dots override */
.owl-dots { text-align: center; margin-top: 2rem; }
.owl-dot span {
  width: 8px; height: 8px;
  background: var(--clr-border);
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  transition: all var(--dur) var(--ease);
}
.owl-dot.active span { background: var(--clr-primary); width: 22px; border-radius: 4px; }

/* ── 13. Partners ── */
#clients { background: var(--clr-surface); padding: 68px 0; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.partner-cell {
  flex: 1 1 calc(25% - 1px);
  min-width: 160px;
  min-height: 110px;
  background: var(--clr-surface);
  display: flex; align-items: center; justify-content: center;
  padding: 1.75rem 2rem;
  transition: background var(--dur) var(--ease);
}
.partner-cell:hover { background: var(--clr-bg); }
.partner-cell img {
  max-height: 80px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.6) opacity(0.85);
  transition: filter 0.35s var(--ease);
}
.partner-cell:hover img { filter: grayscale(0) opacity(1); }

/* ── 14. Videos (Coverflow) ── */
#videos {
  background: var(--clr-bg);
  padding-bottom: var(--section-py);
  overflow: hidden;
}

/* ── Coverflow wrapper ── */
.coverflow-outer {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
}
.coverflow-stage {
  position: relative;
  height: 400px;
  perspective: 1400px;
}

/* ── Cards ── */
.yt-card {
  position: absolute;
  width: 500px;
  left: 50%;
  top: 50%;
  margin-left: -250px;
  margin-top: -175px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1),
              opacity  0.65s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity;
}
.yt-card[data-pos="0"]  {
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 10; opacity: 1;
}
.yt-card[data-pos="1"]  {
  transform: translateX(390px) rotateY(-44deg) scale(0.78);
  z-index: 7; opacity: 0.88;
}
.yt-card[data-pos="-1"] {
  transform: translateX(-390px) rotateY(44deg) scale(0.78);
  z-index: 7; opacity: 0.88;
}
.yt-card[data-pos="2"]  {
  transform: translateX(650px) rotateY(-60deg) scale(0.62);
  z-index: 5; opacity: 0.65;
}
.yt-card[data-pos="-2"] {
  transform: translateX(-650px) rotateY(60deg) scale(0.62);
  z-index: 5; opacity: 0.65;
}
.yt-card[data-pos="hide"] {
  transform: translateX(0) scale(0.3);
  z-index: 1; opacity: 0; pointer-events: none;
}
/* Glow under active card */
.yt-card[data-pos="0"]::after {
  content: '';
  position: absolute;
  bottom: -35px; left: 15%; width: 70%; height: 50px;
  background: radial-gradient(ellipse, rgba(80,120,255,0.25) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

/* ── Thumbnail ── */
.yt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.yt-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.45s var(--ease);
}
.yt-card[data-pos="0"]:not(.playing):hover .yt-thumb-wrap img { transform: scale(1.04); }
.yt-thumb-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.yt-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
}
/* ── Play button ── */
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  background: rgba(162,48,60,0.92);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.yt-card[data-pos="0"]:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--clr-primary);
}
.yt-card:not([data-pos="0"]) .yt-play-btn { opacity: 0.6; transform: translate(-50%,-50%) scale(0.85); }
.yt-play-btn svg { margin-left: 3px; }

/* ── Info bar ── */
.yt-info {
  padding: 0.85rem 1.1rem 1rem;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}
.yt-title {
  font-size: 0.9rem; font-weight: 600;
  line-height: 1.4; color: #fff;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-channel {
  font-size: 0.76rem; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 0.35rem;
}
.yt-channel .fa { color: #ff0000; font-size: 0.88rem; }

/* ── Nav buttons ── */
.cf-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  color: var(--clr-text); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 30;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cf-nav-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.cf-prev { left: 1.5rem; }
.cf-next { right: 1.5rem; }

/* ── Dots ── */
.cf-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin: 0 auto 2rem;
}
.cf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}
.cf-dot.active {
  background: var(--clr-primary);
  transform: scale(1.35);
}

/* ── CTA ── */
.videos-cta { text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .yt-card { width: 380px; margin-left: -190px; margin-top: -145px; }
  .yt-card[data-pos="1"]  { transform: translateX(290px) rotateY(-44deg) scale(0.78); }
  .yt-card[data-pos="-1"] { transform: translateX(-290px) rotateY(44deg) scale(0.78); }
  .yt-card[data-pos="2"]  { transform: translateX(490px) rotateY(-60deg) scale(0.62); }
  .yt-card[data-pos="-2"] { transform: translateX(-490px) rotateY(60deg) scale(0.62); }
  .coverflow-stage { height: 330px; }
}
@media (max-width: 560px) {
  .yt-card { width: 300px; margin-left: -150px; margin-top: -120px; }
  .yt-card[data-pos="1"]  { transform: translateX(220px) rotateY(-44deg) scale(0.78); }
  .yt-card[data-pos="-1"] { transform: translateX(-220px) rotateY(44deg) scale(0.78); }
  .yt-card[data-pos="2"]  { transform: translateX(380px) rotateY(-60deg) scale(0.62); }
  .yt-card[data-pos="-2"] { transform: translateX(-380px) rotateY(60deg) scale(0.62); }
  .coverflow-stage { height: 270px; }
  .cf-prev { left: 0.5rem; } .cf-next { right: 0.5rem; }
}

/* ── 15. Video Modal ── */
.yt-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.yt-modal.open { opacity: 1; pointer-events: auto; }

.yt-modal-inner {
  position: relative;
  width: min(860px, 100%);
}
.yt-modal-close {
  position: absolute;
  top: -46px; right: 0;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.yt-modal-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.1); }

.yt-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.yt-modal-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.yt-modal-title {
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── 16. Contact ── */
#contact { background: var(--clr-bg); }
.contact-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-info {
  background: linear-gradient(150deg, var(--clr-primary-dark), var(--clr-primary));
  padding: 2.75rem;
  color: #fff;
}
.contact-info h3 { font-size: 1.5rem; color: #fff; margin-bottom: 0.65rem; }
.contact-info > p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 2.5rem; line-height: 1.7; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-detail-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #fff;
}
.contact-detail-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem; }
.contact-detail-val { font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.contact-form-wrap { background: var(--clr-surface); padding: 2.75rem; }
.contact-form-wrap h3 { font-size: 1.35rem; margin-bottom: 2rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgroup { margin-bottom: 1.15rem; }
.finput {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.finput:focus { border-color: var(--clr-primary); background: var(--clr-surface); }
.finput::placeholder { color: var(--clr-muted); }
textarea.finput { resize: vertical; min-height: 130px; }
.form-loading, .form-error, .form-success {
  display: none;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.form-loading { background: #eff6ff; color: #2563eb; }
.form-error   { background: #fef2f2; color: #dc2626; }
.form-success { background: #f0fdf4; color: #16a34a; }
.contact-map { margin-top: 2rem; border-radius: var(--radius-sm); overflow: hidden; height: 240px; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ── 15. Footer ── */
#footer { background: #111827; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-bottom: 1.75rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-store-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; color: rgba(255,255,255,0.38); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ── 16. Floating elements ── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur) var(--ease);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--clr-primary-dark); transform: translateY(-3px); color: #fff; }
.whatsapp-fab {
  position: fixed;
  bottom: 5rem; right: 1.5rem;
  width: 52px; height: 52px;
  z-index: 900;
  transition: transform var(--dur) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* ── AI Chat FAB ── */
.ai-fab {
  position: fixed;
  bottom: 9.5rem; right: 1.5rem;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(162,48,60,0.35);
  z-index: 900;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(162,48,60,0.5);
}
.ai-fab svg { pointer-events: none; }

/* ── AI Popup hint ── */
.ai-popup {
  position: fixed;
  bottom: 11.8rem; right: 1.5rem;
  max-width: 220px;
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: 0.82rem;
  font-family: var(--font-body);
  line-height: 1.45;
  padding: 0.65rem 0.9rem;
  border-radius: 14px 14px 4px 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  z-index: 901;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ai-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* small tail */
.ai-popup::after {
  content: '';
  position: absolute;
  bottom: -7px; right: 20px;
  width: 13px; height: 13px;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  transform: rotate(45deg);
}

/* ── AI Chat Panel ── */
.ai-chat-panel {
  position: fixed;
  bottom: 9.5rem; right: 5.5rem;
  width: 340px;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  z-index: 950;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.ai-chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ai-chat-header {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}
.ai-chat-header-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-chat-header-info { flex: 1; }
.ai-chat-header-name { font-weight: 700; font-size: 0.95rem; font-family: var(--font-head); }
.ai-chat-header-status {
  font-size: 0.73rem; opacity: 0.85;
  display: flex; align-items: center; gap: 0.3rem;
}
.ai-chat-header-status::before {
  content: '';
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.ai-chat-close {
  background: none; border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer; padding: 4px; border-radius: 4px;
  font-size: 1.3rem; line-height: 1;
  transition: color var(--dur) var(--ease);
}
.ai-chat-close:hover { color: #fff; }
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 200px; max-height: 290px;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 4px; }
.ai-msg {
  max-width: 88%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-line;
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--clr-bg);
  border-bottom-left-radius: 4px;
  color: var(--clr-text);
}
.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-typing {
  align-self: flex-start;
  display: flex; align-items: center; gap: 4px;
  padding: 0.65rem 1rem;
  background: var(--clr-bg);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.ai-typing span {
  width: 7px; height: 7px;
  background: var(--clr-muted);
  border-radius: 50%;
  animation: dotBounce 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
.ai-chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.6rem 1rem 0.35rem;
  flex-shrink: 0;
}
.ai-suggestion-btn {
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
  background: var(--clr-primary-bg);
  color: var(--clr-primary);
  border: 1px solid rgba(162,48,60,0.2);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  font-family: var(--font-body);
}
.ai-suggestion-btn:hover { background: var(--clr-primary); color: #fff; }
.ai-chat-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--clr-border);
  display: flex; gap: 0.5rem; align-items: center;
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1;
  border: 1.5px solid var(--clr-border);
  border-radius: 20px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color var(--dur) var(--ease);
}
.ai-chat-input:focus { border-color: var(--clr-primary); }
.ai-chat-input::placeholder { color: var(--clr-muted); }
.ai-send-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  border: none; border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ai-send-btn:hover { transform: scale(1.1); box-shadow: 0 3px 12px rgba(162,48,60,0.3); }
.ai-send-btn svg { pointer-events: none; }

@media (max-width: 479px) {
  .ai-chat-panel { right: 0.75rem; left: 0.75rem; width: auto; bottom: 5.5rem; }
}

/* ── 17. Preloader ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--clr-surface);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s var(--ease);
}
#preloader.done { opacity: 0; pointer-events: none; }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--clr-primary-bg);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 18. Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mission-cards { grid-template-columns: 1fr; }
  .app-cta-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .app-cta-desc { margin-left: auto; margin-right: auto; }
  .store-btns { justify-content: center; }
  .contact-card { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .law-card { width: calc(50% - 0.75rem); }
  .frow { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item { flex: 1 1 240px; height: 190px; }
  .gallery-item.wide { flex: 1 1 240px; }
}

@media (max-width: 479px) {
  :root { --section-py: 52px; }
  .law-card { width: 100%; }
  .hero-title { font-size: 2.1rem; }
  .gallery-item { flex: 1 1 100%; height: 200px; }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
  .store-btns { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════
   19. MOBILE — Melhorias Abrangentes
   ═══════════════════════════════════════════════════ */

/* ── Drawer backdrop ── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* ── Drawer close button ── */
.drawer-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  background: var(--clr-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--clr-text);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer-close:hover { background: var(--clr-primary-bg); color: var(--clr-primary); }

/* ── Lang pill inside drawer ── */
.mobile-drawer .lang-pill {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.48rem 1.4rem;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  font-size: 0.86rem;
}

/* ── 1024px: Cards fan resize ── */
@media (max-width: 1024px) {
  .cards-fan { width: 400px; height: 360px; }
  .fan-card { width: 240px; height: 320px; margin-left: -120px; }
  .fan-card--back  { transform: rotate(-14deg) translateX(-78px) scale(0.88); }
  .fan-card--mid   { transform: rotate(-3deg)  translateX(0)    scale(0.94); }
  .fan-card--front { transform: rotate(10deg)  translateX(78px) scale(1); }
  .cards-fan:hover .fan-card--back  { transform: rotate(-18deg) translateX(-94px) scale(0.88); }
  .cards-fan:hover .fan-card--mid   { transform: rotate(-3deg) translateX(0) translateY(-12px) scale(0.94); }
  .cards-fan:hover .fan-card--front { transform: rotate(13deg) translateX(94px) scale(1); }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .hero-inner { padding: 2.5rem 1.25rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-val { font-size: 1.4rem; }
  .hero-stat-lbl { font-size: 0.72rem; }

  .cards-fan { width: 300px; height: 280px; }
  .fan-card { width: 186px; height: 248px; margin-left: -93px; border-width: 5px; }
  .fan-card--back  { transform: rotate(-13deg) translateX(-60px) scale(0.88); }
  .fan-card--mid   { transform: rotate(-3deg)  translateX(0)    scale(0.94); }
  .fan-card--front { transform: rotate(9deg)   translateX(60px) scale(1); }
  .cards-fan:hover .fan-card--back  { transform: rotate(-16deg) translateX(-74px) scale(0.88); }
  .cards-fan:hover .fan-card--mid   { transform: rotate(-3deg) translateX(0) translateY(-9px) scale(0.94); }
  .cards-fan:hover .fan-card--front { transform: rotate(12deg) translateX(74px) scale(1); }

  .about-img-wrap img { max-height: 480px; }
  .app-phone img { max-height: 320px; }
  .rights-content { padding: 3rem 0; }
  .rights-title { font-size: 2rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ── 479px ── */
@media (max-width: 479px) {
  .hero-inner { padding: 2rem 1rem; gap: 1.5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.85rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn-juris { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat-val { font-size: 1.2rem; }
  .hero-scroll { display: none; }

  .cards-fan { width: 240px; height: 226px; }
  .fan-card { width: 152px; height: 202px; margin-left: -76px; border-width: 4px; }
  .fan-card--back  { transform: rotate(-12deg) translateX(-48px) scale(0.88); }
  .fan-card--mid   { transform: rotate(-2deg)  translateX(0)    scale(0.94); }
  .fan-card--front { transform: rotate(9deg)   translateX(48px) scale(1); }
  .cards-fan:hover .fan-card--back  { transform: rotate(-15deg) translateX(-58px) scale(0.88); }
  .cards-fan:hover .fan-card--mid   { transform: rotate(-2deg) translateX(0) translateY(-7px) scale(0.94); }
  .cards-fan:hover .fan-card--front { transform: rotate(11deg) translateX(58px) scale(1); }

  .about-img-wrap img { max-height: 360px; }
  .about-badge { bottom: 0.5rem; right: 0.25rem; padding: 0.75rem 1rem; font-size: 0.76rem; }
  .about-badge strong { font-size: 1.4rem; }
  .mission-cards { gap: 1rem; }

  .app-phone img { max-height: 260px; }
  .store-btns { gap: 0.75rem; }

  .section-title { font-size: clamp(1.55rem, 5.5vw, 1.95rem); }
  .rights-title { font-size: 1.75rem; }

  .whatsapp-fab { bottom: 4.25rem; width: 46px; height: 46px; }
  .ai-fab { bottom: 8rem; width: 46px; height: 46px; }
  .ai-popup { bottom: 10.25rem; right: 1rem; max-width: 190px; }
  .back-to-top { width: 38px; height: 38px; font-size: 0.85rem; }

  .partner-cell { min-width: 120px; padding: 1.25rem 1rem; }
  .contact-info, .contact-form-wrap { padding: 1.5rem; }
  .contact-map { height: 180px; }
}

/* ── 360px: Ecrãs muito pequenos ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.85rem; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

  .cards-fan { width: 200px; height: 190px; }
  .fan-card { width: 126px; height: 168px; margin-left: -63px; border-width: 3px; }
  .fan-card--back  { transform: rotate(-11deg) translateX(-40px) scale(0.88); }
  .fan-card--mid   { transform: rotate(-2deg)  translateX(0)    scale(0.94); }
  .fan-card--front { transform: rotate(8deg)   translateX(40px) scale(1); }
}

/* ═══════════════════════════════════════════════════
   20. Mapa de Alcance — Moçambique
   ═══════════════════════════════════════════════════ */
.moz-map-wrap {
  margin-top: 1.75rem;
}
.moz-map-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Map image container with marker overlay */
.moz-map-container {
  position: relative;
  line-height: 0;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: transparent;
}
.moz-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.18);
}

/* City legend below map */
.moz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  margin-top: 0.7rem;
}
.moz-legend span {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}
