/*
 * ScopeLane Website Stylesheet
 *
 * This stylesheet defines all visual styles for the ScopeLane landing page. It
 * makes heavy use of CSS variables to allow quick colour and spacing tweaks
 * across the site. The layout is built on flexbox and CSS grid to ensure
 * responsiveness across devices. Subtle shadows, gradients and animations
 * provide a premium, cinematic feel without overwhelming the user.
 */

/* Colour palette */
:root {
  /* Final God-Tier Branding Colours */
  /* Updated colour palette based on the final God‑tier system */
  /* Updated colour palette inspired by myvoiceagent */
  --color-bg: #F7F9FC;            /* Near‑white for page backgrounds */
  --color-bg-alt: #FFFFFF;        /* Pure white for cards and panels */
  --color-secondary: #FFFFFF;     /* Secondary surfaces match cards */
  --color-primary: #1C7ED6;       /* Electric blue for CTAs and highlights */
  --color-accent: #7AD7FF;        /* Soft aqua accent */
  --color-light: #0B1C2C;         /* Primary dark navy for headings and text */
  --color-text: #0B1C2C;          /* Primary text colour */
  --color-muted: #6B7685;         /* Muted grey for secondary text */
  --color-warning: #EF476F;      /* Accent (unused currently) */
  --color-button-text: #FFFFFF;   /* White text for buttons */

  /* Neutral metal tone used for subtle accents and overlays */
  --color-neutral-metal: #C0C6CC;
  /* Placeholder colour for form inputs */
  --color-placeholder: #B0B8C1;

  /* Overlay colours for image blending */
  --overlay-primary: rgba(12, 26, 42, 0.55);   /* Primary navy with 55% opacity for readability overlays */
  --overlay-secondary: rgba(192, 198, 204, 0.55); /* Neutral steel silver with 55% opacity for overlays */

  /* Additional colours for enhanced interface polish */
  --color-gold: #FFD700;                /* Gold for stat highlights */
  --color-primary-hover: #2A8EFF;       /* Brighter blue for CTA hover */
  --color-input-bg: #0F1722;            /* Darker input background for forms */
}

/* Dark Mode Palette
   When the body has a .dark-mode class, these variables override the light
   theme values. They recreate the rich, cinematic dark palette from the
   former ScopeLane design with deep navies, charcoals and electric blues.
*/
body.dark-mode {
  --color-bg: #0C1A2A;
  --color-bg-alt: #1A2330;
  --color-secondary: #1A2330;
  --color-primary: #0066FF;
  --color-primary-hover: #0D7BFF;
  --color-accent: #00E0FF;
  --color-text: #FFFFFF;
  --color-light: #FFFFFF;
  --color-muted: #B0B8C1;
  --color-neutral-metal: #C0C6CC;
  --color-placeholder: #9CA3AF;
  --color-gold: #FFD700;
  --color-input-bg: #0F1722;
  --overlay-primary: rgba(12, 26, 42, 0.55);
  --overlay-secondary: rgba(192, 198, 204, 0.55);
}

/* Dark mode specific overrides for structural elements */
.dark-mode .navbar {
  background: rgba(1, 11, 29, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
}

.dark-mode .nav-cta a {
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.35);
}

/* Override hero background for dark mode */
.dark-mode .hero-section {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary) 100%);
  color: var(--color-light);
}
.dark-mode .hero-subtitle {
  color: var(--color-muted);
}

