/* ===========================================================
   WR ASSESSORIA — Sistema visual
   Tipografia: Cormorant Garamond (display) + DM Sans (body)
   =========================================================== */

:root {
  /* Palette — light */
  --bg: #FFFFFF;
  --bg-soft: #F5F6FA;
  --bg-mute: #EEF0F6;
  --bg-ivory: #F4F1EA;     /* warm bone for contrast breaks */
  --bg-ivory-2: #EBE6DB;
  --bg-deep: #07142E;      /* deep navy for inverse sections */
  --bg-deeper: #050D20;

  --ink: #0A1628;
  --ink-soft: #4A5872;
  --ink-mute: #8893A8;
  --line: #E4E7EF;
  --line-soft: #EEF1F6;

  --navy: #0A2A6B;
  --navy-2: #14387A;
  --blue: #3B82F6;
  --blue-2: #5FA0FF;
  --blue-soft: #BFDBFE;
  --blue-glow: #7AB8E8;
  --warn: #DC2626;

  /* Tipografia */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geometria */
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

[data-theme="dark"] {
  --bg: #07111F;
  --bg-soft: #0C1A2E;
  --bg-mute: #122138;
  --bg-deep: #03080F;
  --bg-deeper: #02060C;
  --ink: #ECEFF6;
  --ink-soft: #A6B0C2;
  --ink-mute: #6B7689;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.05);
  --navy: #3B82F6;
  --navy-2: #5FA0FF;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
/* Garantir que [hidden] sempre vence qualquer display de classe */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

/* ---------------- Type ---------------- */
.display, h1, h2, h3, .h-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display-xl { font-size: clamp(58px, 9vw, 152px); font-weight: 500; letter-spacing: -0.025em; }
.display-lg { font-size: clamp(44px, 6.5vw, 96px); }
.display-md { font-size: clamp(34px, 4.5vw, 64px); }
.display-sm { font-size: clamp(26px, 3vw, 44px); }

.italic-accent { font-style: italic; font-weight: 400; color: var(--navy); }
[data-theme="dark"] .italic-accent { color: var(--blue-2); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--navy);
}
.eyebrow.eyebrow-light { color: var(--blue-glow); }
.eyebrow.eyebrow-light::before { background: var(--blue-glow); }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-soft); }
.tiny { font-size: 12px; letter-spacing: 0.05em; }

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(96px, 14vh, 180px); position: relative; }
.section-tight { padding-block: clamp(64px, 8vh, 96px); }
.section-deep { background: var(--bg-deep); color: #fff; }
.section-deep h1, .section-deep h2, .section-deep h3, .section-deep .display { color: #fff; }
.section-deep .muted, .section-deep .lead { color: rgba(255,255,255,0.7); }
.section-soft { background: var(--bg-soft); }
.section-ivory {
  background: var(--bg-ivory);
  color: var(--ink);
}
[data-theme="dark"] .section-ivory {
  background: var(--bg-soft);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease-out), background-color .25s, color .25s, border-color .25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow {
  display: inline-block;
  width: 18px; height: 18px;
  position: relative;
  transition: transform .4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #08246a; }
.btn-wa { background: #25D366; color: #062B12; }
.btn-wa:hover { background: #2BE070; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,0.25); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 20px 34px; font-size: 16px; }

/* ---------------- Header / Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .5s var(--ease-out);
  pointer-events: none;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  transition: all .55s var(--ease-out);
  border-radius: 999px;
  padding: 12px 12px 12px 24px;
}
.nav.over-light .nav-inner { background: transparent; }
.nav.scrolled { padding-block: 14px; }
.nav.scrolled .nav-inner {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px -20px rgba(10,22,40,0.18);
  max-width: 980px;
  margin-inline: auto;
}
[data-theme="dark"] .nav.scrolled .nav-inner {
  background: rgba(7,17,31,0.78);
  border-color: rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color .4s, transform .4s var(--ease-out);
}
.nav-logo img {
  height: 38px; width: auto;
  transition: height .5s var(--ease-out), filter .4s;
}
.nav.scrolled .nav-logo img { height: 30px; }
.nav-logo-tagline {
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  transition: opacity .4s, max-height .5s;
}
.nav.scrolled .nav-logo-tagline { opacity: 0; max-height: 0; }
.nav.over-hero .nav-logo,
.nav.over-hero .nav-link { color: #fff; }
.nav.over-hero .nav-logo-tagline { color: rgba(255,255,255,0.6); }
.nav.over-hero .nav-logo img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .4s;
}
.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  position: relative;
  transition: color .25s;
}
.nav-link:hover { color: var(--navy); }
.nav.over-hero .nav-link:hover { color: var(--blue-glow); }
.nav-cta-group { display: flex; align-items: center; gap: 8px; }
.nav-theme {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: all .3s;
}
.nav-theme:hover { transform: rotate(20deg); border-color: var(--navy); }
.nav.over-hero .nav-theme {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.nav-burger { display: none; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(120px, 16vh, 180px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 20% 20%, #14387A 0%, #07142E 50%, #03070F 100%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(122,184,232,.45), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(59,130,246,.35), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(191,219,254,.2), transparent 50%);
  filter: blur(40px);
  animation: aurora 22s var(--ease-in-out) infinite alternate;
  z-index: -1;
}
.hero-bg::after {
  animation-duration: 30s;
  animation-delay: -10s;
  mix-blend-mode: screen;
  opacity: .7;
}
@keyframes aurora {
  0%   { transform: translate(0,0) scale(1)   rotate(0deg); }
  50%  { transform: translate(6%,-3%) scale(1.15) rotate(8deg); }
  100% { transform: translate(-4%,4%) scale(1.05) rotate(-6deg); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,20,46,0) 40%, rgba(3,7,15,.85) 100%);
  pointer-events: none;
}
/* Big watermark W */
.hero-watermark {
  position: absolute;
  right: -3vw; bottom: -8vh;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(380px, 55vw, 820px);
  line-height: .8;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.hero-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 6vh, 80px);
}
.hero-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex; gap: 14px; align-items: center;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-glow); animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8.5vw, 148px);
  line-height: .95;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-headline .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-glow);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: clamp(48px, 8vh, 96px);
}
.hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Marquee at hero bottom */
.marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: rgba(3,7,15,0.4);
  backdrop-filter: blur(8px);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 56px;
}
.marquee-item::after {
  content: "·";
  color: rgba(255,255,255,0.4);
  font-style: normal;
  font-size: 22px;
  margin-left: -28px;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll cue removed for cleaner hero */

/* ---------------- Section header ---------------- */
.section-head {
  max-width: 980px;
  margin-bottom: clamp(56px, 8vh, 96px);
}
.section-head .eyebrow { margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head .lead {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.3vw, 20px);
}

/* ---------------- Sobre ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.about-text h2 { margin-bottom: 28px; }
.about-text p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
}
.about-pullquote {
  margin: 36px 0 0;
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--navy);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 500;
  max-width: 28ch;
}
[data-theme="dark"] .about-pullquote { border-left-color: var(--blue-2); }
.about-pullquote .who {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.about-stat .n {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
[data-theme="dark"] .about-stat .n { color: var(--blue-2); }
.about-stat .label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.4;
}

/* Stacked photo composition */
.about-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  padding-top: 12px;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-mute);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .12;
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}
.about-photo .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  z-index: 3;
}
.about-photo.tall {
  grid-row: span 2;
  aspect-ratio: 4/5;
  background: #07142E;
}
.about-photo.short-1 {
  aspect-ratio: 5/4;
  background: #14387A;
}
.about-photo.short-2 {
  aspect-ratio: 5/4;
  background: #1E3A5F;
}
.about-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  z-index: 1;
}
.about-photo.short-1 > img,
.about-photo.short-2 > img {
  object-position: center;
}

