/* Embedit Main Site Styles */

/* Base */
* {
  font-family: 'Heebo', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-160%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 4000;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.a11y-widget {
  position: fixed;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 3500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.a11y-widget.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.a11y-widget.is-hidden:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.a11y-toggle {
  min-width: 2.7rem;
  height: 2.7rem;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  color: #475569;
  border-radius: 999px;
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.a11y-toggle-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.a11y-panel {
  width: 260px;
  margin-top: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  padding: 0.75rem;
}

.a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.a11y-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.a11y-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.a11y-options {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.a11y-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
}

.a11y-reset {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

body.a11y-large-text {
  font-size: 112%;
}

body.a11y-high-contrast {
  background: #ffffff !important;
  color: #000000 !important;
}

body.a11y-high-contrast .card-minimal,
body.a11y-high-contrast .track-card,
body.a11y-high-contrast .project-card,
body.a11y-high-contrast .service-card {
  border-color: #111827 !important;
  box-shadow: none !important;
}

body.a11y-highlight-links a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body.a11y-readable-font * {
  font-family: 'Arial', 'Heebo', sans-serif !important;
}

/* Navigation */
/* Navigation styles moved to tracks.css */

/* Logo image in navbar */
.nav-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #2F5790;
  padding: 0.75rem 1.75rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown-arrow {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover {
  color: #ffffff;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, rgba(47, 87, 144, 0.98) 0%, rgba(42, 78, 130, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

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

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 70%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
  transition: width 0.3s ease;
}

.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Modern tech theme overrides */
:root {
  --surface: #f5f7fb;
  --surface-2: #ffffff;
  --ink: #0f172a;
  --muted: #667085;
  --border: rgba(148, 163, 184, 0.25);
  --dark: #0f172a;
  --brand: #2F5790;
  --brand-dark: #1e2f4d;
  --brand-light: #5a8fc4;
  --glow: rgba(90, 143, 196, 0.25);
  --green: #16a34a;
  --yellow: #f59e0b;
  --orange: #f97316;
}

body {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: var(--ink);
}

/* Navbar styles moved to tracks.css for unified styling */

.nav-logo-icon {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.nav-logo:hover .nav-logo-icon {
  box-shadow: 0 10px 28px rgba(90, 143, 196, 0.35);
  transform: rotate(-4deg);
}

.nav-logo-text {
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.35);
}

.nav-link::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.nav-link.active::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-cta {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  color: var(--brand);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.35);
}

.nav-dropdown-menu {
  background: linear-gradient(135deg, rgba(30, 47, 77, 0.98), rgba(47, 87, 144, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(16px);
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section-minimal {
  background: radial-gradient(circle at top, rgba(90, 143, 196, 0.08) 0%, rgba(255, 255, 255, 0) 55%), var(--surface);
}

.cta-section {
  background: linear-gradient(135deg, var(--brand-dark), var(--dark));
}

footer {
  background: linear-gradient(135deg, var(--brand-dark), var(--dark));
}

.feature-icon {
  background: linear-gradient(135deg, rgba(90, 143, 196, 0.18), rgba(90, 143, 196, 0.04)) !important;
  border: px solid rgba(90, 143, 196, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card-minimal {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.badge-minimal {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(90, 143, 196, 0.25);
  color: var(--brand);
}

.nav-dropdown-menu a:hover::before {
  width: 4px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

@media (max-width: 768px) {
  /* Mobile navbar: hide logo, align hamburger to right */
  .nav-container {
    padding: 0.5rem 1rem;
    justify-content: space-between;
  }

  .nav-logo {
    display: none !important;
  }
  
  .mobile-track-logo {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
  }

  .mobile-menu-btn {
    display: block;
    margin: 0;
    margin-right: 0;
    margin-left: auto;
    padding: 0.4rem;
  }
  
  .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    left: auto;
    width: 280px;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, rgba(47, 87, 144, 0.98) 0%, rgba(42, 78, 130, 0.98) 100%);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
  }

  .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link::before {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: none;
    border: none;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 300px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .nav-dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown-menu a::before {
    display: none;
  }

  .nav-dropdown-toggle svg {
    transition: transform 0.3s ease;
  }

  .nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }

  /* WhatsApp CTA button in mobile */
  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
  }

  /* Mobile menu backdrop */
  .mobile-menu-backdrop {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Ensure nav-menu is above backdrop */
  .nav-menu {
    z-index: 1000;
  }

  /* Hero text mobile */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Container padding mobile */
  .max-w-6xl,
  .max-w-4xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Scroll progress bar mobile */
  .scroll-progress-container {
    top: 60px;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Spacer for fixed nav */
.nav-spacer {
  height: 70px;
}

/* Scroll Progress Bar Container */
.scroll-progress-container {
  top: 70px;
}

/* Hidden elements - generic class */
.hidden-element {
  display: none;
}

/* Summary status styles */
.summary-status {
  display: none;
}

.summary-status.visible {
  display: block;
}

/* Selected package indicator */
.selected-package-indicator {
  display: none;
}

.selected-package-indicator.visible {
  display: block;
}

/* Category content accordion */
.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-content.expanded {
  max-height: 1000px;
}

/* Accordion icon rotation */
.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* Accordion card selected state */
.accordion-selected {
  border-color: #16a34a !important;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.1), 0 2px 4px -1px rgba(22, 163, 74, 0.06) !important;
}

/* Popup z-index */
.popup-overlay {
  z-index: 10000;
}

.popup-overlay-top {
  z-index: 10001;
}

/* Out of scope status styling */
.summary-status.out-of-scope.visible {
  display: flex;
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.3);
}

/* Section visibility toggle */
.section-hidden {
  display: none !important;
}

/* Cookie consent */
.cookie-consent-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 0.65rem;
  z-index: 1100;
  max-width: 560px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(5px);
}

.cookie-consent-inner {
  padding: 0.7rem 0.8rem;
}

.cookie-consent-title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.cookie-consent-link {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.cookie-consent-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.4rem;
}

.cookie-btn {
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 0.34rem 0.6rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.75rem;
  background: #f8fafc;
  color: #475569;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cookie-btn-primary {
  background: #334155;
  border-color: #334155;
  color: #f8fafc;
}

.cookie-btn-secondary {
  background: #f8fafc;
  color: #64748b;
  border-color: #d1d5db;
}

.cookie-btn-ghost {
  background: transparent;
  color: #64748b;
  border-color: #e5e7eb;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(1px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal-card {
  width: min(520px, 95vw);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cookie-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.cookie-modal-description {
  margin: 0.6rem 0 0.9rem;
  color: #475569;
  font-size: 0.9rem;
}

.cookie-options {
  display: grid;
  gap: 0.6rem;
}

.cookie-option {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.cookie-option small {
  display: block;
  color: #64748b;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.cookie-option-locked {
  background: #f9fafb;
}

.cookie-modal-foot {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.cookie-modal-open {
  overflow: hidden;
}

/* Contact forms: right-align phone field text in both page and popup forms */
#phone,
#navContactPhone {
  text-align: right;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
  }

  .cookie-consent-actions {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cookie-btn {
    width: 100%;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
