/* ==================================================
   VARIABLES
================================================== */

:root {
  --bg-main: #1a1a1a;
  --bg-card: #222222;
  --text-main: #ffffff;
  --text-secondary: #b3b3b3;
  --accent: #1f42a6;
  --border: #333333;
}

/* ==================================================
   RESET & GLOBAL
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

body.menu-open {
  overflow: hidden;
}

/* ==================================================
   HEADER
================================================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 60px;
  z-index: 1000;
  transition: 0.3s ease;
}

.header.scrolled {
  background: #111;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
}

/* Logo */

.logo {
  position: relative;
  cursor: pointer;
}

.logo img {
  height: 50px;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-blue {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Navigation (Desktop) */

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
}

.nav a:visited,
.nav a:active,
.nav a:focus {
  color: var(--text-main);
}

/* Hamburger */

.hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: absolute;
  right: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text-main);
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==================================================
   HERO SECTION
================================================== */

.hero {
  position: relative;
  height: 100vh;
  background: url("hero-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 30px auto;
}

.hero-content p {
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-main);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta:focus,
.hero-cta:active {
  color: var(--text-main);
  border-color: var(--text-main);
  outline: none;
}

/* ==================================================
   SERVICES SECTION
================================================== */

.services-section {
  position: relative;
  padding: 120px 20px;
  background: url("hero-bg.jpg") center center / cover no-repeat;
  text-align: center;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.services-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.services-content h2 {
  font-size: 40px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.services-content .hero-cta {
  margin-top: 60px;
  display: inline-block;
}

.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

.service-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;

  -webkit-tap-highlight-color: transparent;
}

.service-item:visited,
.service-item:active,
.service-item:focus {
  color: inherit;
  text-decoration: none;
}

.icon-circle {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 100px;
}

.service-item h3 {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ==================================================
   PORTFOLIO
================================================== */

.portfolio {
  padding: 0;
}

.metro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
}

/* Tile */

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tile:visited,
.tile:active,
.tile:focus {
  color: inherit;
  text-decoration: none;
}

.tile.large {
  grid-column: span 2;
}

.tile.tall {
  grid-row: span 2;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}

.tile:hover img {
  transform: scale(1.08);
}

/* Overlay */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay-content {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(30px, calc(100% - 80px));
  will-change: transform;
}

.tile:hover .overlay {
  opacity: 1;
}

.tile:hover .overlay-content {
  opacity: 1;
}

.overlay h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.read-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-main);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.read-more:focus,
.read-more:active {
  color: var(--text-main);
  border-color: var(--text-main);
  outline: none;
}

/* ==================================================
   FOOTER
================================================== */

footer {
  background: #111;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
}

/* ==================================================
   RESPONSIVE
================================================== */

/* ---------- Tablet & Mobile (≤1024px) ---------- */

@media (max-width: 1024px) {
  .metro-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
  }

  .tile.large {
    grid-column: span 1;
  }

  .tile.tall {
    grid-row: span 2;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
  }

  .overlay {
    display: none;
  }
}

/* ---------- Mobile (≤768px) ---------- */

@media (max-width: 768px) {
  .header {
    padding: 20px 24px;
  }

  .hero-content h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .metro-grid {
    display: flex;
    flex-direction: column;
  }

  .tile {
    height: 220px;
  }

  .tile.large {
    height: 260px;
  }

  .tile.tall {
    height: 320px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-content h2 {
    font-size: 28px;
  }

  .icon-circle {
    width: 80px;
    height: 80px;
  }
}

/* ---------- Large Desktop ---------- */

@media (min-width: 1400px) {
  .hero-content h1 {
    font-size: 64px;
  }

  .hero-content p {
    font-size: 18px;
  }
}

/* ==================================================
   HOVER (Desktop Only)
================================================== */

@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .hero-cta:hover,
  .read-more:hover {
    color: var(--accent);
    border-color: var(--accent);
    cursor: pointer;
  }

  .logo:hover .logo-white {
    opacity: 0;
  }

  .logo:hover .logo-blue {
    opacity: 1;
  }

  .service-item {
    transition: 0.3s ease;
  }

  .service-item:hover {
    opacity: 0.4 !important;
    cursor: pointer;
  }
}

/* ===============================
   SERVICES PAGE
================================= */

.services-page {
  background: #0f2a55; /* azul institucional escuro */
  min-height: 100vh;
}

/* Header padrão transparente na services */
.services-page .header {
  background: transparent;
  transition: all 0.3s ease;
}

/* Header quando scrolla */
.services-page .header.scrolled {
  background: #2e3f63; /* azul médio (contraste) */
}

/* ===============================
   HERO
================================= */

.services-hero {
  padding: 180px 20px 120px;
  text-align: center;
}

.services-hero h1 {
  font-size: 42px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.services-hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 20px auto 0;
}

/* ===============================
   CONTENT WRAPPER
================================= */

.services-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 140px;
}

/* ===============================
   SERVICE BLOCK
================================= */

.service-block {
  margin-bottom: 120px;
  scroll-margin-top: 140px;
}

.service-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 12px;
}

.service-block h2 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.5;
}

.service-block p {
  line-height: 1.9;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.services-page footer {
  background: #0f2a55;
}

/* ===============================
   RESPONSIVO
================================= */

@media (max-width: 1024px) {
  .services-hero {
    padding: 160px 20px 100px;
  }

  .services-content {
    padding-bottom: 100px;
  }

  .service-block {
    margin-bottom: 100px;
  }

  .services-page .nav {
    background: #0f2a55; /* mesmo azul da página */
  }

  .services-page .nav.active {
    background: #0f2a55;
  }

  .services-page .header.menu-open,
  .services-page .header.scrolled {
    background: #2e3f63;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 140px 20px 80px;
  }

  .services-hero h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .services-content {
    padding: 0 20px 80px;
  }

  .service-block {
    margin-bottom: 80px;
  }

  .service-block h2 {
    font-size: 16px;
  }

  .service-block p {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* ==================================
   SCROLL REVEAL ANIMATION
================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variante lateral (opcional) */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* =================================
   EVENT PAGE
================================= */

.event-hero {
  padding: 180px 20px 80px;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.event-hero h1 {
  font-size: 42px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.event-hero p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

/* VIDEO */

.event-video {
  padding: 60px 20px;
}

.video-container{
  max-width:1000px;
  margin:auto;
}

.video-container video{
  width:100%;
  height:auto;
  border-radius:6px;
  aspect-ratio: 16/9;
}

/* DESCRIÇÃO */

.event-description {
  padding: 80px 20px 120px;
}

.event-container {
  max-width: 900px;
  margin: auto;
}

.event-container p {
  margin-bottom: 24px;
  line-height: 1.9;
  color: var(--text-secondary);
}