/* ════════════════════════════════════════════════════
   MIRACH — mirach.com v2
   Paleta e tipografia: Mirach Brand Guidelines v1 §2
   ════════════════════════════════════════════════════ */

:root {
  --navy:   #1B2A4A;
  --navy-2: #14213C;
  --blue:   #1A5C8F;
  --accent: #1A5C8F;
  --gray:   #4A4A4A;
  --white:  #FFFFFF;
  --owhite: #F5F5F5;
  --hair:   rgba(27,42,74,.12);
  --serif:  'Lora', Georgia, serif;
  --sans:   'Source Sans 3', 'Open Sans', Calibri, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; }

/* ─── NAV ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.6rem 5%;
  transition: background .35s, padding .3s, box-shadow .3s;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.nav.on {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  padding: .9rem 5%;
  box-shadow: 0 1px 0 var(--hair);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nl-dark { display: flex; align-items: center; gap: .65rem; }
.nl-dark img { height: 26px; width: auto; }
.nl-dark span {
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  color: var(--white); letter-spacing: -.01em;
}
.nl-light { display: none; align-items: center; }
.nl-light img { height: 26px; width: auto; }
.nav.on .nl-dark { display: none; }
.nav.on .nl-light { display: flex; }

.nav-right { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; gap: 2.1rem; list-style: none; }
.nav-links a {
  font-size: .75rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(255,255,255,.66);
  text-decoration: none; transition: color .2s;
}
.nav.on .nav-links a { color: var(--gray); }
.nav-links a:hover, .nav.on .nav-links a:hover { color: var(--blue); }
.nav-cta {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: .7rem 1.4rem; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); transition: all .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.nav.on .nav-cta { border-color: var(--navy); color: var(--navy); }
.nav.on .nav-cta:hover { background: var(--navy); color: var(--white); }

/* ─── HERO ─── */
#hero {
  min-height: 100svh; background: var(--navy);
  display: grid; position: relative; overflow: hidden;
}
#hero::after {
  /* fine grid texture: clareza/precisão */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, black 30%);
}

body[data-layout="b"] #hero { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
body[data-layout="b"] .hero-photo { display: block; }
body[data-layout="b"] .hero-text {
  padding: 11rem 4rem 7rem max(5%, calc((100vw - 1180px) / 2));
  align-self: center; max-width: 760px;
}

body[data-layout="a"] #hero { grid-template-columns: 1fr; align-items: center; }
body[data-layout="a"] .hero-photo { display: none; }
body[data-layout="a"] .hero-text {
  padding: 11rem 5% 7rem max(5%, calc((100vw - 1180px) / 2));
  max-width: 900px;
}
body[data-layout="a"] .hero-name { font-size: clamp(3.6rem, 8vw, 7.25rem); }

.hero-text { position: relative; z-index: 2; }

.hero-kicker {
  display: flex; align-items: center; gap: .9rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 2.5rem;
}
.hero-kicker::before { content: ''; width: 34px; height: 1px; background: var(--blue); }

.hero-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 5.6vw, 5.5rem);
  color: var(--white); line-height: .98;
  letter-spacing: -.025em; margin-bottom: 2.25rem;
}
.hero-name em {
  font-style: italic; font-weight: 400; display: block;
  font-size: .5em; color: rgba(255,255,255,.42);
  letter-spacing: -.01em; margin-bottom: .3em;
}
.hero-name em:last-child { margin-bottom: 0; margin-top: .3em; }

.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: rgba(255,255,255,.62);
  line-height: 1.55; margin-bottom: 2.25rem; max-width: 560px;
}

.hero-desc {
  font-size: 1rem; line-height: 1.9;
  color: rgba(255,255,255,.45);
  margin-bottom: 3.25rem; max-width: 480px;
}
.hero-desc strong { color: rgba(255,255,255,.78); font-weight: 600; }

.btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .775rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
  padding: 1.05rem 2.4rem; cursor: pointer; border: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.24);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.6); }

