/*
 * Global stylesheet for the eleoro website.
 *
 * This file defines a neutral base style inspired by modern B2B brands like Datavant. A
 * simple colour palette and open‑source fonts create a professional feel while
 * leaving room for experimentation. All key colours and fonts are defined as CSS
 * variables at the root so you can quickly generate and explore new themes.
 */

/* Root variables for colours and typography */
:root {
  /* Primary palette (dark mode): adjust these values to explore different colour schemes. The site
     uses a dark grey background throughout, with subtle variations for content surfaces and
     accents. */
  --color-primary: #e6e6e6;     /* Main text colour on dark backgrounds */
  --color-secondary: #a3a3a3;   /* Secondary text colour */
  --color-accent: #98FF98;      /* Teal accent colour for buttons and highlights */
  /* Dark mode palette: adjust these values to explore different colour schemes. */
  --color-light: #1b1b1b;       /* Base background colour */
  --color-dark: #0c0c0c;        /* Darker backgrounds (footer, nav) */
  --color-surface: #242424;     /* Surface colour for cards and forms */
  --color-notice: #62A362;      /* Announcement bar background */
  --color-request: #161616;     /* Request bar background */
  --color-border: #333333;      /* Border lines on dark backgrounds */

  /* Typography: using open‑source fonts similar to Datavant */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing units */
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --nav-height: 60px;
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: #000000;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Global link hover styling.  Underlines and colour shifts provide subtle feedback without
   overwhelming the dark palette. */
/* Anchor hover: apply colour and underline to interactive links except the site logo */
a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Remove underlines on hover for navigation links in the capabilities menu and
   the capabilities cards. These elements change colour or border instead of
   underlining. */
.nav-links li a:hover,
.dropdown-item:hover,
.service-item:hover,
.service-item:hover .read-more {
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

/* Images (or containers with background images) slightly scale on hover when they are
   wrapped in anchor tags.  This effect applies to service cards and hero visuals. */
a img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Announcement bar */
.announcement-bar {
  background: var(--color-notice);
  color: var(--color-dark);
  text-align: center;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

/* Request bar */
.request-bar {
  background: var(--color-request);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.request-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  padding: 8px 0;
}
.request-bar .request-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s ease;
}
.request-bar .request-link:hover {
  color: #004e48;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
}

/* Darken the nav and add a subtle shadow when the page scrolls */
nav.scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  /* Slightly lighter weight for a cleaner, contemporary feel */
  font-weight: 500;
  font-size: 1.75rem;
}
.accent-letter {
  color: var(--color-accent);
  font-weight: 700;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.nav-links li a {
  font-family: var(--font-heading);
  /* Use a lighter font weight for navigation links to mimic Datavant’s airy typography */
  font-weight: 400;
  color: var(--color-primary);
  /* Increase padding on navigation links for better spacing */
  padding: 10px 14px;
  transition: color 0.2s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-accent);
}
/* Dropdown menu */
.dropdown {
  position: relative;
}
.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  /* Center the capabilities dropdown beneath the nav so it doesn’t run off the
     screen on either side.  Use clamp to constrain the width between 600px
     and 900px or 90% of the viewport. */
  left: 50%;
  transform: translateX(-50%);
  width: clamp(600px, 90vw, 900px);
  padding: var(--spacing-md);
  background: var(--color-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  display: none;
  z-index: 998;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}
/* Each capability item in the dropdown is an anchor.  Make it block‑level
   with padding, rounded corners and a subtle hover. */
.dropdown-item {
  display: block;
  /* Increase padding in dropdown items for consistent spacing */
  padding: 12px 16px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.dropdown-item:hover {
  background: var(--color-request);
}
.dropdown-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  /* Use medium weight for dropdown headings to align with lighter overall typography */
  font-weight: 500;
  margin-bottom: 4px;
}
.dropdown-item p {
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
/* Remove styling for nested links in dropdown items because the entire item is an anchor */

/* Hamburger menu for mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    flex-direction: column;
    background: var(--color-light);
    width: 100%;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transition: left 0.3s ease;
  }
  .nav-links.open {
    left: 0;
  }
  .burger {
    display: flex;
  }
  .dropdown:hover .dropdown-menu {
    display: none; /* disable hover on mobile */
  }
  .dropdown .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .dropdown .dropdown-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero section */
.hero {
  /* Dark gradient for the hero. Use two close shades to create depth on dark mode. */
  background: linear-gradient(155deg, #272727,  #000000 );
  padding: var(--spacing-md) 0;
  /* Increase the height of the hero so there is more room for content on larger screens */
  /* Increase the hero height to provide more breathing room for the expanded
     heading and content. */
  min-height: 80vh;
}
.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-lg);
}
.hero-text {
  flex: 1 1 500px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  /* Increase the heading size to create more impact on larger screens */
  font-size: 4rem;
  /* Reduce heading weight to improve balance */
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}
.hero-text h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}
.hero-text p {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  font-size: 1.15rem;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #0c0c0c;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta-btn:hover {
  background: #005f58;
  transform: translateY(-2px);
}
.cta-btn.secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cta-btn.secondary:hover {
  background: var(--color-accent);
  color: #0c0c0c;
}
.hero-visual {
  flex: 1 1 400px;
  position: relative;
  min-height: 300px;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
/* Animated shapes overlay on hero visual */
.shape {
  position: absolute;
  background: var(--color-accent);
  opacity: 0.2;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.shape1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 70%;
}
.shape2 {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 80%;
  animation-delay: 2s;
}
.shape3 {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 60%;
  animation-delay: 4s;
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Section titles and intros */
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}
.section-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
  color: var(--color-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Connectivity section */
.connectivity-section {
  padding: var(--spacing-lg) 0;
  /* Use the surface colour for the connectivity section so the network graphic
     stands out against the page background */
  background: #000000;
  border-bottom: 1px solid var(--color-border);
}
.connectivity-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}
.connectivity-steps .step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connectivity-steps .step span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #0c0c0c;
  font-weight: 600;
  margin-bottom: 6px;
}
.connectivity-graphic {
  text-align: center;
  color: var(--color-secondary);
  font-style: italic;
}

