/* ===== Arab Engineers Group - Design System v3 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #0f1b3d;
  --navy-700: #1e3a5f;
  --navy-500: #3b6fa0;
  --navy-50:  #e8edf3;

  --gold:       #C9A84C;
  --gold-hover: #b8923e;
  --gold-muted: rgba(201, 168, 76, 0.12);

  --bg:      #ffffff;
  --bg-alt:  #f5f7fb;
  --surface: #ffffff;
  --text:       #0f1b3d;
  --text-muted: #4b5b7a;
  --border:     #d9e0ec;
  --primary:       var(--navy-700);
  --primary-hover: var(--navy-900);
  --accent: var(--navy-500);

  --shadow-sm: 0 4px 12px -4px rgba(15, 27, 61, 0.08);
  --shadow:    0 10px 30px -15px rgba(15, 27, 61, 0.20);
  --shadow-lg: 0 20px 40px -15px rgba(15, 27, 61, 0.28);

  --font-heading-en: 'Libre Baskerville', Georgia, serif;
  --font-heading-ar: 'Noto Naskh Arabic', 'Libre Baskerville', serif;
  --font-heading: var(--font-heading-en);
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  --radius:    8px;
  --radius-lg: 12px;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg:      #0a1228;
  --bg-alt:  #0f1b3d;
  --surface: #15264a;
  --text:       #e8edf3;
  --text-muted: #a8b6cf;
  --border:     #243b66;
  --primary:       #6b9bd1;
  --primary-hover: #8fb6e0;
  --accent: #3b6fa0;
  --gold:       #d4b05a;
  --gold-hover: #c49a44;
  --gold-muted: rgba(212, 176, 90, 0.12);
  --shadow:    0 10px 30px -15px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.70);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] {
  text-align: right;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-heading-en);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: var(--font-heading-ar);
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SVG Icons */
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-heading-en); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.65rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.5rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: right;
}
[dir="ltr"] .nav-links a::after { transform-origin: left; }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
  height: 38px; min-width: 38px; padding: 0 0.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: transparent;
  border-radius: var(--radius); color: var(--text);
  cursor: pointer; transition: all var(--transition);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--gold); color: var(--gold); }
#langToggle { min-width: 46px; font-family: var(--font-body); }
.menu-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition);
  font-family: inherit; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(30, 58, 95, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(30, 58, 95, 0.45);
}
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 7.5rem 0 6.5rem;
  background:
    linear-gradient(145deg, rgba(10,18,40,0.92) 0%, rgba(30,58,95,0.80) 100%),
    url('images/hero.jpg') center/cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.10), transparent),
    radial-gradient(ellipse at top left, rgba(59,111,160,0.30), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 900px; margin: 0 auto 1.25rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero p { color: rgba(255,255,255,0.85); max-width: 680px; margin: 0 auto 2.5rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 6px 20px -6px rgba(201,168,76,0.5); }
.hero .btn-primary:hover { background: var(--gold-hover); color: var(--navy-900); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .eyebrow { color: var(--gold); }

/* ===== Hero Geometry ===== */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none; z-index: 0;
}
.hero-geometry {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.geo {
  position: absolute;
  fill: none;
  stroke: rgba(201,168,76,0.14);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.geo-compass {
  width: 580px; height: 580px;
  top: -160px; right: -140px;
  animation: geoRotate 90s linear infinite;
}
[dir="rtl"] .geo-compass { right: auto; left: -140px; }
.geo-plan {
  width: 260px; height: 220px;
  bottom: 40px; left: 6%;
  animation: geoFloat 11s ease-in-out infinite;
  stroke: rgba(201,168,76,0.16);
}
[dir="rtl"] .geo-plan { left: auto; right: 6%; }
.geo-square {
  width: 150px; height: 150px;
  top: 22%; left: 18%;
  animation: geoFloat 8s ease-in-out infinite reverse;
  stroke: rgba(255,255,255,0.08);
}
[dir="rtl"] .geo-square { left: auto; right: 18%; }
.geo-triangle {
  width: 140px; height: 140px;
  bottom: 18%; right: 12%;
  animation: geoFloat 13s ease-in-out infinite;
  stroke: rgba(201,168,76,0.10);
}
[dir="rtl"] .geo-triangle { right: auto; left: 12%; }

@keyframes geoRotate { to { transform: rotate(360deg); } }
@keyframes geoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

/* Trust bar */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0; padding-top: 3.5rem;
}
.trust-bar span {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; padding: 0 2rem;
  border-inline-end: 1px solid rgba(255,255,255,0.18);
}
.trust-bar span:last-child { border-inline-end: none; }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 0.85rem;
  position: relative;
}
.section-head .eyebrow::after {
  content: "";
  display: block;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.55rem auto 0;
  border-radius: 2px;
}
[dir="rtl"] .section-head .eyebrow::after {
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* ===== Grid / Cards ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: right;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
[dir="ltr"] .card::after { transform-origin: left; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(201,168,76,0.35); }
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
  display: grid; place-items: center;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}
.card:hover .card-icon { transform: scale(1.08); }
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; }