.about-badge {
  position: absolute;
  top: -14px; right: -14px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  z-index: 4;
  box-shadow: 0 20px 40px -20px rgba(10,22,40,0.18);
  transform: rotate(-6deg);
}
.about-badge .since {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.about-badge .year {
  font-size: 34px;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
[data-theme="dark"] .about-badge .year { color: var(--blue-2); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 540px; }
}

/* ---------------- Serviços ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-deep .services-grid {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.service-card {
  padding: clamp(36px, 4vw, 56px);
  background: var(--bg);
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
  transition: background .4s;
  min-height: 360px;
}
.section-deep .service-card { background: var(--bg-deep); }
.service-card:hover { background: var(--bg-soft); }
.section-deep .service-card:hover { background: #0A1E40; }

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-mute);
}
.service-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(56px, 5vw, 84px);
  line-height: 1;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  transition: transform .6s var(--ease-out), color .4s;
  align-self: flex-start;
}
[data-theme="dark"] .service-roman { color: var(--blue-2); }
.service-card:hover .service-roman {
  transform: translateX(8px);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.section-deep .service-card h3 { color: #fff; }
.service-card p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}
.service-card .link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--navy);
  transition: gap .3s;
}
[data-theme="dark"] .service-card .link,
.section-deep .service-card .link { color: var(--blue-glow); }
.service-card:hover .link { gap: 16px; }

.service-card .feature-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.service-card .feature-list li {
  display: flex; align-items: center; gap: 10px;
}
.service-card .feature-list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-deep .service-card .feature-list { color: rgba(255,255,255,0.65); }
.section-deep .service-card .feature-list li::before { background: var(--blue-glow); }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------------- Stats counter strip ---------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stats-cell {
  padding: 48px clamp(20px, 3vw, 40px);
  background: var(--bg-deep);
  text-align: left;
}
.stats-cell .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex; align-items: baseline; gap: 4px;
}
.stats-cell .num .suffix { font-size: .5em; color: var(--blue-glow); font-style: italic; }
.stats-cell .label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  max-width: 26ch;
}
@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Why us / Pillars ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
}
.pillar {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid rgba(10,22,40,0.12);
}
.pillar .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(38px, 3.5vw, 54px);
  color: var(--navy);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .pillar .roman { color: var(--blue-2); }
.pillar h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}
.pillar p { color: var(--ink-soft); margin: 0; max-width: 42ch; }
@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- Depoimentos ---------------- */
.testimonials {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: end;
}
.t-track-wrap {
  overflow: hidden;
  margin-right: calc(-1 * var(--gutter));
}
.t-track {
  display: flex;
  gap: 28px;
  transition: transform .8s var(--ease-out);
}
.t-card {
  flex: 0 0 clamp(300px, 32vw, 440px);
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 24px;
  min-height: 320px;
}
[data-theme="dark"] .t-card { background: var(--bg-soft); }
.t-card .stars { display: flex; gap: 4px; color: #F5A623; font-size: 14px; }
.t-card blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  flex: 1;
}
.t-author {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-ivory);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  border: 1px solid var(--bg-ivory-2);
}
[data-theme="dark"] .t-avatar {
  background: rgba(255,255,255,0.06);
  color: var(--blue-glow);
  border-color: rgba(255,255,255,0.08);
}
.t-author .name { font-weight: 500; font-size: 14px; color: var(--ink); }
.t-author .role { font-size: 12px; color: var(--ink-soft); }

