/* ===================================================================
   AFKAR Solar — Solar division page styling
   Warm palette (orange/amber) contrasting with screens cyan
   =================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-2: #050810;
  --surface: #131826;
  --surface-2: #1a2030;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #9ba3b4;
  --accent: #ffb800;
  --accent-2: #ff5e3a;
  --gradient: linear-gradient(135deg, #ffb800 0%, #ff5e3a 100%);
  --gradient-cool: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --shadow: 0 20px 60px -20px rgba(255, 138, 0, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
html[dir="rtl"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, gap 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #1a0a00;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 0, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(255, 138, 0, 0.75);
  gap: 0.85rem;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-big { padding: 1.05rem 1.85rem; font-size: 1rem; }
.cta-arrow { transition: transform 0.2s ease; }
html[dir="rtl"] .cta-arrow { transform: scaleX(-1); }

/* ===== Navigation ===== */
.snav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.snav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.snav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
}
.snav-logo-img {
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(255, 184, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.snav-logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.snav-logo:hover .snav-logo-img { transform: scale(1.05); filter: drop-shadow(0 6px 18px rgba(255, 184, 0, 0.5)); }

.snav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.snav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.snav-links a:hover,
.snav-links a.active { color: var(--text); }
.snav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 999px;
}

.snav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.82rem;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.12); }

.snav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}
html[dir="rtl"] .snav-back i { transform: scaleX(-1); }
.snav-back:hover { background: rgba(255, 184, 0, 0.2); transform: translateY(-1px); }

.snav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
/* Real photo background (used when solar-hero.jpg is uploaded)
   2026-06-07 fix: Bilal — الصورة كانت كلش ممبينة والنص العربي بالخلفية
   يطغى على الإنكليزي. خفّفنا الصورة كثيراً: blur + darken + desaturate
   حتى تبقى atmospheric مو competing مع النص الأمامي. */
.hero-bg-photo {
  background-size: cover !important;
  background-position: center 35% !important;
  filter: blur(6px) saturate(0.55) brightness(0.45);
  transform: scale(1.08);  /* compensate for the blur edge */
}
.hero-with-image .hero-overlay {
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.95) 70%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.98) 100%) !important;
}
/* Add a warm accent glow so the page still feels solar */
.hero-with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255, 184, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 94, 58, 0.10) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 184, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 94, 58, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, #1c1208 0%, #0a0e1a 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* When Bilal uploads assets/images/solar/solar-hero.jpg, swap the gradient
   for the photo by uncommenting below:
.hero-bg { background: url('../assets/images/solar/solar-hero.jpg') center/cover no-repeat; }
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.9) 100%);
  z-index: 1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 184, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 184, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title span { display: block; }
.hero-title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.kicker-solar { color: var(--accent); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: var(--shadow);
}
.product-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #1f1308;  /* fallback color while images upload */
  background-image: linear-gradient(135deg, #2a1a08 0%, #1f1308 100%);  /* fallback gradient */
  position: relative;
}
.product-image-tall {
  height: 340px;
  background-size: cover;
  background-position: center top;
  background-color: #fff;  /* posters look good on light bg fallback */
}
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}
.product-image-tall::after { display: none; }

.product-card-feature {
  grid-column: span 2;
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 184, 0, 0.1);
}
.product-card-feature .product-image-tall {
  height: 420px;
}
@media (max-width: 880px) {
  .product-card-feature { grid-column: span 1; }
  .product-card-feature .product-image-tall { height: 320px; }
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #1a0a00;
  margin-bottom: 0.65rem;
}
.product-badge.badge-new {
  background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  color: #001020;
}
.product-body {
  padding: 1.5rem;
}
.product-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.product-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.product-specs {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.product-specs li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}
.product-specs li i {
  width: 18px;
  color: var(--accent);
  text-align: center;
}

/* ===== WHY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 0, 0.4);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.why-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== Maintenance Split Section ===== */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.service-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
}
.service-image img {
  display: block;
  width: 100%;
  height: auto;
}
.service-content .kicker { margin-bottom: 0.85rem; }
.service-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.service-desc {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}
.service-points li i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a0a00;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

@media (max-width: 880px) {
  .service-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== CTA Address ===== */
.cta-address {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.cta-address i {
  color: var(--accent);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #1f1308;
  background-image:
    linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, transparent 100%),
    linear-gradient(135deg, #2a1a08 0%, #1f1308 100%);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.gallery-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45) 100%);
}
.gallery-tile:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* ===== CTA Section ===== */
.section-cta {
  padding: 5rem 0;
}
.cta-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12) 0%, rgba(255, 94, 58, 0.08) 100%);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at center, rgba(255, 184, 0, 0.15) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.cta-title, .cta-sub, .cta-actions {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.sfooter {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.sfooter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.sfooter-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 340px;
}
.sfooter-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.sfooter-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sfooter-links h5 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.sfooter-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.sfooter-links a:hover { color: var(--text); }
.sfooter-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .snav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.95);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }
  .snav-links.open { display: flex; }
  .snav-toggle { display: inline-flex; }
  .snav-cta { display: none; }

  .sfooter-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .sfooter-brand p { margin: 0 auto; }
  .sfooter-links { align-items: center; }

  .hero-stats { gap: 1.5rem; }
  .stat { min-width: 100px; }

  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding-top: 7rem; }
  .product-image { height: 180px; }
  .cta-card { padding: 2.5rem 1.25rem; }
}

/* ===== Subtle on-load animations ===== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-actions,
.hero-stats { animation: slideUp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.hero-title { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.4s; }
