/* ============================================
   CAVERNAS BEACH – CSS GLOBAL
   Paleta: Laranja #FF6B00 | Azul Escuro #0A1628 | Areia #F5E6C8 | Preto #0D0D0D
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:     #FF6B00;
  --orange-dark:#CC5500;
  --orange-light:#FF8C3A;
  --blue-dark:  #0A1628;
  --blue-mid:   #112240;
  --blue-light: #1A3A6B;
  --sand:       #F5E6C8;
  --sand-dark:  #E8D0A0;
  --black:      #0D0D0D;
  --white:      #FFFFFF;
  --gray-light: #F0F0F0;
  --gray:       #888888;
  --rock:       #2A2A2A;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.28);
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; }
.display-text   { font-family: var(--font-display); letter-spacing: 2px; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}

.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

/* ===== SEÇÕES ===== */
section { padding: 90px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title span { color: var(--orange); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 16px 0 32px;
  border-radius: 2px;
}

.section-divider.center { margin: 16px auto 32px; }

.text-center { text-align: center; }
.text-orange { color: var(--orange); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,107,0,0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  /* remove fundo branco da imagem PNG */
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

/* Mantém compatibilidade com versão texto (oculta no novo logo) */
.nav-logo-icon { display: none; }
.nav-logo-text { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--orange);
  background: rgba(255,107,0,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--blue-dark);
  border-bottom: 2px solid var(--orange);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,107,0,0.12); color: var(--orange); }
.mobile-menu .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0D1B2A 50%, #1a1000 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,107,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(26,58,107,0.3) 0%, transparent 50%);
}

/* Rock texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ===== CARDS ===== */
.card {
  background: var(--blue-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-orange-accent {
  border-left: 4px solid var(--orange);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-orange { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid rgba(255,107,0,0.3); }
.badge-blue   { background: rgba(26,58,107,0.4); color: #7AA6F7; border: 1px solid rgba(122,166,247,0.3); }
.badge-green  { background: rgba(34,197,94,0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }

/* ===== SECTION BACKGROUNDS ===== */
.bg-dark     { background: var(--black); }
.bg-blue     { background: var(--blue-dark); }
.bg-blue-mid { background: var(--blue-mid); }
.bg-rock     {
  background: var(--rock);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--orange), #FF9A4D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ICON CIRCLE ===== */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,107,0,0.12);
  border: 2px solid rgba(255,107,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--orange);
}

/* ===== GRID UTILS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== FOOTER ===== */
footer {
  background: #060D18;
  border-top: 1px solid rgba(255,107,0,0.2);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange); padding-left: 4px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-tagline { font-family: var(--font-heading); color: var(--orange); font-size: 0.9rem; letter-spacing: 1px; }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  border: none;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,0,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0D1B2A 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.1) 0%, transparent 70%);
}
.page-hero-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(255,107,0,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.animate-fadeup   { animation: fadeInUp 0.7s ease forwards; }
.animate-fadeleft { animation: fadeInLeft 0.7s ease forwards; }
.animate-pulse    { animation: pulse-orange 2s infinite; }
.float-anim       { animation: float 4s ease-in-out infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .page-hero { padding: 120px 0 60px; }
}
