/* ============================================================
   OPTRIST CO — APPLE-INSPIRED LUXURY INDUSTRIAL THEME
   Crisp White + Precision Green Accent
   Backgrounds: #ffffff, #fbfbfd, #f8fafc
   Brand Green: #10b981 (Primary), #059669 (Deep), #047857 (Forest)
   Text: #0f172a (Headings), #334155 (Body), #64748b (Muted)
   Borders: #e2e8f0, #edf2f7
   ============================================================ */

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

:root {
  --primary-green: #10b981;
  --primary-hover: #059669;
  --dark-green: #047857;
  --deep-forest: #064e3b;
  --light-green: #ecfdf5;
  --light-green-border: #a7f3d0;
  
  --bg-white: #ffffff;
  --bg-offwhite: #fbfbfd;
  --bg-slate: #f8fafc;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-hairline: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 35px -8px rgba(16, 185, 129, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-apple: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

html[lang="ar"], html[lang="ar"] body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition-apple);
}

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

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

ul {
  list-style: none;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.apple-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.1;
}

.apple-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 720px;
  margin: 1.2rem auto 0;
  line-height: 1.6;
}

.text-gradient {
  background: linear-gradient(135deg, var(--deep-forest) 0%, var(--primary-green) 50%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-green);
  color: var(--dark-green);
  border: 1px solid var(--light-green-border);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.section-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-green);
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

/* ── CONTAINER ── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.bg-offwhite-section {
  background-color: var(--bg-offwhite);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.bg-slate-section {
  background-color: var(--bg-slate);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

/* ── NAVBAR (Apple Frosted Glass) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-apple);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.nav-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-brand span {
  color: var(--text-main);
}
.nav-brand span em {
  color: var(--primary-green);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--transition-apple);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-green);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  direction: ltr;
  gap: 0.4rem;
  background: var(--bg-slate);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
}

.lang-switch a {
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity var(--transition-apple), transform var(--transition-apple);
  padding: 0.1rem 0.2rem;
  display: inline-block;
}

.lang-switch a:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lang-switch a.active-lang {
  opacity: 1;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-apple);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

html[dir="rtl"] .mobile-nav .close-btn {
  right: auto;
  left: 1.5rem;
}

.mobile-nav a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-apple);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-green);
}


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-apple);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-offwhite);
  border-color: var(--border-hover);
  color: var(--primary-green);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.86rem;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── HERO SECTION (Apple White Clean Showcase) ── */
.hero {
  padding-top: 130px;
  padding-bottom: 5rem;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 1) 70%);
  text-align: center;
}

.hero-showcase {
  margin-top: 3.5rem;
  position: relative;
}

.hero-engine-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  padding: 3rem 2rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-apple);
}

.hero-engine-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.hero-engine-card img {
  max-height: 380px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08));
}

.engine-caption {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.engine-caption .specs-badge {
  background: var(--light-green);
  color: var(--dark-green);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

/* ── STATS BAR ── */
.stats-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box {
  padding: 1rem;
}

.stat-number {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-number em {
  font-style: normal;
  color: var(--primary-green);
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── CARDS (Apple Minimal White Cards) ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.apple-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-apple);
  position: relative;
  display: flex;
  flex-direction: column;
}

.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--light-green-border);
}

.card-icon-pill {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.card-icon-pill svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.apple-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.apple-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── PRODUCT CATALOG GRID (Real Photos, Clean White Backgrounds) ── */
.product-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-apple);
  display: flex;
  flex-direction: column;
}

.product-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--light-green-border);
}

.product-img-wrap {
  background: #fbfbfd;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

.product-img-wrap img {
  max-height: 190px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-apple);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.06));
}

.product-item-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.part-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-green);
}

html[lang="ar"] .part-tag {
  left: auto;
  right: 14px;
}

.product-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.product-body .compatibility {
  font-size: 0.82rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.product-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex: 1;
}

.product-footer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── REALISTIC WORLD MAP SECTION ── */
.map-wrap {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  overflow: hidden;
}

.map-inner {
  position: relative;
  width: 100%;
  line-height: 0;
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.world-map-svg .land-mass {
  fill: #e6f4ea;
  stroke: #a7d7b5;
  stroke-width: 0.8;
  transition: fill var(--transition-apple);
}

.world-map-svg .land-mass:hover {
  fill: #d1fae5;
}

.map-pin-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  line-height: normal;
}

.pin-core {
  width: 14px;
  height: 14px;
  background: var(--primary-green);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  position: relative;
}

.pin-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.35);
  animation: pulsePin 2.2s infinite;
}

@keyframes pulsePin {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity var(--transition-apple), transform var(--transition-apple);
  line-height: normal;
}

.map-pin-marker:hover .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Coordinates from Natural Earth conversion */
.marker-egypt   { left: 58.2%; top: 38.4%; }
.marker-dubai   { left: 65.7%; top: 41.6%; }
.marker-germany { left: 52.7%; top: 23.6%; }
.marker-italy   { left: 53.4%; top: 30.0%; }
.marker-india   { left: 72.0%; top: 47.0%; }
.marker-china   { left: 84.8%; top: 35.6%; }

