/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
  --primary: #1456ff;
  --primary-dark: #0d41c4;
  --primary-light: rgba(20, 86, 255, 0.08);
  --text: #152033;
  --muted: #6f7c91;
  --soft: #f4f7fc;
  --white: #ffffff;
  --border: rgba(20, 86, 255, 0.1);
  --shadow: 0 20px 60px rgba(19, 42, 90, 0.12);
  --shadow-sm: 0 8px 24px rgba(19, 42, 90, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow-x: hidden;
}

body.lang-en { font-family: 'Inter', 'Cairo', sans-serif; }

a { text-decoration: none; }
img { max-width: 100%; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.section-padding {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.bg-soft { background: var(--soft); }


/* ============================================
   BACKGROUND BLURS
   ============================================ */
.bg-blur {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.bg-blur-1 { top: -100px; inset-inline-start: -120px; background: #7db1ff; }
.bg-blur-2 { bottom: -120px; inset-inline-end: -80px; background: #90c7ff; }


/* ============================================
   NAVBAR
   ============================================ */
.custom-navbar {
  padding: 14px 0;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.custom-navbar.scrolled {
  box-shadow: 0 12px 40px rgba(19, 42, 90, 0.08);
  border-bottom-color: rgba(20, 86, 255, 0.08);
}

.nav-flex {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.navbar-brand {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.navbar-brand > div {
  min-width: 0;
}

.brand-title,
.brand-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  margin-inline-start: auto;
  align-items: center;
  gap: 8px;
}

.nav-mobile-controls {
  margin-inline-start: auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(20, 86, 255, 0.25);
  flex-shrink: 0;
}
.brand-mark-sm {
  width: 32px; height: 32px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(20, 86, 255, 0.2);
}

.brand-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-icon {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-inline-end: 0.35rem;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  padding: 0.65rem 0.9rem !important;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0.9rem;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 1.8rem);
}
.navbar-nav .nav-link:hover { background: var(--primary-light); color: var(--primary); }
.navbar-nav .nav-link.active { color: var(--primary); }

.btn-lang {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.btn-lang:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }


/* ── Custom hamburger ── */
.navbar-toggler-custom {
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  border-radius: 12px;
  transition: background 0.2s;
}
.navbar-toggler-custom:hover { background: var(--primary-light); }

.toggler-bar {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.navbar-toggler-custom.active .toggler-bar:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.navbar-toggler-custom.active .toggler-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler-custom.active .toggler-bar:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }


/* ── Mobile Menu Overlay ── */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 20, 50, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9997;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }


/* ── Mobile Menu Drawer ── */
.mobile-menu-drawer {
  position: fixed;
  top: 0; right: -105%;
  width: min(380px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 9998;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(10, 20, 50, 0.18);
  transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mobile-menu-drawer.active { right: 0; }

[dir="ltr"] .mobile-menu-drawer {
  right: auto; left: -105%;
  box-shadow: 24px 0 60px rgba(10, 20, 50, 0.18);
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="ltr"] .mobile-menu-drawer.active { left: 0; }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(20, 86, 255, 0.07);
}

.mobile-menu-close {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--soft); border: none;
  border-radius: 12px; cursor: pointer;
  font-size: 1rem; color: var(--text);
  transition: all 0.2s;
}
.mobile-menu-close:hover { background: rgba(20,86,255,0.1); color: var(--primary); }

.mobile-menu-nav {
  flex: 1; overflow-y: auto;
  padding: 1.25rem 1rem;
}

.mobile-nav-link {
  display: flex; align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  color: var(--text);
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 0.4rem;
}
.mobile-nav-link i {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--primary-light);
  border-radius: 12px; color: var(--primary);
  font-size: 1rem; flex-shrink: 0;
  transition: all 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(20, 86, 255, 0.06); color: var(--primary);
}
.mobile-nav-link:hover i,
.mobile-nav-link.active i { background: var(--primary); color: white; }

.mobile-menu-footer {
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20, 86, 255, 0.07);
  background: var(--soft);
}


/* ============================================
   HERO
   ============================================ */
.hero-section {
  position: relative;
  padding-top: 90px;
}

.hero-badge,
.section-tag {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700; font-size: 0.9rem;
  border: 1px solid rgba(20,86,255,0.12);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 1.25rem 0 1rem;
  letter-spacing: -0.02em;
}

.hero-text {
  color: var(--muted);
  line-height: 1.9; font-size: 1rem;
}

.btn-glow { box-shadow: 0 16px 35px rgba(20, 86, 255, 0.28); }

/* mini-cards */
.mini-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  padding: 1.1rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.mini-card-icon {
  display: block;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.mini-card strong {
  display: block; font-weight: 700;
  margin-bottom: 0.3rem; font-size: 0.92rem;
}
.mini-card span { color: var(--muted); font-size: 0.83rem; line-height: 1.5; }


/* ── Hero visual ── */
.hero-visual {
  position: relative; min-height: 620px;
}

.hero-panel {
  height: 100%; min-height: 560px;
  border-radius: 36px; padding: 1.25rem; overflow: hidden;
}

.hero-photo-panel { padding: 0; }

.hero-photo {
  width: 100%; height: 560px;
  object-fit: cover; display: block;
}

.hero-photo-overlay {
  position: absolute;
  inset-inline: 18px; bottom: 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.85rem;
}

.hero-chip {
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.92);
  border-radius: 18px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(19,42,90,0.1);
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.88rem; backdrop-filter: blur(8px);
}
.hero-chip i { color: var(--primary); }

/* floating cards */
.glass-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(19,42,90,0.12);
  max-width: 280px; z-index: 2;
  text-decoration: none; color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}
.floating-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(19,42,90,0.16); }

.floating-card > i {
  font-size: 1.5rem; width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--primary-light); color: var(--primary);
  flex-shrink: 0;
}

