/* ========== CONTAINER ========== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* ========== SECTIONS — Dark mode ========== */

section {
  padding: var(--section-padding);
}

.section--dark {
  background-color: var(--bg-primary);
}

.section--black {
  background-color: var(--bg-pure-black);
}

.section--card {
  background-color: var(--bg-card);
}

.section--pink {
  background-color: var(--pink-bg);
  color: var(--text-on-pink);
}

.section--pink h2,
.section--pink h3 {
  color: var(--text-on-pink);
}

.section--pink p {
  color: rgba(255, 255, 255, 0.85);
}

/* Legacy aliases */
.section--navy {
  background-color: var(--bg-pure-black);
  color: var(--text-primary);
}

.section--navy h2,
.section--navy h3 {
  color: var(--text-primary);
}

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

.section--rose {
  background-color: var(--bg-primary);
}

.section--offwhite {
  background-color: var(--bg-pure-black);
}

.section--gray {
  background-color: var(--bg-card);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ========== GRID ========== */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== HEADER — Dark mode ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(25, 27, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.header-logo .x {
  color: var(--pink-primary);
  margin: 0 3px;
}

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.header-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text-primary);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu ul {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: var(--text-small);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-dropdown-menu li a .tag-new {
  font-size: 0.625rem;
  padding: 2px 6px;
}

.header-cta {
  display: none;
  font-size: 0.8rem;
  padding: 8px 18px;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .header-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1100px) {
  .hamburger {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 100px 32px 40px;
  transition: right var(--transition-base);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
  color: var(--pink-primary);
}

.mobile-menu .btn-primary {
  margin-top: 24px;
  width: 100%;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ========== FOOTER — Dark mode ========== */

.footer {
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .header-logo {
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.footer-qualiopi {
  height: 48px;
  margin-top: 16px;
  display: block;
}

/* ========== UTILITY ========== */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.page-offset {
  padding-top: 72px;
}
