/* ==========================================================================
   BRANDED COLOR PALETTE & GLOBAL RESET
   ========================================================================== */
:root {
  --navy-primary: #0A1E3F;      /* Deep Navy from JAE letters */
  --navy-light: #12284C;        /* Hero/Card Background Navy */
  --teal-accent: #006B62;       /* Teal/Green from 'A' and Aspire icon */
  --gold-primary: #D49B27;      /* Gold/Ochre from Empower icon */
  --gold-hover: #BF871B;        /* Gold hover state */
  --gold-light: #FBF4E4;        /* Subtle tint background */
  --bg-light: #F8FAF9;          /* Clean Off-white */
  --card-bg: #FFFFFF;
  --text-main: #0A1E3F;          
  --text-muted: #5A6B82;         
  --border-color: #E2E8F0;
}

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

/* Global scroll, overflow, and layout setup */
html {
  scroll-behavior: smooth !important;
  scroll-snap-type: none !important;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-primary) transparent;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  position: relative;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
  text-rendering: optimizeSpeed;
}

/* Scrollbar Customization */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html::-webkit-scrollbar {
  display: block !important;
  width: 8px !important;
}

html::-webkit-scrollbar-thumb {
  background: var(--navy-primary) !important;
  border-radius: 4px !important;
}

/* Universal Layout Helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
.top-bar {
  background: #061329;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
  font-size: 0.78rem;
  width: 100%;
  overflow: hidden;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.motto-badge {
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.motto-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
  border-radius: 50%;
}

.tz-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 107, 98, 0.2);
  border: 1px solid rgba(0, 107, 98, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
}

.tz-text {
  color: #2DD4BF;
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #2DD4BF;
  border-radius: 50%;
  box-shadow: 0 0 6px #2DD4BF;
}

/* NAVBAR HEADER */
.navbar {
  background: rgba(10, 30, 63, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: rgba(212, 155, 39, 0.2);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-logo span {
  color: var(--gold-primary);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.arrow {
  font-size: 0.75rem;
  margin-left: 2px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  list-style: none;
  padding: 8px 0;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-primary);
}

/* CTA Button */
.nav-cta {
  background-color: var(--gold-primary);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(212, 155, 39, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 10001;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #F8FAFC;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-au {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 90px 0;
  text-align: center;
  width: 100%;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-au h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.highlight-text {
  color: var(--gold-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   THREE PILLARS (Journey, Aspire, Empower)
   ========================================================================== */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 50px 0;
}

.prop-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.2s ease;
}

.prop-card:hover {
  transform: translateY(-4px);
}

.prop-card.journey { border-top: 4px solid var(--navy-primary); }
.prop-card.aspire { border-top: 4px solid var(--teal-accent); }
.prop-card.empower { border-top: 4px solid var(--gold-primary); }

.prop-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0;
  letter-spacing: 1px;
}

.prop-card.journey h3 { color: var(--navy-primary); }
.prop-card.aspire h3 { color: var(--teal-accent); }
.prop-card.empower h3 { color: var(--gold-primary); }

.prop-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   3D REVIEWS & INTERACTIVE SECTION
   ========================================================================== */
.reviews-hero-3d {
  position: relative;
  padding: 120px 0 60px;
  background: #020611;
  overflow: hidden;
  width: 100%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#reviews-canvas-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.hero-interactive-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 16px 0;
}

/* RATING SCORECARD */
.rating-scorecard-3d {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.score-number-glow {
  font-size: 2rem;
  font-weight: 800;
  color: #FACC15;
}

.stars-gold {
  color: #FACC15;
  display: flex;
  gap: 4px;
}

/* FILTER BAR */
.reviews-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.filter-btn {
  background: #0F172A;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: #38BDF8;
  color: #020611;
  font-weight: 600;
  border-color: #38BDF8;
}

/* 3D REVIEWS GRID */
.reviews-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.review-card-3d {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 24px;
  color: #E2E8F0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card-3d:hover {
  border-color: #38BDF8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.region-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.region-badge.au { background: rgba(56, 189, 248, 0.2); color: #38BDF8; }
.region-badge.uk { background: rgba(236, 72, 153, 0.2); color: #EC4899; }

.review-text {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #CBD5E1;
}

.client-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.client-info strong {
  display: block;
  color: #FFF;
}

.client-info span {
  font-size: 0.85rem;
  color: #64748B;
}

.verified-tag {
  color: #10B981;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BUTTONS & MODAL */
.btn-3d-primary {
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  color: #FFF;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-3d-primary:hover {
  transform: translateY(-2deg);
}

.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 17, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.review-modal-overlay.active {
  display: flex;
}

.review-modal-card {
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 32px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-au {
  background-color: var(--navy-primary);
  color: #94a3b8;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
}

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

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--gold-primary); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cbd5e1;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE NAVIGATION
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links {
    gap: 6px;
  }
  .nav-item {
    font-size: 0.82rem;
    padding: 4px 8px;
  }
}

@media (max-width: 1024px) {
  .props-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--navy-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 8px;
  }

  .top-bar-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  /* Prevent mobile viewport overflow */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Full-width layout adaptations for form/contact elements */
  .contact-hero,
  .contact-container,
  .contact-wrapper,
  .contact-content {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }

  .contact-hero,
  .contact-hero *,
  section[class*="contact"],
  div[class*="contact"] {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .contact-hero {
    padding: 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .contact-form,
  .contact-info,
  .info-card,
  .form-group,
  input,
  textarea,
  select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-hero .info-card,
  .contact-hero div,
  .contact-hero form {
    width: 100% !important;
    min-width: 0 !important;
    word-break: break-all !important;
  }

  .contact-hero h1,
  .contact-hero h2 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .contact-hero p,
  .info-card p {
    font-size: 0.95rem !important;
    word-break: break-word !important;
  }

  /* Glass Card and Form Adjustments */
  .contact-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .glass-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .glass-card input,
  .glass-card textarea,
  .glass-card select,
  .glass-card .btn-submit-3d {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Chat Widget Position adjustments */
  #chat-widget,
  .chat-widget-wrapper {
    bottom: 15px !important;
    right: 15px !important;
    transform: scale(0.85);
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
  }
  .hero-au h1 { font-size: 2rem; }
  .hero-title { font-size: 1.8rem; }
}

/* Hide Cloudflare Turnstile troubleshoot link */
.cf-turnstile iframe + div {
  display: none !important;
}