/* ========================================
   Enso AI - Main Stylesheet
   ======================================== */

/* Global Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: hsl(var(--primary-glow));
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: hsl(var(--accent-glow));
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Header - Glassmorphism Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.site-logo img {
  height: 52px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: hsl(var(--primary));
}

/* ── Dropdown Submenu ── */
.main-navigation .has-dropdown {
  position: relative;
}

/* Arrow indicator on Services */
.main-navigation .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  margin-left: 6px;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.main-navigation .has-dropdown:hover > a::after {
  transform: rotate(-135deg) translateY(-3px);
}

.main-navigation .dropdown {
  /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  padding-top: 8px; /* invisible bridge so mouse doesn't lose hover */
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  /* Transition */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 200;
  /* Small arrow pointer */
  flex-direction: column;
  gap: 0;
}

/* Pointer triangle */
.main-navigation .dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid hsl(var(--border));
  border-top: 1px solid hsl(var(--border));
}

/* Show on hover */
.main-navigation .has-dropdown:hover .dropdown,
.main-navigation .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s; /* show instantly */
}

/* Delay hiding so mouse can travel to dropdown */
.main-navigation .has-dropdown .dropdown {
  transition-delay: 0.15s;
}

.main-navigation .dropdown li {
  width: 100%;
}

.main-navigation .dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.main-navigation .dropdown a:hover {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

/* Dropdown item icons */
.main-navigation .dropdown a .dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.main-navigation .dropdown a:hover .dropdown-icon {
  background: hsl(var(--primary) / 0.18);
}

.main-navigation .dropdown a .dropdown-icon svg {
  width: 16px;
  height: 16px;
  color: hsl(var(--primary));
}

.main-navigation .dropdown a .dropdown-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}

.main-navigation .dropdown a .dropdown-text span {
  display: block;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1px;
}

.main-navigation .dropdown a:hover .dropdown-text strong {
  color: hsl(var(--primary));
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: hsl(var(--foreground));
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-warm);
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--primary));
}

/* Video Demo Section */
.video-demo-section {
  padding: 6rem 1.5rem;
  background: hsl(var(--background));
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container video,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Features Grid */
.features-section {
  padding: 6rem 1.5rem;
  background: var(--gradient-warm);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

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

.feature-card {
  background: hsl(var(--card));
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--border));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: hsl(var(--primary));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.feature-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 1.5rem;
  background: hsl(var(--background));
}

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

.pricing-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: hsl(var(--primary));
}

.pricing-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

.pricing-units {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--foreground));
}

.pricing-features li::before {
  content: '✓';
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Case Studies Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.case-study-card {
  background: hsl(var(--card));
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--border));
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.case-study-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-study-content {
  padding: 2rem;
}

.case-study-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.case-study-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.case-study-metric {
  font-size: 2rem;
  font-weight: 800;
  color: hsl(var(--primary));
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: hsl(var(--background));
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: hsl(var(--background) / 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: hsl(var(--primary-glow));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.2);
  padding-top: 2rem;
  text-align: center;
  color: hsl(var(--background) / 0.7);
}

/* Floating Action Button (FAB) */
.fab-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: none;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-accent);
}

