/* 
========================================================================
   PREMIER ASSOCIATES - INDUSTRIAL APPROVALS & COMPLIANCE
   Premium Corporate Styling Framework (Vanilla CSS)
   Aesthetic: Deep Corporate Slate, Glowing Teal, & High-Integrity Gold
========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #0A0F1D;     /* Deep space navy background */
  --bg-secondary: #121A30;   /* Slate card background */
  --bg-tertiary: #1B2644;    /* Light slate overlay */
  --primary-glow: #00E5FF;   /* Cyber teal accent */
  --primary-hover: #00B4D8;  /* Royal cyan hover state */
  --accent-gold: #E5A93B;    /* High-integrity gold for compliance/prestige */
  --accent-gold-rgb: 229, 169, 59;
  --text-main: #F3F5F9;      /* Crystal white body text */
  --text-muted: #94A3B8;     /* Soft slate descriptions */
  --success: #10B981;        /* Emerald compliance success */
  --warning: #F59E0B;        /* Regulatory alert warning */
  --danger: #EF4444;         /* High-risk non-compliance */
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout and Effects */
  --border-radius: 12px;
  --border-glow: 1px solid rgba(0, 229, 255, 0.15);
  --border-muted: 1px solid rgba(255, 255, 255, 0.08);
  --box-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-width: 1200px;
}

/* --- Base & Reset Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(229, 169, 59, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.6rem; line-height: 1.4; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-glow);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-hover);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

@media (max-width: 576px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .container { padding: 0 1rem; }
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-muted);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent-gold);
  margin-right: 0.2rem;
}

.logo-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-glow);
  display: block;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-glow), var(--accent-gold));
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-glow);
}

/* Nav Dropdowns (SEO & Industries) */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-secondary);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-glass);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  padding: 0.75rem 0;
  list-style: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

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

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dropdown-menu li a:hover {
  color: var(--primary-glow);
  background: var(--bg-tertiary);
  padding-left: 1.8rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 1001;
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: var(--border-muted);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.drawer-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer-links a {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}

.mobile-drawer-links .drawer-submenu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.mobile-drawer-links .drawer-submenu a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-glow) 0%, #0077B6 100%);
  color: #0A0F1D;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00B4D8 0%, #03045E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #9B7020 100%);
  color: #0A0F1D;
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 59, 0.4);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* --- Glass Cards --- */
.card-glass {
  background: rgba(18, 26, 48, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-glass);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.card-glass:hover::before {
  transform: translateX(100%);
}

.card-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.08);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 8rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.25);
  color: var(--accent-gold);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

/* Floating Terminal Mockup (Hero Graphic) */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
}

.terminal-mockup {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 15, 29, 0.9);
  border: var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
  animation: float 6s ease-in-out infinite;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: var(--border-muted);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  margin-left: auto;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #A5F3FC;
}

