/* =====================================================================
   Plano a Plano — Jhonny Fonseca
   Editorial executive navy. Fraunces (display, italic) + Geist (body).
   ===================================================================== */

:root {
  --navy:       #0B1F3A;
  --navy-deep:  #06122A;
  --navy-soft:  #142B4D;
  --navy-line:  rgba(244,239,230,.14);

  --cream:      #F4EFE6;
  --cream-soft: #FBF8F2;
  --cream-line: rgba(11,31,58,.10);

  --ink:        #0A0F1C;
  --ink-soft:   #2A3447;

  --brass:      #B89968;
  --brass-soft: #D4B98E;
  --brass-deep: #8E7449;

  --display: 'Fraunces', 'Times New Roman', serif;
  --body:    'Geist', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 160px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p, blockquote { margin: 0; }

/* ============ UTILITY: NOISE TEXTURE ============ */
.hero__noise,
.servicos__noise,
.cta-final__noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--cream);
}
.display em {
  font-style: italic;
  font-weight: 350;
  color: var(--brass-soft);
}
.display--ink {
  color: var(--navy);
}
.display--ink em {
  color: var(--brass-deep);
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(244,239,230,.78);
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(244,239,230,.72);
}
.eyebrow--ink { color: var(--ink-soft); }
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow__dot--brass { background: var(--brass); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--brass {
  background: var(--brass);
  color: var(--navy-deep);
  border: 1px solid var(--brass);
}
.btn--brass:hover {
  background: var(--brass-soft);
  border-color: var(--brass-soft);
  transform: translateY(-1px);
}
.btn--outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244,239,230,.30);
}
.btn--outline-cream:hover {
  border-color: var(--cream);
  background: rgba(244,239,230,.06);
}
.btn--ghost-cream {
  background: rgba(244,239,230,.04);
  color: var(--cream);
  border: 1px solid rgba(244,239,230,.18);
  padding: 10px 18px;
  font-size: 13px;
}
.btn--ghost-cream:hover { background: rgba(244,239,230,.10); }
.btn--lg {
  padding: 20px 36px;
  font-size: 15px;
  letter-spacing: .06em;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-state="top"] {
  background: transparent;
}
.site-header[data-state="scrolled"] {
  background: rgba(11,31,58,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--navy-line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand img {
  height: 44px; width: auto;
}
.primary-nav {
  display: flex; gap: 32px;
}
.primary-nav a {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,239,230,.72);
  position: relative;
  padding: 8px 0;
  transition: color .3s var(--ease);
}
.primary-nav a:hover { color: var(--cream); }
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width .35s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

@media (max-width: 880px) {
  .primary-nav { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: clamp(140px, 16vw, 200px) var(--pad-x) clamp(60px, 8vw, 100px);
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__ornament {
  position: absolute;
  bottom: -2vw;
  left: -2vw;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(220px, 36vw, 520px);
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,230,.07);
  text-stroke: 1px rgba(244,239,230,.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin-top: 8px; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__strip {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--navy-line);
}
.hero__strip li {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(244,239,230,.62);
  display: flex; flex-direction: column;
  gap: 6px;
}
.hero__strip li span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -.01em;
}

.hero__photo {
  margin: 0;
  position: relative;
  align-self: stretch;
}
.photo-frame {
  position: relative;
  height: 100%;
  min-height: 540px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.25);
}
.photo-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,31,58,.4) 100%);
  z-index: 1;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.2s var(--ease);
}
.photo-frame:hover img { transform: scale(1.03); }
.photo-frame__tag {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  background: rgba(244,239,230,.96);
  color: var(--navy);
  padding: 14px 20px;
  border-radius: 2px;
  display: flex; flex-direction: column;
  border-left: 2px solid var(--brass);
}
.tag__line {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.tag__sub {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.hero__meta {
  position: relative;
  z-index: 2;
  margin: 60px auto 0;
  max-width: var(--container);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,239,230,.55);
}
.hero__meta .dot {
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .photo-frame { min-height: 480px; }
  .hero__meta { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .photo-frame { min-height: 420px; }
  .photo-frame img { object-position: 50% 22%; }
  .hero__strip {
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero__strip li { flex: 1 1 auto; min-width: 80px; }
}
@media (max-width: 380px) {
  .hero { padding-top: clamp(110px, 26vw, 140px); }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .photo-frame { min-height: 380px; }
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
  gap: 24px;
}
.section-head__sub {
  max-width: 60ch;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
  line-height: 1.6;
}
.section-head--cream .section-head__sub { color: rgba(244,239,230,.72); }

/* ============ FILOSOFIA / PILLARS ============ */
.filosofia {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.pillars {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 72px);
  border-top: 1px solid var(--cream-line);
  padding-top: clamp(40px, 5vw, 72px);
}
.pillar {
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
}
.pillar:not(:last-child)::after {
  content: "";
  position: absolute;
  right: clamp(-20px, -2vw, -36px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--cream-line);
}
.pillar__num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  color: var(--brass-deep);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.pillar h3 {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1.1;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 30ch;
}

@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
  .pillar:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .pillar::after { display: none !important; }
  .pillar:not(:last-child) {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--cream-line);
  }
  .pillar p { max-width: none; }
}

/* ============ SERVIÇOS ============ */
.servicos {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.cards {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2vw, 32px);
  position: relative;
  z-index: 2;
}
.card {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(244,239,230,.04) 0%, rgba(244,239,230,.02) 100%);
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.card:hover {
  background: rgba(244,239,230,.06);
  border-color: rgba(184,153,104,.45);
  transform: translateY(-2px);
}
.card__num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: 28px;
  color: var(--brass);
  letter-spacing: -.02em;
}
.card h3 {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cream);
}
.card h3 span {
  color: var(--brass-soft);
  font-style: italic;
  font-weight: 360;
}
.card p {
  color: rgba(244,239,230,.72);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}