/* Adjust hero card colours in dark mode */
.dark-mode .hero-card {
  background: var(--color-secondary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.dark-mode .hero-card img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Ensure testimonial text remains light in dark mode */
.dark-mode .testimonial .quote {
  color: var(--color-light);
}
.dark-mode .testimonial .author {
  color: var(--color-muted);
}

/* Service cards hover shadow slightly stronger in dark mode */
.dark-mode .service-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* Case cards dark mode shadows */
.dark-mode .case-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.dark-mode .case-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* Adjust contact form container in dark mode */
.dark-mode .contact-form {
  background: var(--color-secondary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.dark-mode .form-group input,
.dark-mode .form-group textarea {
  background: var(--color-bg-alt);
  color: var(--color-light);
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .contact-form .primary-btn {
  background: linear-gradient(90deg, #0066FF 0%, #00E0FF 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Use Inter for body text with responsive sizing */
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
  hyphens: auto;
}

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

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

/* Navigation Bar */
/*
  The header floats above the page with a clean white background and a subtle
  divider.  It uses a translucent backdrop on scroll but avoids the dark
  overlay used in the previous design.  The nav remains sticky at the top
  of the viewport and has a consistent height on desktop and mobile.
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg-alt);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(11, 28, 44, 0.1);
  /* Consistent header height */
  min-height: 72px;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Phone numbers displayed in the navigation bar */
.nav-phones {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.8rem;
}
.nav-phones a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.nav-phones a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .nav-phones {
    display: none;
  }

  /* Reduce bottom safe area for industry overlay on mobile */
  .industry-overlay {
    padding-bottom: 2rem;
  }

  /* Tighter header height and padding on mobile */
  .navbar {
    min-height: 56px;
  }
  .nav-container {
    padding: 0.5rem 0.75rem;
  }

  /* Reduce vertical spacing on mobile for sections */
  .services-section,
  .roi-section,
  .case-section,
  .pricing-section,
  .faq-section,
  .about-section,
  .contact-section,
  .trust-section,
  .stats-section,
  .ai-section,
  .industry-services,
  .industry-testimonial {
    padding: 3.5rem 1rem;
  }

  /* Slightly smaller hero container padding on mobile */
  .hero-container {
    padding: 4rem 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.25rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.2));
}

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

/* Ensure the theme toggle sits inline with other nav items */
.nav-links .theme-toggle {
  display: flex;
  align-items: center;
}

.nav-links li a {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover {
  background: rgba(11, 28, 44, 0.06);
  color: var(--color-primary);
}

/* CTA button in the header */
.nav-cta a {
  padding: 0.8rem 2rem;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-button-text);
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav-cta a:hover {
  transform: translateY(-2px);
  background: var(--color-primary-hover);
  box-shadow: 0 12px 40px rgba(11, 28, 44, 0.12);
}

/* Theme toggle button in navigation */
.theme-toggle button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.3s ease;
}
.theme-toggle button:hover {
  color: var(--color-primary-hover);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-light);
  cursor: pointer;
}

/* Hero Section */
/*
  The hero area sets the tone for the page with a bright, airy gradient
  reminiscent of myvoiceagent.  A subtle blue‑to‑white blend sits
  behind the content and device mockup.  Text remains dark for high
  contrast.  An offset at the top accounts for the fixed header.
*/
.hero-section {
  padding-top: 88px; /* offset for fixed nav */
  background: linear-gradient(135deg, #EAF3FF 0%, #F9FBFE 100%);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

/* Constrain the hero to a large but centred container */
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Left side of hero: text content */
.hero-text {
  flex: 1 1 50%;
  min-width: 280px;
}

/* Hero headline: large and confident */
.hero-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  hyphens: none;
  color: var(--color-text);
}

/* Highlighted word in hero headline uses brand gradient */
.hero-title span {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subheading below hero headline */
.hero-subtitle {
  margin-top: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--color-muted);
  line-height: 1.5;
  text-wrap: pretty;
  hyphens: auto;
}

.hero-features {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* CTA container in hero */
.hero-cta-buttons {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-icons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.icon-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem;
  width: 120px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.icon-card .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
  background-image: url('A_set_of_digital_vector_icons_features_four_square.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.15);
}

.icon-card span {
  font-size: 0.85rem;
  color: var(--color-light);
  font-weight: 500;
}

/* Right side of hero: device mockup card */
.hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card wrapper around hero image */
.hero-card {
  background: var(--color-bg-alt);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(11, 28, 44, 0.08);
  object-fit: cover;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  /* Use Inter Tight for section headings with responsive scaling */
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  hyphens: none;
}

.section-header p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-muted);
  line-height: 1.55;
  text-wrap: pretty;
  hyphens: auto;
}

/* Services Section */
.services-section {
  /* Light section background that contrasts gently with the cards */
  background: var(--color-bg);
  padding: 6rem 1rem;
  color: var(--color-text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid rgba(11, 28, 44, 0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 28, 44, 0.12);
  background: var(--color-bg-alt);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background-image: url('A_set_of_digital_vector_icons_features_four_square.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.service-icon.extra {
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.service-icon.extra::before {
  content: '';
  width: 100%;
  height: 100%;
  background-image: url('scopelane_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--color-light);
}

.service-card p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  color: var(--color-muted);
  line-height: 1.55;
  text-wrap: pretty;
  hyphens: auto;
}

/* ROI Calculator Section */
.roi-section {
  padding: 6rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.roi-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.roi-form {
  flex: 1;
  min-width: 280px;
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
}

.roi-form label {
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--color-muted);
}

.roi-form select,
.roi-form input[type='range'] {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: var(--color-bg-alt);
  height: 8px;
  appearance: none;
  outline: none;
  margin-bottom: 0.4rem;
}

.roi-form select {
  padding: 0.6rem;
  height: auto;
  color: var(--color-light);
  font-weight: 500;
}

.roi-form input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.3);
  transition: background 0.3s;
}

.roi-form input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.3);
}

.slider-output {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.roi-results {
  flex: 1;
  min-width: 280px;
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.roi-metric {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Use a CSS conic gradient to visually represent ROI. The value
     is controlled via a custom property (--roi-background) set from JS. */
  border-radius: 50%;
  background: var(--roi-background, conic-gradient(var(--color-primary) 0deg, #19396c 0deg 360deg));
  /* Create a hollow centre using masks so the gauge appears as a ring */
  -webkit-mask-image: radial-gradient(circle, transparent 60%, black 60%);
  mask-image: radial-gradient(circle, transparent 60%, black 60%);
}

/* Hide the original canvas; the ROI gauge is rendered via CSS conic gradient */
#roiChart {
  display: none;
}

.roi-percent {
  display: none;
}

.roi-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}

.stat p {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-light);
}

/* Highlight the third stat (Projected ROI) in gold */
.roi-stats .stat:nth-child(3) p {
  color: var(--color-gold);
}

/* Case Studies Section */
.case-section {
  padding: 6rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.testimonial .quote {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text);
}

.testimonial .author {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-btn {
  background: rgba(1, 11, 29, 0.6);
  border: none;
  color: var(--color-light);
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  pointer-events: all;
}

.carousel-btn:hover {
  background: var(--color-primary);
}

.industry-triptych {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  /* Provide gradient overlay behind the triptych image */
  position: relative;
}

.industry-triptych img {
  width: 100%;
  display: block;
  /* Keep photos vibrant; do not darken globally */
  filter: none;
  object-fit: cover;
}

/* Apply dark overlay across the triptych for better text contrast */
.industry-triptych::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Apply a subtle text scrim on triptych when labels overlap images */
  background: linear-gradient(180deg, rgba(12, 26, 42, 0) 0%, rgba(12, 26, 42, 0.15) 100%);
  opacity: 1;
  pointer-events: none;
}

/* Fade bottom edge into background */
.industry-triptych::after {
  /* Lighten bottom fade on triptych images */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(12, 26, 42, 0.08));
  pointer-events: none;
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 1rem 1rem 3rem;
  gap: 0.5rem;
}

.industry-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(11, 28, 44, 0.1);
  /* Raise each industry label above the busy edges */
  margin-bottom: 2rem;
}

.industry-item h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  /* Ensure text remains legible over imagery */
  text-shadow: none;
}

.industry-item p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-shadow: none;
}

