/* JG Lean — Design System v2
   Paleta: Areia / Aveia / Marinho / Chocolate / Estanho */

:root {
  --bg:            #F1E8C6;
  --bg-soft:       #E8DEB0;
  --bg-card:       #F7EFCE;
  --bg-dark:       #1A2E4E;
  --bg-dark-soft:  #243A5C;
  --ink:           #1A1610;
  --ink-soft:      #5C5347;
  --ink-mute:      #8A8273;
  --line:          #D9CC9E;
  --line-soft:     #E5DBB4;
  --accent:        #533222;
  --accent-deep:   #3A2316;
  --bronze:        #D4C692;
  --gold:          #D4C692;
  --tin:           #A2ADB8;
  --green:         #2C4A3E;
  --cream-on-dark: #F1E8C6;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* ===== TIPOGRAFIA ===== */
.serif   { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
.serif-i { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

/* ===== LAYOUT ===== */
.wrap       { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap-tight { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.split      { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream-on-dark); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream-on-dark); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--cream-on-dark); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: transform .25s;
  flex-shrink: 0;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost .arrow { background: rgba(0,0,0,.06); }

/* ===== SEÇÕES ===== */
section { padding: 110px 0; position: relative; }

.section-head {
  display: flex;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 80px;
}
.section-head .left  { flex: 1; }
.section-head .right { max-width: 380px; }
.section-head h2 {
  font-size: clamp(48px, 5.5vw, 84px);
  line-height: 1.04;
  padding-bottom: 0.25em;
  margin-top: 18px;
}
.section-head .right p { color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

/* ===== DIVISORES ===== */
.hr      { height: 1px; background: var(--line);      border: 0; }
.hr-soft { height: 1px; background: var(--line-soft); border: 0; }

/* ===== TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(83,50,34,.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.card:hover { border-color: var(--line); }
.hover-lift { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hover-lift:hover { transform: translateY(-4px); }

/* ===== MARQUEE ===== */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { overflow: hidden; }
.marquee {
  display: flex;
  animation: marquee 40s linear infinite;
  gap: 80px;
  width: max-content;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-left.is-in { opacity: 1; transform: none; }

/* ===== UNDERLINE LINK ===== */
.ulink {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
}
.ulink::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: currentColor;
  transform-origin: left;
  transition: transform .35s ease;
}
.ulink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ===== FORMULÁRIOS ===== */
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  width: 100%;
  transition: border-color .2s, background .2s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-card);
}
label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.form-field { display: flex; flex-direction: column; }

/* ===== PLACEHOLDER IMAGE ===== */
.ph-image {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 1px, transparent 1px 12px),
    var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 16px;
}

/* ===== UTILIDADES ===== */
.muted { color: var(--ink-soft); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
::selection { background: var(--ink); color: var(--cream-on-dark); }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(241,232,198,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--line-soft);
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.site-nav .nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.site-nav .nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width .25s ease;
}
.site-nav .nav-links a:hover::after { width: 100%; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all .25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 32px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: var(--cream-on-dark);
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(241,232,198,.5);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  color: var(--cream-on-dark);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  transition: opacity .2s;
}
.footer-col ul a:hover { opacity: 1; }
.footer-wordmark {
  padding-top: 60px;
  border-top: 1px solid rgba(241,232,198,.12);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.footer-wordmark svg {
  width: 92%;
  height: auto;
  display: block;
  color: var(--cream-on-dark);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(241,232,198,.5);
  letter-spacing: 0.1em;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .wrap, .wrap-tight { padding: 0 32px; }
  .section-head { gap: 40px; margin-bottom: 60px; }
  .section-head h2 { font-size: clamp(40px, 5vw, 64px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .wrap, .wrap-tight { padding: 0 20px; }
  .section-head { flex-direction: column; gap: 20px; align-items: flex-start; }
  .section-head .right { max-width: 100%; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .site-nav .nav-links { display: none; }
  .site-nav .nav-cta  { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-wordmark svg { width: 100%; }
}

@media (max-width: 480px) {
  section { padding: 48px 0; }
  .wrap, .wrap-tight { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { font-size: 14px; padding: 14px 18px; }
}