.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; min-height: 100svh;
  object-fit: cover; object-position: top center; display: block;
  filter: grayscale(55%) brightness(.72);
}
.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--navy) 0%, rgba(27,42,74,.3) 50%, transparent 100%);
}

.scroll-cue {
  position: absolute; bottom: 2.5rem; left: max(5%, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; gap: .75rem; z-index: 3;
  font-size: .65rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
.scroll-cue span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
}

/* ─── SECTION BASE ─── */
section { padding: 7.5rem 5%; }

.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.4rem;
}
.kicker::before { content: ''; width: 24px; height: 1px; background: var(--blue); }
.kicker.light { color: rgba(255,255,255,.4); }
.kicker.light::before { background: rgba(255,255,255,.25); }

.sh {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  color: var(--navy); line-height: 1.08;
  letter-spacing: -.025em; margin-bottom: 1.5rem;
  text-wrap: balance;
}
.sh.light { color: var(--white); }

.sub { font-size: 1.05rem; color: var(--gray); line-height: 1.8; max-width: 600px; }

/* ─── SOBRE ─── */
#sobre { background: var(--owhite); }
.sobre-grid {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 6rem; align-items: start;
}
.sobre-sticky { position: sticky; top: 7rem; }
.sobre-img { position: relative; display: block; width: 100%; }
.sobre-img img { width: 100%; display: block; object-fit: cover; }
.sobre-img::after {
  content: ''; position: absolute;
  top: 1.5rem; left: 1.5rem; right: -1.5rem; bottom: -1.5rem;
  border: 1px solid rgba(27,42,74,.22); z-index: -1;
}
.sobre-caption {
  margin-top: 2.6rem; font-size: .78rem; line-height: 1.6;
  color: rgba(74,74,74,.65); border-left: 2px solid var(--blue);
  padding-left: 1rem; max-width: 320px;
}

.sobre-text p {
  font-size: 1.075rem; line-height: 1.9;
  color: var(--gray); margin-bottom: 1.5rem;
}
.sobre-text p:first-child {
  font-size: 1.3rem; font-family: var(--serif);
  color: var(--navy); line-height: 1.65;
}
.sobre-text strong { font-weight: 600; color: var(--navy); }

.creds {
  margin-top: 3rem; display: flex; flex-direction: column;
  border-top: 1px solid rgba(0,0,0,.1);
}
.cred {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: grid; grid-template-columns: 150px 1fr;
  gap: 1.5rem; align-items: start;
}
.cred dt {
  font-weight: 700; color: var(--navy); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; padding-top: .2rem;
}
.cred dd { font-size: .9rem; line-height: 1.7; color: var(--gray); }
.cred dd a { color: var(--blue); text-decoration: none; }
.cred dd a:hover { text-decoration: underline; }

/* ─── FUNDADOR ─── */
#fundador { background: var(--white); }
#fundador .sobre-img::after { border-color: rgba(27,42,74,.18); }
#fundador .creds { border-top-color: var(--hair); }
#fundador .cred { border-bottom-color: var(--hair); }

/* ─── MANIFESTO BAND ─── */
#manifesto {
  background: var(--navy); padding: 8rem 5%; position: relative; overflow: hidden;
}
#manifesto::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 120px 120px; pointer-events: none;
}
.mani-inner { max-width: 980px; margin: 0 auto; text-align: center; position: relative; }
.mani-star { height: 44px; width: auto; opacity: .85; margin-bottom: 2.5rem; }
.mani-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  color: var(--white); line-height: 1.3; letter-spacing: -.015em;
  text-wrap: balance;
}
.mani-quote strong { font-weight: 700; font-style: normal; }
.mani-sub {
  margin-top: 2rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.32);
}

