/* ── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #0a1628;
  --blue:   #1a3c6e;
  --teal:   #00b4d8;
  --teal2:  #0077b6;
  --accent: #00e5c8;
  --white:  #ffffff;
  --off:    #f4f8fb;
  --gray:   #6b7a90;
  --dark:   #0d1b2a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(10,22,40,.12);
  --nav-h:  70px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--navy); overflow-x: hidden; line-height: 1.6; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── NAV ────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); transition: background .35s, box-shadow .35s, height .35s;
}
/* Páginas sem hero escuro: nav sempre sólido desde o topo */
#nav.nav-solid,
#nav.scrolled {
  background: rgba(10,22,40,.97); backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}
#nav.scrolled { height: 60px; }
#nav-logo-img { height: 44px; width: auto; transition: height .3s; }
#nav.scrolled #nav-logo-img { height: 36px; }

.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links > li > a {
  color: rgba(255,255,255,.85); font-size: .84rem; font-weight: 500;
  letter-spacing: .2px; transition: color .2s; white-space: nowrap;
  display: flex; align-items: center; gap: .2rem; padding: .4rem 0;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--teal); }
.nav-links > li.active > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 1px;
}
.nav-links > li { position: relative; }
.caret { font-size: .65rem; opacity: .6; }

/* dropdown */
.drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); border: 1px solid rgba(0,180,216,.18);
  border-radius: 10px; min-width: 210px; padding: .5rem 0;
  list-style: none; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  pointer-events: none; opacity: 0;
  transition: opacity .18s, transform .18s;
  transform: translateX(-50%) translateY(-6px);
  /* gap bridge so hover doesn't flicker */
  margin-top: 8px;
}
/* invisible bridge above dropdown */
.drop::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.has-drop.open .drop { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.drop li a {
  display: block; padding: .55rem 1.3rem; font-size: .82rem;
  color: rgba(255,255,255,.75); transition: color .15s, background .15s;
}
.drop li a:hover { color: var(--teal); background: rgba(0,180,216,.07); }

.btn-online {
  background: linear-gradient(135deg,var(--teal),var(--teal2)) !important;
  color: var(--white) !important; border-radius: 50px;
  padding: .4rem 1.1rem !important; font-weight: 600 !important;
  transition: transform .2s, box-shadow .2s;
}
.btn-online:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,180,216,.4); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
#mobile-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: rgba(10,22,40,.98); z-index: 999; padding: 1.2rem 5%; max-height: 80vh; overflow-y: auto; }
#mobile-nav.open { display: block; }
#mobile-nav ul { list-style: none; }
#mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.06); }
#mobile-nav > ul > li > a, #mobile-nav summary { display: block; color: rgba(255,255,255,.85); padding: .8rem 0; font-size: .9rem; font-weight: 500; cursor: pointer; list-style: none; }
#mobile-nav summary::after { content: ' ▾'; font-size: .65rem; }
.mob-sub { list-style: none; padding-left: 1rem; }
.mob-sub li a { display: block; color: rgba(255,255,255,.55); padding: .45rem 0; font-size: .82rem; }

/* ── PAGE HERO BANNER ──────────────────────────────────────────────── */
.page-hero {
  height: 320px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 3rem 5%;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,22,40,.85) 40%, rgba(10,22,40,.3)); }
.page-hero-text { position: relative; z-index: 1; }
.page-hero-text .section-label { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: .4rem; }
.page-hero-text h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; color: var(--white); line-height: 1.15; }

/* ── SECTION HELPERS ───────────────────────────────────────────────── */
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: .8rem; }
.section-title.light { color: var(--white); }
.section-sub { font-size: .95rem; color: var(--gray); max-width: 580px; }
.section-sub.light { color: rgba(255,255,255,.6); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}
.d4{transition-delay:.4s}.d5{transition-delay:.5s}.d6{transition-delay:.6s}

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,.5); padding: 3.5rem 5% 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .82rem; line-height: 1.7; }
.footer-brand a { color: var(--teal); }
footer h4 { font-size: .75rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul li a { color: rgba(255,255,255,.45); font-size: .8rem; transition: color .2s; }
footer ul li a:hover { color: var(--teal); }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.25); }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--teal); }

/* floating buttons */
#wabtn { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 25px rgba(37,211,102,.45); animation: pulse 2.5s infinite; transition: transform .2s; }
#wabtn:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100%{box-shadow:0 6px 25px rgba(37,211,102,.45)}50%{box-shadow:0 6px 40px rgba(37,211,102,.7)} }
#totop { position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 998; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); border: 1px solid rgba(0,180,216,.3); color: var(--teal); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
#totop.show { opacity: 1; pointer-events: all; }
#totop:hover { transform: translateY(-3px); }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media(max-width:980px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .footer-inner{grid-template-columns:1fr 1fr;gap:2rem}
}
@media(max-width:600px){
  .footer-inner{grid-template-columns:1fr}
  .page-hero{height:220px}
}

/* ── INNER PAGES: nav always dark (no hero behind it) ── */
body.inner-page #nav {
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}
