:root{
  --brand-1:#ec4899;
  --brand-2:#f43f5e;
  --slate-900:#0f172a;
  --slate-800:#1f2937;
  --slate-700:#334155;
  --slate-600:#475569;
  --slate-500:#64748b;
  --slate-400:#94a3b8;
  --rose-50:#fff1f2;
  --rose-100:#ffe4e6;
  --rose-600:#e11d48;
}

/* Generic helpers */
.fade-in{
  animation: fadeIn .4s ease both;
}
/* Prevent horizontal scrolling and media overflow */
html, body{
  overflow-x: hidden;
  width: 100%;
}
img, video, canvas, svg{ max-width: 100%; height: auto; }
.swiper{ max-width: 100%; overflow: hidden; }
.swiper-wrapper{ max-width: 100%; }

/* Tighter container padding on very small screens */
@media (max-width: 640px){
  .container-tight{ padding-left: .5rem; padding-right: .5rem; }
}

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

/* Floating animation for hero/media */
.float-y{ animation: floatY 6s ease-in-out infinite alternate; }
@keyframes floatY{
  0%{ transform: translateY(0) rotate(0deg); }
  100%{ transform: translateY(-10px) rotate(.2deg); }
}

/* Animated gradient background */
@keyframes gradient{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.animate-gradient{ animation: gradient 6s ease infinite; }
.bg-300\%{ background-size: 300% 300%; }

/* Navigation */
.nav-link{
  font-size: 0.875rem;
  color: var(--slate-700);
  transition: color .2s ease;
}
.nav-link:hover{ color: #0f172a; }
.mobile-link{ display:block; padding: .5rem 0; color: var(--slate-700); }

/* Buttons */
.btn-primary{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem 1rem; border-radius: .75rem; font-weight:600; color:#fff;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  box-shadow: 0 8px 20px rgba(236,72,153,.25);
  transition: transform .05s ease, filter .2s ease;
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-primary:active{ transform: scale(.98); }

/* Premium buttons */
.btn-premium{
  position: relative; display:inline-flex; align-items:center; gap:.5rem;
  padding:.625rem 1.25rem; border-radius: .75rem; font-weight:600; color:#fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 25px rgba(102,126,234,.3);
  transition: all .3s ease; overflow: hidden; min-height: 44px;
}
.btn-premium:hover{ 
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102,126,234,.4);
}
.btn-premium-xl{
  position: relative; display:inline-flex; align-items:center; gap:.625rem;
  padding:1rem 2rem; border-radius: 1rem; font-weight:700; color:#fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 15px 35px rgba(102,126,234,.35);
  font-size: 1.125rem; transition: all .3s ease; min-height: 48px;
}
.btn-premium-xl:hover{ 
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(102,126,234,.45);
}

/* Mobile button adjustments */
@media (max-width: 640px){
  .btn-premium-xl{ 
    padding: 0.875rem 1.5rem; font-size: 1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .btn-premium{ padding: 0.75rem 1rem; font-size: 0.9rem; }
}

.btn-secondary{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem 1rem; border-radius:.75rem; font-weight:600;
  color: var(--rose-600); background: var(--rose-50); border:1px solid #fecdd3;
  transition: background .2s ease, transform .05s ease; min-height: 44px;
}
.btn-secondary:hover{ background:#ffe4e6; }
.btn-secondary:active{ transform: scale(.98); }

/* Mobile secondary button */
@media (max-width: 640px){
  .btn-secondary{ 
    padding: 0.75rem 1rem; font-size: 0.9rem;
    justify-content: center; text-align: center;
  }
}

.btn-ghost{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.5rem 1rem; border-radius:.75rem; font-weight:600;
  color: var(--slate-600); background: #f1f5f9; transition: background .2s ease, transform .05s ease;
}
.btn-ghost:hover{ background:#e2e8f0; }
.btn-ghost:active{ transform: scale(.98); }

.btn-xl{ padding:.75rem 1.5rem; font-size:1rem; }

/* Sections & Cards */
.section-title{ font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); font-weight:800; color: var(--slate-900); }

.card-feature{
  background:#fff; border-radius:1rem; padding:1.5rem; border:1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(2,6,23,0.04); transition: box-shadow .2s ease;
}
.card-feature:hover{ box-shadow:0 8px 24px rgba(2,6,23,0.08); }

/* Premium cards with glassmorphism */
.card-premium{
  position: relative; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-radius:1.25rem; padding:2rem; border:1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(31,38,135,0.12);
  transition: all .3s ease; overflow: hidden;
}
.card-premium::before{
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg); transition: all .6s ease; opacity: 0;
}
.card-premium:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31,38,135,0.2);
}
.card-premium:hover::before{ opacity: 1; animation: shimmer 0.6s ease; }
@keyframes shimmer{ 0%{ transform: translateX(-100%) translateY(-100%) rotate(45deg); } 100%{ transform: translateX(100%) translateY(100%) rotate(45deg); } }

.icon-circle{ width:3rem; height:3rem; border-radius:.8rem; display:flex; align-items:center; justify-content:center; margin-bottom:1rem; }

/* Premium icon styles */
.icon-premium{
  width:3.5rem; height:3.5rem; border-radius:1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display:flex; align-items:center; justify-content:center; margin-bottom:1.25rem;
  box-shadow: 0 8px 20px rgba(102,126,234,0.3);
  transition: all .3s ease;
}
.card-premium:hover .icon-premium{
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(102,126,234,0.4);
}
.feature-title{ font-weight:600; color: var(--slate-900); }
.feature-text{ color: var(--slate-600); font-size:.9rem; margin-top:.25rem; }

.card-highlight{ background:#fff; border-radius:1rem; padding:1.5rem; border:1px solid var(--rose-100); box-shadow: 0 4px 12px rgba(2,6,23,0.04); transition: box-shadow .2s ease; }
.card-highlight:hover{ box-shadow:0 8px 24px rgba(2,6,23,0.08); }

/* Stat cards with counter animation */
.card-stat{
  position: relative; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border-radius:1.5rem; padding:2rem; text-align: center;
  border:1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(31,38,135,0.1);
  transition: all .3s ease; overflow: hidden;
}
.card-stat:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(31,38,135,0.15);
}
.stat-icon{
  width:4rem; height:4rem; margin: 0 auto 1.5rem;
  border-radius:1.25rem; background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
  display:flex; align-items:center; justify-content:center;
  color: white; transition: all .3s ease;
}
.card-stat:hover .stat-icon{ transform: rotate(10deg) scale(1.1); }
.stat-number{
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
}
.highlight-title{ font-size:1.125rem; font-weight:600; color: var(--slate-900); }
.highlight-text{ color: var(--slate-600); margin-top:.25rem; }

/* Testimonials */
.testimonial{ background:#fff; border-radius:1rem; padding:1.5rem; border:1px solid #e2e8f0; box-shadow:0 6px 14px rgba(15,23,42,.06); }
.testimonial-text{ color: var(--slate-700); }
.testimonial-author{ margin-top:.75rem; font-size:.9rem; font-weight:600; color: var(--slate-900); }

/* Premium Testimonials */
.testimonial-premium{
  position: relative; background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
  border-radius:1.5rem; padding:2rem; border:1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 40px rgba(31,38,135,0.15);
  transition: all .4s ease; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-premium::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 1.5rem 1.5rem 0 0;
}
.testimonial-premium:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(31,38,135,0.25);
}
.testimonial-quote{ flex-grow: 1; }
.testimonial-text-premium{
  font-size: 1.1rem; line-height: 1.6; color: var(--slate-700);
  font-style: italic; margin-bottom: 1.5rem;
}
.testimonial-author-premium{
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(148,163,184,0.2);
}
.testimonial-avatar{ flex-shrink: 0; }
.testimonial-rating{ margin-left: auto; }

/* Testimonial Swiper Navigation */
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev{
  width: 3rem; height: 3rem; margin-top: -1.5rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-radius: 50%; box-shadow: 0 8px 25px rgba(31,38,135,0.15);
  color: #667eea; transition: all .3s ease;
}
.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover{
  background: #667eea; color: white;
  transform: scale(1.1); box-shadow: 0 12px 35px rgba(102,126,234,0.3);
}
.testimonial-swiper .swiper-button-next:after,
.testimonial-swiper .swiper-button-prev:after{ font-size: 1rem; font-weight: 700; }
.testimonial-pagination .swiper-pagination-bullet{
  width: 12px; height: 12px; background: #cbd5e1; opacity: 0.5;
  transition: all .3s ease;
}
.testimonial-pagination .swiper-pagination-bullet-active{
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 1; transform: scale(1.3);
}

/* Gallery */
.filter-btn{ padding:.5rem 1rem; border-radius:999px; font-size:.9rem; font-weight:500; border:1px solid #e2e8f0; color: var(--slate-700); background:#fff; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.filter-btn:hover{ background:#f1f5f9; }
.filter-btn.active{ background: var(--rose-600); color:#fff; border-color: var(--rose-600); }

.gallery-card{ position:relative; overflow:hidden; border-radius:1rem; box-shadow:0 4px 12px rgba(2,6,23,0.06); transition: box-shadow .2s ease, transform .2s ease; }
.gallery-card:hover{ box-shadow:0 10px 26px rgba(2,6,23,0.12); transform: translateY(-2px); }
.gallery-img{ width:100%; height: 10rem; object-fit: cover; }
@media (min-width: 768px){ .gallery-img{ height: 13rem; } }

/* Forms */
.form-label{ display:block; font-size:.9rem; font-weight:600; color: var(--slate-700); margin-bottom:.25rem; }
.form-input{ width:100%; border-radius:.75rem; border:1px solid #e2e8f0; padding:.5rem .75rem; font-size:.9rem; outline: none; transition: box-shadow .2s ease, border-color .2s ease; }
.form-input:focus{ box-shadow: 0 0 0 4px rgba(244,63,94,.15); border-color:#fb7185; }

/* Footer */
.social-pill{ display:inline-flex; align-items:center; padding:.375rem .75rem; border-radius:999px; font-size:.9rem; background: rgba(255,255,255,.1); }
.social-pill:hover{ background: rgba(255,255,255,.2); }

/* Floating WhatsApp Widget */
.wa-widget{ position: fixed; right: 1rem; bottom: 1rem; z-index: 10000; display: flex; align-items: center; gap: .5rem; }
.wa-fab{
  width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg,#22c55e,#16a34a);
  box-shadow: 0 12px 30px rgba(22,163,74,.35); transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.wa-fab:hover{ filter: brightness(1.05); box-shadow: 0 16px 36px rgba(22,163,74,.45); transform: translateY(-2px); }
.wa-fab:active{ transform: scale(.98); }
.wa-pulse{ animation: waPulse 2.2s ease-in-out infinite; }
@keyframes waPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(22,163,74,.35); } 50%{ box-shadow: 0 0 0 14px rgba(22,163,74,0); } }
.wa-panel{
  position: relative; background: #ffffff; color: var(--slate-800);
  border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 20px 40px rgba(2,6,23,.15);
  padding: .875rem; min-width: 240px; max-width: 280px; opacity: 0; pointer-events: none;
  transform: translateX(8px); transition: transform .25s ease, opacity .2s ease;
}
.wa-panel.show{ opacity: 1; pointer-events: auto; transform: translateX(0); }
.wa-title{ font-weight: 700; font-size: .95rem; color: var(--slate-900); }
.wa-text{ font-size: .85rem; color: var(--slate-600); margin-top: .25rem; }
.wa-btn{ display:inline-flex; align-items:center; gap:.5rem; margin-top:.625rem; padding:.5rem .75rem; border-radius:.75rem; font-weight:600; color:#fff; background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 8px 20px rgba(102,126,234,.25); }
.wa-btn:hover{ filter: brightness(1.05); }

/* Modal Popup */
.modal-overlay{
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: rgba(15,23,42,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.modal-overlay.show{
  opacity: 1; visibility: visible;
}
.modal-container{
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(20px); transition: all .3s ease;
}
.modal-overlay.show .modal-container{
  transform: scale(1) translateY(0);
}
.modal-content{
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 25px 50px rgba(15,23,42,0.3);
  overflow: hidden;
}
.modal-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 2rem 1rem; border-bottom: 1px solid rgba(148,163,184,0.2);
}
.modal-close{
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(148,163,184,0.1); color: var(--slate-600);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; border: none; cursor: pointer;
}
.modal-close:hover{
  background: rgba(239,68,68,0.1); color: #ef4444;
  transform: scale(1.1);
}
.modal-form{
  padding: 1.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.modal-actions{
  display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(148,163,184,0.2);
}

/* Mobile Optimizations */
@media (max-width: 480px){
  /* Ultra compact for small phones */
  .section-title{ font-size: 1.5rem !important; line-height: 1.15; }
  .card-premium{ padding: 1rem !important; }
  .btn-premium-xl{ font-size: 0.875rem !important; padding: 0.75rem 1rem !important; }
}

@media (max-width: 640px){
  /* Smooth scrolling and viewport */
  html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body{ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  
  /* Typography scaling */
  .section-title{ font-size: 1.625rem; line-height: 1.2; font-weight: 800; }
  
  /* Hero section mobile */
  .hero-mobile-spacing{ padding-top: 5rem; padding-bottom: 2rem; }
  
  /* Button improvements - better touch targets */
  .btn-premium-xl{ 
    padding: 0.875rem 1.25rem; font-size: 0.9375rem; min-height: 48px;
    white-space: normal; line-height: 1.2; width: 100%;
  }
  .btn-premium{ padding: 0.75rem 0.875rem; font-size: 0.875rem; min-height: 44px; }
  .btn-secondary{ padding: 0.75rem 0.875rem; font-size: 0.875rem; min-height: 44px; }
  
  /* Card improvements */
  .card-premium{ padding: 1.125rem; margin-bottom: 0.75rem; }
  .card-stat{ padding: 1.25rem 0.875rem; }
  .stat-number{ font-size: 1.875rem; }
  .stat-icon{ width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
  
  /* Navigation mobile - better touch targets */
  .nav-mobile-item{ 
    padding: 0.875rem 0; border-bottom: 1px solid #f1f5f9; 
    min-height: 44px; display: flex; align-items: center;
  }
  
  /* Form improvements - better accessibility */
  .form-input{ 
    padding: 0.75rem; font-size: 0.9375rem; min-height: 44px;
    -webkit-appearance: none; appearance: none; border-radius: 0.625rem;
  }
  .form-label{ font-size: 0.8125rem; margin-bottom: 0.375rem; }
  
  /* Touch-friendly interactions */
  .card-premium:hover{ transform: none; }
  .card-stat:hover{ transform: translateY(-4px) scale(1.01); }
  
  /* Prevent zoom on input focus */
  input[type="text"], input[type="email"], input[type="tel"], 
  input[type="number"], input[type="date"], select, textarea {
    font-size: 16px !important;
  }
  
  /* Better spacing for mobile */
  .mobile-section-padding{ padding: 2.5rem 0; }
  .mobile-container-padding{ padding: 0 0.75rem; }
  
  /* Reduce gaps on mobile */
  .gap-4{ gap: 0.75rem !important; }
  .gap-6{ gap: 1rem !important; }
  .gap-8{ gap: 1.25rem !important; }
  
  /* Compact spacing utilities */
  .mt-4{ margin-top: 0.875rem !important; }
  .mt-6{ margin-top: 1.25rem !important; }
  .mt-8{ margin-top: 1.5rem !important; }
  .mb-4{ margin-bottom: 0.875rem !important; }
  .py-12{ padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-8{ padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
}

@media (max-width: 768px){
  /* Testimonials */
  .testimonial-premium{ padding: 1.5rem; }
  .testimonial-text-premium{ font-size: 1rem; }
  .testimonial-author-premium{ flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .testimonial-rating{ margin-left: 0; }
  
  /* Modal improvements */
  .modal-header{ padding: 1.5rem 1.5rem 1rem; }
  .modal-form{ padding: 1rem 1.5rem 1.5rem; gap: 1rem; }
  .modal-actions{ flex-direction: column-reverse; gap: 0.75rem; }
  .modal-actions button{ width: 100%; justify-content: center; }
  .modal-container{ margin: 1rem; max-width: calc(100vw - 2rem); }
  
  /* Grid improvements */
  .mobile-grid-1{ grid-template-columns: 1fr; }
  .mobile-gap-4{ gap: 1rem; }
  
  /* Spacing improvements */
  .mobile-px-4{ padding-left: 1rem; padding-right: 1rem; }
  .mobile-py-8{ padding-top: 2rem; padding-bottom: 2rem; }
  .mobile-mt-6{ margin-top: 1.5rem; }
  .mobile-mb-6{ margin-bottom: 1.5rem; }
  
  /* Text improvements */
  .mobile-text-center{ text-align: center; }
  .mobile-text-sm{ font-size: 0.875rem; }
}
