/* ═══════════════════════════════════════
   BARRACUDA GRUPO — Site Institucional
   Palette: #1A1A1A / #2D2D2D / #C74545 / #FAFAFA
   Fonts: Playfair Display + Outfit
   ═══════════════════════════════════════ */

:root {
  --red: #C74545;
  --dark: #1A1A1A;
  --darker: #111;
  --gray: #2D2D2D;
  --light: #FAFAFA;
  --text: #6B6B6B;
  --gold: #D4A520;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--red); color: #fff; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ═══ TYPOGRAPHY ═══ */
.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
}
.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}
.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}
.label-sm {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.body-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  font-weight: 300;
}

/* ═══ TOP BAR (Kiewit-style accent) ═══ */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 4px; background: var(--red);
}

/* ═══ NAVIGATION ═══ */
.nav {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 1000;
  background: rgba(18,18,18,.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .4s;
}
.nav.scrolled {
  background: rgba(59,63,63,.97);
  border-bottom: none;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 74px;
}
.nav-logo {
  display: flex; align-items: center; cursor: pointer;
  padding: 0 28px 0 0;          /* sem placa opaca: o logótipo assenta no fundo da barra */
  height: 74px;
  position: relative;
  z-index: 1002;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -.3px;
}
.nav-logo-sub {
  font-size: .58rem; font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: 2.5px; text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; font-size: .86rem; font-weight: 500;
  color: rgba(255,255,255,.65); transition: color .2s; cursor: pointer;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--red); transform: scaleX(0);
  transition: transform .3s ease; transform-origin: center;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-divider {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.08); margin: 0 10px;
}
.nav-cta {
  background: var(--red); color: #fff;
  padding: 9px 22px; border-radius: 6px;
  font-size: .84rem; font-weight: 600;
  display: inline-block;
}
.nav-cta:hover { filter: brightness(1.1); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: .86rem; font-weight: 500;
  color: rgba(255,255,255,.65); cursor: pointer;
  position: relative; transition: color .2s;
  background: none; border: 0; font-family: inherit; line-height: inherit;
}
.dropdown-trigger:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.dropdown-trigger::after {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--red); transform: scaleX(0);
  transition: transform .3s ease; transform-origin: center;
}
.dropdown:hover .dropdown-trigger { color: #fff; }
.dropdown:hover .dropdown-trigger::after { transform: scaleX(1); }
.dropdown-menu {
  position: absolute; top: 100%; left: -12px;
  min-width: 220px; background: rgba(18,18,18,.98);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 6px 0; margin-top: 10px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  transition-delay: .35s;            /* só ao FECHAR: dá tempo de chegar ao submenu */
}
.dropdown-menu::before {             /* ponte sobre o intervalo entre o botão e o menu */
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.aberto .dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
  transition-delay: 0s;
}
.dropdown:hover .dropdown-trigger,
.dropdown:focus-within .dropdown-trigger,
.dropdown.aberto .dropdown-trigger { color: #fff; }
.dropdown-item {
  display: block; padding: 9px 18px;
  color: rgba(255,255,255,.55); font-size: .85rem;
  transition: all .15s;
}
.dropdown-item:hover {
  background: rgba(255,255,255,.04); color: #fff;
}

/* Mobile */
.nav-mobile-btn {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; color: #fff; width: 42px; height: 42px;
}
.nav-mobile-menu {
  display: none; background: rgba(18,18,18,.98);
  padding: 12px 28px 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  flex-direction: column; gap: 2px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-label {
  font-size: .65rem; font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 0 4px;
}
.nav-mobile-link {
  color: rgba(255,255,255,.55); font-size: .92rem;
  padding: 5px 0; cursor: pointer; display: block;
}
.nav-mobile-link.main { color: rgba(255,255,255,.65); font-weight: 500; }
.nav-mobile-divider {
  height: 1px; background: rgba(255,255,255,.05); margin: 6px 0;
}

/* ═══ HERO ═══ */
.hero {
  height: 100vh; min-height: 580px;
  position: relative; overflow: hidden; background: #111;
}
.hero-bg, .hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.4) 60%, rgba(17,17,17,0.85) 85%, rgba(17,17,17,0.95) 100%);
}
.hero-content {
  position: relative; z-index: 10;
  height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding-bottom: 72px;
}
.hero-text { max-width: 680px; margin-bottom: 44px; }
.hero-title {
  color: #fff; margin-bottom: 18px; white-space: pre-line;
}
.hero-sub {
  font-size: 1.08rem; color: rgba(255,255,255,.55);
  line-height: 1.75; font-weight: 300; max-width: 500;
}
.hero-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.hero-indicators { display: flex; gap: 7px; align-items: center; }
.hero-dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer; transition: all .4s; border: none;
}
.hero-dot.active { width: 52px; background: var(--red); }
.hero-counter {
  font-size: .72rem; color: rgba(255,255,255,.25);
  margin-left: 10px; font-variant-numeric: tabular-nums;
}
.hero-buttons { display: flex; gap: 10px; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--red); color: #fff;
  font-size: .88rem; font-weight: 600; border-radius: 6px;
  border: none; cursor: pointer; transition: filter .2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline {
  display: inline-flex; align-items: center;
  padding: 13px 24px; background: transparent; color: #fff;
  font-size: .88rem; font-weight: 500; border-radius: 6px;
  cursor: pointer; border: 1px solid rgba(255,255,255,.15);
  transition: border-color .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.35); }
