/* ============================================================
   SPARK COMPASS.AI — Master Stylesheet
   Design System for Mihalo to enhance with animations,
   flyovers, pulsing elements, and dynamic interactions.
   ============================================================ */
@font-face {
  font-family: 'Shapiro Wide';
  src: url('../fonts/Shapiro\ 75\ Heavy\ Wide.otf') format('opentype');
  font-weight: 800; 
  font-style: normal;
  font-display: swap;
}

/* --- CSS VARIABLES (DESIGN TOKENS) --- */
:root {
  
  /* Primary Palette — Deep tech meets human warmth */
  --sc-navy: #0A1628;
  --sc-deep-blue: #0F2440;
  --sc-blue: #1565C0;
  --sc-electric: #00B4D8;
  --sc-cyan: #48CAE4;
  --sc-teal: #0077B6;
  
  /* Accent — Energy & Innovation */
  --sc-gold: #F4A100;
  --sc-amber: #FF8F00;
  --sc-coral: #FF6B6B;
  --sc-green: #00C853;
  
  /* Neutrals */
  --sc-white: #FFFFFF;
  --sc-off-white: #F5F7FA;
  --sc-light-gray: #E8ECF1;
  --sc-mid-gray: #8A9BB5;
  --sc-dark-gray: #3D4F6F;
  --sc-charcoal: #1A2A44;
  
  /* Typography */
  --font-display: 'Shapiro Wide', sans-serif;
  --font-heading: 'Outfit', 'DM Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.16);
  --shadow-xl: 0 16px 50px rgba(10, 22, 40, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.15);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* Layout */
  --max-width: 1280px;
  --content-width: 960px;
  --nav-height: 72px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--sc-charcoal);
  background: var(--sc-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-blue); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--sc-electric); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sc-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-heading1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-heading2 {
  display: none;
}

.overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sc-electric);
}

.lead { font-size: 1.25rem; line-height: 1.6; color: var(--sc-dark-gray); }

.lead1 { font-size: 1.25rem; line-height: 1.6; color: var(--sc-dark-gray); }


/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow { max-width: var(--content-width); }

.section {
  padding: var(--space-5xl) 0;
}

.section--dark {
  background: var(--sc-navy);
  color: var(--sc-white);
}

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 {
  color: var(--sc-white);
}

.section--dark .lead { color: var(--sc-mid-gray); }

.section--accent {
  background: linear-gradient(135deg, var(--sc-deep-blue), var(--sc-navy));
  color: var(--sc-white);
}

.section--light { background: var(--sc-off-white); }

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px; /* Adjusts spacing between the two logos */
  padding: var(--space-lg, 30px) 0; /* Padding above and below the logos */
  margin-top: 60px;
}

.partner-logo {
  /* Set a consistent height so they look balanced */
  height: 70px; 
  width: auto;
  object-fit: contain;
  /* Optional: filter for brand consistency if one logo is too bright */
  transition: opacity var(--duration-normal);
}

.partner-logo-single {
  /* Set a consistent height so they look balanced */
  height: 100px; 
  width: auto;
  object-fit: contain;
  /* Optional: filter for brand consistency if one logo is too bright */
  transition: opacity var(--duration-normal);
}

/* Mobile scaling */
@media (max-width: 480px) {
  .partner-logos {
    gap: 20px;
  }
  .partner-logo {
    height: 35px;
  }
}

