/* Import Google Fonts - optimized with font-display */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Roboto:wght@400;700;900&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Roboto', 'Arial', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

/* Header Section */
.header {
  background: white;
  padding: 0;
  position: relative;
  box-shadow: none;
  border-bottom: 15px solid #FFBF0D;
  contain: layout style;
  will-change: transform;
  z-index: 100;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    to bottom,
    #FF7300 0px,
    #FF7300 5px,
    #DA2E22 5px,
    #DA2E22 10px
  );
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
  position: relative;
}

.header .logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.header .logo img {
  height: 120px;
  width: auto;
  position: relative;
  top: 20px;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  top: 20px;
}

.nav-link {
  color: #CC5C00;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: #B81C0C;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(218, 46, 34, 0.3);
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: #DA2E22;
  padding: 20px 0;
  position: relative;
  overflow: visible;
  contain: layout paint;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  background: radial-gradient(circle, #FFBF0D 0%, transparent 70%);
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  top: 10%;
  left: 5%;
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

.hero::after {
  bottom: 15%;
  right: 8%;
  width: 30px;
  height: 30px;
  animation-delay: 0.5s;
  animation-duration: 2.5s;
  opacity: 0.7;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) translateZ(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) translateZ(0);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  max-width: 500px;
  z-index: 1;
}

.slogan {
  max-width: 500px;
  width: 100%;
  margin-bottom: 0;
  height: auto;
  object-fit: contain;
}

.hero-description {
  color: white;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 420px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 600;
}

.hero-image {
  flex: 1.5;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 450px;
  z-index: 3;
  margin-left: -100px;
}

.hero-image img {
  max-width: 750px;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.1s ease-out;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-20px) translateZ(0);
  }
}

.hero-image-mobile {
  display: none;
}

/* Certifications Bar */
.certifications {
  background: #FFBF0D;
  padding: 40px 20px;
  contain: layout style;
}

.cert-container {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  background: #FF7300;
  border-radius: 50px;
  padding: 0 120px;
  height: 70px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cert-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  position: relative;
  z-index: 2;
}

.cert-item img {
  width: 110px;
  height: 110px;
}

/* Offers Section */
.offers-section {
  background: #FFBF0D;
  padding: 40px 20px 60px;
  contain: layout style;
}

.offers-header {
  text-align: center;
  margin-bottom: 30px;
}

.offers-title {
  font-size: 48px;
  font-weight: bold;
  color: #DA2E22;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.offers-title .special {
  color: #FF7300;
  font-style: italic;
  font-weight: 600;
}

.offers-images {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
}

.big-offer {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.offers-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.offers-grid img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s;
  will-change: transform;
  transform: translateZ(0);
}

.offers-grid img:hover {
  transform: scale(1.05);
}

/* Services Section */
.services {
  background: #DA2E22;
  padding: 60px 20px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
  border-bottom: 20px solid #FFBF0D;
  contain: layout style;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 1 auto;
  min-width: 280px;
  transition: transform 0.3s ease;
  padding: 15px;
  border-radius: 15px;
  will-change: transform;
  transform: translateZ(0);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-card > div {
  min-width: 200px;
}

.service-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.service-title {
  color: white;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.service-desc {
  color: rgba(255, 255, 255, 0.98);
  font-size: 15px;
  line-height: 1.5;
  max-width: 180px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-weight: 500;
}

/* Footer Section */
.footer {
  background: #15155E;
  color: white;
  padding: 40px 20px;
  contain: layout style;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-copyright {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-copyright a {
  color: #FFD84D;
  text-decoration: none;
  text-decoration-line: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-right {
  flex: 1;
  text-align: right;
  min-width: 300px;
}

.footer-address {
  font-size: 18px;
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 20px;
}

.footer-map {
  margin-top: 20px;
  max-width: 400px;
  margin-left: auto;
}

.footer-map iframe {
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    overflow: hidden;
    padding: 60px 20px 40px;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-image {
    min-height: 300px;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .hero-image img {
    max-width: 400px;
  }

  .hero-image-desktop {
    display: none;
  }

  .hero-image-mobile {
    display: block;
  }

  .cert-container {
    gap: 30px;
  }

  .cert-item {
    width: 90px;
    height: 90px;
  }

  .cert-item img {
    max-width: 60px;
    max-height: 60px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offers-title {
    font-size: 32px;
  }

  .services {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-left {
    min-width: 100%;
  }

  .footer-logo {
    height: 60px;
    margin-bottom: 15px;
  }

  .footer-copyright {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .social-icons {
    justify-content: center;
    gap: 15px;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
  }

  .footer-right {
    text-align: center;
    min-width: 100%;
  }

  .footer-address {
    font-size: 16px;
    text-align: center;
    direction: rtl;
    margin-bottom: 15px;
  }

  .footer-map {
    margin: 0 auto;
    max-width: 100%;
  }

  .footer-map iframe {
    height: 250px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Coming Soon Banner */
.coming-soon-banner {
  background: linear-gradient(135deg, #FF7300 0%, #DA2E22 100%);
  color: white;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.3em;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  letter-spacing: 1px;
  contain: layout style paint;
}

/* Hover Effects */
.social-icons a {
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  opacity: 0.8;
}

/* Menu Coming Soon Section */
.menu-coming-soon {
  background: linear-gradient(135deg, #FF7300 0%, #DA2E22 100%);
  padding: 80px 20px;
  text-align: center;
  contain: layout style;
}

.menu-content {
  max-width: 800px;
  margin: 0 auto;
}

.menu-title {
  color: white;
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.menu-message {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 50px 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.menu-icon {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.menu-text {
  color: white;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.menu-subtext {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.5em;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.offers-grid img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.offers-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #FF7300;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
  border: none;
  font-size: 24px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #D32F2F;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

/* Phone CTA Enhancement */
.contact-section a {
  transition: transform 0.3s ease;
  border-radius: 15px;
  padding: 10px 20px;
  display: inline-flex !important;
}

.contact-section a:hover {
  transform: translateY(-5px) scale(1.03);
}