/* Why Us */
.why-card { text-align: center; padding: 2.5rem 1.5rem; }
.why-card .card-icon { margin: 0 auto 1.25rem; }
[dir="rtl"] .why-card .card-icon { margin: 0 auto 1.25rem; }

/* Process Steps */
.process { position: relative; }
.process::before {
  content: ""; position: absolute;
  top: 27px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.4; z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 0.5rem; }
.step-num {
  width: 56px; height: 56px;
  background: var(--bg);
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-heading-en);
  font-weight: 700; font-size: 1.25rem;
  transition: all var(--transition);
  box-shadow: 0 0 0 0 rgba(201,168,76,0);
}
.step:hover .step-num {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 0 0 6px var(--gold-muted);
}
.section-alt .step-num { background: var(--bg-alt); }
.section-alt .step:hover .step-num { background: var(--gold); }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.9rem; }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow); border-color: var(--gold-muted); transform: translateY(-3px); }
.testimonial::before {
  content: "\201C";
  position: absolute; top: 0.5rem; left: 1.5rem;
  font-family: Georgia, serif; font-size: 5.5rem;
  color: var(--gold); opacity: 0.18; line-height: 1;
}
[dir="rtl"] .testimonial::before {
  content: "\201D";
  left: auto; right: 1.5rem;
}
.testimonial p { font-size: 1.05rem; color: var(--text); font-style: italic; margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--gold));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-heading-en); font-weight: 700;
  flex-shrink: 0;
}
.testimonial-info strong { display: block; color: var(--text); }
.testimonial-info span { font-size: 0.85rem; color: var(--gold); font-weight: 500; }

/* Portfolio */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); font-weight: 600; }

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  cursor: pointer;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,40,0.95) 0%, rgba(10,18,40,0.4) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff;
  opacity: 0; transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; margin: 0 0 0.25rem; font-size: 1.15rem; }
.portfolio-overlay span { color: var(--gold); font-size: 0.85rem; font-weight: 500; }
.portfolio-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--gold); color: var(--navy-900); }

/* Split / About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  text-align: center; padding: 2.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: right;
}
[dir="ltr"] .stat::before { transform-origin: left; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-muted); }
.stat:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-heading-en);
  font-size: 2.6rem; color: var(--gold);
  font-weight: 700; line-height: 1;
}
.stat-num::after { content: "+"; font-size: 1.8rem; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Timeline */
.timeline { position: relative; padding: 1rem 0; }
.timeline::before {
  content: ""; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border);
  transform: translateX(-50%);
}
[dir="rtl"] .timeline::before {
  left: auto; right: 50%;
  transform: translateX(50%);
}
.timeline-item { position: relative; width: 50%; padding: 1rem 2.5rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
[dir="rtl"] .timeline-item:nth-child(odd)  { left: 0; right: 0; text-align: right; }
[dir="rtl"] .timeline-item:nth-child(even) { left: auto; right: 50%; text-align: right; }
.timeline-item::before {
  content: ""; position: absolute; top: 1.5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--gold-muted);
}
.timeline-item:nth-child(odd)::before  { right: -8px; left: auto; }
.timeline-item:nth-child(even)::before { left: -8px; right: auto; }
[dir="rtl"] .timeline-item:nth-child(odd)::before  { right: -8px; left: auto; }
[dir="rtl"] .timeline-item:nth-child(even)::before { right: -8px; left: auto; }
.timeline-year {
  font-family: var(--font-heading-en);
  color: var(--gold); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.25rem;
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}
.timeline-content:hover { border-color: var(--gold-muted); box-shadow: var(--shadow-sm); }