.floating-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.floating-card-top    { top: 40px; inset-inline-start: -18px; }
.floating-card-bottom { bottom: 50px; inset-inline-end: -18px; }

/* WhatsApp floating card extras */
.floating-card-wa > i { background: rgba(37,211,102,0.1); color: #25D366; }
.floating-card-wa { position: absolute; }

/* Pulsing ring on WA card */
.wa-ping {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 10px; height: 10px;
  background: #25D366; border-radius: 50%;
}
.wa-ping::before {
  content: '';
  position: absolute; inset: -4px;
  background: rgba(37,211,102,0.35); border-radius: 50%;
  animation: waPulse 1.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}


/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading { max-width: 760px; }
.section-heading h2,
.cta-headline {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800; margin: 1rem 0;
}
.section-heading p { color: var(--muted); line-height: 1.9; }


/* ============================================
   ABOUT
   ============================================ */
.about-point, .contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.2rem; align-items: flex-start;
}
.about-point > i, .contact-item > i, .map-icon {
  width: 52px; min-width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--primary-light); border-radius: 16px;
  font-size: 1.2rem; color: var(--primary); flex-shrink: 0;
}
.about-point h6 { font-weight: 700; margin-bottom: 0.3rem; }
.about-point p, .contact-item p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.7; }

.about-card { padding: 1rem; }

/* stat boxes */
.stat-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 1.5rem; text-align: center; height: 100%;
  transition: transform 0.35s, box-shadow 0.35s;
}
.stat-box:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.stat-icon {
  display: block; font-size: 1.4rem;
  color: var(--primary); margin-bottom: 0.6rem; opacity: 0.7;
}
.stat-number {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800; color: var(--primary); margin-bottom: 0.4rem;
}


/* ============================================
   PRODUCTS
   ============================================ */
.product-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-photo { width: 100%; height: 210px; object-fit: cover; display: block; }
.product-body { padding: 1.25rem; }
.product-body p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.product-body h5 { font-weight: 800; margin-bottom: 0.5rem; }

.icon-wrap {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--primary-light); border-radius: 20px;
  font-size: 1.35rem; color: var(--primary); margin-bottom: 1rem;
}


/* ============================================
   GALLERY
   ============================================ */