.comparison-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.comparison-section img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 28, 44, 0.08);
  object-fit: cover;
}

/* Overlay for comparison graphic */
.comparison-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Apply a subtle scrim over comparison imagery (very light) */
  background: linear-gradient(180deg, rgba(12, 26, 42, 0) 0%, rgba(12, 26, 42, 0.15) 100%);
  opacity: 1;
  pointer-events: none;
}

.comparison-section::after {
  /* Lighten bottom fade on comparison images */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(12, 26, 42, 0.08));
  pointer-events: none;
}

.comparison-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-muted);
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.pricing-section .primary-btn {
  margin-top: 2rem;
}

/* About Section */
.about-section {
  padding: 6rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-text {
  flex: 1 1 40%;
  min-width: 280px;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.about-text p {
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 55%;
  min-width: 280px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

/* Overlay and fade for About section image */
.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Apply a light scrim to improve text readability over the about image */
  background: linear-gradient(180deg, rgba(12, 26, 42, 0) 0%, rgba(12, 26, 42, 0.18) 100%);
  opacity: 1;
  pointer-events: none;
}

.about-image::after {
  /* Light fade at the bottom of the about image */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(12, 26, 42, 0.08));
  pointer-events: none;
}

/* Contact Section */
.contact-section {
  padding: 6rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: var(--color-bg-alt);
  /* Comfortable padding */
  padding: 2rem;
  border-radius: 16px;
  /* Soft shadow similar to other cards */
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.form-group input,
  .form-group textarea {
  background: var(--color-bg);
  border: 1px solid rgba(11, 28, 44, 0.1);
  border-radius: 10px;
  padding: 0.8rem;
  color: var(--color-text);
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
  .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(28, 126, 214, 0.25);
}

/* Placeholder styling for inputs and textareas */
.form-group input::placeholder,
  .form-group textarea::placeholder {
  color: var(--color-placeholder);
}

/* Highlight invalid fields with an error border */
.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #FF5A5A;
}

.contact-form button {
  margin-top: 1rem;
}

/* Contact form button inherits global primary button styling */
.contact-form .primary-btn {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.8rem 2rem;
  min-height: 50px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(28, 126, 214, 0.35);
  transition: all 0.3s ease;
}
.contact-form .primary-btn:hover {
  filter: brightness(1.05);
  background: var(--color-primary-hover);
  box-shadow: 0 0 12px rgba(28, 126, 214, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--color-primary);
}

.contact-info p {
  margin: 0.4rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
}

.contact-info a {
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  background: var(--color-bg);
  color: var(--color-muted);
  padding: 4rem 1rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--color-text);
}

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

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

