/* =============================================
   CIRCULA — Stylesheet compartilhado
   ============================================= */

:root {
  --ink:#0F1A14;
  --paper:#F5F1E8;
  --paper-2:#EDE6D3;
  --paper-3:#E4DCC5;
  --moss:#2E4F3E;
  --moss-deep:#1A3A2E;
  --moss-soft:#4A6B5A;
  --clay:#C65D3C;
  --clay-deep:#A54A2E;
  --lime:#B8D174;
  --gold:#D4A84B;
  --grid:rgba(15,26,20,.08);
  --grid-2:rgba(15,26,20,.15);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Fraunces', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

/* noise texture overlay */
body::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:1;
  opacity:.3; mix-blend-mode:multiply;
  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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }

/* ============ NAV ============ */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grid);
}
.logo {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.nav-links {
  display: flex; gap: 2.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-links a {
  color: var(--ink); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--clay);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--clay); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 0.65rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  border: none; cursor: pointer; transition: background .3s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: var(--clay); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: all .3s;
}

/* ============ SECTION UTILS ============ */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.section-label::before { content:'◆'; font-size: 0.55rem; }

.title-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  letter-spacing: -0.04em;
}
.title-lg {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  letter-spacing: -0.035em;
}
.title-md {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
em.accent-moss { font-style: italic; color: var(--moss); font-weight: 400; }
em.accent-clay { font-style: italic; color: var(--clay); font-weight: 400; }
em.accent-lime { font-style: italic; color: var(--lime); font-weight: 400; }
em.accent-gold { font-style: italic; color: var(--gold); font-weight: 400; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 1rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.8rem;
  transition: all .3s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--clay); transform: translateY(-2px); }
.btn-primary::after { content: '→'; font-family: Fraunces, serif; font-size: 1.2rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  padding: 1rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  border: 1px solid var(--ink); cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light {
  background: var(--paper); color: var(--ink);
  padding: 1rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.8rem;
  transition: all .3s;
  text-decoration: none;
}
.btn-light:hover { background: var(--lime); transform: translateY(-2px); }
.btn-light::after { content: '→'; font-family: Fraunces, serif; font-size: 1.2rem; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 10rem 3rem 5rem;
  position: relative;
  border-bottom: 1px solid var(--grid);
  background: var(--paper-2);
}
.page-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 50%, black 10%, transparent 65%);
}
.page-hero-inner {
  max-width: 1300px; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}
.page-hero-title { margin-top: 1rem; margin-bottom: 1.5rem; }
.page-hero-title em { font-style: italic; }
.page-hero-sub {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(15,26,20,0.72);
  max-width: 560px;
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(15,26,20,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(15,26,20,0.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { margin: 0 0.5rem; }

/* ============ FOOTER ============ */
footer.main-footer {
  background: var(--ink); color: var(--paper);
  padding: 5rem 3rem 2rem;
  position: relative;
  z-index: 2;
}
.footer-top {
  max-width: 1300px; margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: end;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,241,232,0.12);
}
.footer-motto {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.footer-motto em { font-style: italic; color: var(--lime); }
.footer-cta {
  text-align: right;
}
.footer-cta .section-label { color: var(--lime); }

.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--paper); font-size: 2rem; margin-bottom: 1rem; }
.footer-tag { font-size: 0.95rem; color: rgba(245,241,232,0.65); max-width: 340px; line-height: 1.55; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lime);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col a {
  color: rgba(245,241,232,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.35rem 0;
  transition: color .3s;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  border-top: 1px solid rgba(245,241,232,0.1);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(245,241,232,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap; gap: 1rem;
}

/* ============ REUSABLE CARDS ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  nav.main-nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--grid);
    gap: 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .page-hero { padding: 7rem 1.5rem 3rem; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 2rem; }

  footer.main-footer { padding: 4rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; text-align: left; }
  .footer-cta { text-align: left; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
