/* =============================================
   sector.css — Shared Sector Pages Stylesheet
   الروشن الذهبي
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables (same as main site) --- */
:root {
  --navy: #0B1B3D;
  --navy-deep: #060f24;
  --navy-mid: #112244;
  --navy-light: #1a3060;
  --gold: #C5A059;
  --gold-light: #D4AF37;
  --gold-dark: #a07d38;
  --gold-shine: #e8cb80;
  --ivory: #F9F9F6;
  --white: #ffffff;
  --text-light: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.45);
  --border-gold: rgba(197,160,89,0.3);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --transition: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  --transition-fast: 0.2s ease;
  --shadow-gold: 0 4px 30px rgba(197,160,89,0.25);
  --shadow-navy: 0 8px 40px rgba(6,15,36,0.6);
  --radius: 12px;
  --radius-lg: 20px;
  --font-main: 'Tajawal', sans-serif;
  --font-serif: 'Amiri', serif;
}

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

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.7;
  direction: rtl;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-main); cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* =============================================
   LIGHT MODE
   ============================================= */
[data-theme="light"] {
  --navy: #f5f0e8;
  --navy-deep: #faf8f3;
  --navy-mid: #ede7d9;
  --navy-light: #ddd4c0;
  --white: #1a1208;
  --text-light: rgba(26,18,8,0.82);
  --text-muted: rgba(26,18,8,0.52);
  --border-gold: rgba(160,125,56,0.4);
  --glass: rgba(26,18,8,0.04);
  --glass-border: rgba(26,18,8,0.1);
  --gold: #a07d38;
  --gold-dark: #805e24;
  --gold-shine: #c49a28;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(6,15,36,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-navy);
}
[data-theme="light"] .header { background: rgba(250,248,243,0.92); border-bottom: 1px solid var(--border-gold); }
[data-theme="light"] .header.scrolled { background: rgba(250,248,243,0.97); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  line-height: 1; white-space: nowrap;
}
.logo:hover { opacity: 0.85; }
.logo-ar { color: var(--white); }
.logo-gold { color: var(--gold); }

.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-light);
  transition: var(--transition-fast); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold);
  border-radius: 99px; transition: var(--transition-fast);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 60%; }

.header-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border-gold); background: var(--glass);
  color: var(--text-light); cursor: pointer;
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: var(--transition-fast); flex-shrink: 0;
}
.ctrl-icon-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.ctrl-icon-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(197,160,89,0.12); }
.icon-dark { display: block; }
.icon-light { display: none; }
[data-theme="light"] .icon-dark { display: none; }
[data-theme="light"] .icon-light { display: block; }
.lang-toggle { font-size: 0.78rem; }
.btn-header {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-shine));
  color: var(--navy-deep);
}
.btn-header:hover { filter: brightness(1.05); transform: translateY(-2px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 99px; transition: var(--transition-fast); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,15,36,0.98); backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center; padding: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { width: 100%; text-align: center; }
.mobile-nav li { margin-bottom: 16px; }
.mobile-nav-link { font-size: 1.5rem; font-weight: 600; color: var(--text-light); display: block; padding: 12px; }
.mobile-nav-link:hover { color: var(--gold); }

/* =============================================
   SECTOR HERO
   ============================================= */
.sector-hero {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
}
.sector-hero-bg { position: absolute; inset: 0; z-index: 0; }
.sector-hero-img { width: 100%; height: 100%; object-fit: cover; }
.sector-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,15,36,0.92) 0%, rgba(11,27,61,0.75) 60%, rgba(6,15,36,0.5) 100%);
}
.sector-hero-content { position: relative; z-index: 2; }
.sector-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.sector-breadcrumb a { color: var(--gold); transition: var(--transition-fast); }
.sector-breadcrumb a:hover { color: var(--gold-shine); }
.sector-breadcrumb span { color: var(--text-muted); }
.sector-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border: 1px solid var(--border-gold);
  border-radius: 99px; color: var(--gold); font-size: 0.9rem;
  background: rgba(197,160,89,0.08); backdrop-filter: blur(10px);
  margin-bottom: 20px;
}
.sector-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.sector-hero-desc {
  color: var(--text-light); font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px; margin-bottom: 32px; line-height: 1.8;
}
.gold-text { color: var(--gold); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-size: 1rem; font-weight: 700; border: 2px solid transparent;
  transition: var(--transition); cursor: pointer; white-space: nowrap;
  font-family: var(--font-main);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-shine));
  color: var(--navy-deep); box-shadow: 0 4px 20px rgba(197,160,89,0.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(197,160,89,0.55); filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(197,160,89,0.08); }
