@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Brand color tokens. Dark-mode variants live in 11-dark.css. */
:root {
  --primary: #1b1464;
  --primary-dark: #140f51;
  --primary-hover: #140f51;
  --accent: #0087d5;
  --text: #0f0f0f;
  --text-dim: #2d3748;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --bg-light: #f8f9fa;
  --navy-dark: #140f51;
  --blue-bright: #0087d5;
  --blue-light: #e6f2ff;
}

/* Typography */
h1 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 3.3rem; font-weight: 700; line-height: 1.15; margin-bottom: 24px; color: var(--primary); letter-spacing: -0.02em; }
h2 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 2.35rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--primary); }
h3 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: var(--primary); }
p { color: var(--text-dim); margin-bottom: 1rem; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Prevent orphaned words and awkward line breaks */
.no-break {
  white-space: nowrap;
}

/* Skip-to-content link: hidden until focused via keyboard. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Hide the focus ring on <main> when reached via the skip link. */
main:focus { outline: none; }

/* Layout */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;
}

.section {
  padding: 40px 0 40px 0;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0;
}

.nav-brand {
  margin-left: -19px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-link:hover {
  text-decoration: none !important;
  opacity: 0.85;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
}

/* Logo responsive - desktop shows text_alt, mobile/tablet shows horizontal */
.logo-desktop {
  display: block;
}

.logo-mobile {
  display: none;
  height: 150px;
}

/* Desktop Nav */
.nav-menu {
  display: none;
  gap: 12px;
  list-style: none;
  height: 100%;
  align-items: center;
}

.nav-menu li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 18px;
  height: auto;
  display: flex;
  align-items: center;
  border-radius: 4px;
  border-bottom: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
  background: #f3f4f6;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: #e5e7eb;
}

.nav-link-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  margin-left: 12px;
  border: none !important;
  height: auto !important;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link-cta:hover {
  background: var(--primary-hover);
  border-bottom: none !important;
}

/* Services Dropdown Menu */
.nav-menu li {
  position: relative;
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 200;
  padding-top: 4px;
}

.nav-menu li:hover .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-dropdown ul {
  list-style: none;
  padding: 12px 0 16px 0;
}

.services-dropdown li {
  height: auto;
}

.services-dropdown a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-size: 0.9rem;
  border: none;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.services-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  right: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 50;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  padding: 32px 24px;
}

.mobile-nav-link {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.mobile-nav-link-cta {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 2px;
  margin-top: 16px;
  text-align: center;
  border: none;
}

/* Mobile Services Button */
.mobile-services-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Mobile Submenu */
.mobile-submenu {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 51;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-submenu.active {
  transform: translateX(-100%);
}

.mobile-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
}

.mobile-back-arrow {
  font-size: 1.5rem;
  font-weight: bold;
}

.mobile-submenu-list {
  list-style: none;
  padding: 16px 24px;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Hero */
.hero-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(to bottom, #f8f9fb 0%, #ffffff 100%);
  border-bottom: none;
  position: relative;
}

.hero-content {
  max-width: 1600px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 900px;
  min-width: 0;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-logo-img {
  width: clamp(180px, 25vw, 350px);
  height: auto;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-rendering: optimizeLegibility;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 750px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 20, 100, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(27, 20, 100, 0.2);
}

.btn-outline {
  border: 1px solid #ccc;
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Light buttons for dark backgrounds */
.spotlight-section .btn-primary,
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
}

.spotlight-section .btn-primary:hover,
.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* Spotlight Section */
.spotlight-section {
  padding: 40px 0 30px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0d0935 100%);
  color: #fff;
  border-top: none;
  border-bottom: none;
  position: relative;
}

.spotlight-grid {
  overflow: hidden;
}

.spotlight-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 20px;
  transition: opacity 0.4s ease;
  opacity: 1;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.spotlight-content.fade-out {
  opacity: 0;
}


.spotlight-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.2;
}

.spotlight-desc {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.6;
}

.spotlight-features {
  list-style: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 32px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding-left: 20px;
  box-shadow: none;
}

.spotlight-features li {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 400;
}

.spotlight-features li:before {
  content: "•";
  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
  margin-right: 12px;
  font-size: 1.2rem;
}

.spotlight-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-left .btn {
  width: fit-content;
  align-self: flex-start;
}

.spotlight-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotation Controls */
.rotation-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.arrow-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.8rem;
  font-weight: normal;
}

