/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #4caf50;
  --green-dark: #388e3c;
  --green-light: #e8f5e9;
  --navy: #1a2744;
  --navy-light: #243460;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-mid: #e0e4ec;
  --gray-text: #555;
  --text: #222;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
header {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Gold tagline bar */
.header-tagline {
  background: #1a1a1a;
  text-align: center;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-tagline span {
  color: #F0A500;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Logo + nav row */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo img {
  height: 70px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: #F0A500; }

.btn {
  display: inline-block;
  background: #F0A500;
  color: #1a1a1a !important;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  white-space: normal;
  max-width: 160px;
}
.btn:hover { background: #d4920a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
  max-width: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 620px;
  padding: 60px 0;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== SECTION COMMON ===== */
section { padding: 72px 0; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 640px;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== CLOUD ECOSYSTEM ===== */
.ecosystem { background: var(--gray-light); }

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.eco-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }

.eco-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

.eco-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.eco-card p { font-size: 0.9rem; color: var(--gray-text); }

/* ===== SOLUTIONS GRID ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.solution-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.solution-card:hover { transform: translateY(-4px); }

.solution-card-img {
  height: 180px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.solution-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.solution-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.solution-card-body p { font-size: 0.9rem; color: var(--gray-text); flex: 1; margin-bottom: 16px; }
.solution-card-body a { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.solution-card-body a:hover { text-decoration: underline; }

/* ===== TRUST BADGES ===== */
.trust { background: #333; padding: 28px 0; }
.trust-title { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; margin-bottom: 32px; opacity: 0.7; }

/* FIX: partner logos constrained to reasonable size */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.trust-logos a:hover { opacity: 1; }

/* Partner logos at natural colors on dark bg */
.trust-logos img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--gray-light); padding-bottom: 48px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars { color: #f9a825; font-size: 1rem; letter-spacing: 2px; }

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-text);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
}

.testimonial-author strong { display: block; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--gray-text); }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== ABOUT STORY ===== */
.story { background: var(--white); }
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-text p { color: var(--gray-text); margin-bottom: 16px; line-height: 1.8; }
.story-text .attribution { font-weight: 700; color: var(--navy); margin-top: 24px; }
.story-text .attribution span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--gray-text); }
.story-visual {
  background: var(--green-light);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}
.story-visual .big-icon { font-size: 5rem; margin-bottom: 16px; }
.story-visual p { color: var(--navy); font-weight: 600; font-size: 1.05rem; }

/* ===== FEATURE LIST ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--gray-text); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 22px;
  border-radius: 24px;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-text);
  transition: 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== CONTACT FORM ===== */