.footer-col ul li a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--color-light);
}

.footer-col .social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-col .social a {
  color: var(--color-muted);
  font-size: 1.2rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Buttons */
.primary-btn,
  .secondary-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 10px;
  font-weight: 600;
}

.primary-btn {
  /* Solid fill for primary actions */
  background: var(--color-primary);
  color: var(--color-button-text);
  padding: 0.8rem 2rem;
  min-height: 50px;
  border-radius: 10px;
  /* Soft drop shadow with brand colour */
  box-shadow: 0 4px 12px rgba(28, 126, 214, 0.35);
}

.primary-btn:hover {
  /* Slight lift and glow on hover */
  transform: translateY(-2px);
  background: var(--color-primary-hover);
  filter: brightness(1.05);
  box-shadow: 0 0 12px rgba(28, 126, 214, 0.45), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  min-height: 50px;
  border-radius: 10px;
}

.secondary-btn:hover {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 0 12px rgba(28, 126, 214, 0.35);
}

.btn-lg {
  font-size: 1.1rem;
}

/* Sticky CTA Bar */
.sticky-cta {
  position: fixed;
  /* Position slightly above the bottom to avoid overlapping with the chat widget (approx 80px) */
  bottom: 80px;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  z-index: 900;
  /* Show the sticky CTA by default. We'll update its content via JavaScript */
  transition: transform 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta.show {
  transform: translateY(0);
  opacity: 1;
}

#sticky-text {
  font-size: 1rem;
  font-weight: 500;
}

.sticky-cta .primary-btn {
  padding: 0.8rem 2rem;
  min-height: 50px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 4px 12px rgba(28, 126, 214, 0.35);
}

