/* —— Estética tapete persa: campo em vinho, bordadura azul-índigo, fios dourados, marfim — */
:root {
  --sand-50: #fdfaf6;
  --sand-100: #f4ebe0;
  --sand-200: #e0d2c0;
  --rug-navy: #1c2840;
  --rug-navy-light: #2a3a5c;
  --emerald-800: #3d1820;
  --emerald-700: #6b2432;
  --emerald-600: #8b3342;
  --gold-400: #e0c078;
  --gold-500: #c9a24d;
  --gold-600: #9a7328;
  --night: #120c10;
  --text: #2a181c;
  --muted: #6b5558;
  --card: #fffdf9;
  --rug-field: #5c1f2a;
  /* Hero castanho (fundo sólido / degradé suave) */
  --hero-brown: #5c4033;
  --hero-brown-mid: #4a362c;
  --hero-brown-deep: #3d2a22;
  --hero-fg: #faf6f0;
  --hero-fg-soft: rgba(250, 246, 240, 0.88);
  --arabesque-gold: rgba(224, 192, 120, 0.55);
  --arabesque-gold-soft: rgba(201, 162, 77, 0.35);
  --rug-shadow: 58, 24, 32;
  --shadow: 0 12px 40px rgba(var(--rug-shadow), 0.14);
  --radius: 14px;
  --font-ar: "Noto Naskh Arabic", "Amiri", serif;
  --font-display: "Amiri", "Noto Naskh Arabic", Georgia, serif;
  --font-nav: "El Messiri", "Cairo", system-ui, sans-serif;
  --font-ui: "Cairo", system-ui, sans-serif;
  --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand-100);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(107, 36, 50, 0.07), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(28, 40, 64, 0.06), transparent 45%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(201, 162, 77, 0.09), transparent 48%);
  min-height: 100vh;
}

/* Tipografia árabe */
.ar {
  font-family: var(--font-ar);
  font-size: 1.25em;
  direction: rtl;
  unicode-bidi: embed;
}

h1, h2, h3, .heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--emerald-800);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin-top: 0;
}

/* Título de secção (alfabeto): traço arabesco discreto */
.heading-display {
  position: relative;
  display: inline-block;
  width: 100%;
}

.heading-display::after {
  content: "";
  display: block;
  margin-top: 0.55rem;
  width: min(160px, 45%);
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 10' fill='none'%3E%3Cpath stroke='%23c9a24d' stroke-width='0.75' opacity='0.5' d='M0 5c13 0 13-3 26-3s13 3 26 3 13-3 26-3 13 3 26 3 13-3 26-3 13 3 26 3'/%3E%3C/svg%3E")
    left center / 100% 10px no-repeat;
  opacity: 0.85;
}

a {
  color: var(--emerald-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-600);
}

/* Faixa sob o header: liga ao hero castanho por baixo */
.pattern-strip {
  height: 12px;
  background: linear-gradient(
    180deg,
    var(--rug-navy) 0%,
    #243050 35%,
    var(--hero-brown-deep) 75%,
    var(--hero-brown-mid) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.2);
}

/* —— Layout —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.97) 0%,
    rgba(253, 248, 242, 0.92) 100%
  );
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(28, 40, 64, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 32px rgba(28, 40, 64, 0.07);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 38%,
    rgba(201, 162, 77, 0.04) 100%
  );
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 77, 0.45) 18%,
    rgba(28, 40, 64, 0.22) 50%,
    rgba(201, 162, 77, 0.45) 82%,
    transparent
  );
  opacity: 0.85;
  z-index: 1;
  animation: nav-border-shimmer 8s ease-in-out infinite;
}

@keyframes nav-border-shimmer {
  0%, 100% { opacity: 0.65; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.08); }
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--emerald-800);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color var(--transition), filter 0.3s ease;
}

.brand:hover {
  color: var(--emerald-700);
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(28, 40, 64, 0.12));
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(28, 40, 64, 0.14);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--emerald-800) 0%, var(--emerald-600) 45%, var(--rug-navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-nav);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition:
    background var(--transition),
    color var(--transition),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.38rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-400), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.nav-main a:not(.is-active):hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--sand-200));
  color: var(--emerald-800);
  box-shadow: 0 2px 14px rgba(28, 40, 64, 0.08);
  transform: translateY(-1px);
}

.nav-main a:not(.is-active):hover::after {
  transform: scaleX(1);
  opacity: 0.95;
}

/* Glifos árabes na navbar (letras com significado por secção) */
.nav-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.25rem;
  font-family: var(--font-ar);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  direction: rtl;
  color: var(--rug-field);
  background: linear-gradient(165deg, rgba(201, 162, 77, 0.28), rgba(107, 36, 50, 0.1));
  border: 1px solid rgba(28, 40, 64, 0.18);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 3px rgba(28, 40, 64, 0.06);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.nav-main a:hover .nav-glyph {
  border-color: rgba(201, 162, 77, 0.7);
  color: var(--emerald-800);
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(201, 162, 77, 0.15),
    0 4px 12px rgba(28, 40, 64, 0.1);
}

