/* =============================================
   FIST Website - Main Stylesheet
   Brand: Navy Blue + Gold + Orange accents
   ============================================= */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&family=Noto+Sans+Arabic:wght@400;600&display=swap');

/* --- Tokens --- */
:root {
  --navy:       #0D1B3E;
  --navy-light: #162347;
  --gold:       #C9A84C;
  --gold-light: #E2C27A;
  --orange:     #E87722;
  --white:      #FFFFFF;
  --off-white:  #F7F5F0;
  --gray-light: #ECECEC;
  --gray:       #888888;
  --text:       #1A1A2E;
  --text-muted: #666680;

  --font-display: 'Playfair Display', 'Noto Sans Arabic', serif;
  --font-body:    'Inter', 'Noto Sans Arabic', sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(13,27,62,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,62,0.16);

  --nav-h: 72px;
  --max-w: 1140px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- RTL Support --- */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
  font-size: 1.05rem;
}
[dir="rtl"] .nav-link { font-size: 1rem; }
[dir="rtl"] .section-eyebrow { font-size: 0.85rem; }
[dir="rtl"] .pillar-desc { font-size: 1.05rem; }
[dir="rtl"] .section-desc { font-size: 1.1rem; }
[dir="rtl"] .contact-detail-text small { font-size: 0.82rem; }
[dir="rtl"] .contact-detail-text strong { font-size: 1.05rem; }
[dir="rtl"] .footer-copy { font-size: 0.9rem; }
[dir="rtl"] .manager-info small { font-size: 0.82rem; }
[dir="rtl"] .manager-info strong { font-size: 1rem; }
[dir="rtl"] .feature-card h3 { font-size: 1.05rem; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .contact-detail { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }

/* --- Navbar --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 999;
  background: var(--navy);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}
.nav-logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,0.78);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,0.10);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Page wrapper --- */
main { padding-top: var(--nav-h); }

/* --- Hero --- */
.hero {
  min-height: 92vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a2d5a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(201,168,76,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(232,119,34,0.07) 0%, transparent 60%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 48px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-cta::after { content: '→'; font-size: 1rem; }

/* Gold divider line */
.gold-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 2px;
  margin: 0 auto 20px;
}
[dir="rtl"] .gold-line { margin: 0 0 20px; }

/* --- Section base --- */
.section {
  padding: 96px 24px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.8;
}

/* --- Home: 3 pillar cards --- */
.pillars {
  background: var(--off-white);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* --- Feature grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-left: 3px solid var(--gold);
  transition: border-color 0.2s, background 0.2s;
}
[dir="rtl"] .feature-card { border-left: none; border-right: 3px solid var(--gold); }
.feature-card:hover { background: var(--white); border-color: var(--orange); }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

/* --- About section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-display);
  letter-spacing: 4px;
}
.about-text .section-title { text-align: left; }
[dir="rtl"] .about-text .section-title { text-align: right; }
.about-text p { color: var(--text-muted); line-height: 1.85; margin-bottom: 16px; }
.manager-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--off-white);
  border-radius: 50px;
  padding: 10px 20px 10px 10px;
  margin-top: 24px;
}
.manager-avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.manager-info small { display: block; font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.manager-info strong { font-size: 0.9rem; color: var(--navy); }

/* --- Image placeholder --- */
.img-placeholder {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.contact-detail-text strong { font-size: 0.95rem; color: var(--navy); }
.contact-detail-text a { color: var(--navy); transition: color 0.2s; }
.contact-detail-text a:hover { color: var(--gold); }

.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-call:hover { opacity: 0.9; transform: translateY(-2px); }

.contact-map-placeholder {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px dashed var(--gray-light);
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}
.footer-copy { font-size: 0.8rem; }
.footer-copy span { color: var(--gold); }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 24px 64px;
  text-align: center;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-placeholder { display: none; }
}

@media (max-width: 768px) {
  #nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  #nav-menu.open { display: flex; }
  #hamburger { display: flex; }
  .section { padding: 64px 20px; }
  .hero-inner { padding: 60px 20px; }
}

/* RTL contact alignment */
[dir="rtl"] .contact-detail {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .contact-detail-text {
  text-align: right;
}
[dir="rtl"] .contact-details {
  direction: rtl;
}
[dir="rtl"] .contact-grid {
  direction: rtl;
}
[dir="rtl"] .contact-icon {
  order: 2;
}
[dir="rtl"] .contact-detail-text {
  order: 1;
}