.sticky-cta .primary-btn:hover {
  filter: brightness(1.05);
  background: var(--color-primary-hover);
  box-shadow: 0 0 12px rgba(28, 126, 214, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Phone numbers inside the sticky CTA bar */
.sticky-cta .sticky-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.sticky-cta .sticky-phones a {
  color: var(--color-accent);
  text-decoration: none;
}
.sticky-cta .sticky-phones a:hover {
  text-decoration: underline;
}

/* Global telephone link styling */
a[href^="tel:"] {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
a[href^="tel:"]:hover {
  text-decoration: underline;
}

/* AI Receptionist Section */
.ai-section {
  background: var(--color-bg);
  padding: 6rem 1rem;
  color: var(--color-text);
}

.ai-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ai-text {
  flex: 1;
  min-width: 280px;
}

.ai-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.ai-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.ai-visual {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-mockup {
  /* Remove default mockup styles */
}

/* AI Chat Mockup for AI Receptionist section */
.ai-chat-mockup {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 380px;
  width: 100%;
}

.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 0.95rem;
  max-width: 100%;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--color-secondary);
  color: var(--color-light);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #ffffff;
}

.chat-bubble p {
  margin: 0;
}

/* FAQ Section */
.faq-section {
  background: var(--color-bg);
  padding: 6rem 1rem;
  color: var(--color-text);
}

.faq-items {
  max-width: 900px;
  margin: 0 auto;
}

.faq-items details {
  margin-bottom: 1rem;
  background: var(--color-bg-alt);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Hover effect for FAQ items */
.faq-items details:hover {
  background: var(--color-bg-alt);
  box-shadow: 0 6px 20px rgba(11, 28, 44, 0.08);
}

.faq-items summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding-right: 2rem;
  color: var(--color-text);
  font-size: 1.05rem;
}

/* Hide native marker so we can draw our own arrow */
.faq-items summary::-webkit-details-marker,
.faq-items summary::marker {
  display: none;
}

/* Custom arrow icon for FAQ; rotates when the item is open */
.faq-items summary::after {
  content: '\25B6'; /* right-pointing triangle */
  font-family: inherit;
  font-weight: 700;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-items details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-items p {
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.chat-toggle {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.5);
  transition: transform 0.2s;
}

.chat-toggle:hover {
  transform: translateY(-2px);
}

.chat-window {
  background: var(--color-secondary);
  width: 320px;
  max-height: 450px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0.5rem;
}

.chat-window.hidden {
  display: none;
}

.chat-header {
  background: var(--color-primary);
  color: white;
  padding: 0.8rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-messages .message {
  max-width: 80%;
}

.chat-messages .message.user {
  align-self: flex-end;
  text-align: right;
}

.chat-messages .message.bot {
  align-self: flex-start;
  text-align: left;
}

.chat-messages .bubble {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-messages .message.user .bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-messages .message.bot .bubble {
  background: var(--color-secondary);
  color: var(--color-light);
  border-bottom-left-radius: 4px;
}

.chat-form {
  display: flex;
  padding: 0.6rem;
  background: var(--color-secondary);
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: var(--color-bg-alt);
  border: none;
  border-radius: 12px;
  padding: 0.7rem;
  color: var(--color-light);
  font-size: 0.9rem;
}

.chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.chat-send {
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 136, 255, 0.4);
}

.chat-send:hover {
  background: var(--color-accent);
}

/* Exit Intent Modal */
.exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.exit-modal.show {
  opacity: 1;
  pointer-events: all;
}

.exit-content {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  max-width: 90%;
  width: 400px;
}

.exit-content h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.9rem;
}

.exit-content p {
  color: var(--color-light);
  margin-bottom: 1.5rem;
}

.exit-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Social Nudge Notification */
.social-nudge {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--color-secondary);
  color: var(--color-light);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Trust & Awards Section */
.trust-section {
  background: var(--color-bg);
  padding: 3rem 1rem;
  text-align: center;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.trust-item {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.trust-item i {
  color: var(--color-primary);
}

.trust-item h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-light);
  font-weight: 600;
}

/* Stats Section */
.stats-section {
  background: var(--color-bg-alt);
  padding: 5rem 1rem;
  color: var(--color-light);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.stat-card {
  flex: 1 1 200px;
  text-align: center;
}

.stat-card .counter {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  margin-top: 0.6rem;
  color: var(--color-muted);
}

/* Case Studies Page */
.case-studies-main {
  padding: 6rem 1rem 4rem;
  background: var(--color-bg);
  color: var(--color-light);
  min-height: 100vh;
}

.case-header {
  text-align: center;
  margin-bottom: 2rem;
}

.case-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-header p {
  color: var(--color-muted);
  font-size: 1rem;
}

.case-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.case-card {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
  flex: 1 1 300px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 28, 44, 0.12);
}

.case-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.case-card p {
  color: var(--color-muted);
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.case-card .case-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.case-card.open .case-content {
  max-height: 500px;
  margin-top: 0.5rem;
}

/* Industry Landing Pages */
.industry-hero {
  padding-top: 100px;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--color-bg), var(--color-primary));
  color: var(--color-light);
  text-align: center;
}

.industry-container {
  max-width: 800px;
  margin: 0 auto;
}

.industry-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-wrap: balance;
  hyphens: none;
}

.industry-hero p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
  text-wrap: pretty;
  hyphens: auto;
}

.industry-services {
  background: var(--color-bg-alt);
  padding: 5rem 1rem;
  color: var(--color-light);
}

.industry-testimonial {
  background: var(--color-bg);
  padding: 5rem 1rem;
  color: var(--color-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.industry-testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-muted);
  margin: 0;
}

.industry-testimonial cite {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.social-nudge.show {
  transform: translateY(0);
  opacity: 1;
}

.social-nudge i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 240px;
    height: calc(100% - 60px);
    background: var(--color-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    transition: right 0.3s ease;
    z-index: 900;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
  }
  .nav-cta {
    width: 100%;
  }
  .nav-cta a {
    width: 100%;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .hero-icons {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .roi-container {
    flex-direction: column;
  }
  .roi-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .industry-overlay {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .industry-item {
    /* Raise industry labels slightly for mobile to improve legibility */
    margin-bottom: 1rem;
  }
  .about-container {
    flex-direction: column;
  }
  .contact-container {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
}