.nav-main a.is-active {
  background: linear-gradient(155deg, var(--rug-navy) 0%, var(--emerald-700) 48%, var(--emerald-600) 100%);
  color: #fff;
  box-shadow:
    0 4px 20px rgba(28, 40, 64, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: nav-pill-glow 4s ease-in-out infinite;
}

.nav-main a.is-active::after {
  transform: scaleX(0);
  opacity: 0;
}

.nav-main a.is-active .nav-glyph {
  color: #fff8e8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(224, 192, 120, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 14px rgba(201, 162, 77, 0.25);
}

@keyframes nav-pill-glow {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(28, 40, 64, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 0 rgba(201, 162, 77, 0);
  }
  50% {
    box-shadow:
      0 6px 26px rgba(28, 40, 64, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 22px rgba(201, 162, 77, 0.18);
  }
}

.nav-toggle {
  display: none;
  font-family: var(--font-nav);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(155deg, var(--emerald-700), var(--rug-navy));
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(28, 40, 64, 0.25);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(28, 40, 64, 0.32);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--sand-50);
    padding: 1rem;
    border-bottom: 1px solid var(--sand-200);
    box-shadow: var(--shadow);
  }

  .nav-main.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero:not(.hero--brown) {
  padding: 3rem 1.25rem 4rem;
}

/* Hero: fundo castanho em toda a largura; altura = conteúdo */
.hero.hero--brown {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  padding: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath fill='none' stroke='%23e8d5a8' stroke-width='0.85' opacity='0.38' d='M10 86C10 28 28 10 86 10M10 86c32-6 70-42 76-76'/%3E%3Cpath fill='none' stroke='%23c9a24d' stroke-width='0.55' opacity='0.32' d='M22 74C22 40 38 22 74 22'/%3E%3C/svg%3E")
      left clamp(0.25rem, 2.5vw, 1.25rem) top clamp(0.5rem, 2vw, 1.5rem) / min(100px, 20vw) min(100px, 20vw) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath fill='none' stroke='%23e8d5a8' stroke-width='0.85' opacity='0.38' d='M86 86C86 28 68 10 10 10M86 86C54 80 16 44 10 10'/%3E%3Cpath fill='none' stroke='%23c9a24d' stroke-width='0.55' opacity='0.32' d='M74 74C74 40 58 22 22 22'/%3E%3C/svg%3E")
      right clamp(0.25rem, 2.5vw, 1.25rem) top clamp(0.5rem, 2vw, 1.5rem) / min(100px, 20vw) min(100px, 20vw) no-repeat,
    linear-gradient(
      165deg,
      var(--hero-brown-deep) 0%,
      var(--hero-brown) 42%,
      var(--hero-brown-mid) 100%
    );
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2rem) clamp(2.75rem, 5vw, 3.75rem);
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  color: var(--hero-fg-soft);
}

.hero.hero--brown .hero-inner {
  color: var(--hero-fg-soft);
}

.hero.hero--brown h1 {
  color: var(--hero-fg);
}

.hero.hero--brown .text-gradient {
  background: linear-gradient(125deg, #fff8e8 0%, #e8d4a8 38%, #f5ead0 72%, #c9a24d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-shift 10s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.25));
}

.hero.hero--brown .hero-badge {
  background: rgba(255, 248, 242, 0.06);
  border-color: var(--arabesque-gold-soft);
  color: rgba(252, 248, 242, 0.94);
  box-shadow: none;
}

.hero.hero--brown .hero-lead {
  color: rgba(245, 238, 228, 0.86);
}

.hero.hero--brown .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 248, 242, 0.28);
  color: var(--hero-fg);
}

.hero.hero--brown .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-400);
  color: #fff;
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 1.75rem 1rem 2.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.2), rgba(var(--rug-shadow), 0.12));
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-800);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
}

.text-gradient {
  background: linear-gradient(120deg, var(--emerald-800), var(--emerald-600), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-shift 8s ease-in-out infinite alternate;
}

@keyframes hue-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(12deg); }
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rug-navy) 0%, var(--emerald-700) 45%, var(--emerald-600) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(28, 40, 64, 0.28);
}

