/* ============================================================
   JANJUA GLOBAL — style.css
   Global custom styles. Tailwind CDN handles utilities.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg-void:        #05080F;
  --bg-deep:        #07111F;
  --bg-surface:     #0A1628;
  --navy-primary:   #0A2342;
  --navy-accent:    #1B3F6A;
  --gold-primary:   #C9A84C;
  --gold-glow:      #E8C87A;
  --gold-dim:       #8A6B2A;
  --text-primary:   #F0F4FF;
  --text-muted:     #7A90A8;
  --text-faint:     #3A5068;
  --glass-bg:       rgba(10, 22, 40, 0.55);
  --glass-border:   rgba(201, 168, 76, 0.15);
  --glass-blur:     blur(18px);
  --font-display:   'Cormorant Garamond', serif;
  --font-body:      'Outfit', sans-serif;
  --header-h:       88px;
  --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Page Loader ──────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 48px; height: 48px;
  border: 2px solid var(--navy-accent);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 var(--glass-border), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 200px;
}
.footer-logo .logo-img {
  height: 50px;
  max-width: 180px;
}

/* Hero Logo */
.hero-logo-wrap {
  margin-bottom: 1rem;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page Logo (about, services, contact) */
.page-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.page-logo-img {
  height: auto;
  width: 55vw;
  max-width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(201, 168, 76, 0.22));
}
.hero-logo-img {
  height: auto;
  width: 60vw;
  max-width: 480px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.3));
}

@media (min-width: 768px) {
  .hero-logo-img  { width: auto; height: 175px; }
  .page-logo-img  { width: auto; height: 160px; }
  .hero-logo-wrap { margin-bottom: 2rem; }
  .page-logo-wrap { margin-bottom: 2rem; }
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-primary);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text-primary); }

/* CTA nav button */
.nav-link.nav-cta {
  color: var(--gold-primary);
  border: 1px solid rgba(201,168,76,0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
  color: var(--bg-void);
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.toggle-bar {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Glass Card ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
}

/* ── Gold Divider ─────────────────────────────────────────── */
.gold-divider {
  display: inline-block;
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  vertical-align: middle;
}

/* ── Section Layout ───────────────────────────────────────── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold-primary);
  color: var(--bg-void);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-glow);
  border-color: var(--gold-glow);
  box-shadow: 0 0 24px rgba(201,168,76,0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--navy-accent);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-void);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#canvas-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: center center;
}

.hero-content-placeholder { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  opacity: 0;
}
.hero-eyebrow-line {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold-primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-primary);
  font-weight: 400;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto 1.5rem;
  max-width: 520px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-direction: column;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
  }
  .hero-eyebrow-line { width: 32px; }
  .hero-headline {
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
  }
  .hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-bottom: 2.5rem;
  }
  .hero-actions {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  padding-bottom: 6rem;
  max-width: 860px;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1px solid var(--navy-accent);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 2px; height: 6px;
  background: var(--gold-primary);
  border-radius: 1px;
  animation: scroll-anim 2s ease infinite;
}
@keyframes scroll-anim {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Hero overlay gradient — vignette */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-void) 100%);
  z-index: 5;
  pointer-events: none;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  position: relative;
  z-index: 20;
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 0.5rem 2rem;
  border-right: 1px solid var(--glass-border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 0;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .footer-logo { margin-bottom: 1.25rem; }
.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--navy-accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}
.social-link:hover { color: var(--gold-primary); border-color: var(--gold-primary); }

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-contact li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 2rem;
}
.footer-copy, .footer-legal {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 0.75rem; align-items: center; }
.footer-legal a:hover { color: var(--text-muted); }
.footer-dot { color: var(--text-faint); }

/* ── AOS Custom Overrides ─────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--navy-accent); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(27,63,106,0.3); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
  }
  .nav-link.nav-cta {
    margin-top: 0.5rem;
    border: none;
    padding: 1rem 0;
    background: none;
    color: var(--gold-primary);
  }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-row { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}