.contact-section { background: var(--gray-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-icon { font-size: 1.3rem; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.85rem; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-info-item a, .contact-info-item p { color: var(--navy); font-weight: 500; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: var(--white);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand img { height: 100px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: #F0A500; }

/* Nested sub-menu in footer */
.footer-col ul ul { padding-left: 16px; margin-top: 6px; }
.footer-col ul ul li { margin-bottom: 6px; }
.footer-col ul ul li a { font-size: 0.85rem; }

/* Footer nav links with dropdown arrow */
.footer-col .has-sub > a { cursor: default; }
.footer-col .has-sub > a::after { content: ' \25BE'; font-size: 0.7rem; opacity: 0.5; }

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact-item .fci-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 2px; display: block; }
.footer-contact-item .fci-icon { color: #F0A500; font-size: 0.9rem; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-contact-item a:hover { color: #F0A500; }
.footer-contact-item p { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  opacity: 0.5;
}
.footer-bottom a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-bottom a:hover { color: #F0A500; }

/* ===== PRIVACY / TERMS ===== */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.prose p, .prose li { color: var(--gray-text); line-height: 1.8; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #1a1a1a; padding: 16px 24px 24px; gap: 4px; }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  background: #111;
  overflow: hidden;
  height: 520px;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-carousel .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.38;
}

.slide-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 620px;
  padding: 80px 0;
}

.slide-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0A500;
  margin-bottom: 14px;
}

.slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.slide-content p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 32px;
  max-width: 500px;
}

.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Prev / Next arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: #F0A500; color: #111; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: none;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.carousel-dot.active { background: #F0A500; transform: scale(1.3); box-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
  position: relative;
  margin-top: 48px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-carousel .tc-overflow {
  overflow: hidden;
}

.testimonial-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 4px;
}

.testimonial-carousel .carousel-arrow {
  top: 50%;
  background: rgba(0,0,0,0.12);
  color: var(--navy);
}
.testimonial-carousel .carousel-arrow:hover { background: #F0A500; color: #111; }

.testimonial-carousel .carousel-dots { position: static; transform: none; justify-content: center; margin-top: 28px; }
.testimonial-carousel .carousel-dot { background: var(--gray-mid); }
.testimonial-carousel .carousel-dot.active { background: #F0A500; }

@media (max-width: 700px) {
  .slide-actions { flex-direction: column; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1rem; }
}


/* ===== CRM FORM STYLES ===== */
.required {
  color: #dc2626;
  margin-left: 2px;
}

.error-message {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.success-message {
  background-color: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

input.error,
textarea.error {
  border-color: #dc2626 !important;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}


/* ===== ABOUT PAGE ===== */
.about-intro {
  padding: 72px 0 48px;
}

.about-intro-lead {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-intro-lead p {
  font-size: 1.15rem;
  color: var(--gray-text);
  line-height: 1.8;
}

.about-subsections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.about-subsection h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.about-subsection p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-subsection ul {
  list-style: disc;
  padding-left: 24px;
  margin-top: 8px;
}

.about-subsection ul li {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.about-subsection ul li strong {
  color: var(--navy);
}

/* Lightbulb section */
.about-lightbulb {
  background: var(--gray-light);
  padding: 64px 0;
}

.about-lightbulb-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  text-align: left;
}

.about-lightbulb-img {
  flex-shrink: 0;
}

.about-lightbulb-img img {
  width: 140px;
  height: auto;
}

.about-lightbulb-text .section-title {
  margin-bottom: 0;
}

/* Vehicles image */
.about-vehicles {
  padding: 0;
  background: var(--gray-light);
}

.about-vehicles-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  display: block;
}

/* Company section */
.about-company {
  padding: 72px 0;
}

.about-company-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-company-inner p {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .about-lightbulb-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-lightbulb-img img {
    width: 100px;
  }

  .about-subsections {
    grid-template-columns: 1fr;
  }
}


/* ===== SOLUTION ICON LINKS (solutions page) ===== */
.solutions-icons-section {
  padding: 64px 0;
  background: var(--white);
}

.solutions-icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.solution-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  background: var(--gray-light);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.solution-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.solution-icon-circle {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.solution-icon-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 700px) {
  .solutions-icon-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

/* ===== TESTIMONIAL CARD WITH IMAGE ===== */
.testimonial-card--with-image {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.testimonial-card-image {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.testimonial-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

/* Single-card testimonial slides */
.testimonial-slide .testimonial-card:only-child:not(.testimonial-card--with-image) {
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .testimonial-card--with-image {
    grid-template-columns: 1fr;
  }
  .testimonial-card-image {
    min-height: 160px;
  }
}

/* ===== FEATURE CARDS CAROUSEL (solutions page) ===== */
.feature-cards-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.feature-cards-track {
  display: flex;
  transition: transform 0.5s ease;
}

.feature-cards-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 4px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.feature-cards-carousel .carousel-arrow {
  top: 45%;
  background: rgba(0,0,0,0.12);
  color: var(--navy);
}
.feature-cards-carousel .carousel-arrow:hover {
  background: #F0A500;
  color: #111;
}

.feature-cards-carousel .carousel-dots {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 28px;
}
.feature-cards-carousel .carousel-dot {
  background: var(--gray-mid);
}
.feature-cards-carousel .carousel-dot.active {
  background: #F0A500;
}

@media (max-width: 700px) {
  .feature-cards-slide {
    grid-template-columns: 1fr;
  }
}


/* ===== HEADER DROPDOWN MENUS ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' \25BE';
  font-size: 0.7rem;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 200px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7) !important;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:hover {
  color: #F0A500 !important;
  background: rgba(255,255,255,0.05);
}

@media (max-width: 700px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}


/* ===========================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   =========================================== */

/* Tablet: 900px and below */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Solutions card grid */
  .solutions-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

  /* Hero carousel */
  .hero-carousel { height: auto; min-height: 480px; }
  .slide-content { padding: 60px 0; max-width: 100%; }
  .slide-content h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .slide-content p { font-size: 0.95rem; }

  /* Page hero */
  .page-hero { min-height: 400px; padding: 40px 0; }
  .page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .page-hero p { font-size: 1rem; }

  /* Section spacing */
  section { padding: 48px 0; }

  /* Ecosystem grid */
  .ecosystem-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 20px; }

  /* Trust logos */
  .trust-logos { gap: 24px; }
  .trust-logos img { max-height: 28px; max-width: 100px; }
}

/* Mobile: 700px and below */
@media (max-width: 700px) {
  /* Header */
  .header-tagline { padding: 6px 16px; }
  .header-tagline span { font-size: 0.78rem; }
  .header-inner { height: 60px; padding: 0; }
  .logo img { height: 60px; }
  .btn { padding: 10px 14px; font-size: 0.78rem; max-width: 140px; }

  /* Mobile nav menu */
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 16px 20px 24px;
    gap: 4px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; font-size: 0.95rem; }
  nav .btn { margin-top: 8px; max-width: none; }

  /* Mobile dropdowns - show inline */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { display: block; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    padding: 4px 0 4px 16px;
    margin: 4px 0;
    min-width: 0;
    border-radius: 4px;
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  /* Hero carousel mobile */
  .hero-carousel { min-height: 420px; height: auto; }
  .slide { padding: 0 16px; }
  .slide-content { padding: 48px 0; }
  .slide-content h1 { font-size: 1.6rem; line-height: 1.2; }
  .slide-content p { font-size: 0.92rem; max-width: 100%; }
  .slide-actions { flex-direction: column; gap: 10px; }
  .slide-actions .btn { width: 100%; max-width: none; }

  /* Page hero mobile */
  .page-hero {
    min-height: 320px !important;
    padding: 24px 0 !important;
  }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Section spacing mobile */
  section { padding: 40px 0; }

  /* All grids collapse to single column */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ecosystem-grid { grid-template-columns: 1fr !important; max-width: 100%; }
  .solutions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .testimonial-slide { grid-template-columns: 1fr !important; gap: 16px; }

  /* Carousel arrows smaller on mobile */
  .carousel-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .hero-carousel .carousel-arrow.prev { left: 8px; }
  .hero-carousel .carousel-arrow.next { right: 8px; }
  .testimonial-carousel .carousel-arrow.prev { left: 0; }
  .testimonial-carousel .carousel-arrow.next { right: 0; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }
  .section-sub { font-size: 0.95rem; }

  /* Ridership/solution gold carousel cards */
  .gc-slide { min-width: 100% !important; padding: 0 8px !important; }
  .gc-card .gc-img { height: 200px !important; padding: 30px !important; }
  .gs-grid { grid-template-columns: 1fr !important; }

  /* Ridership split sections */
  .driver-intro-split,
  .sped-inner,
  .district-intro-split,
  .parents-split { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Ridership special needs */
  .sped-list { gap: 16px; }
  .sped-item img { width: 60px !important; height: 60px !important; }

  /* Anchor bar */
  .anchor-bar a { padding: 10px 12px !important; font-size: 0.78rem !important; }

  /* Communication section split (ridership) */
  .comm-reports-section > .container > div[style*="grid-template-columns:1fr 2.5fr"] {
    grid-template-columns: 1fr !important;
  }
  .comm-reports-section [style*="grid-template-columns:1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
  }
  .comm-reports-section [style*="repeat(3,1fr)"],
  .comm-reports-section [style*="display:flex; justify-content:space-between"],
  .comm-reports-section [style*="display:flex; justify-content:center"] {
    flex-direction: column !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
  }

  /* Solutions page 6-card grid */
  section [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  section [style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  /* Index "Tools for Everyone" - 6 cards */
  .ecosystem-grid[style*="repeat(3, 1fr)"],
  .ecosystem-grid[style*="repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .eco-card { padding: 20px 16px; }
  .eco-card img { height: 80px !important; }
  .eco-card h3 { font-size: 0.88rem; }
  .eco-card p { font-size: 0.82rem; }

  /* Solution sub-pages alternating layouts */
  section [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  section [style*="grid-template-columns:1.3fr 1fr"],
  section [style*="grid-template-columns:1fr 1.4fr"],
  section [style*="grid-template-columns:1fr 2.5fr"],
  section [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Events page */
  .events-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .video-row { grid-template-columns: 1fr !important; }
  #thumbStrip { padding: 4px 8px !important; }
  #thumbStrip > div { width: 100px !important; height: 60px !important; }

  /* Careers job cards */
  .job-card-header { flex-wrap: wrap; gap: 8px; }
  .job-card-header .job-location { font-size: 0.78rem; margin-left: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-brand img { height: 80px; }
  .footer-bottom { font-size: 0.75rem; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-contact-grid { grid-template-columns: 1fr; }

  /* Trust logos mobile */
  .trust { padding: 20px 0; }
  .trust-logos { gap: 16px; flex-wrap: wrap; }
  .trust-logos img { max-height: 24px; max-width: 80px; }

  /* Contact form */
  .form-card { padding: 24px 20px; }
  .form-group input, .form-group textarea { font-size: 16px; } /* Prevent iOS zoom */

  /* CTA band */
  .cta-band { padding: 48px 16px; }
  .cta-band h2 { font-size: 1.4rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; }

  /* About lightbulb */
  .about-lightbulb-inner { flex-direction: column; text-align: center; gap: 20px; }
  .about-lightbulb-img img { width: 80px; }

  /* About subsections */
  .about-subsections { grid-template-columns: 1fr; }

  /* Story section */
  .story-inner { grid-template-columns: 1fr; gap: 28px; }
  .story-visual { padding: 28px; }

  /* Tabs */
  .tabs { flex-direction: column; gap: 6px; }
  .tab-btn { width: 100%; }

  /* Headings */
  h1 { font-size: clamp(1.4rem, 5vw, 1.8rem) !important; }
  h2 { font-size: clamp(1.25rem, 4vw, 1.6rem) !important; }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* Even tighter spacing */
  section { padding: 32px 0; }

  /* Logo */
  .header-inner { height: 56px; }
  .logo img { height: 50px; }
  .btn { padding: 8px 10px; font-size: 0.72rem; max-width: 110px; }

  /* Tools for Everyone - single column on tiny screens */
  .ecosystem-grid[style*="repeat(3, 1fr)"],
  .ecosystem-grid[style*="repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Solution icon row */
  .solutions-icon-row { grid-template-columns: repeat(2, 1fr) !important; }

  /* Solutions page card grid */
  section [style*="grid-template-columns:repeat(3,1fr)"],
  section [style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Anchor bar - smaller text */
  .anchor-bar a { padding: 8px 8px !important; font-size: 0.72rem !important; }

  /* Hero carousel even smaller */
  .hero-carousel { min-height: 380px; }
  .slide-content { padding: 32px 0; }
  .slide-content h1 { font-size: 1.4rem; }

  /* Footer */
  .footer-bottom { font-size: 0.72rem; }
  .footer-brand img { height: 70px; }

  /* Patent text */
  .footer-bottom span:last-child { font-size: 0.7rem; line-height: 1.5; }
}

/* Hide hamburger spans, show mobile menu button on smaller screens */
@media (max-width: 700px) {
  .hamburger { display: flex; }
}

/* Touch-friendly tap targets */
@media (max-width: 700px) {
  a, button { min-height: 44px; }
  nav a { min-height: 44px; display: flex; align-items: center; }
  .footer-col ul li a { padding: 4px 0; }
}

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