/* Grid */
.grid { display: grid; gap: var(--space-xl); }
.grid1 {
  display: flex; flex-direction: row; justify-content: space-between;
}
.grid1a {
  height: 80px; padding-right: 45px; border-right: 0.3px solid white;
}
.grid1b {
  width: 600px; margin-left: -140px;
}
.grid1c {
  text-align:right;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--2a { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .display-heading1 {
    display: none;
  }
  .display-heading2 {
    display: block;
    font-family: var(--font-display);
  font-size: clamp(2.3rem, 3vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  }

  .lead1 { font-size: 0.95rem; line-height: 1.6; color: var(--sc-dark-gray); }

}

@media (max-width: 1300px) {
  .grid1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 0;
}
  .grid1a {
    padding-right: 0px;
    padding-bottom: 30px;
    border-right: none;
    border-bottom: 0.3px solid white;
    height: auto;
    width: 10%;
    align-self: flex-start;
  }
  .grid1b {
    width: 100%;
    margin-left: 0px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 1000px) {

  .grid--2a { grid-template-columns: 1fr; }

  .pdf-video-wrapper {
    position: relative !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .pdf-video-wrapper img {
    width: 50% !important;
    margin: 0 !important;
  }

  .pdf-video-wrapper .video-box {
    position: relative !important;
    width: 70% !important;
    bottom: 70px !important;
    left: 30px !important;
  }
}

@media (max-width: 768px) {
  .grid1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 0;
}
  .grid1a {
    padding-right: 0px;
    padding-bottom: 30px;
    border-right: none;
    border-bottom: 0.3px solid white;
    height: auto;
    width: 15%;
    align-self: flex-start;
  }
  .grid1b {
    width: 100%;
    margin-left: 0px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sc-white);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo .dot { 
  display: inline-block;
  width: 8px; 
  height: 8px;
  background: var(--sc-electric);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.nav__logo-img {
  height: 45px; 
  width: auto;
  display: block;
  object-fit: contain;
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav__logo-img:hover {
  opacity: 0.8;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active { 
  color: var(--sc-white); 
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sc-electric);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__links a:hover::after,
.nav__links a.active::after { 
  width: 100%; 
}

.nav__cta {
  background: var(--sc-electric);
  color: var(--sc-navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--duration-fast);
}

.nav__cta:hover {
  background: var(--sc-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

/* Hamburger menu */
.hamburger {
  display: none;
}

@media (max-width: 1100px) {
  .nav__links {
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 90px; /* below nav */
    right: 0;
    width: 200px;
    background: rgba(10,22,40,0.95);
    padding: 1rem;
    gap: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
  }

  /* When menu is open */
  .nav__links.nav__links--open {
    transform: translateX(0);
    opacity: 1;
    display: flex; /* ensure flex layout */
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* above menu */
  }

  .hamburger span {
    display: block;
    height: 1.3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    z-index: 100;
  }

  /* Hamburger → X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__cta {
  background: var(--sc-electric);
  color: var(--sc-navy) !important;
  padding-left: 20px!important;
  padding-right: 20px!important;
  padding-top: 10px!important;
  padding-bottom: 10px!important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--duration-fast);
}
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--sc-navy);
  color: var(--sc-white);
  background-image: linear-gradient(rgba(1, 1, 9, 0.7)), url('../images/Hero.png');
  background-size: cover;
  background-position: 0px 1300px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* MIHALO: Replace with particle animation, WebGL canvas, or video background */
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(21, 101, 192, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(244, 161, 0, 0.05) 0%, transparent 50%);
  z-index: 0;
}

/* Animated grid overlay - placeholder for Mihalo's WebGL */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__content1 {
  position: relative;
  z-index: 2;
  max-width: 1300px;
}

.hero__content .overline { margin-bottom: var(--space-lg); }
.hero__content .display-heading { margin-bottom: var(--space-xl); }
.hero__content .lead { margin-bottom: var(--space-2xl); color: rgba(255,255,255,0.6); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--sc-electric);
  color: var(--sc-navy);
}

.btn--primary:hover {
  background: var(--sc-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
  color: var(--sc-navy);
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.25);
}

.btn--outline1 {
  background: transparent;
  border: 2px solid black;
  color: black;
}

#btn1 {
  margin-right: 20px;
}

.btn--outline1 a {
  background: transparent;
  border: 2px solid rgba(0,0,0,0.25);
  color: var(--sc-white);
}

.btn--outline:hover {
  border-color: var(--sc-electric);
  color: var(--sc-electric);
  transform: translateY(-2px);
}

.btn--outline1:hover {
  border-color: var(--sc-electric);
  color: var(--sc-electric);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--sc-navy);
  color: var(--sc-white);
}

.btn-group { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* --- CARDS --- */
.card {
  background: var(--sc-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--sc-light-gray);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card--dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 180, 216, 0.2);
  box-shadow: var(--shadow-glow);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card__text {
  color: var(--sc-dark-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card--image-top {
  position: relative;
  overflow: hidden;
  padding: 0; /* Remove padding so image hits the edges */
  display: flex;
  flex-direction: column;
  background: var(--sc-white);
}

.card__image-container {
  position: relative;
  width: 100%;
  height: 180px; /* Fixed height for the header area */
  background: #f8f9fa; /* Light grey backup if image fails */
  overflow: hidden;
}

.card__image-container1 {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for the header area */
  background: #f8f9fa; /* Light grey backup if image fails */
  overflow: hidden;
}

.card__image-container2 {
  position: relative;
  width: 100%;
  height: 250px; /* Fixed height for the header area */
  background: #f8f9fa; /* Light grey backup if image fails */
  overflow: hidden;
}

.card__flag {
  width: 100%;
  height: 100%;
  /* This ensures the flag doesn't stretch or squash */
  object-fit: cover; 
  object-position: center;
  padding: 0px; /* Gives the flag breathing room inside the header */
}

.card__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* The gradient that fades the flag into the white content area */
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0) 3%, 
    var(--sc-white) 100%
  );
}

.card__image-overlay1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  /* The gradient that fades the flag into the white content area */
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0) 3%, 
    var(--sc-white) 100%
  );
}

.card__image-overlay2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  /* The gradient that fades the flag into the white content area */
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0) 3%, 
    var(--sc-white) 100%
  );
}


.card__content {
  padding: var(--space-xl);
  text-align: start;
  z-index: 1;
}