/* Team */
.team-card { text-align: center; padding: 2rem 1.5rem; }
.team-avatar {
  width: 110px; height: 110px; margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--gold));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-heading-en); font-weight: 700; font-size: 2rem;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow), 0 0 0 1px var(--gold-muted);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover .team-avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--gold-muted);
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-role { color: var(--gold); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.75rem; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: rgba(201,168,76,0.3); }
.faq-item.open { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-muted); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600; color: var(--text);
  background: none; border: none; width: 100%;
  font-family: inherit; font-size: 1rem;
  text-align: inherit;
  gap: 1rem;
}
.faq-question::after {
  content: "+"; color: var(--gold); font-size: 1.5rem;
  font-weight: 400; transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-item:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-item .ico {
  width: 44px; height: 44px;
  background: var(--gold-muted);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--transition);
}
.contact-item:hover .ico { background: var(--gold); color: var(--navy-900); }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.contact-item span, .contact-item a { color: var(--text); font-weight: 500; }

.map-embed {
  width: 100%; height: 350px; border: 0; border-radius: var(--radius-lg);
  margin-top: 2rem; box-shadow: var(--shadow);
  filter: grayscale(0.3);
}
[data-theme="dark"] .map-embed { filter: invert(0.9) grayscale(0.5) hue-rotate(180deg); }

/* Forms */
form {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
label { font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; display: block; }
input, textarea, select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem;
  transition: all var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}
textarea { min-height: 140px; resize: vertical; }
.form-error { color: #d33; font-size: 0.85rem; margin-top: 0.25rem; min-height: 1em; }
form .btn-primary { background: var(--gold); color: var(--navy-900); }
form .btn-primary:hover { background: var(--gold-hover); color: var(--navy-900); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 70%, rgba(201,168,76,0.2) 100%);
  color: #fff;
  padding: 4.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.2), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(59,111,160,0.3), transparent 45%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 1.75rem; }
.cta-banner .btn-primary {
  background: var(--gold); color: var(--navy-900);
  box-shadow: 0 6px 24px -6px rgba(201,168,76,0.5);
  font-weight: 700;
}
.cta-banner .btn-primary:hover {
  background: var(--gold-hover); color: var(--navy-900);
  box-shadow: 0 10px 28px -6px rgba(201,168,76,0.6);
}

/* WhatsApp floating */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 40;
  width: 56px; height: 56px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
  animation: wapulse 2.5s infinite;
}
[dir="rtl"] .whatsapp-float { left: auto; right: 1.5rem; }
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }
.whatsapp-float .icon { width: 28px; height: 28px; stroke: #fff; }
@keyframes wapulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  50%       { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 0.5rem; }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #cdd5e3;
  padding: 4.5rem 0 1.5rem;
  margin-top: 5rem;
}
[data-theme="dark"] .site-footer { background: #06091a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-text small { color: rgba(255,255,255,0.5); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.site-footer p, .site-footer a { color: #cdd5e3; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; color: #cdd5e3;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem; color: #6b7a96;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--navy-700), var(--gold));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ===== Back To Top ===== */
.back-to-top {
  position: fixed; bottom: 5.5rem;
  inset-inline-end: 1.5rem;
  z-index: 40;
  width: 44px; height: 44px;
  background: var(--gold); color: var(--navy-900);
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(201,168,76,0.55); }
.back-to-top .icon   { width: 20px; height: 20px; }

/* ===== Page Header (inner pages) ===== */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  color: #fff;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201,168,76,0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59,111,160,0.25), transparent 55%);
  pointer-events: none;
}
.page-header::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold); }
.page-header h1 { color: #fff; margin-bottom: 0.5rem; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.page-header .ph-breadcrumbs {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-top: 1rem; flex-wrap: wrap;
}
.page-header .ph-breadcrumbs a { color: rgba(255,255,255,0.55); }
.page-header .ph-breadcrumbs a:hover { color: var(--gold); }
.page-header .ph-breadcrumbs .sep { opacity: 0.4; }