.arrow-btn:hover {
  background: transparent;
  color: #fff;
  border-color: transparent;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dot.active {
  background: #fff;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Services Overview */
.services-overview {
  padding: 50px 0 0 0;
  background: #fff;
  position: relative;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-item {
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  border-radius: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  background: #fff;
}

.service-item:nth-child(3n) {
  border-right: none;
}

.service-icon {
  display: none;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
}

.service-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-item .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  display: block;
  min-height: 48px;
  line-height: 1.4;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-block;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-dark) 100%);
  text-align: center;
}

.cta-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
}
/* Footer */
.site-footer {
  background: linear-gradient(to bottom, #f8f9fb 0%, #eef0f2 100%);
  padding: 40px 0 0 0;
  margin-top: 0;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2.5fr 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d1d1d1;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-brand .footer-heading {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 350px;
}

.footer-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.availability-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.footer-copyright {
  color: #6b7280;
}


/* Service Detail Pages */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-title {
  color: #fff;
  font-size: 3rem;
  margin: 20;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Service Hero */
.service-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy-dark) 100%);
  padding: 80px 0 60px 0;
  text-align: center;
}

.service-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Service Overview */
.service-overview {
  padding: 0 0 40px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.content-main h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 28px;
}

.content-main p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.content-sidebar {
  position: static;
  align-self: center;
}

.info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 32px;
  border-radius: 4px;
}

.info-box h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-description {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 48px auto;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px auto;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-item h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.benefit-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

/* Process Timeline */
.process-timeline {
  display: block;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.step-content h3 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  display: inline;
}

.step-content h3::after {
  content: ": ";
  color: var(--text);
  font-weight: 600;
}

.step-content p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
  display: inline;
}

/* Pricing Section */
.pricing-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.pricing-card {
  padding: 40px 32px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 4px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.pricing-card .timeline-range,
.pricing-card .price-tag {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  display: block;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.pricing-card li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* Additional Grids */
.tech-stack-grid,
.tech-categories,
.platforms-grid,
.use-cases-grid,
.signs-grid,
.value-grid,
.deliverables-grid,
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
  justify-items: start;
  align-items: start;
}

/* 4-column grid for sections with exactly 4 items */
.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
  justify-items: start;
  align-items: start;
}

.tech-category,
.platform-item,
.use-case,
.sign-item,
.value-item,
.deliverable-item,
.activity-column {
  text-align: left;
}

.tech-category h3,
.platform-item h3,
.use-case h3,
.sign-item h3,
.value-item h3,
.deliverable-item h3,
.activity-column h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Sign items - no bullets needed */

/* Migration Signs - Tighter spacing */
.migration-signs .signs-grid {
  gap: 24px 32px;
  margin-top: 32px;
}

.migration-signs .sign-item h3 {
  margin-bottom: 8px;
}

.migration-signs .sign-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Migration Platforms - Tighter spacing */
.migration-platforms .platforms-grid {
  gap: 24px 32px;
  margin-top: 32px;
}

.migration-platforms .platform-item h3 {
  margin-bottom: 8px;
}

.migration-platforms .platform-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Migration Benefits - Tighter spacing */
.migration-benefits .benefits-grid {
  gap: 24px 32px;
  margin-top: 32px;
}

.migration-benefits .benefit-card {
  padding: 24px;
}

.migration-benefits .benefit-card h3 {
  margin-bottom: 8px;
}