.t-controls { display: flex; gap: 8px; margin-top: 32px; }
.t-controls button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: all .3s;
}
.t-controls button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.google-badge {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  margin-top: 24px;
}
.google-badge .g-rating { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1; }
.google-badge .g-stars { color: #F5A623; font-size: 13px; letter-spacing: 2px; }
.google-badge .g-label { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.google-badge .g-logo {
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  background: conic-gradient(from 0deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
  color: #fff;
  position: relative;
}
.google-badge .g-logo::after {
  content: "G";
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: conic-gradient(from 0deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
}

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 32px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  color: var(--ink);
  transition: color .3s;
}
.faq-q:hover { color: var(--navy); }
[data-theme="dark"] .faq-q:hover { color: var(--blue-2); }
.faq-q .plus {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 18px;
  transition: transform .4s var(--ease-out), background .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out);
}
.faq-a-inner {
  padding: 0 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 72ch;
}

/* ---------------- Contato ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-row .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.contact-row .value {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  color: #fff;
  line-height: 1.3;
}
.contact-row .value a:hover { color: var(--blue-glow); }
.contact-row .value-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
}
.contact-form p { color: rgba(255,255,255,0.6); margin: 0 0 28px; font-size: 14px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 10px 0 14px;
  color: #fff;
  font-size: 16px;
  transition: border-color .3s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-bottom-color: var(--blue-glow); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row select { appearance: none; }
.form-row select option { background: var(--bg-deep); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------------- Floating WhatsApp ---------------- */
.float-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 14px;
  background: #25D366;
  color: #062B12;
  border-radius: 999px;
  box-shadow: 0 20px 50px -10px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .4s var(--ease-out), box-shadow .4s;
  font-weight: 500;
  font-size: 14px;
}
.float-wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 28px 60px -10px rgba(37, 211, 102, 0.55), 0 8px 20px rgba(0,0,0,0.2); }
.float-wa-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: #25D366;
  flex-shrink: 0;
  position: relative;
}
.float-wa-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: ring 2.4s var(--ease-out) infinite;
  z-index: -1;
}
@keyframes ring {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 600px) {
  .float-wa .label { display: none; }
  .float-wa { padding: 14px; }
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--bg-deeper);
  color: rgba(255,255,255,0.75);
  padding-top: 100px;
  padding-bottom: 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer-brand p { color: rgba(255,255,255,0.55); margin: 0 0 24px; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all .3s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color .3s; }
