/* =========================================================
   WAELALIGHASHOM Trading Establishment
   Custom stylesheet — supplements Tailwind CDN
   Brand colors: navy #001F3F  ·  gold #D4A12A  ·  ivory #F8F7F4
   ========================================================= */

/* ---------- BASE ---------- */
:root {
  --navy: #001F3F;
  --navy-deep: #00132A;
  --gold: #D4A12A;
  --gold-light: #E8C76A;
  --ivory: #F8F7F4;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  background: var(--ivory);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--navy));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Text selection */
::selection { background: var(--gold); color: var(--navy); }


/* ---------- GLASSMORPHISM NAV ---------- */
.glass-nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}

#site-header.scrolled .glass-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px -10px rgba(0, 31, 63, 0.15);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #001F3F;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.mobile-link {
  display: block;
  padding: 0.875rem 0;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
  transition: color 0.3s, padding 0.3s;
}
.mobile-link:hover { color: var(--gold); padding-left: 0.5rem; }


/* ---------- BUTTONS ---------- */
.btn-gold,
.btn-navy,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--navy);
  box-shadow: 0 10px 30px -8px rgba(212, 161, 42, 0.5);
}
.btn-gold:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(212, 161, 42, 0.6);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 31, 63, 0.4);
}
.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0, 31, 63, 0.5);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}


/* ---------- GLASS CARD ---------- */
.glass-card {
  background: rgba(0, 31, 63, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}


/* ---------- SECTION TYPOGRAPHY ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1.25rem;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}


/* ---------- ABOUT ICON BOX ---------- */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #0A2752 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 25px -10px rgba(0, 31, 63, 0.4);
  transition: transform 0.4s ease;
}
.icon-box::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.flex:hover > .icon-box { transform: rotate(-6deg) scale(1.08); }
.flex:hover > .icon-box::after { opacity: 1; }


/* ---------- VISION / MISSION CARDS ---------- */
.vm-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(212, 161, 42, 0.08));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.vm-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 161, 42, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.vm-card:hover::before { opacity: 1; }

.vm-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.5s ease;
}
.vm-card:hover .vm-icon { transform: rotate(360deg); }

.vm-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}


/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px -12px rgba(0, 31, 63, 0.12);
  border: 1px solid rgba(0, 31, 63, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 31, 63, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px -20px rgba(0, 31, 63, 0.25), 0 0 0 1px rgba(212, 161, 42, 0.1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; transform: scale(1.2); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.08), rgba(0, 31, 63, 0.02));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: all 0.5s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 15px 30px -10px rgba(212, 161, 42, 0.5);
}

.service-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.service-desc {
  color: rgba(0, 31, 63, 0.65);
  line-height: 1.65;
  font-size: 0.95rem;
}

.service-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.4s ease;
}
.service-card:hover .service-arrow { transform: translateX(8px); }


/* ---------- WHY US CARDS ---------- */
.why-card {
  background: #fff;
  border: 1px solid rgba(0, 31, 63, 0.06);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(0, 31, 63, 0.25);
}
.why-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: rgba(212, 161, 42, 0.15);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}
.why-card:hover .why-num { color: var(--gold); }
.why-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.why-desc {
  color: rgba(0, 31, 63, 0.65);
  line-height: 1.6;
  font-size: 0.92rem;
}

.check-dot {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 900;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ---------- SECTOR PILLS ---------- */
.sector-pill {
  background: #fff;
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-align: center;
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.sector-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy), #0A2752);
  transform: translateY(101%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.sector-pill:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 31, 63, 0.4);
}
.sector-pill:hover::before { transform: translateY(0); }
.sector-pill > * { position: relative; z-index: 1; }


/* ---------- PROJECT TILES ---------- */
.project-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  box-shadow: 0 15px 40px -15px rgba(0, 31, 63, 0.25);
}
.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 31, 63, 0.95) 0%, rgba(0, 31, 63, 0.4) 50%, transparent 100%);
}
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.5s ease;
}
.project-tile:hover img { transform: scale(1.1); }
.project-tile:hover .project-overlay { transform: translateY(0); }


/* ---------- PROJECT APPROACH STEPS ---------- */
.step-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}
.step-row.reverse { flex-direction: row-reverse; }

@media (max-width: 1023px) {
  .step-row, .step-row.reverse { flex-direction: column; align-items: flex-start; }
}

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  z-index: -1;
}

.step-card {
  flex: 1;
  background: #fff;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 31, 63, 0.06);
  box-shadow: 0 10px 30px -15px rgba(0, 31, 63, 0.15);
  transition: all 0.4s ease;
  position: relative;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 20px 0 0 20px;
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: top;
}
.step-row:hover .step-card { transform: translateX(8px); box-shadow: 0 20px 50px -20px rgba(0, 31, 63, 0.25); }
.step-row.reverse:hover .step-card { transform: translateX(-8px); }
.step-row:hover .step-card::before { transform: scaleY(1); }

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.step-desc {
  color: rgba(0, 31, 63, 0.7);
  line-height: 1.65;
}


/* ---------- CONTACT ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
  transition: padding 0.3s;
}
.contact-row:hover { padding-left: 0.5rem; }
.contact-row:last-child { border-bottom: none; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #0A2752);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.contact-row:hover .contact-icon { transform: rotate(-8deg) scale(1.08); }


/* ---------- FORM ---------- */
.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  padding: 0.95rem 1.1rem;
  background: var(--ivory);
  border: 1.5px solid rgba(0, 31, 63, 0.1);
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 161, 42, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(0, 31, 63, 0.4);
}

.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #DC2626;
  background: #FEF2F2;
}


/* ---------- FOOTER ---------- */
.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-link {
  transition: all 0.3s ease;
  display: inline-block;
}
.footer-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}
.social-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px) rotate(-6deg);
  box-shadow: 0 10px 25px -8px rgba(212, 161, 42, 0.5);
}


/* ---------- AOS-style scroll animations (custom, no library) ---------- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }

[data-aos].aos-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}


/* ---------- BACK-TO-TOP ---------- */
#to-top.visible {
  opacity: 1;
  pointer-events: auto;
}


/* ---------- RTL SUPPORT (for future Arabic translation) ---------- */
html[dir="rtl"] .section-eyebrow { padding-left: 0; padding-right: 2.5rem; }
html[dir="rtl"] .section-eyebrow::before { left: auto; right: 0; }
html[dir="rtl"] .nav-link::after { transform: translateX(50%); }
html[dir="rtl"] .footer-title::after { left: auto; right: 0; }
html[dir="rtl"] .footer-link:hover { transform: translateX(-4px); }
html[dir="rtl"] .step-card::before { left: auto; right: 0; border-radius: 0 20px 20px 0; }
html[dir="rtl"] .check-dot { margin-left: 0; margin-right: 0.25rem; }


/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 640px) {
  .section-title { font-size: 1.85rem; }
  .vm-card { padding: 2rem 1.5rem; }
  .step-num { font-size: 3rem; width: 80px; }
  .step-num::after { width: 60px; height: 60px; }
  .step-card { padding: 1.5rem; }
}


/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