.btn-secondary {
  background: var(--card);
  color: var(--emerald-800);
  border-color: var(--sand-200);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-calligraphy {
  position: relative;
  z-index: 2;
  font-family: var(--font-ar);
  font-size: clamp(3.5rem, 12vw, 6rem);
  background: linear-gradient(135deg, #fff8e8, #e0c078, var(--emerald-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
  animation: float-soft 6s ease-in-out infinite;
  user-select: none;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-ring {
  position: absolute;
  width: min(90%, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 192, 120, 0.22);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* —— Seções —— */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section-block {
  margin-bottom: 3rem;
}

.section-intro {
  max-width: 65ch;
  margin-bottom: 2rem;
}

.section-intro > h2::after {
  content: "";
  display: block;
  margin-top: 0.55rem;
  width: min(220px, 70%);
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 11' fill='none'%3E%3Cpath stroke='%236b2432' stroke-width='0.55' opacity='0.28' d='M0 5.5h70M150 5.5h70'/%3E%3Ccircle cx='110' cy='5.5' r='2.5' fill='%23c9a24d' opacity='0.4'/%3E%3C/svg%3E")
    left center / 100% 11px no-repeat;
}

/* Cards grid home */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card-link {
  display: block;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--sand-200);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201, 162, 39, 0.08));
  opacity: 0;
  transition: opacity var(--transition);
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(var(--rug-shadow), 0.18);
}

.card-link:hover::before {
  opacity: 1;
}

.card-ico {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--emerald-700);
}

.card-link h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card-link p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* —— Tabelas —— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid var(--sand-200);
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sand-200);
  vertical-align: top;
}

.data-table th {
  background: linear-gradient(180deg, var(--rug-navy) 0%, var(--emerald-800) 40%, var(--emerald-700) 100%);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--sand-50);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .ar {
  font-size: 1.15rem;
}

/* —— Frases —— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sand-200);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 4px rgba(var(--rug-shadow), 0.12);
}

.phrase-row audio {
  max-width: 220px;
  height: 36px;
}

/* —— Abas números —— */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--sand-200);
  background: var(--card);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--gold-500);
  color: var(--emerald-800);
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--rug-navy) 0%, var(--emerald-700) 50%, var(--emerald-600) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(28, 40, 64, 0.32);
}

.tab-panel {
  display: none;
  animation: fade-in 0.5s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Anúncios (slots para monetização) —— */
.ad-slot {
  min-height: 90px;
  margin: 1.5rem 0;
  background: linear-gradient(180deg, var(--sand-200), var(--sand-100));
  border: 2px dashed rgba(var(--rug-shadow), 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ad-slot--sidebar {
  min-height: 250px;
}

.ad-slot--banner {
  min-height: 90px;
}

.ad-label {
  text-transform: uppercase;
  opacity: 0.7;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding: 2.5rem 1.25rem;
  background: var(--night);
  color: var(--sand-200);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-labels-wrap {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
}

.footer-labels-wrap:has(.footer-labels:empty) {
  display: none;
}

.footer-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  padding: 0.35rem 0 0.15rem;
}

.footer-label {
  height: auto;
  max-height: 42px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  transition: opacity 0.25s ease;
}

@media (max-width: 520px) {
  .footer-label {
    max-height: 36px;
    max-width: min(160px, 46vw);
  }
}

.footer-label:hover {
  opacity: 1;
}

.site-footer a {
  color: var(--gold-400);
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-top: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(245, 240, 230, 0.65);
  text-align: center;
}

/* —— Reveal scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* —— Page title block —— */
.page-head {
  padding: 2rem 0 2rem;
  border-bottom: none;
  margin-bottom: 2rem;
  position: relative;
}

.page-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(280px, 92%);
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 28' fill='none'%3E%3Cpath stroke='%23c9a24d' stroke-width='0.9' opacity='0.45' d='M0 14h98M182 14h98'/%3E%3Cpath stroke='%236b2432' stroke-width='0.7' fill='rgba%28201%2C162%2C77%2C0.09%29' d='M140 5l16 9-16 9-16-9 16-9z'/%3E%3Ccircle cx='140' cy='14' r='2' fill='%23c9a24d' opacity='0.48'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.page-head h1 {
  text-shadow: 0 2px 28px rgba(var(--rug-shadow), 0.09);
}

.page-head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.loading-state,
.error-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.error-state {
  color: #b42318;
}

.two-col-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .two-col-aside {
    grid-template-columns: 1fr;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--emerald-700);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* —— Ambiente visual: Oriente Médio (camadas fixas) —— */
.site-orient {
  position: relative;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-bg__aurora {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(ellipse 50% 45% at 20% 30%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(var(--rug-shadow), 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168, 124, 60, 0.12), transparent 55%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.03); }
}

.ambient-bg__geometry {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%231c2840' stroke-width='0.6' opacity='0.25' d='M40 4l6 18 18 6-18 6-6 18-6-18-18-6 18-6z'/%3E%3Ccircle cx='40' cy='40' r='28' fill='none' stroke='%23c9a227' stroke-width='0.4' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: geometry-pan 90s linear infinite;
}

@keyframes geometry-pan {
  0% { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

.ambient-bg__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(201, 162, 39, 0.55), transparent),
    radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(201, 162, 39, 0.4), transparent),
    radial-gradient(1px 1px at 70% 65%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.3px 1.3px at 25% 55%, rgba(212, 175, 55, 0.45), transparent);
  background-size: 100% 100%;
  animation: stars-twinkle 7s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.55; filter: brightness(1); }
  100% { opacity: 0.95; filter: brightness(1.15); }
}

