/* ===== Tokens ===== */
:root {
  --petroleo: #2F5D5C;
  --petroleo-dark: #1B3334;
  --grafite: #26282A;
  --dourado: #C9A227;
  --dourado-light: #E4C158;
  --bruma: #EFF4F2;
  --musgo: #6B8C89;
  --musgo-text: #45615E;
  --marfim: #FBFAF6;
  --white: #FFFFFF;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --max-width: 1180px;
  --radius: 4px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bruma);
  color: var(--grafite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 93, 92, 0.15);
}

#sobre, #reconhecimento, #localidades, #vagas, #contato {
  scroll-margin-top: 96px;
}

/* ===== Scroll reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pillars-grid .pillar:nth-child(2).is-visible { transition-delay: 0.1s; }
.pillars-grid .pillar:nth-child(3).is-visible { transition-delay: 0.2s; }
.awards-row .medal:nth-child(2).is-visible { transition-delay: 0.08s; }
.awards-row .medal:nth-child(3).is-visible { transition-delay: 0.16s; }
.awards-row .medal:nth-child(4).is-visible { transition-delay: 0.24s; }
.location-trail li:nth-child(2).is-visible { transition-delay: 0.06s; }
.location-trail li:nth-child(3).is-visible { transition-delay: 0.12s; }
.location-trail li:nth-child(4).is-visible { transition-delay: 0.18s; }
.location-trail li:nth-child(5).is-visible { transition-delay: 0.24s; }
.location-trail li:nth-child(6).is-visible { transition-delay: 0.3s; }
.location-trail li:nth-child(7).is-visible { transition-delay: 0.36s; }
.about-body p:nth-child(2).is-visible { transition-delay: 0.1s; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--grafite);
  margin: 0 0 0.5em;
  line-height: 1.1;
  text-wrap: balance;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--dourado);
  color: var(--grafite);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--dourado);
  color: var(--petroleo-dark);
}
.btn-gold:hover { background: var(--dourado-light); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 93, 92, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--grafite);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--grafite);
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--grafite);
}
.nav-list a:hover { color: var(--petroleo); }

.nav-cta {
  background: var(--dourado);
  color: var(--petroleo-dark) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--dourado-light); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--petroleo-dark);
  overflow: hidden;
  padding: 88px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: heroZoom 9s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-links {
  animation: heroRise 0.7s ease both;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lead { animation-delay: 0.32s; }
.hero-actions { animation-delay: 0.46s; }
.hero-links { animation-delay: 0.58s; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--petroleo-dark) 28%, rgba(27, 51, 52, 0.78) 52%, rgba(27, 51, 52, 0.35) 78%),
    linear-gradient(0deg, rgba(15, 30, 30, 0.5), transparent 40%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dourado-light);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 15ch;
}

.hero-lead {
  color: rgba(251, 250, 246, 0.85);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 22px 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 250, 246, 0.8);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-link:hover { color: var(--dourado-light); }

.hero-panel {
  position: relative;
  height: 420px;
}
.panel-stat {
  position: absolute;
  top: 14%;
  left: 8%;
  background: var(--marfim);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: heroRise 0.7s ease both;
  animation-delay: 0.55s;
}
.panel-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--petroleo);
  line-height: 1;
}
.panel-stat-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--grafite);
  max-width: 14ch;
}
.panel-stat-secondary {
  top: auto;
  bottom: 12%;
  left: auto;
  right: 6%;
  background: var(--petroleo-dark);
  border: 1px solid rgba(201,162,39,0.4);
  animation-delay: 0.72s;
}
.panel-stat-secondary .panel-stat-num,
.panel-stat-secondary .panel-stat-label { color: var(--white); }
.panel-stat-secondary .panel-stat-num { color: var(--dourado-light); }

/* ===== About ===== */
.about { padding: 92px 0; }
.about-inner { max-width: 760px; }
.about-intro {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--petroleo-dark);
  line-height: 1.4;
  margin-bottom: 32px;
}
.about-body p {
  font-size: 1.08rem;
  color: var(--grafite);
  margin-bottom: 20px;
  max-width: 68ch;
}

