@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #173455;
  --navy-deep: #0f2742;
  --gold: #dfb56e;
  --gold-light: #f2d9a6;
  --ink: #1c2732;
  --muted: #67727d;
  --paper: #ffffff;
  --soft: #f4f1eb;
  --line: rgba(23, 52, 85, .15);
  --shadow: 0 20px 55px rgba(15, 39, 66, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  background: rgba(15, 39, 66, .86);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 270px; max-height: 116px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -8px;
  background: var(--gold); transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-button {
  display: none; border: 0; background: transparent; padding: 9px; cursor: pointer;
}
.menu-button span { display: block; width: 26px; height: 2px; margin: 5px; background: #fff; }

.hero {
  min-height: 820px; position: relative; display: grid; align-items: center;
  background: var(--navy-deep); overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-photo img {
  position: absolute; right: 0; bottom: 0;
  width: 58%; height: 100%;
  object-fit: contain; object-position: right bottom;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,31,54,.96) 0%, rgba(10,31,54,.87) 42%, rgba(10,31,54,.34) 70%, rgba(10,31,54,.08) 100%),
    linear-gradient(0deg, rgba(10,31,54,.38), transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-top: 160px; color: #fff; }
.hero-content > * { max-width: 720px; }
.eyebrow {
  margin: 0 0 18px; color: var(--gold-light); text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem; font-weight: 700;
}
.eyebrow.dark { color: #a87931; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.06; }
h1 { margin: 0 0 24px; font-size: clamp(3rem, 6.2vw, 5.9rem); letter-spacing: -.035em; }
h2 { margin: 0 0 24px; font-size: clamp(2.45rem, 4.5vw, 4.2rem); color: var(--navy-deep); letter-spacing: -.025em; }
h3 { font-size: 1.8rem; margin: 0 0 12px; color: var(--navy-deep); }
.hero-text { font-size: 1.14rem; color: rgba(255,255,255,.84); max-width: 640px; }
.hero-actions, .contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 12px 30px rgba(223,181,110,.24); }
.button-outline { color: #fff; border: 1px solid rgba(255,255,255,.5); }
.button-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 78px; }
.section-copy p { color: var(--muted); margin: 0 0 17px; }
.note {
  margin-top: 28px !important; padding-left: 18px; border-left: 3px solid var(--gold);
  font-size: .93rem;
}
.image-card {
  margin: 0; background: var(--soft); padding: 14px; border-radius: var(--radius);
  box-shadow: var(--shadow); transform: rotate(1.2deg);
}
.image-card img { border-radius: calc(var(--radius) - 8px); aspect-ratio: 4 / 3; object-fit: cover; }
.image-card figcaption { padding: 13px 8px 3px; color: var(--muted); font-size: .86rem; }

.section-blue { background: var(--navy-deep); color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { color: #fff; }
.section-heading p:last-child { color: rgba(255,255,255,.72); }
.dark-heading h2 { color: var(--navy-deep); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 30px; min-height: 275px;
}
.card-number { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.card h3 { color: #fff; margin-top: 48px; }
.card p { color: rgba(255,255,255,.68); font-size: .93rem; }
.legal-note { margin: 28px 0 0; color: rgba(255,255,255,.55); text-align: center; font-size: .82rem; }

.team-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.team-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.team-members { display: grid; gap: 24px; }
.member { border-top: 1px solid var(--line); padding-top: 24px; }
.member:first-child { border-top: 0; padding-top: 0; }
.member p { color: var(--muted); }
.member .oab { color: #a87931; font-weight: 700; font-size: .82rem; letter-spacing: .08em; margin-bottom: 8px; }
.member .schedule { color: var(--navy); font-weight: 600; }

.section-soft { background: var(--soft); }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 270px); gap: 18px; }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 15px 40px rgba(15,39,66,.09); }
.gallery .gallery-main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-copy > p { color: var(--muted); font-size: 1.05rem; }
.text-link { color: var(--navy); font-weight: 700; text-underline-offset: 5px; }
.contact-card {
  font-style: normal; background: var(--navy-deep); color: #fff;
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  display: grid; gap: 25px;
}
.contact-card span {
  display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 700; margin-bottom: 6px;
}
.contact-card p { margin: 0; color: rgba(255,255,255,.82); }
.contact-card a { color: #fff; }
.map-link { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-decoration: none; font-weight: 700; }

.site-footer { background: #0b2037; color: rgba(255,255,255,.72); padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 160px 1fr 1.4fr; gap: 34px; align-items: center; }
.footer-grid img { width: 145px; }
.footer-grid p { margin: 3px 0; }
.footer-note { text-align: right; font-size: .82rem; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  background: #1f8f55; color: #fff; text-decoration: none; font-weight: 800;
  padding: 13px 18px; border-radius: 999px; box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav {
    position: absolute; top: 132px; left: 20px; right: 20px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    background: rgba(15,39,66,.98); border-radius: 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav a::after { display: none; }
  .hero { min-height: 760px; }
  .hero-photo img { width: 62%; height: 100%; object-fit: contain; object-position: right bottom; }
  .hero-overlay { background: linear-gradient(90deg, rgba(10,31,54,.96) 0%, rgba(10,31,54,.83) 55%, rgba(10,31,54,.42) 100%); }
  .split, .team-layout, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team-photo { max-width: 620px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 135px 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .brand img { width: 190px; max-height: 86px; }
  .nav-wrap { min-height: 100px; }
  .main-nav { top: 100px; }
  .hero { min-height: 760px; align-items: end; }
  .hero-photo { inset: 0; }
  .hero-photo img {
    width: 100%; height: 54%;
    right: 0; top: 0; bottom: auto;
    object-fit: contain; object-position: center top;
    opacity: .82;
  }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(10,31,54,.98) 0%, rgba(10,31,54,.91) 55%, rgba(10,31,54,.34) 100%);
  }
  .hero-content { padding: 175px 0 64px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .hero-actions .button { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .card h3 { margin-top: 30px; }
  .gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery .gallery-main { grid-row: auto; }
  .gallery figure { height: 250px; }
  .contact-card { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .whatsapp-float span { display: none; }
  .whatsapp-float::after { content: "WA"; }
  .whatsapp-float { width: 54px; height: 54px; padding: 0; display: grid; place-items: center; }
}

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

/* Atualização fotográfica — ensaio 2026 */
.team-members-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.member-profile {
  border-top: 0;
  padding-top: 0;
}
.member-photo {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.member-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .team-members-portraits { grid-template-columns: 1fr; }
  .member-profile { max-width: 620px; margin-inline: auto; }
}

/* Hero estável 2026 — imagem independente, sem recorte por cover */
@media (min-width: 681px) {
  .hero {
    min-height: 720px;
    background: linear-gradient(90deg, #0a1f36 0%, #173455 42%, #d8dde3 70%, #f5f5f4 100%);
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-photo img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 100%;
    max-width: 59vw;
    object-fit: contain;
    object-position: right center;
    display: block;
  }
  .hero-overlay {
    background: linear-gradient(90deg,
      rgba(10,31,54,.98) 0%,
      rgba(10,31,54,.94) 36%,
      rgba(10,31,54,.72) 51%,
      rgba(10,31,54,.18) 67%,
      rgba(10,31,54,0) 78%);
  }
  .hero-content {
    padding-top: 132px;
    padding-bottom: 70px;
  }
  .hero-content > * { max-width: 650px; }
  h1 { font-size: clamp(3rem, 5.2vw, 5.45rem); }
}

@media (min-width: 1400px) {
  .hero-photo img { max-width: 54vw; }
  .hero-content > * { max-width: 680px; }
}

@media (max-width: 680px) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #0a1f36;
    overflow: hidden;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    height: 430px;
    background: #f4f4f3;
    overflow: hidden;
  }
  .hero-photo img {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    opacity: 1;
    display: block;
  }
  .hero-overlay { display: none; }
  .hero-content {
    order: 1;
    position: relative;
    padding: 50px 0 64px;
    color: #fff;
  }
  .hero-content > * { max-width: none; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
}
