/*
Theme Name: EleziAutoAI
Theme URI: https://eleziautoai.com
Author: EleziAutoAI
Author URI: https://eleziautoai.com
Description: Professional AI agency theme for car dealerships. Features AI lead generation, voice agents, intelligent chat, and dealership automation. Includes a fully interactive chatbot.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eleziautoai
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-card: #151c2c;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --success: #22c55e;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --radius: 16px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.ea-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, border 0.3s;
}

.ea-nav.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.ea-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ea-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ea-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ea-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ea-nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.ea-nav-links a:hover {
  color: var(--text);
}

.ea-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.ea-btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.ea-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  color: #fff !important;
}

.ea-btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.ea-btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text) !important;
}

.ea-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* =========================================================
   HERO
   ========================================================= */
.ea-hero {
  position: relative;
  padding: 9rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

.ea-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: #93c5fd;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ea-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.ea-hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ea-hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.ea-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ea-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.ea-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ea-stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ea-hero-visual {
  position: relative;
}

.ea-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ea-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.ea-hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ea-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.ea-hero-card-header strong {
  display: block;
  font-size: 0.95rem;
}

.ea-hero-card-header span {
  font-size: 0.8rem;
  color: var(--success);
}

.ea-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ea-msg {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  max-width: 90%;
  line-height: 1.45;
}

.ea-msg.bot {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.ea-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.ea-section {
  padding: 5.5rem 1.5rem;
}

.ea-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ea-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.ea-eyebrow {
  display: inline-block;
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ea-section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.ea-section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* =========================================================
   SERVICES
   ========================================================= */
.ea-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ea-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.ea-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.15);
}

.ea-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.ea-service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.ea-service-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ea-service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ea-service-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ea-service-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.ea-bg-elevated {
  background: var(--bg-elevated);
}

.ea-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ea-step {
  text-align: center;
}

.ea-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.ea-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ea-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   RESULTS
   ========================================================= */
.ea-results {
  background: var(--bg-elevated);
  border-radius: 24px;
  padding: 3.5rem;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ea-results h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ea-results > div > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ea-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ea-results-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.ea-results-list li span {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ea-metric-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ea-metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.ea-metric strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.ea-metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   CTA
   ========================================================= */
.ea-cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.ea-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.ea-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ea-cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text);
}

.ea-cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ea-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.ea-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ea-footer-links {
  display: flex;
  gap: 1.5rem;
}

.ea-footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.ea-footer-links a:hover {
  color: var(--text);
}

.ea-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* =========================================================
   CHATBOT
   ========================================================= */
.ea-chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  z-index: 2000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ea-chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.6);
}

.ea-chatbot-toggle svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.ea-chatbot-toggle .ea-close-icon {
  display: none;
}

.ea-chatbot-toggle.open .ea-chat-icon {
  display: none;
}

.ea-chatbot-toggle.open .ea-close-icon {
  display: block;
}

.ea-chatbot-window {
  position: fixed;
  bottom: 108px;
  right: 28px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ea-chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ea-chatbot-header {
  background: var(--bg-card);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.ea-chatbot-header .ea-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.ea-chatbot-header strong {
  display: block;
  font-size: 0.95rem;
}

.ea-chatbot-header span {
  font-size: 0.78rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ea-chatbot-header span::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.ea-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.ea-chatbot-messages .ea-msg {
  max-width: 85%;
  animation: ea-fadeIn 0.3s ease;
}

@keyframes ea-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ea-msg.typing {
  display: flex;
  gap: 4px;
  padding: 1rem;
}

.ea-msg.typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: ea-bounce 1.4s infinite ease-in-out both;
}

.ea-msg.typing span:nth-child(1) { animation-delay: -0.32s; }
.ea-msg.typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ea-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.ea-chatbot-input-area {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  background: var(--bg-card);
}

.ea-chatbot-input-area input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.ea-chatbot-input-area input:focus {
  border-color: var(--accent);
}

.ea-chatbot-input-area input::placeholder {
  color: var(--text-muted);
}

.ea-chatbot-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.ea-chatbot-send:hover {
  opacity: 0.9;
}

.ea-chatbot-send svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.ea-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ea-quick-reply {
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ea-quick-reply:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .ea-hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    min-height: auto;
    gap: 3rem;
  }

  .ea-hero-visual {
    order: -1;
  }

  .ea-services-grid {
    grid-template-columns: 1fr;
  }

  .ea-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ea-results {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .ea-nav-links {
    display: none;
  }

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

  .ea-steps {
    grid-template-columns: 1fr;
  }

  .ea-hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .ea-metric-cards {
    grid-template-columns: 1fr;
  }

  .ea-chatbot-window {
    right: 12px;
    bottom: 96px;
    width: calc(100vw - 24px);
  }

  .ea-chatbot-toggle {
    right: 16px;
    bottom: 20px;
  }

  .ea-cta-box h2 {
    font-size: 1.7rem;
  }
}
