/* ============================================================
   COMPONENTS.CSS — Navbar, Buttons, Cards, Sections, Footer
   Exium Classes · exium.in
   ============================================================ */

/* ── NAV ── */
/* Scoped to .site-nav to avoid colliding with <nav> used inside footer */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 70px;
  background: rgba(14, 28, 58, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img   { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-bright) !important; }

/* Inner-page nav variants */
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--white); }
.nav-back svg   { width: 16px; height: 16px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(204, 31, 31, 0.12);
  border: 1px solid rgba(204, 31, 31, 0.35);
  color: #f07070;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 2s infinite;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--silver);
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid rgba(200, 210, 232, 0.28);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--silver);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── HERO ELEMENTS ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(204, 31, 31, 0.12);
  border: 1px solid rgba(204, 31, 31, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f07070;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both;
}

/* Page-hero badge variant (blue) */
.page-hero .hero-badge {
  background: rgba(74, 111, 199, 0.1);
  border: 1px solid rgba(74, 111, 199, 0.3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 2s infinite;
}

.page-hero .hero-badge::before { display: none; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.2vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.12s ease both;
}

.hero-title em { font-style: italic; color: #7a9ee0; }

.hero-sub {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(200, 210, 232, 0.68);
  line-height: 1.78;
  max-width: 46ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.24s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.36s ease both;
}

/* Page title / sub (inner pages) */
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page-title em { font-style: italic; color: var(--blue-light); }

.page-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(200, 210, 232, 0.6);
  line-height: 1.75;
  max-width: 48ch;
  margin-top: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ── CTA SECTION ELEMENTS ── */
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
  margin: 1rem auto 1.5rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-link {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #7a9ee0;
  text-decoration: none;
  transition: color 0.2s;
}

.cta-link:hover { color: var(--white); }


/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--navy-dark);
  position: relative;
  z-index: 1;
}

.footer-logo img { height: 28px; opacity: 0.7; }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }




/* ============================================================
   MOBILE NAV — Glassmorphism slide-from-right drawer
   Add to bottom of css/components.css
   ============================================================ */

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(200, 210, 232, 0.18);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 7px;
  margin-left: auto;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(200, 210, 232, 0.35);
}

.nav-hamburger .bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              width     0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation when open */
.nav-hamburger.is-open .bar-1 {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open .bar-2 {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open .bar-3 {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Backdrop ── */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 15, 35, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* ── Drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(320px, 88vw);

  /* Glassmorphism */
  background: rgba(14, 28, 58, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-left: 1px solid rgba(200, 210, 232, 0.1);

  /* Decorative gradient edge */
  box-shadow:
    -1px 0 0 0 rgba(74, 111, 199, 0.15),
    -20px 0 60px rgba(8, 15, 35, 0.4);

  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;

  /* Slide-in animation */
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

/* Subtle top accent line */
.nav-drawer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-acc), var(--red));
}

/* ── Drawer header ── */
.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(200, 210, 232, 0.08);
}

.nav-drawer__logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-drawer__logo span { color: var(--red); }

.nav-drawer__close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 210, 232, 0.15);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-drawer__close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 210, 232, 0.3);
}

.nav-drawer__close svg {
  width: 16px;
  height: 16px;
}

/* ── Drawer links ── */
.nav-drawer__links {
  list-style: none;
  padding: 0.75rem 0;
  flex: 1;
}

.nav-drawer__links li {
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity  0.35s ease calc(var(--i) * 0.06s + 0.1s),
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * 0.06s + 0.1s);
}

.nav-drawer.is-open .nav-drawer__links li {
  opacity: 1;
  transform: translateX(0);
}

.nav-drawer__links a {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(200, 210, 232, 0.75);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-drawer__links a:hover {
  color: var(--white);
  background: rgba(74, 111, 199, 0.08);
  border-left-color: var(--blue-acc);
}

/* ── Drawer footer ── */
.nav-drawer__footer {
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid rgba(200, 210, 232, 0.08);
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity  0.35s ease calc(var(--i) * 0.06s + 0.1s),
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * 0.06s + 0.1s);
}

.nav-drawer.is-open .nav-drawer__footer {
  opacity: 1;
  transform: translateX(0);
}

.nav-drawer__cta {
  display: block;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-drawer__cta:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.nav-drawer__tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 0.85rem;
  opacity: 0.6;
}


/* ── RESPONSIVE COMPONENTS ── */
@media (max-width: 900px) {
  .site-nav { padding: 0 1rem; }

  .nav-logo img { height: 28px; }
  .nav-logo     { padding: 4px 8px; }
  .nav-tag      { display: none; }

  .nav-cta {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .nav-links { gap: 0; margin-left: auto; }

  .nav-links li:not(:last-child) { display: none; }

  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-hamburger { display: flex; }
}

/* ── Lock body scroll when drawer open ── */
body.nav-open {
  overflow: hidden;
}