@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #0077ff;
  --color-primary-dark: #0056b3;
  --color-secondary: #ff8c00;
  --color-secondary-dark: #e65c00;
  --color-accent: #5e17eb;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --grad-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

  /* Neutrals */
  --color-text-main: #1a1a24;
  --color-text-muted: #666675;
  --color-bg-page: #ffffff;
  --color-bg-section: #f8f9fa;
  --color-border: #e0e5ea;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Shadows & Glass */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(0, 119, 255, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-orange {
  background: var(--grad-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

/* Layout Core */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-xl) 0;
}

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

/* Header & Navigation (WP Ready: header.php) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 55px;
  width: auto;
  mix-blend-mode: darken; /* Hides white background on light sections */
}

.main-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
}

.main-menu a:hover,
.main-menu > a.active,
.dropdown-toggle.active {
  color: var(--color-primary);
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu > a.active::after,
.dropdown-toggle.active::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: all 0.2s ease;
}

.dropdown-menu a::after {
  display: none !important; /* Hide underline for dropdown items */
}

.dropdown-menu a:hover {
  background: rgba(0, 119, 255, 0.05);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-main);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--grad-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 255, 0.4);
  color: white;
}

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

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

/* Animations Core */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Elements (Micro-interactions) */
.floating-badge {
  position: absolute;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Sticky WhatsApp */
.sticky-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-wa:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
}

.sticky-wa::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: inherit;
  border-radius: inherit;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Footer (WP Ready) */
.site-footer {
  background-color: #11111a;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .main-menu.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
    display: none;
  }

  .dropdown-menu.show {
    display: flex;
  }

  .dropdown:hover .dropdown-menu {
    display: none; /* Prevent hover from opening on mobile */
  }
  
  .dropdown.active .dropdown-menu {
    display: flex; /* Mobile click to open */
  }

  .mobile-menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: var(--space-lg) 0;
  }
}

/* --- Added CRO Components --- */

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 10px 15px;
    z-index: 1050;
    gap: 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: var(--glass-border);
  }
  .desktop-wa {
    display: none;
  }
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border-radius: var(--radius-pill);
  flex: 1;
}
.btn-whatsapp:hover {
  background: #1ebc5a;
  color: white;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Exit Popup UI */
.exit-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.exit-popup.active {
  opacity: 1;
  pointer-events: all;
}
.popup-content {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-hover);
}
.exit-popup.active .popup-content {
  transform: translateY(0);
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}
.popup-close:hover {
  color: var(--color-text-main);
}
