/* ========================================================================
   SOVYA GROUP — Site Institucional
   Design system: editorial premium — navy + dourado (livros / mídia / marketing)
   ======================================================================== */

:root {
  --navy-900: #0e1530;
  --navy-800: #141d3f;
  --navy-700: #1d2952;
  --navy-600: #2a3a6e;
  --navy-50:  #eef1f9;
  --gold-600: #b8902b;
  --gold-500: #c9a227;
  --gold-400: #ddb84a;
  --gold-50:  #faf4e2;
  --ink-900:  #0f1426;
  --ink-700:  #2b3247;
  --ink-500:  #565d73;
  --ink-300:  #9097a8;
  --line:     #e6e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f7f8fc;
  --shadow:   0 14px 44px -16px rgba(14, 21, 48, 0.28);
  --radius:   16px;
  --maxw:     1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; font-family: 'Fraunces', 'Inter', Georgia, serif; }
h1 { font-size: clamp(2rem, 4.5vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--ink-500); font-family: 'Inter', sans-serif; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink-900); font-size: 1.28rem; letter-spacing: -0.02em; font-family: 'Fraunces', serif; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900));
  display: grid; place-items: center; color: var(--gold-400); font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 18px -6px rgba(20,29,63,.7); border: 1px solid rgba(221,184,74,.3);
  font-family: 'Fraunces', serif;
}
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--gold-600); letter-spacing: .14em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--gold-600); }
.nav-cta {
  background: var(--navy-700); color: #fff !important; padding: 11px 20px;
  border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--navy-900); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink-900); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(221,184,74,.16), transparent 60%),
    radial-gradient(720px 400px at 0% 8%, rgba(29,41,82,.12), transparent 55%),
    var(--bg-soft);
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-50); color: var(--gold-600);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
  border: 1px solid #efe1bd; margin-bottom: 22px; font-family: 'Inter', sans-serif;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,162,39,.22); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-900); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-600); }

.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.hero-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hero-card .muted { color: var(--ink-300); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 18px; font-family: 'Inter', sans-serif; }
.kv { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kv .row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.kv .row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .k { color: var(--ink-500); font-size: .9rem; }
.kv .v { color: var(--ink-900); font-weight: 700; font-size: .9rem; text-align: right; }

/* ---------- Sections ---------- */
section { padding: 82px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .badge { margin-bottom: 16px; }
.section-head p { color: var(--ink-500); font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 13px; background: var(--navy-50); display: grid; place-items: center; margin-bottom: 18px; font-size: 1.5rem; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-500); font-size: .96rem; margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 900; color: var(--gold-600); letter-spacing: -.03em; font-family: 'Fraunces', serif; }
.stat .lbl { color: var(--ink-500); font-size: .92rem; font-weight: 600; }

/* ---------- Data table ---------- */
.data-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table .drow { display: grid; grid-template-columns: 280px 1fr; border-bottom: 1px solid var(--line); }
.data-table .drow:last-child { border-bottom: 0; }
.data-table .dk { background: var(--bg-soft); padding: 16px 22px; font-weight: 700; color: var(--ink-700); font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; border-right: 1px solid var(--line); font-family: 'Inter', sans-serif; }
.data-table .dv { padding: 16px 22px; color: var(--ink-900); font-weight: 500; }
.cnae-list { list-style: none; }
.cnae-list li { padding: 4px 0; color: var(--ink-700); font-size: .94rem; }
.cnae-list li b { color: var(--navy-600); font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: 22px; padding: 56px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 80% 0%, rgba(221,184,74,.18), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--gold-500); color: var(--navy-900); position: relative; z-index: 1; }
.cta-band .btn-primary:hover { background: var(--gold-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4cce0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; font-family: 'Inter', sans-serif; }
.site-footer a { color: #c4cce0; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: .94rem; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: #9aa5c2; max-width: 320px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8a95b4; }
.cnpj-chip { font-variant-numeric: tabular-nums; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0; }
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--ink-300); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.legal p, .legal li { color: var(--ink-700); }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal .box { background: var(--bg-soft); border-left: 4px solid var(--gold-500); padding: 18px 22px; border-radius: 10px; margin: 20px 0; }

/* ---------- Page title ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--ink-500); font-size: 1.08rem; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--navy-50); display: grid; place-items: center; font-size: 1.3rem; }
.contact-item h3 { font-size: 1rem; margin-bottom: 3px; }
.contact-item p { font-size: .95rem; color: var(--ink-500); margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .data-table .drow { grid-template-columns: 1fr; }
  .data-table .dk { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .cta-band { padding: 40px 24px; }
}
