/* ── Fátima Boteguin — Sovereign Editorial ── */

:root {
  --primary: #1B2638;
  --primary-deep: #131C2C;
  --primary-light: #2A3850;
  --secondary: #C5A78B;
  --secondary-soft: #E6D5C2;
  --secondary-deep: #A88B6E;
  --tertiary: #5F6D88;
  --surface: #F1EBDF;
  --surface-low: #ECE4D4;
  --surface-high: #F8F3E9;
  --surface-white: #FBF8F1;
  --ink: #1B2638;
  --ink-soft: #4A5267;
  --ink-muted: #7B8398;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
html, body { background: var(--surface); color: var(--ink); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

/* ── TYPOGRAPHY ── */
.serif, h1, h2, h3, h4 {
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.serif-italic {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
}
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── LAYOUT ── */
.container-x  { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section    { padding: 112px 0; }
.section-lg { padding: 144px 0; }
.section-sm { padding: 72px 0; }

/* ── SURFACES ── */
.surf-low           { background: var(--surface-low); }
.surf-base          { background: var(--surface); }
.surf-high          { background: var(--surface-high); }
.surf-white         { background: var(--surface-white); }
.surf-primary       { background: var(--primary); color: var(--surface); }
.surf-secondary     { background: var(--secondary); color: var(--primary); }
.surf-secondary-soft{ background: var(--secondary-soft); color: var(--primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 4px; border: none; cursor: pointer;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: var(--surface); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: var(--primary); }
.btn-secondary:hover { background: var(--secondary) !important; color: var(--surface-white) !important; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(27,38,56,0.15);
}
.btn-ghost:hover { background: var(--primary); color: var(--surface); box-shadow: none; }
.btn .arrow { display: inline-block; transition: transform 280ms cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 280ms ease, box-shadow 280ms ease;
}
.nav.scrolled {
  background: rgba(241,235,223,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(27,38,56,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.nav-logo { height: 44px; width: auto; cursor: pointer; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--tertiary); letter-spacing: 0.01em;
  transition: color 200ms; cursor: pointer; position: relative;
  text-decoration: none; background: none; border: none; padding: 0;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--secondary);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--primary); }
.nav-mobile { display: none; background: var(--surface-high); padding: 16px 32px 24px; }
.nav-mobile.open { display: block; }
.nav-mobile .nav-link { display: block; padding: 13px 0; border-bottom: 1px solid rgba(27,38,56,0.07); }

/* ── FOOTER ── */
footer { background: var(--primary); color: var(--surface); }
.footer-inner { padding: 96px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 48px; }
.footer-col-label { color: var(--secondary); margin-bottom: 20px; }
.footer-link {
  color: rgba(241,235,223,0.75); font-size: 14px;
  display: block; margin-bottom: 12px;
  transition: color 200ms; cursor: pointer; text-decoration: none;
}
.footer-link:hover { color: var(--surface); }
.footer-bottom {
  margin-top: 80px; padding-top: 28px;
  border-top: 1px solid rgba(241,235,223,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: rgba(241,235,223,0.45); font-size: 12px; letter-spacing: 0.04em;
}
.footer-newsletter-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(241,235,223,0.2);
  color: var(--surface); font-family: 'Manrope', sans-serif; font-size: 15px;
  padding: 12px 0; margin: 12px 0 20px; outline: none;
}
.footer-newsletter-input::placeholder { color: rgba(241,235,223,0.4); }

/* ── EDITORIAL QUOTE ── */
.eq-wrap { padding: 72px 64px; border-radius: 8px; text-align: center; }
.eq-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.eq-text {
  font-family: 'Newsreader', serif; font-size: 48px; line-height: 1.15;
  font-weight: 300; font-style: italic; letter-spacing: -0.015em;
}
.eq-attr { margin-top: 32px; opacity: 0.75; }

/* ── SHADOWS ── */
.soft-lift {
  box-shadow: 0 30px 60px -30px rgba(27,38,56,0.18), 0 8px 20px -8px rgba(27,38,56,0.06);
}

/* ── FORM ── */
.field {
  display: block; width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(27,38,56,0.18);
  padding: 14px 0 12px; font-family: 'Manrope', sans-serif;
  font-size: 15px; color: var(--primary);
  transition: border-color 200ms; outline: none;
}
.field:focus { border-bottom-color: var(--secondary); }
.field::placeholder { color: var(--ink-muted); }
textarea.field { resize: vertical; min-height: 120px; }
.field-label {
  font-family: 'Manrope', sans-serif; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-muted); display: block; margin-bottom: 6px;
}
.ctx-btn {
  padding: 10px 16px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 500; font-family: 'Manrope', sans-serif;
  transition: all 180ms; box-shadow: inset 0 0 0 1px rgba(27,38,56,0.18);
  background: transparent; color: var(--primary);
}
.ctx-btn.active { background: var(--primary); color: var(--surface); box-shadow: none; }

/* ── MARQUEE ── */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-wrap { overflow: hidden; border-top: 1px solid rgba(27,38,56,0.08); border-bottom: 1px solid rgba(27,38,56,0.08); }
.marquee-inner { display: flex; gap: 64px; padding: 22px 0; white-space: nowrap; animation: drift 60s linear infinite; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 600ms cubic-bezier(.2,.7,.2,1) both; }
.fade-delay-1 { animation-delay: 80ms; }
.fade-delay-2 { animation-delay: 160ms; }

/* ── BIG INITIAL (R·O·T·A) ── */
.big-initial {
  font-family: 'Newsreader', serif; font-size: 84px; font-weight: 300;
  color: var(--secondary); line-height: 0.9; letter-spacing: -0.04em;
}

/* ── NUMBER BULLET ── */
.number-bullet {
  font-family: 'Newsreader', serif; font-size: 14px;
  color: var(--secondary-deep); letter-spacing: 0.1em;
}

/* ── MISC ── */
.divider { width: 56px; height: 1px; background: var(--secondary); }
.link-u { position: relative; cursor: pointer; font-weight: 600; text-decoration: none; }
.link-u::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor; opacity: 0.4; transition: opacity 200ms;
}
.link-u:hover::after { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 1280px - large desktop cap */
@media (max-width: 1280px) {
  .container-x { padding-left: 40px; padding-right: 40px; }
  .container-narrow { padding-left: 40px; padding-right: 40px; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 1024px — nav switch */
@media (max-width: 1024px) {
  .nav-links, .nav-cta-btn { display: none !important; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .container-x { padding-left: 32px; padding-right: 32px; }
}

/* 768px — tablet/mobile */
@media (max-width: 768px) {
  .section    { padding: 72px 0; }
  .section-lg { padding: 96px 0; }

  /* Container padding */
  .container-x,
  .container-narrow { padding-left: 20px !important; padding-right: 20px !important; }
  .nav-mobile { padding-left: 20px; padding-right: 20px; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner   { padding: 56px 0 40px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer .container-x { padding-left: 20px !important; padding-right: 20px !important; }

  /* Eq / quote */
  .eq-wrap { padding: 40px 24px; }
  .eq-text { font-size: 26px; }

  /* Typography */
  h1.serif { font-size: 44px !important; line-height: 1.06 !important; }
  h2.serif { font-size: 32px !important; }
  h3.serif { font-size: 24px !important; }

  /* Hero grid — stack cols */
  .hero-grid { display: flex !important; flex-direction: column !important; gap: 40px !important; }
  .hero-text  { min-width: 0 !important; width: 100% !important; }
  .hero-photo { min-width: 0 !important; width: 100% !important; }
  .hero-photo > div { height: 420px !important; }
  .hero-photo > .soft-lift { transform: none !important; bottom: auto !important; left: auto !important; right: auto !important; margin-top: 16px !important; position: static !important; max-width: 100% !important; }

  /* Generic grid helpers */
  .grid-2-mobile  { grid-template-columns: 1fr !important; }
  .grid-3-mobile  { grid-template-columns: 1fr !important; }
  .grid-4-mobile  { grid-template-columns: 1fr 1fr !important; }
  .grid-12-mobile { display: flex !important; flex-direction: column !important; gap: 32px !important; }
  .sticky-sidebar { position: static !important; top: auto !important; }
  .photo-full { height: 320px !important; }

  /* BENTO DIFERENCIAIS (Empresas) — all cards stack */
  .bento-diferenciais {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .bento-diferenciais > div {
    min-height: auto !important;
  }

  /* VALORES GRID (Sobre) — stack all cards */
  .valores-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .valores-grid > div {
    min-height: auto !important;
    padding: 36px 28px !important;
  }
  .valores-responsabilidade {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 32px 28px !important;
  }
}

/* 480px — small mobile */
@media (max-width: 480px) {
  h1.serif { font-size: 36px !important; }
  h2.serif { font-size: 26px !important; }
  h3.serif { font-size: 22px !important; }
  .btn     { padding: 13px 18px; font-size: 13px; }
  .grid-4-mobile { grid-template-columns: 1fr !important; }
  .eq-text { font-size: 22px; }
}

/* ── BENTO CARD DESKTOP LAYOUT ── */
/* Explicit desktop spans for bento-diferenciais */
@media (min-width: 769px) {
  .bento-diferenciais > .bento-card:nth-child(1) { grid-column: 1 / span 2; }
  .bento-diferenciais > .bento-card:nth-child(2) { grid-column: 3 / span 1; }
  .bento-diferenciais > .bento-card:nth-child(3) { grid-column: 1 / span 1; }
  .bento-diferenciais > .bento-card:nth-child(4) { grid-column: 2 / span 1; }
  .bento-diferenciais > .bento-card:nth-child(5) { grid-column: 3 / span 1; }
}

/* ── VALORES GRID DESKTOP LAYOUT ── */
@media (min-width: 769px) {
  .valores-grid { grid-template-columns: 7fr 5fr !important; }
  .valores-etica { grid-row: span 2; }
}

/* ── VALORES MOBILE ── */
@media (max-width: 768px) {
  .valores-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .valores-etica { padding: 40px 28px !important; }
  .valores-right { }
  .valores-responsabilidade {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 32px 28px !important;
  }
}
@media (max-width: 768px) {
  .hero-quote-float { display: none; }
}