/* Services preview section */
.services-preview-section {
  padding: var(--spacing-lg) 0;
  background: #000000;
  border-bottom: 1px solid var(--color-border);
}
/* Services preview list on the homepage.  Replace the older grid layout with a two‑column
   arrangement similar to Datavant’s “Who we serve” section.  Each item has a subtle
   hover effect and links to a dedicated service page. */
.services-list {
  display: grid;
  /* Default to a single column on small screens; we'll override to two columns on larger screens */
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}
.service-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--color-primary);
}
.service-item p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.service-item .read-more {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.service-item .read-more i {
  transition: transform 0.2s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-color: var(--color-accent);
}
.service-item:hover .read-more {
  color: #009b8a;
}
.service-item:hover .read-more i {
  transform: translateX(4px);
}

/* Roadmap styling */
.roadmap {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-md);
  /* Hide the native scrollbar; scrolling is handled programmatically */
  overflow-x: hidden;
  padding-bottom: var(--spacing-md);
  position: relative;
  /* Hide native scrollbars across browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
/* Hide scrollbars in WebKit browsers */
.roadmap::-webkit-scrollbar {
  display: none;
}
.roadmap-step {
  /* Default width for each roadmap step; increases on hover */
  flex: 1 0 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  /* Add extra padding on top and left to offset the numbered badge */
  padding: 24px 24px 24px 44px;
  position: relative;
  cursor: pointer;
  transition: flex-basis 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.roadmap-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.roadmap-step p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--color-secondary);
  font-size: 0.85rem;
}
.roadmap-step:hover {
  /* Expand the width further on hover and highlight with a stronger shadow */
  flex-basis: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border-color: var(--color-accent);
}
.roadmap-step:hover p {
  max-height: 200px;
}
.roadmap-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  /* Longer connecting line and lighter stroke for the roadmap */
  width: 60px;
  height: 2px;
  background: rgba(0, 191, 165, 0.6);
  transform: translateY(-50%);
}
.roadmap-step:last-child::after {
  display: none;
}