/* ─── NÚMEROS ─── */
#numeros { background: var(--white); padding: 7rem 5%; }
.num-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 4rem; border-top: 1px solid var(--hair);
}
.num-item { padding: 2.5rem 2rem 0 0; border-right: 1px solid var(--hair); }
.num-item + .num-item { padding-left: 2rem; }
.num-item:last-child { border-right: none; }
.num-val {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  color: var(--navy); line-height: 1; margin-bottom: .8rem;
  font-variant-numeric: tabular-nums;
}
.num-label { font-size: .825rem; color: var(--gray); line-height: 1.6; }

/* ─── PILARES ─── */
#pilares { background: var(--owhite); }
.pilares-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 4rem;
}
.pilar {
  background: var(--white); padding: 3.25rem 2.75rem;
  position: relative; transition: background .3s;
  display: flex; flex-direction: column; gap: 0;
}
.pilar:hover { background: var(--navy); }
.pilar-n {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 1rem; color: var(--blue); margin-bottom: 2.25rem;
  transition: color .3s;
}
.pilar:hover .pilar-n { color: rgba(255,255,255,.4); }
.pilar h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.4rem; color: var(--navy);
  line-height: 1.25; margin-bottom: 1.1rem; transition: color .3s;
}
.pilar:hover h3 { color: var(--white); }
.pilar p { font-size: .9rem; line-height: 1.85; color: var(--gray); transition: color .3s; }
.pilar:hover p { color: rgba(255,255,255,.62); }

/* ─── SERVIÇOS ─── */
#servicos { background: var(--white); }
.srv-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 4rem; background: var(--hair);
  border: 1px solid var(--hair);
}
.srv { background: var(--white); padding: 2.75rem 2.1rem; transition: background .3s; }
.srv:hover { background: var(--owhite); }
.srv-n {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1.5rem;
}
.srv h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.35rem; color: var(--navy);
  line-height: 1.2; margin-bottom: 1.6rem;
}
.srv ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.srv ul li {
  font-size: .84rem; color: var(--gray);
  padding-left: 1.1rem; position: relative; line-height: 1.55;
}
.srv ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--blue); font-size: .7rem;
}

/* ─── JORNADA ─── */
#jornada { background: var(--navy); }
.jrn-track {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 4.5rem; counter-reset: step;
}
.jrn-step {
  position: relative; padding: 2.25rem 2rem 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.jrn-step + .jrn-step { padding-left: 2rem; }
.jrn-step::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; background: var(--blue);
  border-radius: 50%;
}
.jrn-step + .jrn-step::before { left: 2rem; }
.jrn-num {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.jrn-step h3 {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: var(--white); line-height: 1.3; margin-bottom: .75rem;
}
.jrn-step p { font-size: .8rem; line-height: 1.7; color: rgba(255,255,255,.45); }

/* ─── PUBLICAÇÕES ─── */
#publicacoes { background: var(--owhite); }
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; margin-top: 4rem;
}
.livro { display: flex; flex-direction: column; gap: 1.6rem; }
.livro-capa {
  aspect-ratio: 2/3; background: var(--navy);
  position: relative; overflow: hidden; display: block;
  box-shadow: 0 18px 40px -18px rgba(27,42,74,.35);
}
.livro-capa img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block; transition: transform .4s ease;
}
.livro:hover .livro-capa img { transform: scale(1.03); }
.livro-role {
  display: inline-block; align-self: flex-start;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
  padding: .28rem .7rem; border: 1px solid rgba(46,117,182,.3);
}
.livro-info h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.1rem; color: var(--navy);
  line-height: 1.3; margin-bottom: .4rem;
}
.livro-info .autor {
  font-size: .82rem; color: var(--gray);
  margin-bottom: .7rem; line-height: 1.5;
}
.livro-info p { font-size: .84rem; line-height: 1.75; color: var(--gray); }

/* ─── CLIENTES ─── */
#clientes { background: var(--white); }
.cli-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; margin-top: 3.5rem;
  background: var(--hair); border: 1px solid var(--hair);
}
.cli {
  background: var(--white); padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px; transition: background .25s;
}
.cli:hover { background: var(--navy); }
.cli span {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(74,74,74,.5); text-align: center;
  transition: color .25s; line-height: 1.4;
}
.cli:hover span { color: rgba(255,255,255,.6); }