/* ===== Pillars ===== */
.pillars { padding-bottom: 92px; }
.pillars-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.pillar {
  padding: 36px;
  border-radius: var(--radius);
}
.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.pillar p { margin: 0 0 14px; font-size: 1rem; max-width: 42ch; }
.pillar p:last-child { margin-bottom: 0; }
.pillar-wide p { max-width: 38ch; }

.pillar-wide {
  grid-row: 1 / 3;
  background: var(--petroleo-dark);
  color: var(--marfim);
}
.pillar-wide h3 { color: var(--dourado-light); }
.pillar-wide p { color: rgba(251,250,246,0.85); }

.pillars-grid > .pillar:not(.pillar-wide) {
  background: var(--marfim);
  border: 1px solid rgba(47,93,92,0.14);
}

/* ===== Awards ===== */
.awards {
  background: var(--marfim);
  padding: 92px 0;
  border-top: 1px solid rgba(47,93,92,0.12);
  border-bottom: 1px solid rgba(47,93,92,0.12);
}
.awards h2 { font-size: 2rem; }
.awards-lead {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--grafite);
  margin-bottom: 40px;
}
.awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.medal {
  flex: 1 1 200px;
  padding: 28px 24px;
  background: var(--white);
  border: 1.5px solid rgba(201,162,39,0.35);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.medal-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--petroleo-dark);
  font-variant-numeric: tabular-nums;
}
.medal-tier {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--musgo-text);
}
.medal-highlight {
  background: var(--petroleo-dark);
  border-color: var(--dourado);
}
.medal-highlight .medal-year { color: var(--dourado-light); }
.medal-highlight .medal-tier { color: rgba(251,250,246,0.8); }

/* ===== Locations ===== */
.locations { padding: 92px 0; }
.locations h2 { font-size: 2rem; }
.locations-lead {
  color: var(--musgo-text);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.location-trail {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  counter-reset: none;
}
.location-trail li {
  position: relative;
  padding: 14px 28px 14px 0;
  margin-right: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--grafite);
  border-right: 1.5px dashed rgba(107,140,137,0.4);
}
.location-trail li:last-child { border-right: none; margin-right: 0; }
.location-trail li.hub {
  font-weight: 700;
  color: var(--petroleo-dark);
  font-size: 1.2rem;
}
.location-trail li.hub span {
  display: inline-block;
  margin-left: 10px;
  background: var(--dourado);
  color: var(--petroleo-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  vertical-align: middle;
}

/* ===== Jobs (destaque) ===== */
.jobs {
  position: relative;
  background: var(--petroleo);
  color: var(--white);
  padding: 100px 0;
  overflow: hidden;
}
.jobs-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  opacity: 0.9;
}
.jobs-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 41, 41, 0.6);
}
.jobs-inner { position: relative; max-width: 700px; }
.jobs h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.jobs p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.9);
  max-width: 56ch;
  margin-bottom: 36px;
}
.jobs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--grafite);
  color: var(--marfim);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,250,246,0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { border-radius: 50%; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}
.footer-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(251,250,246,0.65);
}
.footer-address p { margin: 0 0 12px; font-size: 0.95rem; color: rgba(251,250,246,0.85); }
.footer-social { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-decoration: none;
  color: rgba(251,250,246,0.85);
  border-bottom: 1px solid rgba(251,250,246,0.3);
  padding-bottom: 2px;
}
.footer-link:hover { color: var(--dourado-light); border-color: var(--dourado-light); }
.footer-link-gold { color: var(--dourado-light); border-color: var(--dourado-light); }

.footer-legal {
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(251,250,246,0.55);
}

/* ===== Floating actions ===== */
.floating-actions {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.floating-actions.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--petroleo-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform 0.15s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab-gold { background: var(--dourado); color: var(--petroleo-dark); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-bg { object-position: 70% 22%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, var(--petroleo-dark) 0%, rgba(27, 51, 52, 0.8) 42%, rgba(27, 51, 52, 0.4) 100%);
  }
  .hero-panel { height: 260px; margin-top: 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-wide { grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--marfim);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(47,93,92,0.12);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; padding: 10px 0; }
  .nav-cta { display: inline-block; margin-top: 8px; }
  .hero { padding: 64px 0 72px; }
  .location-trail li { border-right: none; margin-right: 0; padding-right: 0; width: 100%; }
}