/* Step numbers for the roadmap: show a numbered circle in the top‑left of each
   roadmap card. The number is pulled from the data-step attribute on the
   element. */
.roadmap-step::before {
  content: attr(data-step);
  position: absolute;
  /* Position the number inside the card */
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

/* Highlight a service card when navigated to via an anchor link.  The :target pseudo-class
   matches the element whose id equals the URL fragment. */
.service-item:target {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
  /* Offset scroll position so the card is not hidden beneath the sticky nav */
  /* Increase scroll offset so that the targeted capability is fully visible below the sticky nav and request bar */
  scroll-margin-top: 180px;
}

/* Larger screens: display the capabilities list in two columns similar to Datavant’s “who we serve” section. */
@media (min-width: 992px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About preview & contact CTA sections */
.about-preview-section,
.contact-cta-section {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background: #000000;
}
.about-preview-section p,
.contact-cta-section p {
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-secondary);
}

/* Footer */
footer {
  background: var(--color-dark);
  color: #ffffff;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 220px;
  text-align:center;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}
.footer-col p {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: var(--spacing-sm);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li a {
  color: #cccccc;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  color: #cccccc;
  font-size: 1.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover {
  color: #ffffff;
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 0.8rem;
  color: #aaaaaa;
}

/* Network section showing how customer data and AI connect around eleoro */
.network-section {
  padding: var(--spacing-lg) 0;
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
}
.data-network {
  position: relative;
  width: 100%;
  margin-top: var(--spacing-lg);
}
.network-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  opacity: 0.6;
  pointer-events: none;
}
.network-node {
  position: absolute;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  /* Increase node size and roundness to echo Datavant’s network illustration */
  border-radius: 9999px;
  padding: 12px 18px;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.network-node.central {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
  /* Make central node larger */
  padding: 16px 32px;
  border-color: var(--color-accent);
  border-radius: 9999px;
}
.network-node:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
/* Tooltip for network nodes.  Show the data-info attribute above the node on hover. */
.network-node::after {
  content: attr(data-info);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--color-dark);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.network-node:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Reveal animations
   Elements with the `reveal` class will be invisible and slightly translated on load.
   When the `active` class is added via JavaScript, they fade and slide into place.
*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* Network graph styling */
.connectivity-graph {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: var(--spacing-lg);
}
.connectivity-graph svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.connectivity-graph line {
  /* Use thinner, semi‑transparent lines for a lighter network look */
  stroke: var(--color-accent);
  stroke-width: 1.5;
  opacity: 0.6;
}
.connectivity-graph .node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}
.connectivity-graph .node:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.connectivity-graph .node::after {
  content: attr(data-info);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--color-dark);
  color: var(--color-primary);
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Redesigned data flow for the "From Audit to Adoption" section.  Instead of circles, each
   deliverable is represented as a box connected by lines.  The flow uses absolute
   positioning and a background SVG for connectors.  Hover a box to reveal a tooltip with
   more details. */
.connectivity-flow {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: var(--spacing-lg);
}
.connectivity-flow svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.connectivity-flow svg line {
  stroke: var(--color-accent);
  stroke-width: 2;
  opacity: 0.5;
}
.flow-node {
  position: absolute;
  width: 200px;
  height: 70px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /* Ensure the flow nodes sit above the connecting lines so they remain visible */
  z-index: 1;
}
.flow-node:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.flow-node::after {
  content: attr(data-info);
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: var(--color-dark);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 4px;
  width: 220px;
  text-align: left;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.flow-node:hover::after {
  opacity: 1;
  visibility: visible;
}
.connectivity-graph .node:hover::after {
  opacity: 1;
}

/* Service page styles */
.service-page {
  padding: var(--spacing-lg) 0;
  background: var(--color-light);
}
.service-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
  /* Reduce heading weight to align with lighter branding */
  font-weight: 600;
}
.service-page .service-summary {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
  color: var(--color-secondary);
}
.service-page h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  /* Medium weight for subheadings */
  font-weight: 500;
}
.service-page p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-secondary);
  line-height: 1.7;
}
.service-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}
.service-page ul li {
  margin-bottom: 6px;
}

