/* CSS Variables based on SMH Logo */
:root {
  --primary-red: #AF2330;
  --primary-red-hover: #8f1c26;
  --secondary-navy: #1D2E5C;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-light: #e5e7eb;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-navy);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

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

.btn-outline {
  border-color: var(--secondary-navy);
  color: var(--secondary-navy);
}

.btn-outline:hover {
  background-color: var(--secondary-navy);
  color: var(--white);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Header & Navigation */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.svg-icon svg {
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-navy);
  line-height: 1.2;
}

.footer-logo-wrapper .logo-text span {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary-red);
}

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

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

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section  update*/ 
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(29, 46, 92, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-bottom: 60px;
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.badge i {
  font-size: 2rem;
  color: var(--primary-red);
}

.badge span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Sections Global */
.products-section, .about-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-red);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 250px;
  overflow: hidden;
  background-color: #eee;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.category-sub {
  color: var(--secondary-navy);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.category-desc {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.product-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.product-list li i {
  color: var(--primary-red);
  font-size: 0.6rem;
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.mv-box {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
}

.mv-box h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--secondary-navy);
}

.mv-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  height: 500px;
}

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

.experience-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 30px;
  border-top-right-radius: 8px;
}

.experience-badge h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 5px;
}

/* Footer & Contact */
.footer {
  background-color: var(--secondary-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info i {
  color: var(--primary-red);
  margin-top: 5px;
}

.branding-col p {
  margin-top: 25px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 15px;
    align-self: stretch;
  }
  .product-grid, .footer-grid, .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100% + 40px);
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-light);
    gap: 15px;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 10px 0;
  }

  .navbar .btn-outline {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Language Toggle Button */
.lang-toggle {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--secondary-navy);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-toggle:hover {
  background-color: var(--bg-light);
  border-color: var(--secondary-navy);
}

/* Bi-directional and Bilingual Support */
html[lang="en"] .ar {
  display: none !important;
}

html[lang="ar"] .en {
  display: none !important;
}

html[lang="ar"] body {
  font-family: 'Tajawal', 'Inter', sans-serif;
}

html[lang="ar"] .svg-icon text {
  font-family: 'Inter', sans-serif; /* Keep SMH logo text in English font */
}

/* Adjustments for RTL flow */
html[lang="ar"] .trust-badges {
  direction: rtl;
}

html[lang="ar"] .badge,
html[lang="ar"] .mv-box h4,
html[lang="ar"] .product-list li,
html[lang="ar"] .contact-info li {
  direction: rtl;
}

html[lang="ar"] .badge {
  text-align: right;
}

html[lang="ar"] .product-list li i {
  margin-left: 10px;
  margin-right: 0;
}

html[lang="ar"] .contact-info i {
  margin-left: 15px;
  margin-right: 0;
}

html[lang="ar"] .btn {
  flex-direction: row-reverse;
}