.terminal-row {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.terminal-prompt {
  color: var(--accent-gold);
  margin-right: 0.5rem;
  user-select: none;
}

.terminal-text {
  color: #E2E8F0;
}

.terminal-accent {
  color: var(--primary-glow);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --- Trust / Stats Section --- */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: rgba(18, 26, 48, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: var(--border-muted);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item {
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1.5rem;
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --- Services Showcase --- */
.service-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--primary-glow);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card ul {
  list-style: none;
  margin-bottom: 2rem;
  margin-top: auto;
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* --- Why Choose Us (Interactive Stepper) --- */
.stepper-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .stepper-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.stepper-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-btn {
  background: rgba(18, 26, 48, 0.5);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.8rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-btn.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--primary-glow);
}

.step-btn.active .step-number {
  background: var(--primary-glow);
  color: #0A0F1D;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.step-btn.active .step-title {
  color: #FFFFFF;
}

.step-content-box {
  background: rgba(18, 26, 48, 0.7);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 3rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--box-shadow-glass);
}

.step-pane {
  display: none;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step-pane.active {
  display: block;
}

.step-icon-big {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.step-pane h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.step-pane p {
  font-size: 1.05rem;
  line-height: 1.7;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Industries Grid --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: rgba(18, 26, 48, 0.4);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.industry-card:hover {
  background: rgba(229, 169, 59, 0.05);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.industry-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.industry-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- Interactive Map Widget (Featured Projects) --- */
.map-widget {
  background: rgba(18, 26, 48, 0.6);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  box-shadow: var(--box-shadow-glass);
}

@media (max-width: 992px) {
  .map-widget {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

.map-container {
  position: relative;
  background: #0B1123;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-graphic-svg {
  width: 90%;
  height: 90%;
}

.map-pin {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-pin:hover,
.map-pin.active {
  fill: var(--primary-glow) !important;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-muted);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.project-meta-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.project-meta-row span:last-child {
  color: #FFFFFF;
  font-weight: 600;
}

/* --- Interactive Tool: Journey Explorer & Calculators --- */
.tools-showcase {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: var(--border-muted);
  overflow: hidden;
  box-shadow: var(--box-shadow-glass);
}

.tools-tab-headers {
  display: flex;
  background: rgba(0,0,0,0.25);
  border-bottom: var(--border-muted);
}

.tool-tab-btn {
  flex: 1;
  padding: 1.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.tool-tab-btn.active {
  color: var(--primary-glow);
  border-bottom-color: var(--primary-glow);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
  .tools-tab-headers {
    flex-direction: column;
  }
  .tool-tab-btn {
    border-bottom: none;
    border-left: 4px solid transparent;
    padding: 1rem 1.5rem;
    justify-content: flex-start;
  }
  .tool-tab-btn.active {
    border-left-color: var(--primary-glow);
  }
}

.tool-body {
  padding: 3rem;
}

@media (max-width: 576px) {
  .tool-body {
    padding: 1.5rem;
  }
}

.tool-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tool-pane.active {
  display: block;
}

/* Forms & Selects inside Tools */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-primary);
  border: var(--border-muted);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

/* Journey Explorer Result Box */
.journey-result-container {
  margin-top: 2rem;
  background: rgba(10, 15, 29, 0.6);
  border: var(--border-muted);
  border-radius: 8px;
  padding: 2rem;
  display: none;
}

.journey-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.journey-result-badge {
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.approval-list-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-smooth);
}

.approval-list-item:hover {
  background: rgba(0, 229, 255, 0.02);
  border-color: rgba(0, 229, 255, 0.1);
}

.approval-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.approval-item-details {
  flex: 1;
}

.approval-item-title {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.approval-item-dept {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.approval-item-timeline {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Compliance Health Wizard styles */
.health-wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.health-wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.wizard-dot.active {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.wizard-dot.completed {
  background: var(--primary-glow);
  border-color: var(--primary-glow);
  color: #0A0F1D;
}

.wizard-question-container {
  min-height: 180px;
}

.wizard-question {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.wizard-option-btn {
  background: rgba(255,255,255,0.02);
  border: var(--border-muted);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.wizard-option-btn:hover {
  background: rgba(0, 229, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.2);
}

.wizard-option-btn.selected {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--primary-glow);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.health-result-card {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.radial-score-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-secondary) 60%, transparent 61%),
              conic-gradient(var(--success) 0%, rgba(255,255,255,0.05) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
  transition: var(--transition-smooth);
}

.radial-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFFFFF;
}

.health-report-bullets {
  text-align: left;
  max-width: 480px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.02);
  border: var(--border-muted);
  border-radius: 8px;
  padding: 1.5rem;
}

.health-report-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.health-report-item:last-child {
  margin-bottom: 0;
}

.health-report-icon {
  font-weight: bold;
}

.health-report-icon.tick { color: var(--success); }
.health-report-icon.cross { color: var(--danger); }

/* Timeline calculator result gate styles */
.gate-container {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 0;
}

.gate-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.timeline-visual-gantt {
  margin-top: 2rem;
  background: rgba(10, 15, 29, 0.6);
  border: var(--border-muted);
  border-radius: 8px;
  padding: 2rem;
  display: none;
}

.gantt-bar-row {
  margin-bottom: 1.25rem;
}

.gantt-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.gantt-bar-track {
  height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.gantt-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-glow));
  border-radius: 6px;
  width: 0;
  transition: width 1.2s ease-out;
}

/* --- Project tracker demo --- */
.tracker-demo {
  background: rgba(10, 15, 29, 0.5);
  border: var(--border-muted);
  border-radius: 8px;
  padding: 2rem;
}

.tracker-node-row {
  display: flex;
  position: relative;
  padding-bottom: 2rem;
}

.tracker-node-row:last-child {
  padding-bottom: 0;
}

.tracker-node-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.05);
  z-index: 1;
}

.tracker-node-row:last-child::before {
  display: none;
}

.tracker-node-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  font-weight: bold;
}

.tracker-node-circle.active {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.tracker-node-circle.completed {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.tracker-node-circle.completed::before {
  content: '✓';
}

.tracker-node-details {
  flex: 1;
  margin-left: 1.5rem;
}

.tracker-node-title {
  font-weight: 600;
  color: #FFFFFF;
}

.tracker-node-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tracker-node-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.tracker-node-status.complete { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.tracker-node-status.wip { background: rgba(0, 229, 255, 0.1); color: var(--primary-glow); }
.tracker-node-status.pending { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* --- Testimonials --- */
.testimonial-carousel {
  margin-top: 1rem;
}

.testimonial-card {
  background: rgba(18, 26, 48, 0.5);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow-glass);
  position: relative;
}

.testimonial-quote {
  font-size: 1.2rem;
  color: #E2E8F0;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(229, 169, 59, 0.15);
  position: absolute;
  top: 1rem;
  left: 2rem;
  line-height: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.testimonial-meta h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
}

.testimonial-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Final CTA Section --- */
.final-cta {
  background: linear-gradient(135deg, #0B1123 0%, #152244 100%);
  border-top: var(--border-muted);
  border-bottom: var(--border-muted);
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Footer --- */
footer {
  background: #060A14;
  border-top: var(--border-muted);
  padding: 5rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary-glow);
  padding-left: 0.3rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--primary-glow);
  color: #0A0F1D;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Internal Pages (Specific Styles) --- */
.page-hero {
  padding-top: 150px;
  padding-bottom: 5rem;
  background: linear-gradient(to bottom, #0A0F1D 0%, #121A30 100%);
  border-bottom: var(--border-muted);
  position: relative;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-glow);
}

.breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.15);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb li.active {
  color: var(--accent-gold);
  font-weight: 500;
}

/* Regulatory Service Page Structure */
.service-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .service-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.service-main-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.service-main-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Detailed styling for tables inside LLM-optimized service pages */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  border: var(--border-muted);
}

.regulatory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(18, 26, 48, 0.4);
}

.regulatory-table th {
  background: var(--bg-tertiary);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.regulatory-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.regulatory-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.regulatory-table tr:last-child td {
  border-bottom: none;
}

/* Document requirements checklist on Service pages */
.doc-requirements-box {
  background: rgba(18, 26, 48, 0.6);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.doc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .doc-list {
    grid-template-columns: 1fr;
  }
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.doc-item::before {
  content: '📎';
  font-size: 1.1rem;
}

/* Side navigation widgets for Service and Industry pages */
.sidebar-widget {
  background: rgba(18, 26, 48, 0.6);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow-glass);
}

.sidebar-widget h4 {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}

.sidebar-links-list {
  list-style: none;
}

.sidebar-links-list li {
  margin-bottom: 0.6rem;
}

.sidebar-links-list li:last-child {
  margin-bottom: 0;
}

.sidebar-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar-links-list a:hover,
.sidebar-links-list a.active {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.15);
  color: var(--primary-glow);
  padding-left: 1.25rem;
}

.sidebar-contact-card {
  text-align: center;
  background: linear-gradient(135deg, #1A274E 0%, #0C1227 100%);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.sidebar-contact-card .contact-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* FAQ Accordions */
.faq-accordion {
  margin-top: 2.5rem;
}

.faq-item {
  background: rgba(18, 26, 48, 0.5);
  border: var(--border-muted);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 1rem;
}

.faq-arrow {
  color: var(--primary-glow);
  transition: transform 0.3s ease;
  font-weight: bold;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  background: rgba(0,0,0,0.15);
}

.faq-item.active {
  border-color: rgba(0, 229, 255, 0.2);
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-item.active .faq-body {
  padding: 1.2rem 1.5rem;
  max-height: 350px;
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem auto;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Leads Admin Dashboard Panel (For Client Testing submission reviews) */
.leads-dashboard {
  background: rgba(18, 26, 48, 0.6);
  border: var(--border-muted);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-top: 3rem;
}

.leads-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.8rem;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.leads-table th {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.leads-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