/* Page header entrance */
.page-header .eyebrow { animation: phFadeUp 0.55s ease both 0.05s; }
.page-header h1        { animation: phFadeUp 0.55s ease both 0.18s; }
.page-header .ph-breadcrumbs { animation: phFadeUp 0.45s ease both 0.30s; }
@keyframes phFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Hero stagger entrance ===== */
.hero-content > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content .eyebrow      { animation-delay: 0.10s; }
.hero-content h1             { animation-delay: 0.24s; }
.hero-content p              { animation-delay: 0.38s; }
.hero-content .hero-actions  { animation-delay: 0.52s; }
.hero-content .trust-bar     { animation-delay: 0.66s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Card stagger (nth-child transition-delay) ===== */
.grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.grid .reveal:nth-child(2) { transition-delay: 0.09s; }
.grid .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid .reveal:nth-child(4) { transition-delay: 0.27s; }
.grid .reveal:nth-child(5) { transition-delay: 0.36s; }
.grid .reveal:nth-child(6) { transition-delay: 0.45s; }
.process .reveal:nth-child(1) { transition-delay: 0.00s; }
.process .reveal:nth-child(2) { transition-delay: 0.10s; }
.process .reveal:nth-child(3) { transition-delay: 0.20s; }
.process .reveal:nth-child(4) { transition-delay: 0.30s; }

/* ===== Star ratings ===== */
.star-rating {
  display: flex; gap: 2px; margin-bottom: 1rem;
  color: var(--gold); font-size: 1.05rem;
}
.star-rating svg {
  width: 16px; height: 16px;
  fill: var(--gold); stroke: none;
}

/* ===== Stats icons ===== */
.stat-icon {
  display: flex; justify-content: center; margin-bottom: 0.75rem;
  color: var(--gold); opacity: 0.75;
}
.stat-icon .icon { width: 30px; height: 30px; }

/* ===== Mobile menu slide animation ===== */
@media (max-width: 700px) {
  .nav-links {
    display: flex !important;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    padding: 0 1.5rem;
    border-bottom: none;
    box-shadow: none;
  }
  .nav-links.open {
    max-height: 360px; opacity: 1;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px -8px rgba(15,27,61,0.15);
  }
}

/* ===== 404 page ===== */
.page-404 {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
}
.page-404 .num-404 {
  font-family: var(--font-heading-en);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--navy-700), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.25rem;
}
.page-404 h1 { margin-bottom: 0.5rem; }
.page-404 p  { max-width: 480px; margin: 0 auto 2rem; }
.page-404-geo {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.06;
}
.page-404-geo svg { position: absolute; right: -80px; top: -80px; width: 480px; height: 480px; }

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .timeline::before { left: 8px; transform: none; }
  [dir="rtl"] .timeline::before { right: 8px; left: auto; transform: none; }
  .timeline-item { width: 100% !important; left: 0 !important; right: 0 !important; padding-inline-start: 2.5rem; padding-inline-end: 0; text-align: start !important; }
  .timeline-item::before { inset-inline-start: 0 !important; inset-inline-end: auto !important; }
}

@media (max-width: 700px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    gap: 1rem;
    /* animation via max-height in the Animations section above */
  }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; }
  .section { padding: 4rem 0; }
  .brand-text small { display: none; }
  .trust-bar span { padding: 0.4rem 1rem; border-inline-end: none; }
  .cta-banner { padding: 3rem 1.5rem; }
}
