/* ==========================================================================
   DRAVEM STUDIO - DESIGN SYSTEM & CORE STYLES
   Tailored for dravemstudios.com.br
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Color Palette */
  --bg-core: #07080a;
  --bg-surface: #0e1017;
  --bg-card: rgba(18, 21, 30, 0.75);
  --bg-card-hover: rgba(26, 30, 44, 0.85);
  --bg-glass: rgba(15, 17, 25, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(230, 57, 70, 0.35);
  --border-gold: rgba(212, 175, 55, 0.35);

  /* Primary & Accent Tones */
  --crimson-primary: #e63946;
  --crimson-glow: #ff2a3d;
  --crimson-dark: #9b111e;
  --gold-primary: #d4af37;
  --gold-light: #f5d77f;
  --godot-blue: #478cbf;
  --emerald-success: #10b981;
  --amber-warning: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #f3c64c;

  /* Typography Families */
  --font-display: 'Cinzel', serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --glow-crimson: 0 0 25px rgba(230, 57, 70, 0.35);
  --glow-gold: 0 0 25px rgba(212, 175, 55, 0.3);

  /* Layout */
  --max-width: 1280px;
  --header-height: 74px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(230, 57, 70, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(71, 140, 191, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Base Headings & Text */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-display {
  font-family: var(--font-display);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVBAR (Modern Dark-Fantasy Island Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  width: 100%;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(230, 57, 70, 0.6) 30%, rgba(212, 175, 55, 0.4) 70%, transparent 100%);
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--crimson-primary) 0%, #800010 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.05rem;
  overflow: hidden;
}

.brand-icon-img,
img.brand-icon-img,
.brand-logo .brand-icon-img,
.brand-logo .brand-icon img,
.footer-brand .brand-icon-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid var(--crimson-primary) !important;
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.5) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.brand-logo:hover .brand-icon-img,
.brand-logo:hover .brand-icon img,
.brand-icon-img:hover {
  transform: scale(1.08) rotate(3deg) !important;
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.75) !important;
}

.brand-logo span.accent {
  color: var(--crimson-primary);
}

/* Nav Pill Island */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(14, 17, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.3) 0%, rgba(155, 17, 30, 0.22) 100%);
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 14px rgba(230, 57, 70, 0.25);
  font-weight: 700;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 57, 70, 0.5);
  color: var(--crimson-primary);
}

/* ==========================================================================
   BUTTONS & BADGES (Proportional & Polished)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson-primary), #b31b27);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff4352, #cf2230);
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.55);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #aa861c);
  color: #07080a;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f5d77f, #c79f29);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 9999px;
  height: 38px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-crimson {
  background: rgba(230, 57, 70, 0.15);
  color: #ff6b77;
  border-color: rgba(230, 57, 70, 0.4);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.4);
}

.badge-godot {
  background: rgba(71, 140, 191, 0.15);
  color: #7ab8e8;
  border-color: rgba(71, 140, 191, 0.4);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--crimson-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: balance;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
}

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

.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--crimson-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN & ADAPTIVE BREAKPOINTS
   ========================================================================== */

/* Intermediate Desktop / Laptop (1141px - 1280px) */
@media (max-width: 1260px) and (min-width: 1141px) {
  .nav-links {
    gap: 2px;
    padding: 3px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .brand-logo {
    font-size: 1.22rem;
  }
  .nav-cta {
    gap: 8px;
  }
  .nav-cta .btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}

/* Tablet & Mobile Header (<= 1140px) */
@media (max-width: 1140px) {
  .site-header {
    height: 68px;
  }
  
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(7, 8, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 20px;
    gap: 10px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    padding: 14px 20px;
    font-size: 0.98rem;
    border-radius: 10px;
    background: rgba(14, 17, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(155, 17, 30, 0.2) 100%);
    border-color: rgba(230, 57, 70, 0.5);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
  .nav-links {
    top: 64px;
    height: calc(100vh - 64px);
  }
  .nav-cta .nav-cta-alpha span {
    display: none;
  }
  .nav-cta .nav-cta-alpha {
    padding: 8px 12px;
    min-width: 38px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
