/* =============================================
   GLOBAL STYLES
   ============================================= */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --secondary: #0F172A;
  --accent: #F59E0B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
  --container: 1200px;
  --lang-bar-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

body.lang-ar { direction: rtl; }

/* =============================================
   LANGUAGE BAR
   ============================================= */
.lang-bar {
  background: var(--secondary);
  color: #fff;
  height: var(--lang-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: 13px;
  gap: 16px;
}
.lang-bar .lang-links { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-bar a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-bar a:hover, .lang-bar a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.lang-bar .lang-hint { color: rgba(255,255,255,0.5); font-size: 12px; white-space: nowrap; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 0 24px;
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  padding: 80px 24px;
  text-align: center;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid #BFDBFE;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(37 99 235 / 0.4);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary-light);
}
.btn-outline:hover { background: var(--primary-light); }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}
.hero-stat .label { font-size: 13px; color: var(--text-muted); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-dark .section-title { color: #fff; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.section-dark .section-sub { color: rgba(255,255,255,0.65); }

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}
.product-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-tag {
  font-size: 11px;
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* =============================================
   FEATURES
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   WHY US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.why-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--secondary); }
.why-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   FORM SECTION
   ============================================= */
.form-section {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 20px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show { display: block; }
.form-success .icon { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-band p { font-size: 17px; opacity: 0.85; max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn { background: #fff; color: var(--primary); font-weight: 700; }
.cta-band .btn:hover { background: var(--primary-light); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--secondary); color: #fff; padding: 60px 24px 24px; }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }

/* =============================================
   WHATSAPP BUTTON
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
body.lang-ar .wa-float { right: auto; left: 24px; }
.wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 30px;
  transition: var(--transition);
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.wa-tooltip {
  background: #fff;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   POPUP MODAL
   ============================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
body.lang-ar .popup-close { right: auto; left: 16px; }
.popup-close:hover { background: var(--border); }
.popup-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--secondary); }
.popup-box > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* =============================================
   LANGUAGE DETECTION BANNER
   ============================================= */
.lang-detect-banner {
  display: none;
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.lang-detect-banner.show { display: flex; }
.lang-detect-banner .text { flex: 1; color: var(--secondary); }
.lang-detect-banner .actions { display: flex; gap: 8px; flex-shrink: 0; }
.lang-detect-banner .btn-sm {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.lang-detect-banner .btn-yes { background: var(--primary); color: #fff; }
.lang-detect-banner .btn-no { background: #fff; color: var(--text-muted); border: 1px solid var(--border); }

/* =============================================
   PRODUCT DETAIL MODAL
   ============================================= */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.product-modal-overlay.show { display: flex; }
.product-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  animation: slideUp 0.3s ease;
}
.product-modal-img {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-content { padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 1;
  transition: var(--transition);
}
body.lang-ar .product-modal-close { right: auto; left: 16px; }
.product-modal-content h2 { font-size: 22px; font-weight: 800; color: var(--secondary); }
.product-modal-content .specs { display: flex; flex-direction: column; gap: 10px; }
.spec-item { display: flex; gap: 10px; font-size: 14px; }
.spec-item .key { font-weight: 600; color: var(--text-muted); min-width: 100px; }
.spec-item .val { color: var(--secondary); }
.product-modal-content .mini-form { margin-top: 8px; }
.mini-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini-form-grid .full { grid-column: 1 / -1; }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.trust-bar-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.trust-icon { font-size: 20px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.testimonial-card .stars { color: var(--accent); font-size: 16px; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.testimonial-card .author-name { font-size: 13px; font-weight: 700; color: var(--secondary); }
.testimonial-card .author-role { font-size: 12px; color: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .navbar-inner { height: 60px; }
  .nav-links { display: none; }
  .hero { padding: 48px 16px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 16px; }
  .form-section { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-modal { grid-template-columns: 1fr; max-height: none; }
  .product-modal-img { aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .popup-box { padding: 24px; }
  .wa-float { bottom: 16px; right: 16px; }
  body.lang-ar .wa-float { right: auto; left: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* =============================================
   LANGUAGE PICKER (fixed top-right dropdown)
   ============================================= */
.lang-picker {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 2000;
  font-size: 14px;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}
.lang-current:hover { background: var(--primary); border-color: var(--primary); }
.lang-current .lang-flag { font-size: 16px; }
.lang-current .lang-caret { font-size: 10px; opacity: 0.7; margin-left: 1px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.lang-picker.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { margin: 0; }
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}
.lang-menu li a:hover { background: var(--bg-alt); }
.lang-menu li a.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

/* Keep navbar content clear of the fixed top-right picker (LTR) */
.navbar-inner { padding-right: 150px; }
/* RTL: logo sits at the right (start) — clear it on the left side instead */
body.lang-ar .navbar-inner { padding-right: 0; padding-left: 150px; }

@media (max-width: 768px) {
  .navbar-inner { padding-right: 0; }
  body.lang-ar .navbar-inner { padding-left: 140px; }
  .lang-current { padding: 7px 12px; font-size: 13px; }
}

/* Defensive: cap button width and prevent flex stretch on small screens */
.lang-current { width: auto; max-width: 220px; white-space: nowrap; }

/* =============================================
   HERO CAROUSEL
   ============================================= */
.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--secondary);
  padding: 0;
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.45) 55%, rgba(15,23,42,0.25) 100%);
}
.hero-carousel .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-carousel .hero-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.hero-carousel .hero h1,
.hero-carousel h1 { color: #fff; }
.hero-carousel h1 span { color: var(--accent); }
.hero-carousel .hero-sub { color: rgba(255,255,255,0.92); }
.hero-carousel .hero-stat .num { color: #fff; }
.hero-carousel .hero-stat .label { color: rgba(255,255,255,0.8); }

/* arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: #fff; width: 32px; border-radius: 6px; }

@media (max-width: 768px) {
  .hero-carousel { height: 520px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 22px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}

/* =============================================
   ABOUT / SECONDARY PAGE
   ============================================= */
.page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.3) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px;
  width: 100%;
}
.page-hero .hero-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 18px;
  max-width: 640px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
}

/* story image+text */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.story-img img { width: 100%; display: block; }
.story-text h2 { font-size: clamp(26px, 3vw, 38px); color: var(--secondary); margin-bottom: 18px; }
.story-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.story-text ul { list-style: none; padding: 0; margin-top: 8px; }
.story-text li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text); line-height: 1.6; }
.story-text li::before { content: "\2714"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* gallery image+text */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-card .gallery-body { padding: 18px 20px; }
.gallery-card h4 { color: var(--secondary); margin-bottom: 6px; font-size: 17px; }
.gallery-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* timeline */
.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-year { font-weight: 800; color: var(--primary); font-size: 19px; }
.tl-item h4 { color: var(--secondary); margin: 4px 0 6px; font-size: 17px; }
.tl-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 768px) {
  .story { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 340px; }
  .page-hero-inner { padding: 60px 20px; }
}