.fab-button svg {
  width: 28px;
  height: 28px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: hsl(var(--card));
  border-radius: calc(var(--radius) + 8px);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* Contact Form Styles */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-submit {
  width: 100%;
  padding: 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7-submit:hover {
  background: hsl(var(--primary-glow));
  box-shadow: var(--shadow-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .main-navigation.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  /* Mobile dropdown — always visible, indented */
  .main-navigation .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: hsl(var(--primary) / 0.04);
    border-radius: var(--radius);
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0.25rem 0 0.5rem;
    transition: none;
  }

  .main-navigation .dropdown::before {
    display: none;
  }

  .main-navigation .has-dropdown > a {
    padding: 0.875rem 0;
    display: block;
  }

  .main-navigation .dropdown a {
    padding: 0.625rem 0.75rem;
  }

  .header-cta {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .fab-button {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .features-grid,
  .pricing-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
.dark .site-header {
  background: rgba(0, 0, 0, 0.7);
}

.dark .feature-card,
.dark .pricing-card,
.dark .case-study-card,
.dark .modal-content {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

/* ── Hero two-column layout ── */
.hero-section .hero-content {
  text-align: left;
}

.hero-section .hero-cta {
  justify-content: flex-start;
}

.hero-section .trust-badges {
  justify-content: flex-start;
}

/* Stack on mobile */
@media (max-width: 1024px) {
  .hero-section .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-section .hero-cta {
    justify-content: center;
  }

  .hero-section .trust-badges {
    justify-content: center;
  }

  .hero-section > .container > div:first-child {
    align-items: center;
  }

  .enso-chat-widget {
    width: 100%;
    max-width: 480px;
  }
}

/* ============================================================
   Demo Video Section — exact match to original "Watch Our AI"
   py-24 bg-warm-gradient relative overflow-hidden
   ============================================================ */

.enso-demo-section {
  position: relative;
  padding: 6rem 1.5rem;                          /* py-24 */
  background: var(--gradient-warm);              /* bg-warm-gradient */
  overflow: hidden;
}

/* Orbs — top-0 left-1/4 w-[400px] h-[400px] bg-primary/5 blur-3xl
          bottom-0 right-1/4 w-[300px] h-[300px] bg-accent/5 blur-3xl */
.enso-demo-section__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.enso-demo-section__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.enso-demo-section__orb--tl {
  top: 0;
  left: 25%;
  width: 400px;
  height: 400px;
  background: hsl(var(--primary) / 0.05);
}

.enso-demo-section__orb--br {
  bottom: 0;
  right: 25%;
  width: 300px;
  height: 300px;
  background: hsl(var(--accent) / 0.05);
}

/* Inner container — relative z-10 */
.enso-demo-section__inner {
  position: relative;
  z-index: 10;
}

/* Header block — text-center mb-12 */
.enso-demo-section__header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Badge — inline-flex items-center gap-2 px-4 py-2 rounded-full
           bg-accent-muted text-accent font-medium text-sm mb-4 */
.enso-demo-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: hsl(var(--accent-muted));
  color: hsl(var(--accent));
  font-weight: 500;
  font-size: 0.875rem;
}

/* H2 — text-3xl md:text-4xl lg:text-5xl font-bold mb-6 */
.enso-demo-section__h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);         /* 3xl → 5xl */
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0;
}

/* Subtitle — text-lg text-muted-foreground max-w-2xl mx-auto */
.enso-demo-section__sub {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  line-height: 1.7;
  margin: 0;
}

/* Video wrapper — relative max-w-4xl mx-auto */
.enso-demo-section__video-wrap {
  max-width: 56rem;                              /* max-w-4xl */
  margin: 0 auto;
}

/* Video card — relative bg-card rounded-3xl shadow-soft-xl border border-border overflow-hidden */
.enso-demo-section__video-card {
  position: relative;
  background: hsl(var(--card));
  border-radius: calc(var(--radius) + 16px);     /* rounded-3xl */
  box-shadow: var(--shadow-xl);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

/* Video element — w-full h-auto */
.enso-demo-section__video-card video {
  width: 100%;
  height: auto;
  display: block;
}

/* Below-video CTA — text-center mt-12 */
.enso-demo-section__cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* "Ready to see it work..." — text-muted-foreground mb-4 */
.enso-demo-section__cta-text {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ============================================================
   Integrations Section — "Works With Your Existing Tools"
   py-24 bg-background, 2-col: text left, logo grid right
   ============================================================ */

.enso-integrations {
  padding: 5rem 1.5rem;
  background: hsl(var(--background));
}

.enso-integrations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* Badge shared style */
.enso-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.enso-section-badge--primary {
  background: hsl(var(--primary-muted));
  color: hsl(var(--primary));
}

.enso-section-badge--accent {
  background: hsl(var(--accent-muted));
  color: hsl(var(--accent));
}

.enso-section-badge--star {
  background: hsl(var(--primary-muted));
  color: hsl(var(--primary));
}

/* H2 */
.enso-integrations__h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

/* Description */
.enso-integrations__desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Bullet list */
.enso-integrations__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.enso-integrations__list-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}

.enso-integrations__check {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Logo grid — grid-cols-2 sm:grid-cols-4 */
.enso-integrations__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.enso-integrations__logo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.enso-integrations__logo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.3);
}

@media (max-width: 1024px) {
  .enso-integrations__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .enso-integrations__logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .enso-integrations__list {
    grid-template-columns: 1fr;
  }
  .enso-integrations__logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Testimonials — "What Property Managers Are Saying"
   py-24 bg-secondary/30, 3-col card grid
   ============================================================ */

.enso-testimonials {
  padding: 5rem 1.5rem;
  background: hsl(var(--secondary) / 0.30);
}

.enso-testimonials__header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.enso-testimonials__h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0;
}

.enso-testimonials__sub {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0;
}

/* 3-column grid */
.enso-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Card — bg-card rounded-3xl p-8 border border-border shadow-soft */
.enso-testimonials__card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 16px);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.enso-testimonials__card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Quote icon box — w-10 h-10 rounded-xl bg-primary-muted */
.enso-testimonials__quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--primary-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Stars row */
.enso-testimonials__stars {
  display: flex;
  gap: 0.25rem;
}

/* Quote text */
.enso-testimonials__text {
  color: hsl(var(--foreground));
  line-height: 1.75;
  font-size: 0.95rem;
  flex: 1;
}

/* Author row */
.enso-testimonials__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Avatar — bg-hero-gradient rounded-full */
.enso-testimonials__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.enso-testimonials__name {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  margin: 0;
}

.enso-testimonials__role {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

@media (max-width: 1024px) {
  .enso-testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .enso-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Section spacing reduction — tighter gaps between sections
   ============================================================ */

/* Stats bar */
.enso-stats-bar { padding: 3rem 1.5rem; }

/* Demo video section */
.enso-demo-section { padding: 4rem 1.5rem; }

/* Features section */
.features-section { padding: 4rem 1.5rem; }

/* How it works */
.enso-how-it-works { padding: 4rem 1.5rem; }

/* Integrations */
.enso-integrations { padding: 4rem 1.5rem; }

/* Testimonials */
.enso-testimonials { padding: 4rem 1.5rem; }

/* Final CTA */
.enso-final-cta { padding: 4rem 1.5rem; }

/* Section headers — reduce bottom margin */
.section-header { margin-bottom: 2.5rem; }
.enso-demo-section__header { margin-bottom: 2rem; }
.enso-testimonials__header { margin-bottom: 2.5rem; }

/* ============================================================
   Stats Bar — py-20 bg-primary/5 border-y border-border
   ============================================================ */

.enso-stats-bar {
  padding: 3rem 1.5rem;
}

/* Each stat item — text-center */
.enso-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Icon box — w-14 h-14 rounded-2xl bg-primary-muted mx-auto mb-4 */
.enso-stat-item__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: hsl(var(--primary-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

/* Value — text-4xl md:text-5xl font-bold text-foreground */
.enso-stat-item__value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1;
}

/* Label — font-semibold text-foreground */
.enso-stat-item__label {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

/* Description — text-sm text-muted-foreground */
.enso-stat-item__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  max-width: 180px;
}

/* ============================================================
   Global gradient text — works on any element
   ============================================================ */
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Section title headings — consistent sizing */
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
}

/* ============================================================
   Mobile Hamburger Menu Fix
   ============================================================ */

/* Hamburger lines */
.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: hsl(var(--foreground));
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav panel */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
  }

  .main-navigation {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 150;
    border-bottom: 1px solid hsl(var(--border));
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .main-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation > ul > li {
    border-bottom: 1px solid hsl(var(--border));
  }

  .main-navigation > ul > li:last-child {
    border-bottom: none;
  }

  .main-navigation > ul > li > a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
  }

  /* Mobile dropdown — always visible under Services */
  .main-navigation .dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: hsl(var(--secondary) / 0.5) !important;
    border-radius: var(--radius) !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    margin: 0 0 0.5rem !important;
    transition: none !important;
  }

  .main-navigation .dropdown::before {
    display: none !important;
  }

  .main-navigation .has-dropdown > a::after {
    display: none;
  }

  .header-cta { display: none; }
}

/* ============================================================
   Footer Mobile Responsive Fix
   ============================================================ */

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.25rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-section {
    text-align: left;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-section ul li {
    margin-bottom: 0.625rem;
  }

  .footer-section a {
    font-size: 0.9rem;
  }

  /* Social icons row */
  .footer-section div[style*="display:flex"] {
    justify-content: flex-start !important;
  }

  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 2.5rem 1rem 1.25rem;
  }
}