.card__arrow {
  margin-top: auto;
  font-family: var(--display);
  font-size: 28px;
  color: var(--brass);
  transform: translateX(0);
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.card:hover .card__arrow {
  transform: translateX(8px);
  color: var(--brass-soft);
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 28px 24px; }
  .card__num { font-size: 32px; }
}

/* ============ SOBRE ============ */
.sobre {
  background: var(--cream);
  padding: var(--section-y) var(--pad-x);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.sobre__photo {
  margin: 0;
  position: sticky;
  top: 100px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.sobre__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 4px;
  filter: contrast(1.02) saturate(0.96);
}
.sobre__photo figcaption {
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sobre__photo .dot {
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
}

.sobre__copy {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 8px;
}
.sobre__body {
  display: flex; flex-direction: column; gap: 20px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}
.sobre__body strong {
  color: var(--navy);
  font-weight: 600;
}
.sobre__body blockquote {
  margin: 16px 0;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--brass);
  font-family: var(--display);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
}

.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--cream-line);
  padding-top: 28px;
  margin-top: 8px;
}
.creds li {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.creds li strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.01em;
  color: var(--navy);
  line-height: 1;
}

@media (max-width: 960px) {
  .sobre { grid-template-columns: 1fr; gap: 40px; }
  .sobre__photo { position: static; }
  .sobre__photo img {
    aspect-ratio: 16 / 11;
    max-height: 52vh;
    object-position: 50% 22%;
  }
  .creds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .sobre__photo img {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
}

/* ============ CTA FINAL ============ */
.cta-final {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  padding: var(--section-y) var(--pad-x);
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 30vw, 400px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.cta-final__inner {
  position: relative; z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-final h2 { line-height: 1; }
.cta-final .lede {
  text-align: center;
  margin: 0 auto;
}
.cta-final__micro {
  display: flex; align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,239,230,.55);
}
.cta-final__micro .dot {
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(244,239,230,.72);
  padding: 80px var(--pad-x) 32px;
  border-top: 1px solid var(--navy-line);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-grid__brand img {
  height: 56px; width: auto;
  margin-bottom: 16px;
}
.footer-grid__brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
  color: rgba(244,239,230,.6);
}
.footer-grid__col h4 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-grid__col ul li {
  padding: 4px 0;
  font-size: 14px;
}
.footer-grid__col a {
  color: rgba(244,239,230,.78);
  transition: color .3s var(--ease);
}
.footer-grid__col a:hover { color: var(--brass-soft); }

.footer-bar {
  max-width: var(--container);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,239,230,.4);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-grid__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { font-size: 10px; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ SELECTION ============ */
::selection {
  background: var(--brass);
  color: var(--navy-deep);
}
