/* ============================================
   CLAIRA ARABIA — Design System
   Palette: Midnight Navy, Arabian Gold, Electric Blue, Off-White
   ============================================ */

:root {
  --navy: #0A0F1E;
  --navy-mid: #111827;
  --navy-light: #1E2A3D;
  --gold: #C9A84C;
  --gold-light: #E0C06A;
  --gold-dim: rgba(201,168,76,0.15);
  --blue: #3B82F6;
  --blue-dim: rgba(59,130,246,0.12);
  --white: #F5F0E8;
  --white-dim: rgba(245,240,232,0.6);
  --white-faint: rgba(245,240,232,0.08);
  --text: #E8E2D8;
  --text-muted: rgba(232,226,216,0.55);
  --border: rgba(201,168,76,0.18);
  --radius: 12px;
  --radius-sm: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.lang-ar {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  font-weight: 700;
}
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

em { font-style: italic; color: var(--gold); }

/* ---- Containers ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container-half { max-width: 590px; }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: fixed;
  top: 1.4rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10,15,30,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
}
body.lang-ar .lang-switcher { right: auto; left: 2rem; }
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--gold); }
.lang-divider { color: var(--border); font-size: 0.75rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: background 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-right: 6rem;
}
body.lang-ar .nav-links { margin-right: 0; margin-left: 6rem; }
.nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.cta-nav {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: background 0.2s !important;
}
.cta-nav:hover { background: var(--gold) !important; color: var(--navy) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}
#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.arabesque-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 30% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.line-ar { display: none; }
body.lang-ar .line-en { display: none; }
body.lang-ar .line-ar { display: inline; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--white-dim);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(245,240,232,0.3);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: var(--white-faint); }
.btn-full { width: 100%; text-align: center; font-family: inherit; font-size: 1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 6rem 0;
  background: var(--navy-mid);
}
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-header h2 { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }
.service-card--featured {
  grid-column: span 1;
  border-color: rgba(201,168,76,0.35);
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, var(--white-faint) 100%);
}
.service-card--featured::before { opacity: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.service-icon { margin-bottom: 1.2rem; }
.service-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.service-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--gold-dim);
  border-radius: 50px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.about-visual {
  background: var(--navy-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}
.geo-shape {
  position: absolute;
  width: 380px; height: 380px;
  border: 1px solid rgba(201,168,76,0.2);
  transform: rotate(15deg);
  border-radius: 12px;
}
.geo-shape::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  transform: rotate(-8deg);
}
.geo-shape::after {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  transform: rotate(4deg);
}
.years-badge {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 160px; height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(201,168,76,0.15);
}
.years-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.years-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.about-content {
  padding: 5rem 4rem;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content h2 { color: var(--white); margin-bottom: 1.5rem; }
.about-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-dim);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 50px;
}
.pillar-icon { color: var(--gold); font-size: 0.5rem; }

/* ============================================
   EXPERTISE
   ============================================ */
.expertise {
  padding: 6rem 0;
  background: var(--navy-mid);
  overflow: hidden;
}
.expertise .section-header { margin-bottom: 2.5rem; }
.expertise h2 { color: var(--white); }

.marquee-track {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 4rem;
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-inner span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.marquee-inner span:hover { color: var(--gold); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.region-card {
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  transition: border-color 0.3s;
}
.region-card:hover { border-color: rgba(201,168,76,0.4); }
.region-flag { font-size: 2.5rem; margin-bottom: 1rem; }
.region-card h3 { color: var(--white); margin-bottom: 0.8rem; }
.region-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   QUOTE
   ============================================ */
.quote-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 1.2rem;
}
body.lang-ar blockquote p { font-family: 'Cairo', sans-serif; }
blockquote cite {
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 6rem 0;
  background: var(--navy);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-copy .section-eyebrow { margin-bottom: 0.8rem; }
.contact-copy h2 { color: var(--white); margin-bottom: 1.2rem; }
.contact-copy p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.8; }
.contact-markets {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(232,226,216,0.25); }
.form-group select option { background: var(--navy-mid); color: var(--white); }
.form-msg {
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.2em;
}
.form-msg.success { color: #4ade80; }
.form-msg.error { color: #f87171; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; }
  .about-content { padding: 3.5rem 2.5rem; max-width: 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; background: var(--navy-mid); padding: 6rem 2rem 2rem; gap: 1.5rem; z-index: 998; border-bottom: 1px solid var(--border); }
  body.lang-ar .nav-links { margin-left: 0; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.2rem; }
  .stat-divider { width: 60px; height: 1px; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .lang-switcher { top: auto; bottom: 1.5rem; right: 1rem; }
  body.lang-ar .lang-switcher { left: 1rem; right: auto; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* RTL adjustments */
body.lang-ar .nav { direction: rtl; }
body.lang-ar .about-content { padding: 5rem 4rem; }
body.lang-ar .hero-eyebrow { flex-direction: row-reverse; }