/* Contact page layout */
.contact-page {
  padding: var(--spacing-lg) 0;
  background: var(--color-light);
}
.contact-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}
.contact-page p {
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
}
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: flex-start;
}
.contact-form {
  flex: 1 1 480px;
  /* Dark background for the contact form card */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--color-primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  /* Use the base background for form fields to blend with the dark palette */
  background: var(--color-light);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form button {
  padding: 12px 24px;
  background: var(--color-accent);
  color: #0c0c0c;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: #005f58;
}
.form-message {
  margin-top: 8px;
  font-size: 0.9rem;
  display: none;
}
.booking {
  flex: 1 1 300px;
  padding: var(--spacing-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.booking h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}
.booking p {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}
.booking .booking-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #0c0c0c;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.booking .booking-link:hover {
  background: #005f58;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-text,
  .hero-visual {
    flex: 1 1 100%;
  }
  .connectivity-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .connectivity-steps {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * About page styling
 * Defines dark backgrounds and light text for the about page.  The content is
 * centred within a container and uses the same spacing variables as the rest of
 * the site.
 */
.about-page {
  padding: var(--spacing-lg) 0;
  background: var(--color-light);
}
.about-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  color: var(--color-primary);
}
.about-page p {
  max-width: 800px;
  margin: 0 auto var(--spacing-sm);
  color: var(--color-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Back link for service pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
  transition: color 0.2s ease;
}
.back-link i {
  font-size: 0.85rem;
}
.back-link:hover {
  color: #009b8a;
  text-decoration: underline;
}

/* ===== Inline styles moved from index.html ===== */
/* Moved from index.html: from_ai_to_adoption */
.from-ai-to-adoption {
  position: relative;
  margin-top: 24px;
  overflow-x: auto;
}
.from-ai-to-adoption .roadmap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 0;
    min-width: 1100px;
}
.from-ai-to-adoption .roadmap-line {
    position: absolute;
    top: 60px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    border-radius: 2px;
    z-index: 1;
}
.from-ai-to-adoption .step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.from-ai-to-adoption .step:hover { transform: translateY(-8px); }
.from-ai-to-adoption .step:hover .step-node {
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
    border-color: #6366f1;
}
.from-ai-to-adoption .step:hover .step-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.from-ai-to-adoption .step-node {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 20px;
    border: 2px solid #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.from-ai-to-adoption .step-node::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,70,229,.10) 0%, rgba(139,92,246,.10) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.from-ai-to-adoption .step:hover .step-node::before { opacity: 1; }
.from-ai-to-adoption .step-badge {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(79,70,229,.4);
    transition: all .3s ease;
}
.from-ai-to-adoption .step-icon { font-size: 1.6rem; color: #e5e7eb; transition: all .3s ease; }
.from-ai-to-adoption .step:hover .step-icon { color: #fff; transform: scale(1.08); }
.from-ai-to-adoption .step-content { text-align: center; }
/* Use a light-on-dark fallback if the site's theme uses dark text on light background */
@media (prefers-color-scheme: dark) {
  .from-ai-to-adoption .step-title { color: #fff; }
}
.from-ai-to-adoption .step-description {
    font-size: .88rem; color: #6b7280; line-height: 1.35; font-weight: 400; max-width: 180px;
}
.from-ai-to-adoption .progress-indicator {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.from-ai-to-adoption .progress-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; transition: all .3s ease;
}
.from-ai-to-adoption .progress-dot.active { background: #4f46e5; box-shadow: 0 0 10px rgba(79,70,229,.5); }

@media (max-width: 900px) {
  .from-ai-to-adoption .roadmap { flex-direction: column; align-items: center; min-width: auto; gap: 28px; }
  .from-ai-to-adoption .roadmap-line { display: none; }
  .from-ai-to-adoption .step { max-width: 320px; }
  .from-ai-to-adoption .step-node { width: 140px; height: 140px; }
}

/* Moved from index.html: ai_ecosystem */
400;500;600;700&display=swap');
        
        .ai-ecosystem-module {
            padding: 3rem 2rem;
            width: 100%;
            box-sizing: border-box;
            position: relative;
            margin-bottom: 2rem;
        }
        
        .ai-ecosystem-module .glow-blue {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
        }
        
        .ai-ecosystem-module .glow-teal {
            box-shadow: 0 0 15px rgba(20, 184, 166, 0.4), 0 0 30px rgba(20, 184, 166, 0.2);
        }
        
        .ai-ecosystem-module .glow-purple {
            box-shadow: 0 0 15px rgba(147, 51, 234, 0.4), 0 0 30px rgba(147, 51, 234, 0.2);
        }
        
        .ai-ecosystem-module .node-pulse {
            animation: ai-pulse 3s ease-in-out infinite;
        }
        
        @keyframes ai-pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.9; }
        }
        
        .ai-ecosystem-module .floating {
            animation: ai-float 4s ease-in-out infinite;
        }
        
        @keyframes ai-float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        .ai-ecosystem-module .text-glow {
            text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }
        
        .ai-ecosystem-module .ecosystem-title {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 700;
            text-align: center;
            margin-bottom: 4rem;
            color: white;
        }
        
        .ai-ecosystem-module .ai-header {
            width: 100%;
            max-width: 64rem;
            margin: 0 auto 3rem auto;
            height: 6rem;
            border-radius: 1rem;
            background: linear-gradient(to right, #2563eb, #7c3aed);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #60a5fa;
        }
        
        .ai-ecosystem-module .ai-header-content {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .ai-ecosystem-module .ai-header-icon {
            font-size: 3rem;
        }
        
        .ai-ecosystem-module .ai-header-title {
            color: white;
            font-weight: 700;
            font-size: 1.5rem;
        }
        
        .ai-ecosystem-module .ai-header-subtitle {
            color: #bfdbfe;
            font-size: 0.875rem;
        }
        
        .ai-ecosystem-module .ecosystem-grid {
            max-width: 72rem;
            margin: 0 auto;
        }
        
        @media (max-width: 768px) {
            .ai-ecosystem-module .ecosystem-grid {
                gap: 1rem;
                transform: scale(0.8);
            }
            
            .ai-ecosystem-module .node {
                width: 80%;
            }
            
            .ai-ecosystem-module .node-text {
                font-size: 0.75rem;
            }
        }
        
        .ai-ecosystem-module .column-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .ai-ecosystem-module .node-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .ai-ecosystem-module .node {
            width: 80%;
            margin: 0 auto;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid;
        }
        
        .ai-ecosystem-module .node-teal {
            background: linear-gradient(to bottom right, #0d9488, #1d4ed8);
            border-color: #14b8a6;
        }
        
        .ai-ecosystem-module .node-purple {
            background: linear-gradient(to bottom right, #7c3aed, #ec4899);
            border-color: #a855f7;
        }
        
        .ai-ecosystem-module .node-green {
            background: linear-gradient(to bottom right, #059669, #0d9488);
            border-color: #10b981;
        }

        .ai-ecosystem-module .node-blue {
            background: linear-gradient(to bottom right, #2563eb, #1e3a8a);
            border-color: #3b82f6;
        }

        .ai-ecosystem-module .node-orange {
            background: linear-gradient(to bottom right, #f97316, #c2410c);
            border-color: #fb923c;
        }

        .ai-ecosystem-module .node-purple {
            background: linear-gradient(to bottom right, #9333ea, #6b21a8);
            border-color: #a855f7;
        }

        .ai-ecosystem-module .node-green {
            background: linear-gradient(to bottom right, #22c55e, #166534);
            border-color: #4ade80;
        }
        
       .ai-ecosystem-module .node-text {
            color: white;
            font-weight: 500;
            font-size: 0.9rem; /* base size for body text */
            text-align: center;
            line-height: 1.4;
            padding: 1rem 0.75rem; /* more breathing room */
        }

        .ai-ecosystem-module .node-text strong {
            display: block;
            font-size: 1.5rem; /* larger font for agent name */
            font-weight: normal;
            padding-bottom: 0.4rem; /* spacing under agent name */
            border-bottom:solid 1px white;
        }
        
        .ai-ecosystem-module .connection-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }
        
        .ai-ecosystem-module .connection-line {
            stroke: url(#gradient);
            stroke-width: 2;
            fill: none;
            opacity: 0.7;
            filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
        }
        
        .ai-ecosystem-module .legend {
            margin-top: 3rem;
            display: flex;
            justify-content: center;
            gap: 2rem;
            font-size: 0.875rem;
            flex-wrap: wrap;
        }
        
        .ai-ecosystem-module .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .ai-ecosystem-module .legend-dot {
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
        }
        
        .ai-ecosystem-module .legend-text {
            color: #d1d5db;
        }
        
        .ai-ecosystem-module .legend-dot-teal {
            background: linear-gradient(to bottom right, #0d9488, #1d4ed8);
        }
        
        .ai-ecosystem-module .legend-dot-purple {
            background: linear-gradient(to bottom right, #7c3aed, #ec4899);
        }
        
        .ai-ecosystem-module .legend-dot-green {
            background: linear-gradient(to bottom right, #059669, #0d9488);
        }
/* Adjustments: center legend items with their column and add spacing */
.ai-ecosystem-module .legend-item {
  justify-content: center;
  text-align: center;
  margin-bottom: 10px;
}
.ai-ecosystem-module .legend-text {
  text-align: center;
}

/* Ensure the AI ecosystem section has safe spacing below to prevent overlap */
.ai-ecosystem-module {
  margin-bottom: 60px; /* extra space below the module */
  padding-bottom: 24px; /* guard against absolutely-positioned lines */
  position: relative;
  z-index: 0;
}

/* Floating schedule tab */
.floating-tab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  background: var(--color-accent);
  color: #0c0c0c;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px 12px 0 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  transition: transform .2s ease, background .2s ease;
}
.floating-tab:hover {
  text-decoration: none;
  background: #009b8a;
  transform: translateY(-2px);
}


@media screen and (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}


/* Tooltips */
.tip{position:relative; cursor:help; border-bottom:1px dotted currentColor; outline:0}
.tip:focus{outline:2px solid rgba(0,0,0,.2); border-radius:4px}
.tip::after{
  content: attr(data-tip);
  position:absolute; left:0; top:120%;
  min-width:200px; max-width:320px;
  background:#111; color:#fff; font-size:14px; line-height:1.35;
  padding:8px 10px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,.25);
  opacity:0; transform:translateY(-6px); pointer-events:none; z-index:999;
  transition:opacity .15s ease, transform .15s ease;
  white-space:normal;
}
.tip:hover::after, .tip:focus::after, .tip:active::after{ opacity:1; transform:translateY(0); }
@media (max-width: 600px){ .tip::after{ left:auto; right:0; } }


/* Responsive Capabilities links */
.capabilities-mobile { display:none; margin-left:16px; font-weight:600; }
.capabilities-desktop { display:inline-flex; }

@media (max-width: 1024px){
  /* Tablet and below: show direct link, hide desktop dropdown toggle */
  .capabilities-mobile { display:inline-flex; }
  .capabilities-desktop { display:none; }
}

/* Match ordered list spacing with unordered lists inside service pages */
.service-page ul, .service-page ol { margin: 0 0 1rem 1.25rem; }
.service-page ol { padding-left: 1.25rem; list-style-position: outside; }


.fas .fa-chevron-down { display:none !important; }


/* Reveal effect */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.is-visible[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Optional: smooth height expansion when you also add data-accordion */
[data-reveal][data-accordion] {
  overflow: hidden;
  max-height: 0;
  transition: max-height 500ms ease, opacity 400ms ease, transform 400ms ease;
}
.is-visible[data-reveal][data-accordion] {
  /* max-height is set in JS to the element's scrollHeight */
}
