/**
 * CAOM WEB - Global Stylesheet (Base V2)
 * Aesthetic: Industrial Steel & Ritual Bronze
 */

@font-face {
  font-family: 'Burning Wrath';
  src: url('../fonts/b_wrath.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Color Palette */
  --bg-deep: #0b0b0c;
  --bg-alt: #060606;
  --surface: #1a1a1c;
  --line: #26262a;
  
  --steel-light: #e7e7e9;
  --steel-medium: #8a8d92;
  --steel-dark: #70737a;
  
  --bronze: #b08a4a;
  --bordo: #4a0e0e;
  --bordo-vivo: #800000;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0b0b0c;
  color: #e7e7e9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ====== BRONZE SEAL — ritual ornament ====== */
.hero { position: relative; overflow: hidden; }
.hero-bronze {
  position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 720px; opacity: .06; pointer-events: none;
  filter: grayscale(.2) brightness(.9);
  mix-blend-mode: screen;
}
.hero-bronze img { width: 100%; }
.hero-grid { position: relative; z-index: 2; }

.motto-band {
  border-top: 1px solid #26262a;
  border-bottom: 1px solid #26262a;
  background:
    radial-gradient(ellipse at center, rgba(176,138,74,0.08), transparent 70%),
    #080809;
  padding: 28px 56px;
}
.motto-band .mb-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 56px 1fr 56px; gap: 36px; align-items: center;
}
.motto-band .mb-seal {
  width: 56px; opacity: .9;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.motto-band .mb-text { text-align: center; }
.motto-band .mb-latin {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 22px; letter-spacing: .36em; text-transform: uppercase;
  color: #b08a4a;
}
.motto-band .mb-pt {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase; color: #6e6f74;
  margin-top: 8px;
}

.seal-badge {
  width: 112px; height: 112px; margin: 0 auto 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,138,74,0.18), transparent 70%);
  display: grid; place-items: center;
}
.seal-badge img { width: 100%; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7)); }

footer { position: relative; overflow: hidden; }
.footer-seal {
  position: absolute; right: -120px; bottom: -120px;
  width: 420px; opacity: .04; pointer-events: none;
}
.footer-seal img { width: 100%; }

/* ====== TOP CONTROL BAR (Disabled for PHP) ====== */
.shell-bar { display: none; }

.page { display: block; } /* Multi-page model */

/* placeholder imagery */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 8px, rgba(255,255,255,0.02) 8px 16px),
    #1a1a1c;
  position: relative; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: auto 0 12px 0; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em;
  color: rgba(255,255,255,0.45); text-transform: uppercase;
}

/* ====== GRADIENTS & THEMES ====== */
.text-gradient-bordo {
  background: linear-gradient(180deg, #f5f5f7 0%, #70737a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.motto-text {
  font-family: 'Burning Wrath', cursive;
  color: #fff;
  font-size: 32px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.btn-bordo {
  background-image: url('../background_line_index.jpg.PNG') !important;
  background-size: cover !important;
  background-position: center !important;
  color: #fff !important;
  border: none !important;
}

.btn-bordo:hover {
  filter: brightness(1.2) !important;
  box-shadow: 0 0 20px rgba(128, 0, 0, 0.4);
}

.justify { text-align: justify; text-justify: inter-word; }

.overflow-seal {
  height: 320px !important;
  z-index: 10;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.9)) !important;
  transition: transform 0.3s ease;
}
.overflow-seal:hover { transform: scale(1.05); }


/* =========================================================
   INDUSTRIAL STEEL — Preto + aço escovado + branco
   ========================================================= */
.v1 {
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --surface: #1a1a1c;
  --ink: #f2f2f3;
  --ink-dim: #9aa0a6;
  --line: #26262a;
  --steel: #8a8d92;
  --steel-hi: #c9ccd1;
  --accent: #d6d8dc;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
.v1 .display { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.v1 .mono { font-family: 'JetBrains Mono', monospace; }

.v1 .nav {
  display: flex; align-items: center; gap: 32px;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line);
  background: #0b0b0c;
  position: sticky;
  top: 0;
  z-index: 100;
}
.v1 .nav .brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
}
.v1 .nav .brand img { width: 44px; height: 44px; }
.v1 .nav .brand small { display: block; color: var(--ink-dim); font-size: 10px; letter-spacing: .2em; }
.v1 .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.v1 .nav a { color: var(--ink-dim); text-decoration: none; cursor: pointer; transition: color 0.3s ease; }
.v1 .nav a:hover, .v1 .nav a.on { color: var(--bordo-vivo); }
.v1 .nav .cta {
  background: var(--ink); color: #000; padding: 10px 16px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; cursor: pointer; border: none; text-decoration: none;
}

/* HERO */
.v1 .hero {
  position: relative;
  padding: 120px 56px 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}
.v1 .hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
  max-width: 1320px; margin: 0 auto;
}
.v1 .meta-row {
  display: flex; gap: 16px; align-items: center; color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 28px;
}
.v1 .meta-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-hi); }
.v1 h1.hero-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 120px; line-height: 0.88; margin: 0 0 28px;
  letter-spacing: -0.015em; text-transform: uppercase;
}
.v1 h1.hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, #f5f5f7 0%, #8a8d92 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v1 .hero-sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-dim); max-width: 520px; margin: 0 0 40px;
}
.v1 .hero-ctas { display: flex; gap: 14px; }
.v1 .btn {
  padding: 18px 28px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; font-size: 13px; cursor: pointer; border: none;
  display: inline-flex; gap: 12px; align-items: center; text-decoration: none;
  background-image: url('../background_line_index.jpg.PNG');
  background-size: cover;
  background-position: center;
}
.v1 .btn.primary { background: var(--ink); color: #000; }
.v1 .btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }

