:root {
  --purple-1: #3a12a8;
  --purple-2: #1c0652;
  --purple-3: #0f0330;
  --black: #111111;
  --white: #ffffff;
  --orange: #ff9a47;
  --muted: #8d8d8d;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-weight: 400; color: var(--black);
  background: radial-gradient(ellipse at 50% 55%, var(--purple-1) 0%, var(--purple-2) 45%, var(--purple-3) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* Moldura roxa em volta da página */
.frame {
  width: min(1240px, 100% - 48px); margin: 36px auto; background: var(--black);
  border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem); background: var(--black); color: var(--white);
}
.logo { font-weight: 600; font-size: 1.5rem; letter-spacing: -.03em; color: var(--white); }
.logo span { color: var(--orange); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a { font-size: .85rem; font-weight: 400; color: #d7d7d7; transition: color .2s; }
.nav a:hover { color: var(--orange); }

/* Hero / título */
.hero {
  position: relative; background: var(--black); color: var(--white);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(7rem, 12vw, 11rem);
}
.hero::after {  /* curva branca, como na referência */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: clamp(70px, 10vw, 140px);
  background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.25rem; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
h1 span { color: var(--orange); font-weight: 400; }
.lead { margin-top: 1.5rem; max-width: 42ch; font-size: 1.05rem; font-weight: 300; line-height: 1.7; color: #c9c9c9; }

/* Fotos arredondadas (placeholders) */
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.photo {
  border-radius: 22px; aspect-ratio: 3 / 4;
  background: linear-gradient(155deg, #2a2a2a, #181818); border: 1px solid #2f2f2f;
}
.p1 { grid-row: span 2; aspect-ratio: 3 / 5; background: linear-gradient(155deg, #4a2a0c, #1a1005); }
.p2 { aspect-ratio: 4 / 3; background: linear-gradient(155deg, #3a12a8, #1c0652); }
.p3 { aspect-ratio: 4 / 3; background: linear-gradient(155deg, var(--orange), #c4581a); border: 0; }

/* Quem somos */
.about { background: var(--white); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem); }
.about-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.label { font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: #555; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; color: var(--black); }
h2 span { color: var(--orange); }
.about-text { margin: 1.75rem auto 0; max-width: 60ch; font-size: 1rem; line-height: 1.8; color: #555; font-weight: 400; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; text-align: left; }
.card { border-radius: 22px; padding: 2rem 1.75rem 2.25rem; }
.card-dark { background: var(--black); color: var(--white); }
.card-orange { background: var(--orange); color: var(--black); }
.num { display: block; font-size: 1.6rem; font-weight: 300; margin-bottom: 2.25rem; }
.card-dark .num { color: var(--orange); }
.card h3 { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.card p { font-size: .9rem; line-height: 1.65; font-weight: 400; }
.card-dark p { color: #c9c9c9; }

/* Quem somos termina em curva sobre a seção escura */
.about { padding-bottom: clamp(5rem, 9vw, 8rem); border-radius: 0 0 50% 50% / 0 0 clamp(50px, 7vw, 110px) clamp(50px, 7vw, 110px); }

/* Atuação / mapa */
.reach { background: var(--black); color: var(--white); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.reach-inner { max-width: 1080px; margin-inline: auto; text-align: center; }
.reach .label { color: #bdbdbd; }
.reach h2 { color: var(--white); }
.reach-text { margin: 1.5rem auto 0; max-width: 56ch; line-height: 1.8; color: #c9c9c9; }
.reach-text strong { color: var(--orange); font-weight: 600; }

.reach-chips { display: flex; justify-content: center; gap: .75rem; margin: 2rem 0 1.5rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.3rem; border-radius: 999px;
  border: 1px solid #3a3a3a; background: transparent; color: var(--white);
  font: 500 .9rem var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.chip:hover, .chip.on { border-color: var(--orange); background: var(--orange); color: var(--black); }
.chip:hover i, .chip.on i { background: var(--black); }

.map-wrap {
  position: relative; border-radius: 22px; overflow: hidden; background: #1a1a1a;
  border: 1px solid #2a2a2a; cursor: grab; touch-action: none;
}
.map-wrap.dragging { cursor: grabbing; }
#world-map { display: block; width: 100%; height: auto; user-select: none; }
.country { fill: #3a3a3a; stroke: #1a1a1a; stroke-width: .5; transition: fill .2s; }
.country:hover { fill: #4a4a4a; }
.country.active { fill: var(--orange); cursor: pointer; }
.country.active:hover, .country.active.on { fill: #ffb46f; }
.marker { pointer-events: none; }
.marker .dot { fill: var(--black); }
.marker .pulse { fill: none; stroke: var(--black); stroke-width: 1.5; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { r: 4; opacity: .9; } 100% { r: 16; opacity: 0; } }

.map-tip {
  position: absolute; z-index: 2; padding: .4rem .8rem; border-radius: 8px; font-size: .8rem; font-weight: 500;
  background: var(--white); color: var(--black); pointer-events: none; transform: translate(-50%, -140%); white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6);
}
.map-tip small { color: var(--orange); font-weight: 600; margin-left: .4rem; }
.map-controls { position: absolute; top: 12px; right: 12px; display: grid; gap: 6px; }
.map-controls button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; color: var(--white);
  font: 500 1.1rem var(--font); cursor: pointer; transition: border-color .2s, color .2s;
}
.map-controls button:hover { border-color: var(--orange); color: var(--orange); }
.map-legend { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: #bdbdbd; }
.map-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }

/* Rodapé */
.site-footer { background: var(--black); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { margin-top: .75rem; font-size: .85rem; line-height: 1.6; color: #b5b5b5; font-weight: 300; }
.footer-grid h4 { font-size: 1.05rem; font-weight: 400; color: var(--orange); margin-bottom: 1rem; }
.footer-grid li { margin-bottom: .45rem; font-size: .85rem; font-weight: 300; color: #d7d7d7; }
.footer-grid li a:hover { color: var(--orange); }
.copy { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2a2a2a; font-size: .75rem; color: var(--muted); text-align: center; }

/* Entrada suave */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 860px) {
  .frame { width: calc(100% - 24px); margin: 12px auto; }
  .hero-inner, .footer-grid { grid-template-columns: 1fr; }
  .hero-photos { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