.migration-benefits .benefit-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Migration Deliverables - Tighter spacing */
.migration-deliverables .deliverables-grid {
  gap: 24px 32px;
  margin-top: 32px;
}

.migration-deliverables .deliverable-item h3 {
  margin-bottom: 8px;
}

.migration-deliverables .deliverable-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Migration Pricing - Tighter spacing */
.migration-pricing .pricing-info {
  gap: 24px 32px;
  margin-top: 32px;
}

.migration-pricing .pricing-card {
  padding: 24px;
}

.migration-pricing .pricing-card h3 {
  margin-bottom: 12px;
}

.tech-category ul,
.activity-column ul {
  list-style: none;
  padding: 0;
}

.tech-category li,
.activity-column li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.tech-category li::before,
.activity-column li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.use-case p,
.sign-item p,
.value-item p,
.deliverable-item p,
.platform-item p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.use-case p:last-child,
.sign-item p:last-child,
.value-item p:last-child,
.deliverable-item p:last-child,
.platform-item p:last-child {
  margin-bottom: 0;
}

/* Background variations */
.bg-light {
  background: var(--bg-light);
}


.section-alt {
  background: var(--bg-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.process-step {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 32px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.process-step p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.process-step ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step ul li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.process-step ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-size: 1.2rem;
}


/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .hero-content { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-item:nth-child(2n) { border-right: none; }

  /* Spotlight responsive fixes - keep horizontal layout, scale down */
  .spotlight-section { padding: 60px 0; }
  .spotlight-content { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .spotlight-title { font-size: 1.75rem; margin-bottom: 12px; }
  .spotlight-desc { font-size: 1rem; margin-bottom: 20px; line-height: 1.5; }
  .spotlight-features { margin-bottom: 16px; }
  .spotlight-features li { font-size: 0.9rem; padding: 5px 0; }
}

@media (max-width: 1050px) {
  .hero-logo { display: none; }

  /* Swap to horizontal logo when hero logo disappears */
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }
  .nav-brand { margin-left: -10px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .container { padding: 0 24px; }
  .hero-section { padding: 30px 0 30px 0; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-logo { display: none; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; }
  .service-item:nth-child(3n) { border-right: none; }
  .service-item:nth-child(2n) { border-right: none; }

  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; text-align: center; }

  /* Mobile: stack vertically with improved spacing and readability */
  .spotlight-section { padding: 20px 0; }
  .cta-section { padding: 20px 0 30px 0; }

  .spotlight-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .spotlight-left {
    display: contents;
  }


  .spotlight-title {
    font-size: 1.75rem;
    margin-bottom: 0;
    line-height: 1.25;
    order: 2;
    text-align: center;
  }

  .spotlight-desc {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.6;
    order: 3;
    text-align: center;
  }

  .spotlight-right {
    order: 4;
    text-align: left;
  }

  .spotlight-features {
    margin-bottom: 24px;
    padding-left: 0;
    border-left: none;
  }

  .spotlight-features li {
    font-size: 0.95rem;
    padding: 0;
    line-height: 1.5;
  }

  .spotlight-left .btn {
    order: 5;
    margin: 0 auto;
    align-self: center;
  }

  /* Service Detail Pages Mobile */
  .info-box { padding: 16px 32px; }
  .page-header { padding: 30px 0 30px 0; }
  .page-title { font-size: 2.25rem; }
  .page-subtitle { font-size: 1.1rem; }
  .content-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }

  /* About Page Mobile - Features Grid */
  .page-about .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-about .feature-item h3 {
    font-size: 1.15rem;
  }

  .page-about .feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Footer Mobile - improved spacing and readability */
  .site-footer {
    padding: 48px 0 32px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    padding-bottom: 8px;
  }

  .footer-heading {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .footer-column ul {
    gap: 14px;
  }

  .footer-column a {
    font-size: 1rem;
    line-height: 1.6;
  }

  .footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .footer-availability {
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding-top: 32px;
  }

  .footer-copyright {
    font-size: 0.95rem;
  }

  .theme-toggle-wrapper {
    justify-content: center;
  }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-intro h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-benefits {
  margin-bottom: 48px;
}

.benefit-item {
  margin-bottom: 24px;
}

.benefit-item h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.benefit-item p {
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-methods {
  padding: 32px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.contact-methods h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.methods-grid {
  display: grid;
  gap: 24px;
}

.method-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 600;
}

.method-item p {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0;
}

/* Contact Form Container */
.contact-form-container h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.form-intro {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.contact-form {
  background: var(--bg-light);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  border: 2px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 20, 100, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234a5568' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot field - hidden from users but accessible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Form Messages */
.form-message {
  padding: 16px 20px;
  border-radius: 6px;
  margin-top: 24px;
  display: none;
}

.form-success {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.form-success strong {
  color: #065f46;
}

.form-error {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
}

.form-error strong {
  color: #991b1b;
}

/* Contact page layout: same markup at every viewport, responsive via @media. */
.page-contact .service-overview {
  padding-top: 40px;
}

.page-contact .content-grid {
  margin-top: 0;
}

.page-contact .contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .page-contact .page-header {
    padding-bottom: 20px;
  }

  .page-contact .service-overview {
    padding-top: 10px;
  }

  .page-contact .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 10px;
  }

  .page-contact .content-sidebar {
    max-width: 600px;
  }

  .page-contact .contact-form-wrapper {
    max-width: 100%;
  }

  /* ── Service detail pages: shared mobile rules ─────────────────────
     Every service-detail page collapses its grids and reduces type
     size at this breakpoint. The original CSS repeated identical rules
     for each service namespace (mvp-, fullstack-, cto-, migration-,
     ai-, iot-); collapsed here to a single pass on the underlying
     classes. ────────────────────────────────────────────────────── */

  .signs-grid,
  .platforms-grid,
  .benefits-grid,
  .features-grid,
  .tech-stack-grid,
  .tech-categories,
  .use-cases-grid,
  .value-grid,
  .activities-grid,
  .pricing-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sign-item h3,
  .platform-item h3,
  .benefit-card h3,
  .feature-item h3,
  .tech-category h3,
  .use-case h3,
  .value-item h3,
  .activity-column h3,
  .step-content h3 {
    font-size: 1.15rem;
  }

  .sign-item p,
  .platform-item p,
  .benefit-card p,
  .feature-item p,
  .tech-category li,
  .use-case p,
  .value-item p,
  .activity-column li,
  .step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .process-timeline {
    padding: 0;
  }

  .process-step {
    padding-left: 0;
    margin-left: 0;
  }

  .step-number {
    position: relative;
    left: 0;
    margin-bottom: 12px;
  }

  .pricing-card {
    padding: 24px;
  }

  .pricing-card h3 {
    font-size: 1.25rem;
  }

  .pricing-card p,
  .pricing-card li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .deliverables-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .deliverable-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .deliverable-item:last-child {
    border-bottom: none;
  }

  .deliverable-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .deliverable-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }

}

@media (max-width: 640px) {
  .contact-intro h2,
  .contact-form-container h2 {
    font-size: 1.75rem;
  }

  .methods-grid {
    gap: 20px;
  }
}

/* Legal Pages (Privacy Policy) */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-dim);
}

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

.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ol li {
  margin-bottom: 0.5rem;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.privacy-table thead {
  background: var(--bg-light);
}

.privacy-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
}

.privacy-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}

.privacy-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

/* Small mobile devices only - prevent spotlight height jumping */
@media (max-width: 480px) {
  .spotlight-content {
    min-height: 410px; /* Increased to match Full Stack page natural height */
  }

  .rotation-controls {
    margin-top: 24px; /* Reduced from 40px for mobile */
  }
}

/* ============================================
   DARK MODE
   ============================================ */

/* Dark mode color scheme - based on logo colors. The two surface tokens
   (--bg-page / --bg-card) are referenced throughout this file in place of
   the literals #0d1117 / #161b22 they used to repeat. */
[data-theme="dark"] {
  --primary: #0087d5;
  --primary-dark: #006bb3;
  --primary-hover: #006bb3;
  --accent: #0087d5;
  --text: #f0f0f0;
  --text-dim: #d1d5db;
  --text-muted: #9ca3af;
  --border: #374151;
  --bg-light: #1f2937;
  --navy-dark: #0d1117;
  --blue-bright: #0087d5;
  --blue-light: #1e3a5f;
  --bg-page: #0d1117;
  --bg-card: #161b22;
}

/* Body and base backgrounds */
[data-theme="dark"] body {
  background: var(--bg-page);
  color: var(--text);
}

/* Header */
[data-theme="dark"] .site-header {
  background: var(--bg-card);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-link {
  color: var(--text);
}

[data-theme="dark"] .nav-link:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hamburger-line {
  background: var(--text);
}

/* Services Dropdown */
[data-theme="dark"] .services-dropdown {
  background: var(--bg-card);
  border-color: var(--border);
  border-top-color: var(--primary);
}

[data-theme="dark"] .services-dropdown a {
  color: var(--text-dim);
}

[data-theme="dark"] .services-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

/* Mobile Menu */
[data-theme="dark"] .mobile-menu {
  background: var(--bg-card);
}

[data-theme="dark"] .mobile-nav-link {
  color: var(--text);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .mobile-submenu {
  background: var(--bg-card);
}

[data-theme="dark"] .mobile-back-btn {
  color: var(--primary);
  border-bottom-color: var(--border);
}

/* Hero Section */
[data-theme="dark"] .hero-section {
  background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg-page) 100%);
}

[data-theme="dark"] .hero-title {
  color: #fff;
}

/* Spotlight Section - logo blue in dark mode */
[data-theme="dark"] .spotlight-section {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--bg-page) 100%);
}