.gallery-section { background: var(--soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

/* Large item: 2 cols × 2 rows */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
/* Wide item: 2 cols */
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item {
  position: relative;
  border-radius: 20px; overflow: hidden; cursor: pointer;
  background: #e8ecf2;
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 20, 50, 0.78));
  display: flex; align-items: flex-end; padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img              { transform: scale(1.07); }

.gallery-overlay-inner {
  display: flex; align-items: center; gap: 0.75rem; color: white;
}
.gallery-overlay-inner i {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: 10px; font-size: 1rem;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.gallery-overlay-inner span { font-weight: 700; font-size: 0.9rem; }

.gallery-hint {
  color: var(--muted); font-size: 0.88rem;
}

/* ── Gallery Lightbox ── */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.gallery-lightbox.active { opacity: 1; visibility: visible; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 10, 30, 0.96);
  backdrop-filter: blur(12px);
}

.lb-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; max-width: 92vw;
}

.lb-image {
  max-width: 100%; max-height: 80vh;
  border-radius: 16px; object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transition: opacity 0.2s ease;
  display: block;
}

.lb-close {
  position: fixed; top: 20px; right: 20px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; color: white; font-size: 1.1rem;
  cursor: pointer; z-index: 2;
  transition: all 0.25s;
}
.lb-close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }

.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%; color: white; font-size: 1.2rem;
  cursor: pointer; z-index: 2;
  transition: all 0.25s;
}
.lb-nav:hover { background: rgba(255,255,255,0.24); transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem; font-weight: 700;
  text-align: center; margin: 0;
}

.lb-counter {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem; font-weight: 600;
}


/* ============================================
   SERVICES
   ============================================ */
.sticky-box { top: 100px; position: sticky; }

.service-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 1.75rem 1.5rem;
  transition: transform 0.35s, box-shadow 0.35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card h5  { font-weight: 800; margin-bottom: 0.5rem; }
.service-card p   { color: var(--muted); line-height: 1.8; font-size: 0.95rem; margin: 0; }

.service-icon-wrap {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--primary-light); border-radius: 18px;
  font-size: 1.4rem; color: var(--primary);
  margin-bottom: 1.1rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon-wrap {
  background: var(--primary); color: white;
  transform: scale(1.08);
}


/* ============================================
   CTA — REDESIGNED
   ============================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #071540 0%, #0d41c4 45%, #1456ff 75%, #0a6eff 100%);
}

.cta-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.cta-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-ring-1 {
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-ring-2 {
  width: 1000px; height: 1000px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-blob {
  position: absolute; border-radius: 999px;
  filter: blur(80px); pointer-events: none;
}
.cta-blob-1 {
  width: 500px; height: 500px;
  top: -150px; right: -80px;
  background: rgba(255,255,255,0.06);
}
.cta-blob-2 {
  width: 400px; height: 400px;
  bottom: -120px; left: -60px;
  background: rgba(0, 200, 255, 0.08);
}

.cta-inner {
  position: relative; z-index: 1;
  padding: 2rem 0;
}

.cta-tag-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255,255,255,0.14) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.cta-headline {
  color: white !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  max-width: 820px; margin: 0 auto 1.1rem;
  line-height: 1.3;
}

.cta-subtitle {
  color: rgba(255,255,255,0.72) !important;
  font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
  line-height: 1.8;
}

.cta-actions { margin-top: 2.5rem; }

.cta-btn-primary {
  background: white; color: var(--primary) !important;
  border: none; padding: 0.95rem 2rem;
  border-radius: 999px; font-weight: 800; font-size: 0.98rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.cta-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
  background: #f0f4ff; color: var(--primary-dark) !important;
}

.cta-btn-secondary {
  background: transparent; color: white !important;
  border: 2px solid rgba(255,255,255,0.38);
  padding: 0.95rem 2rem;
  border-radius: 999px; font-weight: 800; font-size: 0.98rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
  transition: all 0.3s ease;
}
.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-4px);
}

.cta-btn-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 1.05rem;
  flex-shrink: 0;
}
.cta-btn-primary   .cta-btn-icon { background: rgba(20,86,255,0.1); }
.cta-btn-secondary .cta-btn-icon { background: rgba(255,255,255,0.14); }

/* CTA trust chips */
.cta-chips { margin-top: 2rem; }
.cta-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.cta-chip i { color: rgba(255,255,255,0.9); }


