:root {
  --navy: #0b2744;
  --navy-deep: #071a2e;
  --maroon: #8e2030;
  --gold: #b79a6e;
  --gold-soft: #e8dcc8;
  --paper: #f3f5f7;
  --paper-warm: #faf8f5;
  --ink: #162033;
  --muted: #5c6b7e;
  --line: rgba(11, 39, 68, 0.12);
  --white: #ffffff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease), height .35s var(--ease);
  padding: 1.1rem 0;
  height: 74px;
}
.nav.scrolled {
  background: #faf8f5;
  box-shadow: 0 1px 0 var(--line);
  padding: .7rem 0;
  height: 58px;
}
.nav-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand img {
  height: 52px; width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 3px 6px;
}
.nav.scrolled .nav-brand img { height: 44px; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 26, 46, .62);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* Desktop: links na barra */
.nav-links {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem;
  font-size: .92rem; font-weight: 600; color: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  padding: 0 max(1rem, calc((100% - 1120px) / 2 + 3.5rem)) 0 max(1rem, calc((100% - 1120px) / 2));
  z-index: 55;
  pointer-events: none;
  background: transparent;
  transform: none;
}
.nav-links a {
  opacity: .78;
  transition: opacity .2s;
  pointer-events: auto;
}
.nav-links a:hover { opacity: 1; }
.nav-close {
  display: none;
  width: 40px; height: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: #eef1f4;
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  border: 0;
}
.nav-close svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  place-items: center; border-radius: 8px;
  background: #ffffff; color: var(--navy);
  position: relative; z-index: 110;
  box-shadow: 0 1px 0 var(--line);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) infinite alternate;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,26,46,.22) 0%, rgba(7,26,46,.15) 40%, rgba(7,26,46,.82) 100%),
    linear-gradient(90deg, rgba(7,26,46,.5) 0%, rgba(7,26,46,.12) 60%, transparent 100%);
}
.hero-content {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto 4.5rem;
  max-width: 34rem;
  animation: rise .9s var(--ease) both;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: .85rem;
}
.hero p {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.88);
  max-width: 30rem;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .9rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #c9ad7f; }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* SECTIONS */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--maroon);
  margin-bottom: .7rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 18ch;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

/* QUEM SOMOS */
.about {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(183,154,110,.18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(142,32,48,.06), transparent 50%),
    var(--paper-warm);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-copy p + p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.about-copy strong { color: var(--navy); font-weight: 700; }
.about-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 24px 60px rgba(7, 26, 46, .14);
}
.about-visual img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
}
.about-quote {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.45;
}
.about-quote cite {
  display: block;
  margin-top: .55rem;
  font-family: 'Figtree', sans-serif;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--maroon);
}

/* PILARES */
.pillars { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.pillars::before {
  content: '';
  position: absolute; inset: auto -10% -40% auto;
  width: 55%; height: 70%;
  background: radial-gradient(circle, rgba(183,154,110,.18), transparent 65%);
  pointer-events: none;
}
.pillars .section-title { color: var(--white); max-width: 22ch; }
.pillars .section-lead { color: rgba(255,255,255,.7); }
.pillars-head { margin-bottom: 2.8rem; }
.pillar-rows { display: grid; gap: 0; }
.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.pillar-row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.pillar-row.reverse { grid-template-columns: 1.15fr 1fr; }
.pillar-row.reverse .pillar-text { order: 2; }
.pillar-row.reverse .pillar-photo { order: 1; }
.pillar-kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .55rem;
}
.pillar-text h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: .7rem;
  letter-spacing: -0.01em;
}
.pillar-text p { color: rgba(255,255,255,.72); font-size: 1.02rem; max-width: 34rem; }
.pillar-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pillar-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pillar-row:hover .pillar-photo img { transform: scale(1.04); }

/* VIDA NO LAR */
.life { background: var(--paper); }
.life-head {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  margin-bottom: 2.2rem; flex-wrap: wrap;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: .85rem;
}
.mosaic figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 0;
}
.mosaic figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(7,26,46,.78));
  color: #fff;
  font-size: .86rem; font-weight: 600;
}

/* CONTATO */
.contact { background: var(--paper-warm); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1.35rem; margin-top: 1.8rem; }
.contact-item h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--maroon); margin-bottom: .3rem;
}
.contact-item p, .contact-item a {
  font-size: 1.05rem; color: var(--navy); font-weight: 600;
}
.contact-item a:hover { color: var(--maroon); }
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
  background: var(--navy);
  position: relative;
}
.contact-map img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover;
  opacity: .92;
}
.contact-map-label {
  position: absolute; left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(255,255,255,.95);
  color: var(--navy);
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .88rem; font-weight: 700;
  white-space: nowrap;
  max-width: calc(100% - 2rem);
}

.socials {
  display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem;
}
.socials a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.socials a svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding: 2.8rem 0 1.8rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}
.footer-tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: rgba(255,255,255,.9);
  font-size: 1.15rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .2rem;
  font-size: .9rem;
  font-weight: 600;
}
.footer-links a {
  padding: .35rem .7rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.footer-links a:hover {
  color: var(--gold);
  background: rgba(255,255,255,.05);
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: .65rem;
}
.footer-socials a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  transition: background .2s, color .2s, transform .2s;
}
.footer-socials a svg { width: 17px; height: 17px; fill: currentColor; }
.footer-socials a:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  width: 100%;
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  line-height: 1.45;
}

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .pillar-row,
  .pillar-row.reverse { grid-template-columns: 1fr; }
  .pillar-row.reverse .pillar-text,
  .pillar-row.reverse .pillar-photo { order: unset; }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .mosaic figure:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 230px;
  }

  /* Mobile drawer — fundo sólido (não herdar height/transparent do desktop) */
  .nav-links,
  .nav.scrolled ~ .nav-links,
  body:has(.nav.scrolled) .nav-links,
  .nav-links.open {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(85vw, 320px) !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    max-height: none !important;
    padding: 4.5rem 1.35rem 2rem !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    box-shadow: -16px 0 48px rgba(7, 26, 46, .28);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    transform: translateX(0) !important;
  }
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    opacity: 1 !important;
    color: var(--navy) !important;
    pointer-events: auto;
  }
  .nav-close { display: grid; }
  .nav-toggle { display: grid; }
  body.menu-open .nav-toggle {
    background: #ffffff;
  }

  .hero {
    align-items: center;
    text-align: center;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(7,26,46,.35) 0%, rgba(7,26,46,.45) 40%, rgba(7,26,46,.88) 100%);
  }
  .hero-content {
    margin: 5.5rem auto 3rem;
    max-width: 28rem;
  }
  .hero p { margin-inline: auto; }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  .btn { width: 100%; }

  .about-visual, .about-visual img { min-height: 300px; }
  .section-title { max-width: none; }
  .life-head { text-align: center; justify-content: center; }
  .life-head .section-lead { margin-inline: auto; }
  .contact .reveal:first-child { text-align: center; }
  .contact-list { text-align: center; }
  .socials { justify-content: center; }
}

@media (max-width: 560px) {
  .mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }
  .mosaic figure:nth-child(1) {
    grid-column: auto;
    min-height: 0;
  }
  .nav-brand img { height: 44px; }
  .pillars-head,
  .about-copy { text-align: center; }
  .about-quote { text-align: left; }
}

@media (min-width: 901px) {
  .nav.scrolled ~ .nav-links {
    height: 58px;
  }
}

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