/* ============================================================
   Select Operations S.A. — Institutional site
   Tema escuro premium · HTML/CSS/JS puro
   ============================================================ */

:root {
  /* Palette */
  --ink-900: #090d13;
  --ink-800: #0c1118;
  --ink-700: #111824;
  --ink-600: #18212f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e9edf3;
  --text-muted: #97a3b4;
  --text-dim: #6b7787;

  --gold: #d8b15a;
  --gold-soft: #e6cf95;
  --green: #2fae6a;
  --green-soft: #4fd089;

  --accent: var(--gold);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--ink-800);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

p { color: var(--text-muted); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #2a1f04;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(216, 177, 90, 0.5); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--full { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
}
.topbar__badge {
  font-weight: 700;
  font-size: 0.72rem;
  background: var(--green);
  color: #052a16;
  padding: 2px 8px;
  border-radius: 6px;
}
.topbar__link { margin-left: auto; color: var(--gold); font-weight: 600; }
.topbar__link:hover { color: var(--gold-soft); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #9a7b2e);
  position: relative;
  flex-shrink: 0;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 2px solid var(--ink-900);
  border-radius: 3px;
}
.brand__text { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.brand__text strong { color: var(--gold); font-weight: 700; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s ease;
  position: relative;
}
.nav a:hover { color: var(--text); }
.header__cta { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-800);
}
.mobile-nav a {
  padding: 12px 4px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(70px, 12vw, 130px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(216, 177, 90, 0.10), transparent 60%),
    var(--ink-800);
}
.hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(47, 174, 106, 0.10), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 64px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
}
.stat dd { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--ink-700); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 48px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.grid-2--reverse .compliance-card { order: -1; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-list li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.feature-list__icon { color: var(--gold); font-size: 0.9rem; margin-top: 4px; }
.feature-list h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.feature-list p { font-size: 0.94rem; }

/* ---------- Brands ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.brand-card {
  background: linear-gradient(180deg, var(--ink-600), var(--ink-700));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.brand-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.22s ease;
}
.brand-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.brand-card:hover::before { opacity: 1; }
.brand-card__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.brand-card__logo span { font-weight: 400; }
.brand-card__logo--mma { color: #ff5a4d; }
.brand-card__logo--mma span { color: var(--text); }
.brand-card__logo--papi { color: var(--gold); }
.brand-card__logo--papi span { color: var(--text); }
.brand-card__logo--in2 { color: var(--green-soft); }
.brand-card__logo--in2 span { color: var(--text); }
.brand-card h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.brand-card p { font-size: 0.95rem; margin-bottom: 18px; }
.brand-card__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Compliance / timeline ---------- */
.compliance-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.compliance-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.timeline { display: grid; gap: 4px; }
.timeline li { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px; top: 16px; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.timeline__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 5px; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(216, 177, 90, 0.14);
}
.timeline strong { display: block; font-weight: 600; font-size: 0.96rem; margin-bottom: 3px; }
.timeline p { font-size: 0.9rem; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  border-radius: 999px;
}
.badge--age { background: var(--green); color: #052a16; border-color: transparent; }

/* ---------- Cards 3 ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}
.info-card {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: border-color 0.2s ease;
}
.info-card:hover { border-color: var(--gold); }
.info-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.info-card p { font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(120deg, rgba(216,177,90,0.12), rgba(47,174,106,0.08));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 34px;
}
.cta-band p { color: var(--text); font-size: 1.05rem; margin: 0; max-width: 600px; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 2px; margin-top: 26px; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  min-width: 78px;
  font-weight: 600;
}
.contact-list a:hover { color: var(--gold); }

/* ---------- Form ---------- */
.form {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 177, 90, 0.16);
}
.field textarea { resize: vertical; }
.form__note { font-size: 0.88rem; min-height: 1.2em; margin: 0; }
.form__note.is-ok { color: var(--green-soft); }
.form__note.is-error { color: #ff7a6e; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 56px;
}
.footer__brand p { font-size: 0.92rem; margin-top: 16px; max-width: 280px; }
.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer__col a { display: block; color: var(--text-muted); font-size: 0.94rem; padding: 5px 0; }
.footer__col a:hover { color: var(--gold); }
.footer__badges { display: flex; gap: 10px; margin-top: 18px; margin-bottom: 14px; }
.footer__company address {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer__company address strong { color: var(--text); font-weight: 600; }
.footer__fineprint { font-size: 0.82rem; color: var(--text-dim); }
.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 22px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.footer__bottom-inner p { color: var(--text-dim); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--reverse .compliance-card { order: 0; }
  .brands, .cards-3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topbar__inner { flex-wrap: wrap; }
  .topbar__link { margin-left: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
}