/* Services Grid */
[data-theme="dark"] .services-overview {
  background: var(--bg-page);
}

[data-theme="dark"] .services-grid {
  border-top-color: var(--border);
}

[data-theme="dark"] .service-item {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .service-title {
  color: var(--primary);
}

[data-theme="dark"] .service-description {
  color: var(--text-dim);
}

/* CTA Section - logo blue in dark mode */
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--bg-page) 100%);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg-page) 100%);
  border-top-color: var(--border);
}

[data-theme="dark"] .footer-content {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .footer-heading {
  color: var(--text);
}

[data-theme="dark"] .footer-tagline {
  color: var(--text-dim);
}

[data-theme="dark"] .footer-column a {
  color: var(--text-dim);
}

[data-theme="dark"] .footer-column a:hover {
  color: var(--primary);
}

[data-theme="dark"] .footer-copyright {
  color: var(--text-muted);
}

/* Buttons */
[data-theme="dark"] .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 135, 213, 0.3);
}

[data-theme="dark"] .btn-outline {
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Keep light buttons on dark gradient backgrounds */
[data-theme="dark"] .spotlight-section .btn-primary,
[data-theme="dark"] .cta-section .btn-primary {
  background: #fff;
  color: var(--navy-dark);
  border-color: #fff;
}

[data-theme="dark"] .spotlight-section .btn-primary:hover,
[data-theme="dark"] .cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Page Headers (service pages, about, contact, etc.) - logo blue in dark mode */
[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--bg-page) 100%);
}