.btn-icon { width: 18px; height: 18px; }

/* =============================================
   SECTOR STATS BAR
   ============================================= */
.sector-stats-bar {
  background: var(--glass);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 24px 0;
  backdrop-filter: blur(16px);
}
.sector-stats-inner {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.sector-stat { text-align: center; flex: 1; min-width: 120px; }
.sector-stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.sector-stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.sector-stat-divider { width: 1px; height: 40px; background: var(--border-gold); flex-shrink: 0; }

/* =============================================
   SECTION COMMON
   ============================================= */
.section { padding: 80px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block; color: var(--gold); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
  padding: 6px 20px; border: 1px solid var(--border-gold); border-radius: 99px;
  background: rgba(197,160,89,0.06);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; line-height: 1.3;
}
.section-subtitle { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 1rem; }

/* =============================================
   PRODUCTS GALLERY
   ============================================= */
.products-section { background: var(--navy-deep); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.product-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-gold); background: var(--glass);
  transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.product-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,15,36,0.9) 0%, transparent 60%);
}
.product-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: var(--navy-deep);
  padding: 4px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
}
.product-info { padding: 20px; }
.product-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.product-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-feature-tag {
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border-gold); color: var(--text-muted); font-size: 0.75rem;
  background: rgba(197,160,89,0.05);
}
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.9rem; font-weight: 700;
  transition: var(--transition-fast);
}
.product-cta:hover { gap: 10px; }

/* =============================================
   SECTOR FEATURES / WHY US
   ============================================= */
.features-section { background: var(--navy-mid); }
.features-grid-sector {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
  padding: 28px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border); background: var(--glass);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-gold); background: rgba(197,160,89,0.04); transform: translateY(-4px); }
.feature-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(197,160,89,0.1); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  border-top: 1px solid var(--border-gold);
  text-align: center;
}
.cta-section h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.cta-section p { color: var(--text-light); max-width: 500px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--navy-deep); border-top: 1px solid var(--border-gold); }
.footer-top { padding: 50px 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-logo { margin-bottom: 12px; font-size: 1.8rem; font-family: var(--font-serif); display: flex; align-items: baseline; gap: 6px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; transition: var(--transition-fast); background: var(--glass);
}
.social-link:hover { background: rgba(197,160,89,0.15); border-color: var(--gold); color: var(--gold); }
.footer-heading { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 16px; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--gold); padding-right: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding: 20px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--gold); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed; bottom: 32px; left: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-deep); font-size: 1.2rem; font-weight: 700;
  border: none; cursor: pointer; opacity: 0;
  transform: translateY(20px); transition: var(--transition); z-index: 100;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* =============================================
   MARQUEE
   ============================================= */
.marquee-strip {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-shine), var(--gold), var(--gold-dark));
  padding: 12px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee-rtl 25s linear infinite; width: max-content;
}
.marquee-track span { color: var(--navy-deep); font-weight: 700; font-size: 0.88rem; letter-spacing: 1px; flex-shrink: 0; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================
   RESPONSIVE SECTOR PAGES — ZERO OVERFLOW
   ============================================= */
@media (max-width: 900px) {
  .nav { display: none !important; }
  .btn-header { display: none !important; }
  .hamburger { display: flex !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .features-grid-sector { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px; }
}

@media (max-width: 600px) {
  .sector-hero-title { font-size: 2rem; }
  .products-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .features-grid-sector { grid-template-columns: 1fr !important; gap: 10px; }
  .gender-tabs { width: 100%; justify-content: center; }
  .gender-tab { padding: 10px 20px; font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
}