.card__title {
  margin-top: -10px; /* Pulls title slightly closer to the fade */
}

.nhsvodafone {
  width: 30%;
  padding-top: 40px;
}

/* --- COMPARISON TABLE --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sc-light-gray);
}

.comparison__col { background: var(--sc-white); padding: var(--space-2xl); }
.comparison__col--highlight { background: rgba(0, 180, 216, 0.03); }

.comparison__header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--sc-light-gray);
}

.comparison__col--highlight .comparison__header {
  border-color: var(--sc-electric);
  color: var(--sc-blue);
}

.comparison__item {
  padding: var(--space-md) 0;
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.comparison__item .icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
  .comparison { grid-template-columns: 1fr; }

  .nhsvodafone {
  width: 70%;
  padding-top: 40px;
}
}

/* --- STATS ROW --- */
.stats {
  display: flex;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.stat { text-align: center; }

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--sc-electric);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--sc-mid-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PIPELINE / PROCESS --- */
.pipeline {
  display: flex;
  gap: var(--space-sm);
  align-items: stretch;
  overflow-x: auto;
  padding: var(--space-md) 0;
}

.pipeline__step {
  flex: 1;
  min-width: 180px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  text-align: center;
  transition: all var(--duration-normal);
}

.pipeline__step:hover {
  background: rgba(0, 180, 216, 0.06);
  border-color: rgba(0, 180, 216, 0.2);
}

.pipeline__step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-electric);
  font-size: 1.25rem;
  z-index: 1;
}

.pipeline__step:last-child::after { display: none; }

.pipeline__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sc-electric);
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

.pipeline__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.pipeline__desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* --- TESTIMONIALS / CASE STUDIES --- */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--sc-light-gray);
}

.case-study:last-child { border-bottom: none; }

.case-study__metric {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--sc-electric);
  line-height: 1;
}

.case-study__label { font-weight: 600; margin-top: 20px; font-family: var(--font-heading);}

.logo-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .case-study { grid-template-columns: 1fr; gap: var(--space-xl); }

  .logo-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: left;
  text-align: left;
  }

  .logo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Force internal items left */
    text-align: left !important;        /* Force text lines left */
    width: 100%;
    margin: 0; 
  }

  .hero {
    background-position: top;
  }

  /* Target the specific paragraph inside to ensure it's not centering itself */
  .logo-info p {
    text-align: left;
    margin-left: 0;
    width: 100%;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--sc-navy);
  color: rgba(255,255,255,0.6);
  padding: var(--space-4xl) 0 var(--space-xl);
  padding-top: 50px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sc-white);
  margin-bottom: var(--space-md);
}

.footer__tagline { font-size: 0.875rem; line-height: 1.6; }

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sc-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: var(--space-sm); }
.footer__links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer__links a:hover { color: var(--sc-electric); }

.footer__bottom {
  border-top: 0.4px solid rgba(255,255,255,0.8);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__legal { color: rgba(255,255,255,0.8); }

.footer__brand {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
}

.footer__logo-img {
  /* Slightly larger or smaller depending on your footer preference */
  height: 32px; 
  width: auto;
  display: block;
  object-fit: contain;
}

/* Ensure the tagline still looks good underneath */
.footer__tagline {
  margin-top: var(--space-sm);
  color: var(--sc-medium-gray); /* Or your preferred footer text color */
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .page-top {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 180, 216, 0.1);
  color: var(--sc-electric);
  border: 1px solid rgba(0, 180, 216, 0.2);
}

/* --- PAGE-SPECIFIC SPACING --- */
.page-top { padding-top: calc(var(--nav-height) + var(--space-4xl)); }

/* --- SCROLL REVEAL (Mihalo: implement with IntersectionObserver) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

.adaptive:hover {
  opacity: 0.8;
  cursor: pointer;
}

.circle {
  width:400px;
  height:400px;
  margin:0 auto;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(202, 202, 202, 0.15);
}

.circle--image {
  position: absolute;
  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 85%; 
  z-index: 1;
}

/* --- MOBILE NAVIGATION OVERRIDE --- */
@media (max-width: 1100px) {
  .nav__links {
    display: flex; /* Override display: none */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--sc-navy);
    padding: var(--space-5xl) var(--space-2xl);
    gap: var(--space-xl);
    transition: right var(--duration-slow) var(--ease-in-out);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* When JS toggles this class */
  .nav__links--open {
    right: 0;
  }

  /* Hamburger to 'X' Animation (Optional Enhancement) */
  .nav__toggle--active {
    color: var(--sc-electric);
    /* Add transform or icon swap here if using a font-icon */
  }

  .nav__links a {
    font-size: 1.1rem;
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .circle {
  width:300px;
  height:300px;
  margin:0 auto;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 70%);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(202, 202, 202, 0.15);
}

.circle--image {
  position: absolute;
  top: 55%;
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 90%; 
  z-index: 1;
}

.reveal {
  padding-top: 50px;
}
}