[data-theme="dark"] .service-hero {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--bg-page) 100%);
}

/* Content Sections */
[data-theme="dark"] .section-alt,
[data-theme="dark"] .bg-light {
  background: var(--bg-card);
}

[data-theme="dark"] .service-overview {
  background: var(--bg-page);
}

/* Info Box */
[data-theme="dark"] .info-box {
  background: var(--bg-card);
  border-color: var(--border);
  border-left-color: var(--primary);
}

[data-theme="dark"] .info-box h3 {
  color: var(--primary);
}

[data-theme="dark"] .info-box li {
  color: var(--text-dim);
}

[data-theme="dark"] .info-box li::before {
  color: var(--primary);
}

/* Feature Items */
[data-theme="dark"] .feature-item {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .feature-item h3 {
  color: var(--primary);
}

[data-theme="dark"] .feature-item p {
  color: var(--text-dim);
}

/* Benefit Cards */
[data-theme="dark"] .benefit-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .benefit-card h3 {
  color: var(--primary);
}

[data-theme="dark"] .benefit-card p {
  color: var(--text-dim);
}

/* Pricing Cards */
[data-theme="dark"] .pricing-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .pricing-card h3 {
  color: var(--primary);
}

[data-theme="dark"] .pricing-card li {
  color: var(--text-dim);
}

[data-theme="dark"] .pricing-card li::before {
  color: var(--primary);
}

/* Process Steps */
[data-theme="dark"] .step-number {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .step-content h3 {
  color: var(--text);
}

[data-theme="dark"] .process-step h3 {
  color: var(--primary);
}

/* Tech Categories */
[data-theme="dark"] .tech-category h3 {
  color: var(--primary);
}

[data-theme="dark"] .tech-category li {
  color: var(--text-dim);
}

[data-theme="dark"] .tech-category li::before {
  color: var(--primary);
}

/* Contact Form */
[data-theme="dark"] .contact-form {
  background: var(--bg-card);
}

[data-theme="dark"] .contact-methods {
  background: var(--bg-card);
  border-left-color: var(--primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-page);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 135, 213, 0.2);
}

[data-theme="dark"] .form-group label {
  color: var(--text);
}

/* Legal Pages */
[data-theme="dark"] .legal-content li {
  color: var(--text-dim);
}

[data-theme="dark"] .privacy-table thead {
  background: var(--bg-card);
}

[data-theme="dark"] .privacy-table th {
  color: var(--primary);
  border-color: var(--border);
}

[data-theme="dark"] .privacy-table td {
  border-color: var(--border);
  color: var(--text-dim);
}

[data-theme="dark"] .privacy-table tbody tr:nth-child(even) {
  background: var(--bg-card);
}

/* Headings - ensure proper contrast */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: var(--primary);
}

