/* ═══════════════════════════════════════════════════════════════════════
   NAEEM Holding – styles.css
   Gray premium theme · NAEEM Orange accent · Full-width adaptive slider
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --bg:            #1e1e1e;
  --bg-secondary:  #252525;
  --bg-header:     rgba(20,20,20,0.95);
  --bg-card:       rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.09);
  --border-light:  rgba(255,255,255,0.05);

  --accent:        #e6641e;
  --accent-light:  #ff7a32;
  --accent-dark:   #c04e10;
  --accent-glow:   rgba(230,100,30,0.25);

  --text:          #f0f0f0;
  --text-muted:    #999999;
  --text-dim:      #666666;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;

  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.55);
  --shadow-accent: 0 8px 28px rgba(230,100,30,0.35);

  --transition:    all 0.22s ease;
  --header-h:      68px;

  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════════════════ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.25rem;
  transition: opacity .35s ease;
}
.loader-ring {
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.07);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.loader-logo {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; color: var(--text-muted);
  text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.header {
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  position: sticky; top: 0; z-index: 200;
}

/* Orange accent line at bottom of header */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, var(--accent) 65%, transparent 100%);
  opacity: .35;
}

.logo {
  height: 42px; object-fit: contain;
  filter: brightness(1.05);
  transition: var(--transition);
}
.logo:hover { opacity: .85; }

/* ── Language switch ──────────────────────────────────────────────────── */
.lang-switch {
  display: flex; gap: .3rem;
  background: rgba(255,255,255,0.04);
  padding: .25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lang-btn {
  padding: .38rem .9rem;
  border-radius: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  border: none;
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.lang-btn:not(.active):hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════════════════ */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════════
   SLIDER SECTION – Full width, adaptive height
   ═══════════════════════════════════════════════════════════════════════ */
.slider-section {
  width: 100%;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient fade */
.slider-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 10; opacity: .6;
}

.swiper-wrap {
  width: 100%;
  position: relative;
}

/* The swiper itself uses aspect-ratio for adaptive height */
.swiper.mySwiper {
  width: 100%;
  /* Adaptive: 16:9 on desktop, 4:3 on tablet, 1:1 on mobile */
  aspect-ratio: 16/7;
  max-height: 78vh;
  min-height: 280px;
  background: var(--bg-secondary);
}

.swiper-slide {
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Blurred background fill (for images that don't cover the full frame) */
.swiper-slide .slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(24px) brightness(.4) saturate(.7);
  transform: scale(1.08);
  z-index: 0;
}

/* Main image – contained, centered, crisp */
.swiper-slide .slide-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .4s ease;
}
.swiper-slide .slide-img:hover { transform: scale(1.02); }

/* ── Swiper Navigation Arrows ─────────────────────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  background: rgba(20,20,20,0.75) !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--accent) !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: var(--shadow-accent) !important;
  transform: scale(1.08) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: .95rem !important;
  font-weight: 900 !important;
}

/* ── Swiper Pagination Dots ───────────────────────────────────────────── */
.swiper-pagination {
  bottom: 16px !important;
}
.swiper-pagination-bullet {
  width: 8px !important; height: 8px !important;
  background: rgba(255,255,255,0.35) !important;
  opacity: 1 !important;
  transition: var(--transition) !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 24px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 8px var(--accent-glow) !important;
}

/* ── Slide counter (optional overlay) ────────────────────────────────── */
.slide-counter {
  position: absolute;
  bottom: 16px; right: 20px;
  z-index: 20;
  font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: .25rem .65rem;
  border-radius: 99px;
  backdrop-filter: blur(6px);
  letter-spacing: .04em;
  pointer-events: none;
}
[dir="rtl"] .slide-counter { right: auto; left: 20px; }

/* ═══════════════════════════════════════════════════════════════════════
   CONTENT SECTION (PDF + Info)
   ═══════════════════════════════════════════════════════════════════════ */
.content-section {
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* ── PDF button ───────────────────────────────────────────────────────── */
.pdf-section { display: flex; justify-content: center; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2.25rem;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  background-size: 200% auto;
  color: #fff; font-weight: 700; font-size: .95rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  text-decoration: none; transition: all .3s;
  box-shadow: var(--shadow-accent);
  letter-spacing: .02em;
  position: relative; overflow: hidden;
}
.pdf-btn::before { content: '📎'; }
.pdf-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.pdf-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(230,100,30,0.45);
}
.pdf-btn:hover::after { transform: translateX(100%); }
.pdf-btn:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 1.25rem 2rem;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text-dim);
  letter-spacing: .03em;
}
.footer strong { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(10px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  transform: scale(.96); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   RTL
   ═══════════════════════════════════════════════════════════════════════ */
[dir="rtl"] .header { flex-direction: row-reverse; }
[dir="rtl"] .lightbox-close { right: auto; left: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .header { padding: 0 2rem; }
  .content-section { padding: 1.75rem 2rem; }
  .swiper.mySwiper { aspect-ratio: 4/3; }
}

/* Mobile landscape */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header { padding: 0 1.25rem; }
  .logo { height: 36px; }
  .swiper.mySwiper { aspect-ratio: 3/2; max-height: 60vh; }
  .content-section { padding: 1.25rem 1rem; }
  .swiper-button-next,
  .swiper-button-prev {
    width: 38px !important; height: 38px !important;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after { font-size: .78rem !important; }
}

/* Mobile portrait */
@media (max-width: 560px) {
  .logo { height: 32px; }
  .swiper.mySwiper { aspect-ratio: 1/1; max-height: 70vw; min-height: 250px; }
  .pdf-btn { font-size: .88rem; padding: .8rem 1.75rem; }
  .lang-btn { padding: .35rem .7rem; font-size: .7rem; }
  .swiper-button-next,
  .swiper-button-prev { display: none !important; }
}

/* Large screens */
@media (min-width: 1400px) {
  .swiper.mySwiper { aspect-ratio: 16/6; }
}

/* ── Slide entrance animation ─────────────────────────────────────────── */
@keyframes slideReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
.swiper-slide-active .slide-img {
  animation: slideReveal .5s ease forwards;
}