/* ============================================
   CONTACT
   ============================================ */
.contact-panel, .map-placeholder {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 2rem;
}

.contact-item { margin-bottom: 1.1rem; }
.contact-item span { display: block; font-weight: 700; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
.contact-item a {
  display: block; color: var(--text); font-weight: 700;
  font-size: 1rem; transition: color 0.2s;
}
.contact-item a:hover { color: var(--primary); }

.map-placeholder {
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; align-items: center; padding: 0;
}

.map-frame { width: 100%; height: 320px; border: 0; display: block; }

.map-copy {
  border-top: 1px solid rgba(20, 86, 255, 0.08);
  padding: 1.5rem;
}

.map-icon {
  width: 72px; height: 72px; border-radius: 22px;
  font-size: 1.6rem; margin-bottom: 0.85rem;
}
.map-copy h5   { font-weight: 800; margin-bottom: 0.4rem; }
.map-copy p    { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }


/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(20, 86, 255, 0.08);
  background: white;
  /* Extra space on mobile for bottom bar */
}

.footer-links a {
  color: var(--text); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }


/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(20,86,255,0.08);
  display: flex; align-items: flex-end;
  z-index: 990;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(19,42,90,0.1);
}

.bottom-bar-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.62rem; font-weight: 700;
  gap: 3px;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.bottom-bar-item i { font-size: 1.35rem; transition: transform 0.2s; }
.bottom-bar-item:hover,
.bottom-bar-item.active { color: var(--primary); }
.bottom-bar-item.active i { transform: scale(1.12); }

.bottom-bar-wa {
  position: relative;
  flex: 1.1;
  padding-bottom: 2px;
}
.bottom-bar-wa-bubble {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  margin-top: -24px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid white;
}
.bottom-bar-wa:hover .bottom-bar-wa-bubble {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(37,211,102,0.5);
}
.bottom-bar-wa span { color: var(--muted); font-size: 0.62rem; font-weight: 700; }


/* ============================================
   RESPONSIVE
   ============================================ */

/* LTR overrides */
[dir="ltr"] .floating-card-top    { left: -18px; right: auto; }
[dir="ltr"] .floating-card-bottom { right: -18px; left: auto; }

@media (max-width: 1199px) {
  .hero-visual { min-height: 540px; }
  .hero-panel  { min-height: 500px; }
}

@media (max-width: 991px) {
  .section-padding { padding: 80px 0; }
  .hero-section    { padding-top: 74px; }
  .hero-visual, .hero-panel { min-height: auto; }
  .hero-panel { min-height: 420px; }
  .floating-card { position: static; max-width: 100%; margin-top: 1rem; }
  .sticky-box    { position: static; }
  /* Make room for bottom bar */
  body { padding-bottom: 80px; }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-item:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 767px) {
  .custom-navbar {
    padding: 10px 0;
  }

  .navbar-brand {
    gap: 10px !important;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .custom-navbar .brand-subtitle {
    display: none !important;
  }

  .btn-lang {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }

  .navbar-toggler-custom {
    width: 38px;
    height: 38px;
  }

  .toggler-bar {
    width: 20px;
  }

  .hero-title { font-size: 2.2rem; }
  .section-heading h2 { font-size: 1.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-photo { height: 320px; }
  .hero-photo-overlay {
    grid-template-columns: 1fr;
    inset-inline: 14px; bottom: 14px;
  }
  .product-photo { height: 190px; }
  .map-frame { height: 260px; }
  .contact-panel, .map-copy, .product-body { padding: 1.4rem; }

  /* Gallery: 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(4) { grid-column: span 2; }

  /* CTA */
  .cta-btn-primary,
  .cta-btn-secondary { width: 100%; justify-content: center; }
  .cta-section { padding: 80px 0; }
}

@media (max-width: 575px) {
  .cta-chips .cta-chip:nth-child(n+3) { display: none; }
}