/* ─── FAQ ─── */
#faq { background: var(--owhite); }
.faq-grid {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 6rem; align-items: start;
}
.faq-list { border-top: 1px solid rgba(0,0,0,.1); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.08); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: 1.5rem 0;
  font-family: var(--serif); font-weight: 700;
  font-size: 1.1rem; color: var(--navy); line-height: 1.4;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::after {
  content: '+'; font-family: var(--sans); font-weight: 400;
  font-size: 1.4rem; color: var(--blue); flex: none;
  transition: transform .25s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 3rem 1.75rem 0;
  font-size: .95rem; line-height: 1.85; color: var(--gray);
  max-width: 640px;
}
.faq-item .faq-a a { color: var(--blue); text-decoration: none; }
.faq-item .faq-a a:hover { text-decoration: underline; }

/* ─── CONTATO ─── */
#contato { background: var(--navy); }
.cnt-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 7rem; }
.cnt-desc {
  font-size: 1rem; color: rgba(255,255,255,.5);
  line-height: 1.85; margin-top: 1.5rem; margin-bottom: 3rem;
}
.cnt-meta { display: flex; flex-direction: column; gap: 1.75rem; }
.cnt-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .3rem;
}
.cnt-val { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.6; font-style: normal; }
.cnt-val a { color: rgba(255,255,255,.65); text-decoration: none; }
.cnt-val a:hover { color: var(--white); }
.tally-wrap { overflow: hidden; }

/* ─── FOOTER ─── */
footer { background: #101824; padding: 4.5rem 5% 2.5rem; }
.ft-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ft-brandcol { display: flex; flex-direction: column; gap: 1rem; }
.ft-logo { height: 34px; width: auto; opacity: .55; align-self: flex-start; }
.ft-brand { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: rgba(255,255,255,.45); }
.ft-tag { font-size: .8rem; color: rgba(255,255,255,.25); font-style: italic; }
.ft-col h4 {
  font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 1.1rem;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.ft-col a {
  font-size: .85rem; color: rgba(255,255,255,.42);
  text-decoration: none; transition: color .2s;
}
.ft-col a:hover { color: rgba(255,255,255,.8); }
.ft-bottom {
  max-width: 1180px; margin: 0 auto; padding-top: 2rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  font-size: .72rem; color: rgba(255,255,255,.2);
}

/* ─── REVEAL ─── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
  .rv.in { opacity: 1; transform: none; }
  .rv[data-d="1"] { transition-delay: .1s; }
  .rv[data-d="2"] { transition-delay: .2s; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .num-row { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .num-item:nth-child(3) { border-right: none; }
  .jrn-track { grid-template-columns: 1fr; gap: 0; }
  .jrn-step { padding: 1.75rem 0 1.75rem 2.25rem; border-top: none; border-left: 1px solid rgba(255,255,255,.14); }
  .jrn-step + .jrn-step { padding-left: 2.25rem; }
  .jrn-step::before, .jrn-step + .jrn-step::before { left: -4px; top: 2.1rem; }
}
@media (max-width: 960px) {
  body[data-layout="b"] #hero { grid-template-columns: 1fr; }
  body[data-layout="b"] .hero-photo { display: none; }
  body[data-layout="b"] .hero-text, body[data-layout="a"] .hero-text { padding: 10rem 5% 6rem; max-width: 100%; }
  .sobre-grid, .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-sticky { position: static; }
  .pilares-grid { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cli-grid { grid-template-columns: repeat(3, 1fr); }
  .cnt-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .ft-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  section { padding: 5.5rem 5%; }
  .cred { grid-template-columns: 1fr; gap: .35rem; }
}
@media (max-width: 600px) {
  .num-row { grid-template-columns: 1fr 1fr; }
  .num-item { border-right: none; }
  .srv-grid, .pub-grid { grid-template-columns: 1fr; }
  .cli-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
}