/* ── 3D INTERACTIVE GLOBE STYLES ── */
.globe-3d-wrap {
  position: relative;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.08), 0 0 1px rgba(0,0,0,0.06);
  padding: 1.5rem 1.5rem 2rem;
  overflow: hidden;
  margin-top: 1.5rem;
}

.globe-3d-container {
  width: 100%;
  height: 520px;
  position: relative;
  cursor: grab;
  outline: none;
  touch-action: pan-y;
}

.globe-3d-container:active {
  cursor: grabbing;
}

.globe-3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.globe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.globe-hint-icon {
  display: inline-block;
  animation: rotateHint 2.4s ease-in-out infinite alternate;
}

@keyframes rotateHint {
  from { transform: translateX(-4px) rotate(-10deg); }
  to { transform: translateX(4px) rotate(10deg); }
}

/* Country Selector Tabs (3D Jump Points) */
.globe-country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.2rem;
  z-index: 5;
  position: relative;
}

.globe-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.globe-tab-btn:hover {
  border-color: #10b981;
  color: #065f46;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.2);
}

.globe-tab-btn.is-hq {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 700;
}

.globe-tab-btn .badge-hq {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 3D Globe Interactive Tooltip */
.globe-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  pointer-events: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 260px;
  text-align: center;
}

.globe-tooltip.visible {
  opacity: 1;
}

.globe-tooltip-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #34d399;
  margin-bottom: 0.25rem;
}

.globe-tooltip-desc {
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .globe-3d-container {
    height: 380px;
  }
  .globe-tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

/* ── COUNTRY/MARKET CARDS (like export template) ── */
.market-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.market-badge-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-apple);
}

.market-badge-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.market-flag {
  font-size: 2.2rem;
  line-height: 1;
}

.market-info h5 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.market-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── ABOUT PAGE SECTIONS ── */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.timeline-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

/* ── CONTACT FORM & CARDS ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-offwhite);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-apple);
}

.form-control:focus {
  background: var(--bg-white);
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.info-item-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--light-green);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.info-item-card p, .info-item-card a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── FLOATING WHATSAPP BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-apple);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPulse 2s infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-apple);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

html[lang="ar"] .whatsapp-float,
html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 28px;
}

html[lang="ar"] .whatsapp-tooltip,
html[dir="rtl"] .whatsapp-tooltip {
  right: auto;
  left: 72px;
  transform: translateX(-8px);
}

html[lang="ar"] .whatsapp-float:hover .whatsapp-tooltip,
html[dir="rtl"] .whatsapp-float:hover .whatsapp-tooltip {
  transform: translateX(0);
}

/* Contact Form Feedback Banner */
.contact-feedback-box {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.contact-feedback-box h4 {
  color: #065f46;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.contact-feedback-box p {
  color: #047857;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.contact-feedback-box .btn-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legacy Live Chat Widget (Retained for backwards compatibility) */
.chat-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  border: none;
  transition: all var(--transition-apple);
}

.chat-launcher:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.55);
}

.chat-launcher svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.chat-badge-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

html[lang="ar"] .chat-launcher {
  right: auto;
  left: 28px;
}

html[lang="ar"] .chat-badge-pulse {
  right: auto;
  left: 2px;
}

/* Chat Popup Window */
.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 10000;
  width: 370px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2), 0 0 0 1px var(--border-hairline);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-popup.open {
  display: flex;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[lang="ar"] .chat-popup {
  right: auto;
  left: 28px;
}

.chat-header {
  background: linear-gradient(135deg, var(--deep-forest), var(--dark-green));
  color: #ffffff;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-header .agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}

.chat-header h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.chat-header span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-header span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.chat-body {
  padding: 1.4rem;
  background: var(--bg-offwhite);
  max-height: 480px;
  overflow-y: auto;
}

.chat-bubble-greeting {
  background: var(--bg-white);
  border: 1px solid var(--border-hairline);
  border-radius: 14px 14px 14px 4px;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.55;
}

html[lang="ar"] .chat-bubble-greeting {
  border-radius: 14px 14px 4px 14px;
}

.chat-form input, .chat-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-white);
  font-size: 0.88rem;
  font-family: inherit;
  margin-bottom: 0.7rem;
  outline: none;
  transition: border-color var(--transition-apple);
}

.chat-form input:focus, .chat-form textarea:focus {
  border-color: var(--primary-green);
}

.chat-form textarea {
  min-height: 75px;
  resize: none;
}

.chat-form .btn-submit-chat {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-apple);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.chat-form .btn-submit-chat:hover {
  background: var(--primary-hover);
}

/* ── FOOTER (Clean Apple White/Light Grey) ── */
footer {
  background-color: var(--bg-offwhite);
  border-top: 1px solid var(--border-hairline);
  padding: 5rem 0 2.5rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1.2rem 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  transition: color var(--transition-apple);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-hairline);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── RTL OVERRIDES ── */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .hero {
  text-align: center;
}

html[dir="rtl"] .nav-links a.active::after {
  left: 0;
  right: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .about-hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar .nav-links,
  .navbar .lang-switch {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .map-wrap {
    padding: 1.5rem 1rem;
  }
}