.footer-col a:hover { color: var(--blue-glow); }

.footer-bottom {
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-mega {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(80px, 22vw, 360px);
  line-height: .85;
  font-weight: 500;
  color: rgba(255,255,255,0.04);
  text-align: center;
  margin: 60px 0 -20px;
  letter-spacing: -0.03em;
  user-select: none;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------------- Reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Word-by-word reveal for headlines */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal.in .split-word > span,
.in .split-word > span { transform: translateY(0); }
.split-word.delay-1 > span { transition-delay: .05s; }
.split-word.delay-2 > span { transition-delay: .1s; }
.split-word.delay-3 > span { transition-delay: .15s; }
.split-word.delay-4 > span { transition-delay: .2s; }
.split-word.delay-5 > span { transition-delay: .25s; }
.split-word.delay-6 > span { transition-delay: .3s; }
.split-word.delay-7 > span { transition-delay: .35s; }
.split-word.delay-8 > span { transition-delay: .4s; }

/* ---------------- Inverse / Section transitions ---------------- */
.cta-band {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 20px 0 0; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -10%; top: 50%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,184,232,0.3), transparent 70%);
  transform: translateY(-50%);
  filter: blur(40px);
}
@media (max-width: 900px) {
  .cta-band-grid { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}

/* ---------------- Galeria preview bento ---------------- */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin-top: 56px;
}
.gallery-bento .g-item {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #14387A, #5FA0FF);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .5s var(--ease-out);
}
.gallery-bento .g-item:hover { transform: translateY(-4px); }
.gallery-bento .g-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px; left: 20px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
}
.gallery-bento .g-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, transparent 50%);
  z-index: 1;
}
.gallery-bento .g-item > * { position: relative; z-index: 2; }
.gallery-bento .g1 { grid-column: span 3; grid-row: span 2; background: #07142E url("/assets/treinamento.webp") center/cover no-repeat; }
.gallery-bento .g2 { grid-column: span 3; background: linear-gradient(135deg, #14387A, #7AB8E8); }
.gallery-bento .g3 { grid-column: span 2; background: linear-gradient(135deg, #1E3A5F, #5FA0FF); }
.gallery-bento .g4 { grid-column: span 1; background: linear-gradient(135deg, #0A2A6B, #BFDBFE); }
@media (max-width: 900px) {
  .gallery-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 200px); }
  .gallery-bento .g1, .gallery-bento .g2, .gallery-bento .g3, .gallery-bento .g4 { grid-column: span 1; grid-row: auto; }
}

/* ---------------- Blog mention ---------------- */
.blog-band {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.blog-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .4s var(--ease-out);
}
.blog-card:hover { transform: translateX(6px); border-color: var(--navy); }
.blog-card .thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(135deg, #14387A, #7AB8E8);
}
.blog-card .thumb-2 { background: linear-gradient(135deg, #07142E, #5FA0FF); }
.blog-card .thumb-3 { background: linear-gradient(135deg, #1E3A5F, #BFDBFE); }
.blog-card .date {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.blog-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}
.blog-card .tag {
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.05em;
}
@media (max-width: 900px) {
  .blog-band { grid-template-columns: 1fr; }
}

/* ---------------- Guias page ---------------- */
.page-hero {
  padding: 200px 0 60px;
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,0.7); margin-top: 24px; max-width: 60ch; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -100px; bottom: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,184,232,0.2), transparent 70%);
  filter: blur(40px);
}

.search-bar {
  display: flex; align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  max-width: 600px;
  margin-top: 40px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.2);
}
[data-theme="dark"] .search-bar { background: var(--bg-mute); }
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 12px 0;
}
.search-bar button {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 48px;
}
.filter-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink-soft);
  transition: all .25s;
  white-space: nowrap;
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink-mute); }
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-pill .count { opacity: .6; margin-left: 6px; }

.guias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.guia-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 16px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.guia-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(10,42,107,0.2);
}
.guia-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.guia-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.guia-card .cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.guia-card .arrow-link {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

/* ---------------- Galeria page ---------------- */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 200px;
}
.gp-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #14387A, #7AB8E8);
  cursor: pointer;
  transition: transform .5s var(--ease-out);
}
.gp-item:hover { transform: scale(1.02); }
.gp-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}

