/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary: #1a7bba;
  --primary-dark: #0d4c73;
  --primary-light: #e8f4fc;
  --primary-gradient: linear-gradient(135deg, #1a7bba 0%, #0d4c73 100%);

  /* Accent */
  --accent: #c5a55a;
  --accent-light: #f5ecd4;

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-footer: #0b2a3d;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #ffffff;
  --border: #e2e8f0;

  /* Semantic */
  --success: #22c55e;
  --whatsapp: #25d366;
  --star: #f59e0b;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Borders & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;

  /* Layout */
  --max-w: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-pad {
  padding: var(--space-4xl) 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--text-on-dark);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.lang-flag {
  display: none;
  width: 24px;
  height: auto;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-cart::after {
  content: '🛒';
  font-size: 1.1em;
  transition: transform var(--duration) var(--ease);
}

.btn-cart:hover::after {
  transform: scale(1.1) rotate(-5deg);
}

.btn-customer-care::after {
  content: '🎧';
  font-size: 1.1em;
  transition: transform var(--duration) var(--ease);
}

.btn-customer-care:hover::after {
  transform: scale(1.2) rotate(-10deg);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(26, 123, 186, 0.3);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(26, 123, 186, 0);
  }
}

@keyframes count-up {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: 900;
}

.logo small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown>a::before {
  content: '';
  display: none;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform var(--duration) var(--ease);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-menu a::after {
  display: none;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-flag {
  display: block;
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--duration) var(--ease);
  z-index: 100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--text);
  transition: background var(--duration) var(--ease);
}

.lang-dropdown button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.lang-dropdown button.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(var(--header-h) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  contain: paint;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 450px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--text-on-dark);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  background: var(--text-on-dark);
  color: var(--primary-dark);
}

.hero-cta .btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--bg);
  padding: var(--space-4xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 28px;
  transition: all var(--duration) var(--ease);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-alt);
  padding: var(--space-4xl) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-content .section-title {
  font-size: var(--text-3xl);
}

.about-content p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.stat-box {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--bg);
  padding: var(--space-4xl) 0;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-lg);
  color: var(--star);
  font-size: var(--text-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
}

.author-info h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.author-info p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
  background: var(--primary-gradient);
  padding: var(--space-4xl) 0;
  position: relative;
}

.video-section .section-title {
  color: var(--text-on-dark);
}

.video-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.video-wrapper {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg-alt);
  padding: var(--space-4xl) 0;
}

.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner .section-title {
  margin-bottom: var(--space-md);
}

.cta-inner .section-subtitle {
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-4xl);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-link {
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}


.footer-phones {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.phone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.phone-icon.tel {
  background: var(--primary);
  color: white;
}

.phone-icon.wa {
  background: var(--whatsapp);
  color: white;
}

.phone-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.phone-number {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.footer-col h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
}

.footer-col p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--duration) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-hours p {
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-address {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-address a {
  color: var(--primary);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image img {
    max-width: 380px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --header-h: 64px;
  }

  /* Optimize Header for Mobile */
  .header-inner {
    padding: 0 var(--space-md);
  }

  .logo {
    font-size: 1.5rem;
    gap: var(--space-xs);
  }

  .nav {
    gap: 0;
  }

  .lang-globe {
    display: none;
  }

  .lang-flag {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    vertical-align: middle;
  }

  .nav-actions {
    gap: var(--space-xs);
  }



  .lang-btn-text,
  .lang-btn .dropdown-arrow {
    display: none;
  }

  .lang-btn {
    padding: var(--space-sm);
    width: 44px;
    height: 44px;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile Menu Container */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    /* Slightly less than 100% for drawer feel */
    height: 100vh;
    background: #fff;
    padding: calc(var(--header-h) + var(--space-xl)) var(--space-xl) var(--space-2xl);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes drawerSlideIn {
    from {
      transform: translateX(-100%);
    }

    to {
      transform: translateX(0);
    }
  }

  /* Overlay Backdrop */
  body.mobile-nav-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  .nav-links.mobile-open a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: left;
  }

  .nav-links.mobile-open a::before {
    content: '';
    width: 8px;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
  }

  .nav-links.mobile-open a:hover::before,
  .nav-links.mobile-open a:active::before {
    width: 20px;
  }

  /* Rapid Exit/Entry */
  .nav-links.mobile-open {
    animation: slideInDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-links.mobile-open .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-sm);
    background: transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }

  .nav-links.mobile-open .nav-dropdown .dropdown-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: none;
    padding: var(--space-sm) 0;
    text-transform: none;
    letter-spacing: normal;
    justify-content: flex-start;
  }

  .nav-links.mobile-open .nav-dropdown .dropdown-menu a::before {
    content: '→';
    font-size: 0.8rem;
    color: var(--primary);
    margin-right: var(--space-sm);
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--space-xl));
    padding-bottom: var(--space-2xl);
    min-height: auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 280px;
  }

  .hero-text[style*="text-align: left"] {
    text-align: center !important;
  }

  .hero-text[style*="text-align: left"]>div[style*="align-items: flex-start"] {
    align-items: center !important;
  }

  .hero-text[style*="text-align: left"]>div>div[style*="align-items: center"] {
    justify-content: center !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .footer-phones {
    flex-direction: column;
  }

  .section-pad {
    padding: var(--space-2xl) 0;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  /* Specificity Fix: Ensure these overrides general .btn styles above */
  .btn-customer-care {
    padding: 0 !important;
    font-size: 0 !important;
    width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
  }

  .btn-customer-care::after {
    margin: 0 !important;
    font-size: 1.5rem !important;
    color: var(--text-on-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-links {
  direction: rtl;
}

[dir="rtl"] .hero-text {
  text-align: right;
}

[dir="rtl"] .hero-cta {
  justify-content: flex-start;
}

[dir="rtl"] .feature-card::before {
  transform-origin: right;
}

[dir="rtl"] .footer-col ul li a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .btn-arrow::after {
  content: '←';
}

[dir="rtl"] .btn-arrow:hover::after {
  transform: translateX(-4px);
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
}

@media (max-width: 768px) {
  [dir="rtl"] .hero-text {
    text-align: center;
  }

  [dir="rtl"] .hero-cta {
    justify-content: center;
  }
}

/* ============================================
   Prefers Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}