/* ─────────────────────────────────────────────
   FORMA — Design System
   Paleta: Preto + Dourado + Branco
   Versão 1.0
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ─── Tokens ─── */
:root {
  --black:       #0a0a0a;
  --black-soft:  #111111;
  --black-card:  #161616;
  --gold:        #c8a96e;
  --gold-light:  #e8d4a8;
  --gold-dark:   #9a7d4a;
  --white:       #f5f0e8;
  --white-pure:  #ffffff;
  --gray-100:    #ebebeb;
  --gray-400:    #a0a0a0;
  --gray-600:    #666666;
  --gray-800:    #2a2a2a;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-gold: 0 0 40px rgba(200, 169, 110, 0.15);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--gray-400); line-height: 1.8; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }

/* ─── Gold Accent ─── */
.gold { color: var(--gold); }
.gold-border { border-color: var(--gold); }

.label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container-wide {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ─── Sections ─── */
section { padding: clamp(4rem, 8vw, 8rem) 0; }

/* ─── Gold Divider ─── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider-center { margin: 1.5rem auto; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--white);
}

.navbar__logo span { color: var(--gold); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.navbar__nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color var(--transition);
}

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

.navbar__download {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.18em !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition) !important;
}

.navbar__download:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all var(--transition);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200,169,110,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Cards ─── */
.card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card__img { transform: scale(1.04); }

.card__body { padding: 1.8rem; }

.card__category {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card__excerpt {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-600);
}

.card__read-more {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.card:hover .card__read-more { gap: 0.7rem; }

/* ─── Featured Article ─── */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.featured__img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.featured__content {
  background: var(--black-card);
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── Grid ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header .label { margin-bottom: 1rem; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ─── Selection ─── */
::selection { background: var(--gold); color: var(--black); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ─── Gold Shimmer Text ─── */
.shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--black-card);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 0;
  text-align: center;
}

footer .footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.75rem;
  color: var(--gray-600);
  letter-spacing: 0.1em;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured__img { min-height: 320px; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .navbar__download { display: none; }
}

/* ─── Section alt background ─── */
.section-alt { background: var(--black-soft); }

/* ─── Sobre grid ─── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-title { margin-bottom: 1.5rem; }
.sobre-p2 { margin: 1.5rem 0; }
.sobre-assinatura { font-size: 0.85rem; font-style: italic; color: var(--gray-600); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--black-card);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(200,169,110,0.4);
  transform: translateY(-4px);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ─── Footer copy ─── */
.footer-copy { font-size: 0.7rem !important; margin-top: 0.4rem; }

/* ─── Download actions ─── */
.download-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-title { margin-top: 1rem; }

/* ─── Index 2-col grid top margin ─── */
.index-grid2 { margin-top: 1.5rem; }

/* ─── Featured hero cursor ─── */
.featured-hero { cursor: pointer; }

/* ─── Navbar backdrop-filter (Safari) ─── */
.navbar.scrolled {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

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