/* gallery layout variations */
.gp-item.tall { grid-row: span 2; }
.gp-item.wide { grid-column: span 6; }
.gp-item.med { grid-column: span 4; }
.gp-item.small { grid-column: span 3; }

@media (max-width: 900px) {
  .gallery-page-grid { grid-template-columns: repeat(6, 1fr); }
  .gp-item.wide { grid-column: span 6; }
  .gp-item.med { grid-column: span 3; }
  .gp-item.small { grid-column: span 3; }
}

/* ---------------- Mobile nav ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-group .btn:not(.btn-wa) { display: none; }
  .nav-burger {
    display: inline-flex;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    align-items: center; justify-content: center;
  }
  .nav.over-hero .nav-burger {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 100px var(--gutter) 60px;
  display: flex; flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .6s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .close {
  position: absolute; top: 24px; right: var(--gutter);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- Misc helpers ---------------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.spacer-sm { height: 32px; }
.spacer { height: 56px; }
.spacer-lg { height: 96px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }

.divider-mega {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(10,42,107,0.25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  padding: 40px 0;
  letter-spacing: -0.025em;
  user-select: none;
  font-weight: 500;
  opacity: .35;
}
[data-theme="dark"] .divider-mega {
  background: linear-gradient(180deg, var(--blue-2) 0%, rgba(122,184,232,0.2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .45;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
}

/* ===========================================================
   Gallery — dynamic items with real images
   =========================================================== */
button.gp-item {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
}
.gp-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s var(--ease-out);
}
.gp-item:hover img { transform: scale(1.04); }

/* Skeleton shimmer while loading */
.gp-item.skeleton {
  background: linear-gradient(110deg, #E4E7EF 8%, #F5F6FA 25%, #E4E7EF 42%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
}
.gp-item.skeleton::after,
.gp-item.skeleton::before { display: none; }
@keyframes skeletonShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
[data-theme="dark"] .gp-item.skeleton {
  background: linear-gradient(110deg, #0C1A2E 8%, #122138 25%, #0C1A2E 42%);
  background-size: 200% 100%;
}

.gallery-empty {
  margin-top: 60px;
  text-align: center;
  padding: 60px 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gallery filter pill counts */
.filter-pills .filter-pill .count {
  opacity: .55;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* ===========================================================
   Lightbox (galeria pública)
   =========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.94);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lbFade .25s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(95vw, 1400px);
}
.lightbox img {
  max-width: 95vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  object-fit: contain;
  background: #07142E;
}
.lightbox figcaption {
  color: rgba(255,255,255,.92);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  max-width: 80%;
}
.lightbox figcaption:empty { display: none; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, transform .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translate(-3px, -50%); }
.lightbox-next:hover { transform: translate(3px, -50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* Footer admin link */
.footer-admin-link {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color .2s;
  text-decoration: none;
}
.footer-admin-link:hover { color: var(--blue-glow); }

/* Homepage gallery preview - dynamic images */
.gallery-bento .g-item-photo {
  background: var(--bg-mute);
  display: block;
}
.gallery-bento .g-item-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s var(--ease-out);
}
.gallery-bento .g-item-photo:hover img { transform: scale(1.04); }
