/* ===================== TOKENS ===================== */
:root {
  /* Base verde-escura institucional (alinhada ao brasão HJ Segurança) + dourado */
  --black: #08110b;          /* fundo principal */
  --graphite: #0f1a12;       /* superfície / seções alternadas */
  --graphite-2: #14211a;     /* superfície de cards */
  --line: #2b4234;           /* linhas e bordas (verde sutil) */
  --gold: #d4af37;           /* destaque / CTA */
  --gold-bright: #f2c94c;    /* dourado claro */
  --white: #f5f6f7;          /* texto */
  --muted: #9aa89f;          /* texto suave (cinza-esverdeado) */
  --green: #14512f;          /* verde da marca */
  --green-bright: #1c6b3f;   /* verde claro (hover/realce) */
  --navy: #0c2a19;           /* faixa de indicadores (verde profundo) */
  --atlas-green: #b4d335;    /* verde-limão da Atlas (crédito do rodapé) */

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --t: .25s ease;

  --font-head: 'Oswald', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; text-transform: uppercase; letter-spacing: .5px; }
button { font-family: inherit; }

/* ===================== LAYOUT ===================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 820px; }

.section { padding: 90px 0; }
.section--alt { background: var(--graphite); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__eyebrow { color: var(--gold); font-family: var(--font-head); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section__lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
  font-size: .95rem; padding: 14px 28px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: var(--t); font-weight: 600;
}
.btn--primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--black); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 55, .35); }
.btn--primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

/* ===================== HEADER ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: var(--t); border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(8, 17, 11, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.brand__text strong { font-size: 1.4rem; letter-spacing: 1px; }
.brand__text small { color: var(--gold); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; color: var(--white); transition: var(--t); position: relative; }
.nav__link:not(.nav__link--cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: var(--t); }
.nav__link:not(.nav__link--cta):hover::after,
.nav__link.is-active:not(.nav__link--cta)::after { width: 100%; }
.nav__link:hover, .nav__link.is-active { color: var(--gold); }
.nav__link--cta { background: var(--gold); color: var(--black); padding: 9px 18px; border-radius: 8px; }
.nav__link--cta:hover { background: var(--gold-bright); color: var(--black); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--black); }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,17,11,.7) 0%, rgba(8,17,11,.55) 45%, rgba(8,17,11,.95) 100%),
  radial-gradient(circle at 20% 30%, rgba(212,175,55,.12), transparent 45%); }
.hero__content { max-width: 820px; padding-top: 76px; }
.hero__eyebrow { color: var(--gold); font-family: var(--font-head); letter-spacing: 4px; text-transform: uppercase; font-size: .85rem; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.hero__title span { color: var(--gold); display: block; }
.hero__subtitle { color: #d7dade; font-size: clamp(1rem, 2vw, 1.25rem); margin: 22px 0 34px; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ===================== STATS ===================== */
.stats { background: var(--navy); border-block: 1px solid var(--line); padding: 46px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ===================== GRIDS / CARDS ===================== */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: var(--t); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.section--alt .card { background: var(--graphite); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: var(--t); }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon { font-size: 2rem; margin-bottom: 16px; }
.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: .98rem; flex: 1; }
.card__cta { align-self: flex-start; margin-top: 18px; background: none; border: none; color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; cursor: pointer; transition: var(--t); }
.card__cta:hover { color: var(--gold-bright); gap: 10px; letter-spacing: 1.6px; }

/* Diferenciais */
.grid--diff { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.diff { padding: 26px; border-left: 3px solid var(--gold); background: var(--graphite-2); border-radius: 0 var(--radius) var(--radius) 0; }
.section--alt .diff { background: var(--black); }
.diff__num { font-family: var(--font-head); color: var(--gold); font-size: 1.4rem; letter-spacing: 2px; }
.diff h3 { font-size: 1.15rem; margin: 8px 0; }
.diff p { color: var(--muted); font-size: .96rem; }

/* ===================== EVENTOS (cards com foto) ===================== */
.eventos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.evento {
  position: relative; min-height: 220px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; border: 1px solid var(--line);
  display: flex; align-items: flex-end; transition: var(--t);
}
.evento::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,11,.15), rgba(8,17,11,.85)); transition: var(--t); }
.evento:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.evento:hover::after { background: linear-gradient(180deg, rgba(212,175,55,.15), rgba(8,17,11,.9)); }
.evento__label { position: relative; z-index: 1; padding: 20px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; }

/* ===================== SOBRE ===================== */
.sobre__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sobre__media img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.sobre__text .section__eyebrow { text-align: left; }
.sobre__text .section__title { text-align: left; margin-bottom: 18px; }
.sobre__text p { color: var(--muted); margin-bottom: 14px; }
.sobre__list { margin-top: 18px; display: grid; gap: 10px; }
.sobre__list li { padding-left: 28px; position: relative; color: var(--white); }
.sobre__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ===================== GALERIA ===================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1; cursor: pointer; border: 1px solid var(--line); padding: 0; background: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,17,11,.7)); opacity: 0; transition: var(--t); }
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ===================== DEPOIMENTOS ===================== */
.depo { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.depo::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-family: var(--font-head); font-size: 4rem; color: var(--gold); opacity: .35; line-height: 1; }
.depo p { color: var(--white); font-style: italic; margin: 14px 0 18px; position: relative; }
.depo footer { color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .88rem; }
.depo footer span { color: var(--muted); text-transform: none; letter-spacing: 0; font-style: italic; }

/* ===================== FAQ ===================== */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 22px; }
.section--alt .faq__item { background: var(--black); }
.faq__item summary { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 1.02rem; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; transition: var(--t); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; }

/* ===================== FORM ===================== */
.form { background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 20px; }
.section--alt .form { background: var(--black); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--muted); }
.form input, .form select, .form textarea {
  background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px;
  color: var(--white); font-family: var(--font-body); font-size: .98rem; transition: var(--t); width: 100%;
}
.section--alt .form input, .section--alt .form select, .section--alt .form textarea { background: var(--graphite-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.form input::placeholder, .form textarea::placeholder { color: #5e636c; }
.form input.is-error, .form select.is-error { border-color: #c0563c; }
.form__hint { text-align: center; color: var(--muted); font-size: .85rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--graphite); border-top: 1px solid var(--line); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.footer__brand p { margin-bottom: 6px; }
.footer__muted { color: var(--muted); font-size: .9rem; }
.footer__col h4 { color: var(--gold); margin-bottom: 16px; font-size: 1rem; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a, .footer__col li { color: var(--muted); transition: var(--t); }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.footer__bottom p { color: var(--muted); font-size: .82rem; }
.footer__credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; transition: var(--t); }
.footer__credit-logo { color: var(--atlas-green); flex-shrink: 0; }
.footer__credit strong { color: var(--atlas-green); font-family: var(--font-head); letter-spacing: .5px; font-weight: 600; }
.footer__credit:hover { color: var(--white); }

/* ===================== WHATSAPP FLOAT + TO TOP ===================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: var(--t); animation: wapulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes wapulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); } }

.to-top {
  position: fixed; bottom: 92px; right: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--graphite-2); color: var(--gold); font-size: 1.3rem; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== MOBILE ===================== */
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8,17,11,.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    padding: 12px 0; transform: translateY(-130%); transition: var(--t); visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__link { padding: 16px 22px; width: 100%; text-align: center; }
  .nav__link--cta { margin: 10px 22px; }
  .nav-toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .sobre__inner { grid-template-columns: 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}

/* ===================== ACESSIBILIDADE: REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