[data-theme="dark"] .section-header h2 {
  color: var(--primary);
}

/* White headings on dark gradient backgrounds */
[data-theme="dark"] .spotlight-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .service-hero h1,
[data-theme="dark"] .cta-content h2 {
  color: #fff;
}

/* Theme Toggle in Footer */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: var(--primary);
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(24px);
}

.theme-toggle:hover {
  opacity: 0.9;
}

/* Logo switching for dark mode */
/* Works with .logo-desktop and .logo-mobile responsive classes.
   .logo-light has no rule because it inherits display from its parent
   responsive class — it shows by default in light mode. */

.logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark.logo-desktop {
  display: block !important;
}

[data-theme="dark"] .logo-dark.logo-mobile {
  display: none !important;
}

@media (max-width: 1050px) {
  [data-theme="dark"] .logo-dark.logo-desktop {
    display: none !important;
  }

  [data-theme="dark"] .logo-dark.logo-mobile {
    display: block !important;
  }
}

/* Hero Logo switching */
.hero-logo-img.logo-light {
  display: block;
}

.hero-logo-img.logo-dark {
  display: none !important;
}

[data-theme="dark"] .hero-logo-img.logo-light {
  display: none !important;
}

[data-theme="dark"] .hero-logo-img.logo-dark {
  display: block !important;
}

/* About Page specific */
[data-theme="dark"] .page-about .content-column p {
  color: var(--text-dim);
}

[data-theme="dark"] .page-about .check-list li {
  color: var(--text-dim);
}

[data-theme="dark"] .page-about .check-list li::before {
  color: var(--primary);
}
