/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c8a84b;
  --gold-light: #dfc06a;
  --gold-dark: #a08030;
  --bg-primary: #0d0f14;
  --bg-secondary: #0a0c10;
  --bg-card: #141720;
  --text-primary: #e8e0d0;
  --text-secondary: #9a9590;
  --border-color: #2a2d35;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ===== Gold Gradient Text ===== */
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-line {
  width: 6rem;
  height: 1px;
  margin: 1rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-line-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
}

.navbar.scrolled {
  background: rgba(13, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 3rem;
  width: 3rem;
  border-radius: 4px;
  object-fit: cover;
}

.nav-logo-text {
  display: none;
}

@media (min-width: 640px) {
  .nav-logo-text {
    display: flex;
    flex-direction: column;
  }
}

.nav-logo-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

.nav-logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(232, 224, 208, 0.8);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  background: rgba(13, 15, 20, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  gap: 1rem;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links.mobile-open a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), var(--bg-primary));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-english {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(232, 224, 208, 0.6);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(232, 224, 208, 0.8);
  font-weight: 300;
  margin-top: 1rem;
}

.hero-location {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(200, 168, 75, 0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section Styles ===== */
.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ===== About Section ===== */
.about-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image-container {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 20, 0.6), transparent);
}

.corner-decoration {
  position: absolute;
  width: 4rem;
  height: 4rem;
}

.corner-decoration.top-right {
  top: -0.75rem;
  right: -0.75rem;
  border-top: 2px solid rgba(200, 168, 75, 0.4);
  border-right: 2px solid rgba(200, 168, 75, 0.4);
}

.corner-decoration.bottom-left {
  bottom: -0.75rem;
  left: -0.75rem;
  border-bottom: 2px solid rgba(200, 168, 75, 0.4);
  border-left: 2px solid rgba(200, 168, 75, 0.4);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  color: rgba(232, 224, 208, 0.7);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  margin: 0 auto 0.5rem;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== Brands Section ===== */
.brands-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.brands-bg {
  position: absolute;
  inset: 0;
}

.brands-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brands-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(4px);
}

.brands-content {
  position: relative;
  z-index: 10;
}

.brands-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brands-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 56rem;
    margin: 0 auto;
  }
}

.brand-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.brand-card:hover {
  border-color: rgba(200, 168, 75, 0.5);
  box-shadow: 0 8px 30px rgba(200, 168, 75, 0.05);
}

.brand-card:hover .brand-logo {
  transform: scale(1.05);
}

.brand-logo-container {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
}

.brand-logo-container.bg-white { background: #fff; }
.brand-logo-container.bg-black { background: #000; }

.brand-logo {
  max-height: 10rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-info {
  padding: 1.5rem;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(200, 168, 75, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.brand-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.brand-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.brand-card:hover .brand-accent-line {
  background: var(--gold);
}

/* ===== Products Section ===== */
.products-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.products-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: rgba(200, 168, 75, 0.4);
  box-shadow: 0 12px 40px rgba(200, 168, 75, 0.05);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-image-container {
  position: relative;
  background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
  padding: 1.5rem;
  height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  max-height: 16rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(200, 168, 75, 0.3);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-features {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.product-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-right: 1rem;
  position: relative;
}

.product-features li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.product-card-large {
  max-width: 40rem;
  margin: 0 auto;
}

.product-image-dark {
  background: linear-gradient(to bottom, #1a2030, #0d1020) !important;
}

.product-image-dark .product-image {
  max-height: 20rem;
}

.products-grid-single {
  grid-template-columns: 1fr !important;
}

/* ===== Why Us Section ===== */
.why-us-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.why-us-bg {
  position: absolute;
  inset: 0;
}

.why-us-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.92);
}

.why-us-content {
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(20, 23, 32, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(200, 168, 75, 0.4);
  background: rgba(20, 23, 32, 0.8);
}

.feature-card:hover .feature-icon {
  background: rgba(200, 168, 75, 0.2);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  background: rgba(200, 168, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  stroke: var(--gold);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Pump Features ===== */
.pump-features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pump-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pump-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pump-feature-card:hover {
  border-color: rgba(200, 168, 75, 0.4);
  transform: translateY(-4px);
}

.pump-feature-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1d25;
}

.pump-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pump-feature-info {
  padding: 1.25rem;
}

.pump-feature-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.pump-feature-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.contact-phones {
  margin-bottom: 3rem;
}

.contact-phones-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.phones-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .phones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phone-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.phone-card:hover {
  border-color: rgba(200, 168, 75, 0.4);
}

.phone-person {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.phone-number {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: 600;
}

.phone-number:hover {
  color: var(--gold-light);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: scale(1.05);
}

.whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.map-link:hover {
  border-bottom-color: var(--gold);
}

.map-container {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

.contact-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(20, 23, 32, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(200, 168, 75, 0.4);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(200, 168, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--gold);
}

.contact-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 2rem;
  width: 2rem;
  border-radius: 4px;
  object-fit: cover;
}

.footer-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

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