/* ===========================================
   LAYOUT.CSS — Header, Footer, Page Layouts
   =========================================== */

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.site-header.scrolled {
  background: rgba(6, 6, 14, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-glass);
  background: linear-gradient(180deg, transparent 0%, rgba(6, 6, 14, 0.8) 100%);
  backdrop-filter: blur(8px);
}
.footer-top {
  padding: 60px 0 40px;
}
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-socials a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}
.footer-socials a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.2);
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-col ul a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-nav-col ul a:hover { color: var(--accent); }
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #00dc82;
  margin-top: 20px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00dc82;
  box-shadow: 0 0 6px #00dc82;
  animation: pulse-dot 2s infinite;
}

/* --- CTA Strip --- */
.cta-box {
  text-align: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(123,47,247,0.08) 50%, rgba(247,47,139,0.06) 100%);
  border-color: rgba(0,212,255,0.15);
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(123,47,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0,220,130,0.3);
  color: #00dc82;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: rgba(0,220,130,0.07);
}
.cta-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* --- Page Content (offset for fixed header) --- */
.page-content {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { padding: 30px 0 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-logo { margin-bottom: 8px; font-size: 1.2rem; }
  .footer-tagline { margin: 0 auto 12px; font-size: 0.8rem; line-height: 1.4; display: none; } /* Hide tagline to save space */
  .footer-socials { justify-content: center; gap: 8px; }
  .footer-socials a { padding: 4px 8px; font-size: 0.75rem; }
  .footer-col-title { margin-bottom: 8px; font-size: 0.75rem; }
  .footer-nav-col ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-nav-col ul a { font-size: 0.8rem; }
  .footer-status { justify-content: center; margin-top: 10px; }
  .footer-bottom { padding: 12px 0; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 6px; }
  .cta-box { padding: 30px 16px; }
  .cta-heading { font-size: 1.5rem; margin-bottom: 12px; }
  .cta-sub { font-size: 0.88rem; margin-bottom: 20px; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; }
}
