/* ========================================
   AQUEM — BASE STYLES
   Variables, Reset, Typography, Nav, Footer
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --dark: #1C2333;
  --dark-deep: #0d1520;
  --indigo: #3D52A0;
  --indigo-light: #5B6FC7;
  --indigo-pale: #EEF1FB;
  --cyan: #00B4D8;
  --cyan-dark: #0096B7;
  --cyan-pale: #E0F7FC;
  --amber: #D4A017;
  --amber-pale: #FDF6E3;
  --bg: #F4F6FB;
  --bg-white: #ffffff;
  --text: #1C2333;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E2E6F3;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 4rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled,
nav.always-dark {
  background: rgba(28, 35, 51, 0.97);
  backdrop-filter: blur(12px);
}
nav.light {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
nav.light .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
nav.light .nav-links a { color: var(--text-muted); }
nav.light .nav-links a:hover { color: var(--dark); }

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-back::before { content: '←'; }

.nav-cta {
  background: var(--indigo);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--indigo-light) !important; color: #fff !important; }

/* Dropdown */
.nav-dropdown {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.6;
}
.dropdown-menu {
  display: grid;
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 560px;
  background: var(--dark);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.25rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.dropdown-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.2rem;
}
.dropdown-item-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
nav.light .burger { color: var(--dark); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--dark);
  z-index: 99;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
}
.mobile-menu.light {
  background: #fff;
  border-top: 0.5px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu-item {
  padding: 0.875rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.mobile-menu.light .mobile-menu-item {
  color: var(--dark);
  border-bottom: 0.5px solid var(--border);
}
.mobile-submenu {
  display: none;
  padding: 0.5rem 0 0.75rem 0.75rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-submenu.open { display: flex; }
.mobile-submenu a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.3rem 0;
}
.mobile-menu.light .mobile-submenu a { color: var(--text-muted); }
.mobile-submenu a:hover { color: #fff; }
.mobile-menu.light .mobile-submenu a:hover { color: var(--dark); }
.mobile-cta {
  margin-top: 1rem;
  background: var(--indigo);
  color: #fff;
  padding: 0.875rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
}

/* ========================================
   SECTIONS
   ======================================== */
section { padding: 6rem 4rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-label.cyan { color: var(--cyan-dark); }
.section-label.amber { color: var(--amber); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,0.4);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
footer a:hover { color: rgba(255,255,255,0.7); }
.footer-links { display: flex; gap: 2rem; }

/* ========================================
   MOBILE BREAKPOINTS
   ======================================== */
@media (max-width: 900px) {
  section { padding: 4rem 1.25rem; }
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .burger { display: block; }
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
