/* =======================================
   SUNLINE ENERGY - Global Layout CSS
   LONGi-Inspired Professional Design
======================================= */

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Section Base ===== */
.section {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 620px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ===== Backgrounds ===== */
.bg-dark    { background-color: var(--dark); color: var(--white); }
.bg-dark-2  { background-color: var(--dark-2); color: var(--white); }
.bg-light   { background-color: var(--light); }
.bg-white   { background-color: var(--white); }
.bg-primary { background-color: var(--primary); color: var(--white); }

.bg-dark .section-title,
.bg-dark-2 .section-title { color: var(--white); }

.bg-dark .section-label,
.bg-dark-2 .section-label { color: var(--primary-light); }

.bg-dark .section-subtitle,
.bg-dark-2 .section-subtitle { color: rgba(255,255,255,0.65); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background-color: rgba(255,255,255,0.0);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-logo:hover { opacity: 0.9; }

/* SVG Icon */
.logo-svg-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(249,115,22,0.45));
  transition: transform 0.4s ease;
}

.nav-logo:hover .logo-svg-icon {
  transform: rotate(20deg) scale(1.08);
}

/* Text Group */
.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-main {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.navbar.scrolled .logo-text-main {
  color: var(--dark);
}

.logo-text-accent {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.logo-text-tagline {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  transition: color 0.3s;
}

.navbar.scrolled .logo-text-tagline {
  color: rgba(0,0,0,0.35);
}

/* Footer logo duplicate */
.footer-logo-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}



/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--dark-3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

body.rtl .nav-links a::after {
  left: auto;
  right: 14px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 28px);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.35) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Language Switcher */
.lang-btn {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.navbar.scrolled .lang-btn {
  border-color: var(--light-2);
  color: var(--dark-3);
}

.lang-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.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); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.07);
  transition: transform 8s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 60%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: heroFadeUp 0.9s ease both;
}

@keyframes heroFadeUp {
  from { opacity:0; transform: translateY(40px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.18);
  border: 1px solid rgba(249,115,22,0.45);
  color: #FDBA74;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.hero-dot.active {
  width: 28px;
  background: var(--primary);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: all;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.1s linear;
  z-index: 10;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--light-2);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  transform: scale(1.08) rotate(-5deg);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 16px;
}

.card-link svg {
  transition: transform 0.2s ease;
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(255,255,255,0.12);
}

.stat-item:last-child::before { display: none; }

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ===== GRID SYSTEMS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

/* ===== FOOTER ===== */
footer {
  background: #0A0F1A;
  color: rgba(255,255,255,0.72);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand-name span {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.55);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

body.rtl .footer-col ul li a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
}

.footer-contact-icon {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.footer-bottom a:hover { color: var(--primary); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10,15,26,0.97);
  backdrop-filter: blur(16px);
  color: white;
  padding: 22px 0;
  z-index: var(--z-top);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(249,115,22,0.25);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
}

.cookie-text a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  font-size: 1.5rem;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

body.rtl .wa-float {
  right: auto;
  left: 28px;
}

/* ===== TAG / BADGE ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.tag-orange {
  background: rgba(249,115,22,0.12);
  color: var(--primary-dark);
}

.tag-blue {
  background: rgba(14,165,233,0.12);
  color: var(--accent-dark);
}

.tag-green {
  background: rgba(34,197,94,0.12);
  color: #15803D;
}

/* ===== DIVIDER ===== */
.divider {
  width: 56px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px 0 24px;
}

.divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:hover {
  border-color: #D1D5DB;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.1);
}

/* ===== UTILITY ===== */
.text-center   { text-align: center; }
.text-primary  { color: var(--primary); }
.text-white    { color: var(--white); }
.text-mid      { color: var(--mid); }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none !important; }
  .nav-actions .lang-btn { display: none; }
  .hamburger { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
