/* =============================================================
   PINDORAMA — Brand stylesheet v1.0
   Visual direction: P-A "Terra Firma" + G-A "Meridiano"
   Typography: Newsreader (display) + Inter (body) — open-source
   Captain to upgrade to GT Sectra + Söhne when license confirmed
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Pindorama palette */
  --grafite: #1A1A1A;
  --areia-paraty: #F4EFE6;
  --terra-cota: #7A3D1F;
  --verde-floresta: #2C3E3A;
  --dourado-areia: #C4A572;
  --verde-eucalipto: #4A5D52;

  /* Guaraci palette (used in §Guaraci section) */
  --preto: #0F0F0F;
  --creme-luz: #FAF5E8;
  --ouro-queimado: #E8A33D;
  --terracota-cobre: #C9561F;
  --palha-clara: #F4D58D;
  --marrom-tostado: #5A3921;

  /* Type scale */
  --font-display: "Newsreader", "GT Sectra", Georgia, serif;
  --font-body: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Container */
  --container-max: 1180px;
  --container-pad: 2rem;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grafite);
  background: var(--areia-paraty);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--terra-cota); }
img, svg { max-width: 100%; height: auto; display: block; }
em { font-style: italic; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--grafite);
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.brand-mark { width: 34px; height: 34px; }
.brand-mark.small { width: 28px; height: 28px; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3125rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

.nav-links a {
  color: var(--grafite);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--terra-cota); }

.nav-lang {
  font-size: 0.8125rem;
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin-left: 1rem;
}
.nav-lang .active { color: var(--grafite); opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  padding: var(--space-xl) 0 var(--space-xl);
  text-align: left;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 980px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terra-cota);
  margin: 0 0 var(--space-md);
  opacity: 0.95;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--grafite);
  margin: 0 0 var(--space-md);
  max-width: 22ch;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.3125rem;
  line-height: 1.6;
  color: var(--grafite);
  opacity: 0.82;
  max-width: 58ch;
  margin: 0 0 var(--space-lg);
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ---------- LINKS WITH ARROWS ---------- */
.link-arrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--grafite);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 400;
}

.link-arrow:hover {
  color: var(--terra-cota);
  gap: 0.75rem;
}

.link-arrow:hover span {
  transform: translateX(2px);
}

.link-arrow.small { font-size: 0.875rem; }

/* ---------- MANIFESTO ---------- */
.manifesto {
  padding: var(--space-xl) 0;
  background: var(--areia-paraty);
}

.manifesto-inner {
  max-width: 680px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--grafite);
}

.manifesto-inner p {
  margin: 0 0 var(--space-md);
}

.manifesto-inner .lead {
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: var(--space-md);
}

.manifesto-inner .emphasis {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--terra-cota);
  line-height: 1.4;
  margin: var(--space-md) 0;
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--terra-cota);
  margin: var(--space-md) 0 var(--space-md);
}

/* ---------- SECTION HEADERS ---------- */
.section-h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terra-cota);
  opacity: 1;
  margin: 0 0 var(--space-md);
}

.section-h2.light {
  color: var(--ouro-queimado);
  opacity: 1;
}

/* ---------- PILLARS ---------- */
.pillars {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--grafite);
  margin-bottom: var(--space-md);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 var(--space-sm);
  color: var(--grafite);
  letter-spacing: -0.005em;
}

.pillar p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 var(--space-md);
  opacity: 0.78;
  flex-grow: 1;
}

/* ---------- GUARACI ---------- */
.guaraci {
  background: var(--preto);
  color: var(--creme-luz);
  padding: var(--space-xl) 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.guaraci-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-md) 0;
}

.guaraci-mark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.guaraci-mark {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.guaraci-text .lead {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ouro-queimado);
  margin: 0 0 var(--space-md);
}

.guaraci-text .lead.light {
  color: var(--creme-luz);
}

.guaraci-text p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--creme-luz);
  opacity: 0.82;
  margin: 0 0 var(--space-sm);
  max-width: 48ch;
}

.guaraci-text .muted {
  opacity: 0.5;
  font-style: italic;
}

.guaraci-text .link-arrow {
  color: var(--ouro-queimado);
  margin-top: var(--space-sm);
  display: inline-flex;
}

.guaraci-text .link-arrow:hover {
  color: var(--palha-clara);
}

.future-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: var(--creme-luz);
  opacity: 0.45;
  flex-wrap: wrap;
}

/* ---------- WRITING ---------- */
.writing {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.essays {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  max-width: 760px;
}

.essays li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.essays li:last-child { border-bottom: none; }

.essays h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  margin: 0 0 var(--space-sm);
  color: var(--grafite);
  letter-spacing: -0.01em;
}

.essays p {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 var(--space-md);
  opacity: 0.78;
  max-width: 60ch;
}

.essays li { padding: var(--space-lg) 0; }

.essay-soon {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terra-cota);
  opacity: 0.7;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--grafite);
  color: var(--areia-paraty);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer-brand .brand-mark {
  color: var(--areia-paraty);
  margin-bottom: var(--space-sm);
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 var(--space-sm);
  font-weight: 500;
}

.footer-meta {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
  line-height: 1.7;
}

.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.footer-nav a {
  color: var(--areia-paraty);
  opacity: 0.85;
}
.footer-nav a:hover { opacity: 1; color: var(--dourado-areia); }

.footer-lang, .footer-social {
  margin: var(--space-sm) 0 0;
  font-size: 0.8125rem;
  opacity: 0.6;
}

.footer-lang .active { opacity: 1; }

.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom p { margin: 0; }

/* ---------- RESPONSIVE ---------- */

/* Tablet + larger mobile landscape */
@media (max-width: 880px) {
  .hero { padding: var(--space-xl) 0 var(--space-lg); min-height: auto; }
  .hero-h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; }
  .pillar-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .guaraci-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .nav-links { gap: 1.25rem; font-size: 0.8125rem; }
  .nav-links .nav-lang { display: none; }
  :root { --container-pad: 1.5rem; --space-xxl: 6rem; --space-xl: 4rem; }
}

/* Mobile portrait — hide nav links, keep only brand */
@media (max-width: 640px) {
  .brand { margin-right: 0; }
  .brand-word { font-size: 1.1875rem; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { display: none; }
  .nav { padding: 1rem 0; }
  .hero { padding: var(--space-md) 0 var(--space-lg); }
  .hero-h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); line-height: 1.2; max-width: 100%; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-eyebrow { font-size: 0.6875rem; letter-spacing: 0.2em; margin-bottom: 1.25rem; }
  .hero-ctas { gap: 1.25rem; }
  .manifesto-inner { font-size: 1.1875rem; }
  .manifesto-inner .lead { font-size: 1.5rem; }
  .manifesto-inner .emphasis { font-size: 1.25rem; }
  .guaraci-text .lead { font-size: 1.75rem; }
  .essays h3 { font-size: 1.375rem; }
  :root { --container-pad: 1.25rem; --space-xl: 3rem; --space-lg: 2.5rem; }
}

/* Landscape phone — hero must not steal nav's visual slot */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-md) 0;
    display: block;
  }
  .hero-eyebrow { font-size: 0.625rem; margin-bottom: 0.75rem; }
  .hero-h1 {
    font-size: clamp(1.375rem, 3.5vw, 1.875rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .hero-sub { font-size: 0.9375rem; margin-bottom: 1.25rem; }
  .hero-ctas { gap: 1.5rem; }
  .nav { padding: 0.75rem 0; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