.v1 .hero-medal {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
}
.v1 .hero-medal img { position: relative; width: 92%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7)); }

/* STATS */
.v1 .stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.v1 .stat {
  padding: 36px 40px; border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.v1 .stat:last-child { border-right: none; }
.v1 .stat .k {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 42px;
  line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #f5f5f7 0%, #70737a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v1 .stat .v {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim);
  margin-top: 10px;
}

/* SECTION */
.v1 section { 
  padding: 120px 56px; 
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  position: relative;
}
.v1 .wrap { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; }
.v1 .kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--steel-hi);
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.v1 .kicker::before { content: ""; width: 40px; height: 1px; background: var(--steel); }
.v1 h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 72px; line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
  margin: 0 0 32px;
}

.v1 .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.v1 .two-col p { color: var(--ink-dim); font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.v1 .pull {
  border-left: 2px solid var(--steel-hi); padding-left: 22px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 26px;
  line-height: 1.3; color: var(--ink); text-transform: none;
  margin: 32px 0;
}

/* PILLARS */
.v1 .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.v1 .pillar {
  background: var(--bg); padding: 40px 36px; min-height: 300px;
  display: flex; flex-direction: column;
}
.v1 .pillar .no {
  font-family: 'JetBrains Mono', monospace; color: var(--steel);
  font-size: 11px; letter-spacing: .2em;
}
.v1 .pillar h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 38px; line-height: 1; margin: 18px 0 20px; text-transform: uppercase;
}
.v1 .pillar p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.v1 .pillar .icon {
  width: 48px; height: 48px; border: 1px solid var(--line); display: grid; place-items: center;
  margin-top: 28px; color: var(--steel-hi);
}

/* EVENTS */
.v1 .events-grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; }
.v1 .event-list { display: flex; flex-direction: column; }
.v1 .event {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none;
}
.v1 .event:hover { background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent); }
.v1 .event .date {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 42px; line-height: 0.9;
}
.v1 .event .date small { display: block; font-size: 12px; color: var(--ink-dim); letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
.v1 .event .title { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.v1 .event .meta { color: var(--ink-dim); font-size: 13px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.v1 .event .arrow { color: var(--steel); font-size: 24px; }

.v1 .gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v1 .gal .ph { aspect-ratio: 1; }

/* FOOTER */
.v1 footer {
  padding: 80px 56px 32px;
  background: #060606;
}
.v1 .foot-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.v1 .foot-grid h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 20px;
}
.v1 .foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.v1 .foot-grid a { color: var(--ink); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.v1 .foot-grid a:hover { color: var(--bordo-vivo); }
.v1 .foot-grid .brand img { width: 64px; margin-bottom: 16px; }
.v1 .foot-grid .brand p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; max-width: 340px; margin: 0; }
.v1 .foot-copy {
  max-width: 1320px; margin: 24px auto 0; display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel);
}

/* Timeline */
.tl { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tl .yr { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 48px; line-height: 1; }
.tl h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; margin: 0 0 10px; text-transform: uppercase; }
.tl p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin: 0; max-width: 720px; }

/* Login */
.login-shell { min-height: 80vh; display: grid; place-items: center; padding: 80px 24px; }
.login-card {
  width: 480px; max-width: 100%; padding: 56px 48px;
  background: #0f0f10; border: 1px solid var(--line);
  text-align: center;
}
.login-card img { max-width: 100%; height: auto; }
.login-card h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.login-card .sub { color: var(--ink-dim); font-size: 14px; margin-bottom: 32px; font-family: 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.login-card label { display: block; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin: 14px 0 6px; }
.login-card input {
  width: 100%; padding: 14px 16px; background: #000; border: 1px solid #2a2a2c; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 15px; outline: none;
}
.login-card input:focus { border-color: #e7e7e9; }
.login-card button.go {
  width: 100%; margin-top: 26px; padding: 16px; background: #e7e7e9; color: #000;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase; border: none; cursor: pointer;
}
.login-card .hint { margin-top: 24px; font-size: 12px; color: var(--ink-dim); }
.login-card .hint a { color: #e7e7e9; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contact-grid label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.contact-grid input, .contact-grid textarea, .contact-grid select {
  background: #0f0f10; border: 1px solid #2a2a2c; color: #fff; padding: 14px 16px;
  font-family: 'Inter', sans-serif; font-size: 15px; outline: none; width: 100%;
}
.contact-grid textarea { min-height: 140px; resize: vertical; }
.contact-grid .send { padding: 16px 24px; background: #e7e7e9; color: #000; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; border: none; cursor: pointer; }
.info-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-block h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 6px; }
.info-block p { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; margin: 0; color: #fff; }


/* Email Link Hover */
.link-email {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.link-email:hover {
  color: var(--bordo-vivo) !important;
}
/* ====== MODAL SYSTEM ====== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px); z-index: 1000;
  display: none; place-items: center; padding: 20px;
}
.modal-overlay.active { display: grid; }
.modal-content {
  background: #0f0f10; border: 1px solid var(--line);
  width: 100%; max-width: 600px; padding: 40px;
  position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; right: 20px; top: 20px;
  background: none; border: none; color: var(--ink-dim);
  font-size: 24px; cursor: pointer;
}
.modal-content h2 { font-size: 32px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; background: #000; border: 1px solid var(--line); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 14px; outline: none;
}
.form-group input:focus { border-color: var(--steel-hi); }