.ambient-bg__sand {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 240, 230, 0.35) 100%);
}

/* Divisor com motivo arabesco (transição areia / conteúdo) */
.orient-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2.5rem 0;
  max-width: 100%;
}

.orient-divider::before,
.orient-divider::after {
  content: "";
  flex: 1;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.42), transparent);
}

.orient-divider .orient-motif {
  flex-shrink: 0;
  width: min(360px, 92vw);
  height: auto;
  max-height: 52px;
  color: var(--emerald-700);
  animation: arabesque-breathe 7s ease-in-out infinite;
}

/* Primeiro divisor após o hero castanho */
.orient-divider--after-hero::before {
  background: linear-gradient(
    90deg,
    rgba(92, 64, 51, 0.2),
    rgba(201, 162, 77, 0.4) 45%,
    rgba(244, 235, 224, 0.75)
  );
}

.orient-divider--after-hero::after {
  background: linear-gradient(
    90deg,
    rgba(244, 235, 224, 0.75),
    rgba(201, 162, 77, 0.4) 55%,
    rgba(92, 64, 51, 0.15)
  );
}

.orient-divider--after-hero .orient-motif {
  color: var(--emerald-800);
  filter: drop-shadow(0 1px 3px rgba(58, 24, 32, 0.12));
}

@keyframes arabesque-breathe {
  0%, 100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

/* Cartões: borda brilhante ao hover */
.card-link {
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.card-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(201, 162, 39, 0.35), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card-link:hover::after {
  opacity: 1;
}

.card-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

/* Botões: brilho */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Tabelas: brilho no header */
.data-table th {
  position: relative;
  overflow: hidden;
}

.data-table th::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: table-shine 6s ease-in-out infinite;
}

@keyframes table-shine {
  0%, 100% { left: -100%; }
  50% { left: 120%; }
}

/* Campo de busca: ícone decorativo via sombra */
.search-input {
  background: linear-gradient(180deg, #fff, var(--sand-50));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Rodapé: faixa arabesca repetida */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14' fill='none'%3E%3Cpath stroke='%23c9a24d' stroke-width='0.65' opacity='0.55' d='M0 7c14 0 14-5 28-5s14 5 28 5 14-5 28-5 14 5 28 5 14-5 28-5 14 5 28 5'/%3E%3Cpath stroke='%231c2840' stroke-width='0.5' opacity='0.35' d='M0 10c10 0 10-4 20-4s10 4 20 4 10-4 20-4 10 4 20 4 10-4 20-4 10 4 20 4 10-4 20-4 10 4 20 4'/%3E%3C/svg%3E")
    repeat-x center top / 140px 14px;
  opacity: 0.9;
}

/* Texto mais “humano”: leve informalidade */
.prose-warm p {
  line-height: 1.75;
}

.prose-warm p + p {
  margin-top: 1rem;
}

/* Parallax helper */
.parallax-y {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg__aurora,
  .ambient-bg__geometry,
  .ambient-bg__stars,
  .orient-divider .orient-motif,
  .data-table th::after,
  .btn-primary::after,
  .text-gradient,
  .site-header::after,
  .nav-main a.is-active {
    animation: none !important;
  }

  .text-gradient {
    filter: none;
  }

  .aurora-drift,
  .geometry-pan,
  .stars-twinkle,
  .table-shine {
    animation: none !important;
  }

  .parallax-y {
    transform: none !important;
  }

  .brand:hover,
  .brand:hover .brand-mark,
  .nav-main a:not(.is-active):hover {
    transform: none;
  }
}