.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; color: var(--red);
  cursor: pointer; border-bottom: 2px solid var(--red);
  padding-bottom: 2px; background: none; border-top: none;
  border-left: none; border-right: none;
}

/* ═══ RED BAR ═══ */
.red-bar { background: var(--red); padding: 24px 0; }
.red-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.red-bar p { color: #fff; font-size: .98rem; font-weight: 500; max-width: 560; line-height: 1.5; }
.red-bar span { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 600; letter-spacing: 1.5px; }

/* ═══ AREA BLOCKS ═══ */
.section-areas { padding: 96px 0; background: #fff; }
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 48px;
  flex-wrap: wrap; gap: 20px;
}
.section-header p { font-size: .92rem; color: var(--text); max-width: 380; line-height: 1.7; font-weight: 300; }

.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.areas-grid-wide { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; margin-top: 14px; }

.area-block {
  position: relative; overflow: hidden;
  border-radius: 10px; cursor: pointer;
}
.area-block::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.78) 100%);
  transition: all .5s; border-radius: 10px;
}
.area-block:hover::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(199,69,69,.75) 100%);
}
.area-block:hover .area-img { transform: scale(1.06); }
.area-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.area-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px; z-index: 2;
}
.area-tag {
  font-size: .64rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.area-title {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 700;
  color: #fff; margin-bottom: 5px;
}
.area-desc { font-size: .84rem; color: rgba(255,255,255,.6); font-weight: 300; }
.area-link {
  display: flex; align-items: center; gap: 5px;
  margin-top: 14px; color: #fff; font-size: .8rem; font-weight: 600;
}

/* ═══ STATS ═══ */
.section-stats { background: var(--dark); padding: 76px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat-item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.05); }
.stat-item:first-child { padding-left: 0; border-left: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem; font-weight: 700;
  color: #fff; line-height: 1;
}
.stat-label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.8); margin-top: 10px; margin-bottom: 3px; }
.stat-sub { font-size: .78rem; color: rgba(255,255,255,.3); font-weight: 300; }

/* ═══ ABOUT ═══ */
.section-about { padding: 96px 0; background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-img {
  border-radius: 10px; overflow: hidden; height: 400px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ SOFTWARE ═══ */
.section-software { padding: 96px 0; background: #F5F5F5; }
.software-header { text-align: center; max-width: 600; margin: 0 auto 48px; }
.browser-frame {
  background: var(--dark); border-radius: 14px;
  padding: 18px 18px 0; max-width: 860;
  margin: 0 auto; box-shadow: 0 36px 90px rgba(0,0,0,.12);
}
.browser-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-content {
  background: var(--gray); border-radius: 9px 9px 0 0;
  height: 360px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}

/* ═══ CONTACT ═══ */
.section-contact { background: var(--dark); padding: 96px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: start;
}
.contact-info-item {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.contact-info-item span:first-child { font-size: 1.05rem; }
.contact-info-item span:last-child { font-size: .92rem; color: rgba(255,255,255,.55); }

.contact-form {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px; padding: 28px;
}
.form-group { margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .73rem; font-weight: 600;
  color: rgba(255,255,255,.45); margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px; color: #fff;
  font-size: .88rem; outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: rgba(255,255,255,.2); }
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-select { color: rgba(255,255,255,.4); }
.form-textarea { height: 90px; resize: vertical; }
.form-submit {
  width: 100%; padding: 13px;
  background: var(--red); color: #fff;
  font-size: .88rem; font-weight: 600;
  border-radius: 7px; border: none;
}
.form-submit:hover { filter: brightness(1.1); }

/* ═══ FOOTER ═══ */
.footer { background: var(--darker); padding: 52px 0 22px; border-top: 1px solid rgba(255,255,255,.03); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700; color: #fff;
}
.footer-desc { font-size: .8rem; color: rgba(255,255,255,.3); line-height: 1.75; max-width: 250px; }
.footer-col-title {
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer-col-link {
  font-size: .82rem; color: rgba(255,255,255,.28);
  margin-bottom: 9px; cursor: pointer; display: block;
  transition: color .2s;
}
.footer-col-link:hover { color: rgba(255,255,255,.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.04);
  padding-top: 18px; display: flex;
  justify-content: space-between; font-size: .72rem;
  color: rgba(255,255,255,.18); flex-wrap: wrap; gap: 8px;
}

/* ═══ ANIMATIONS ═══ */
.reveal {
  opacity: 1; transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease forwards; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-mobile-btn { display: flex !important; }
  .areas-grid,
  .areas-grid-wide,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .about-grid { gap: 40px !important; }
  .contact-grid { gap: 48px !important; }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .stat-item { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
}
