/* 
   ==========================================================================
   Al-Mawasem Trading Company (شركة المواسم التجارية)
   Premium CSS Stylesheet
   ========================================================================== 
*/

/* Google Font Import - Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* CSS Variables */
:root {
  --primary: #134E5E;
  --primary-dark: #0a2d37;
  --primary-light: #1f6b81;
  --secondary: #D4AF37;
  --secondary-light: #e5c35b;
  --secondary-dark: #aa861d;
  --accent-green: #2E7D32;
  --bg-light: #F9F9F9;
  --bg-white: #ffffff;
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --text-light: #F9FAFB;
  --font-family: 'Tajawal', sans-serif;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 40px rgba(19, 78, 94, 0.15);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl; /* Arabic support */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: var(--font-family);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Premium Typography Helper Classes */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  color: var(--primary);
  font-weight: 800;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 10px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--bg-white);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

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

.btn-outline-teal:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-3px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(19, 78, 94, 0.95);
  backdrop-filter: blur(10px);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}

header.scrolled .logo-img {
  height: 42px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--bg-white);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--bg-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: block;
}

/* Mobile Nav Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--bg-white);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Mobile Sidebar menu overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 280px;
  background-color: var(--primary-dark);
  box-shadow: -5px 0 25px rgba(0,0,0,0.3);
  z-index: 1001;
  transition: var(--transition);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-overlay.open {
  right: 0;
}

.mobile-menu-close {
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--bg-white);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  color: var(--bg-white);
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a:hover {
  color: var(--secondary);
  padding-right: 5px;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Parallax Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 45, 55, 0.95) 0%, rgba(19, 78, 94, 0.75) 50%, rgba(10, 45, 55, 0.9) 100%);
  z-index: 1;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
}

.hero-tagline {
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  color: var(--secondary-light);
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  animation: pulse-gold 2s infinite alternate;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator:hover {
  color: var(--secondary);
}

.scroll-indicator span {
  font-size: 0.85rem;
  font-weight: 500;
}

.scroll-indicator i {
  animation: bounce 1.5s infinite;
}

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

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--bg-white);
  position: relative;
}

.about-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.8;
}

.about-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.about-features li i {
  color: var(--accent-green);
  font-size: 1.2rem;
  background-color: rgba(46, 125, 50, 0.1);
  padding: 8px;
  border-radius: 50%;
}

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

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  border: 4px solid var(--secondary);
  border-radius: var(--border-radius-lg);
  z-index: 1;
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.02);
}

.about-stats {
  position: absolute;
  bottom: -30px;
  left: 20px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 25px 35px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(19, 78, 94, 0.25);
  z-index: 3;
  display: flex;
  gap: 30px;
  border-right: 4px solid var(--secondary);
}

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

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
  display: block;
  line-height: 1.2;
}

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

/* Services / Categories Section */
.services {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.services-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 45px 35px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

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

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(19, 78, 94, 0.05);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: var(--secondary);
  transform: rotate(-5deg) scale(1.05);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.service-link {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--secondary-dark);
}

.service-card:hover .service-link i {
  transform: translateX(-5px); /* Move left in RTL */
}

/* Showroom Section */
.showroom {
  padding: 100px 0;
  background-color: var(--bg-white);
  overflow: hidden;
}

.showroom-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.showroom-image-box {
  position: relative;
}

.showroom-image-box::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80%;
  height: 80%;
  border: 4px dashed var(--secondary);
  border-radius: var(--border-radius-lg);
  z-index: 1;
  pointer-events: none;
}

.showroom-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}

.showroom-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.showroom-lead {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.showroom-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.showroom-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.showroom-feat-item i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 4px;
}

.showroom-feat-item h4 {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.showroom-feat-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact & Location Section */
.contact {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.contact-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-right: 4px solid var(--primary);
}

.contact-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-card-icon {
  width: 55px;
  height: 55px;
  background-color: rgba(19, 78, 94, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}

.contact-detail-card:hover .contact-card-icon {
  background-color: var(--primary);
  color: var(--secondary);
}

.contact-card-details h4 {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-card-details p,
.contact-card-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-phone-number {
  font-size: 1.3rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  display: inline-block;
  direction: ltr; /* numbers look better LTR */
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Placing it bottom left in RTL */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-tooltip {
  position: absolute;
  left: 80px; /* Display tooltip to the right of the button */
  background-color: #333;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  pointer-events: none;
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  left: 75px;
}

/* Contact Logo Panel */
.contact-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  box-shadow: var(--box-shadow);
  border: 4px solid var(--bg-white);
  min-height: 380px;
}

.contact-logo-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(19, 78, 94, 0.15));
}

/* Map Section below contact info */
.contact-map-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 0;
}

.map-container {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 4px solid var(--bg-white);
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* Footer styling */
footer {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 80px 0 30px 0;
  position: relative;
  border-top: 5px solid var(--secondary);
}

.footer-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo-img {
  height: 60px;
  align-self: flex-start;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 350px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--bg-white);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-menu a:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Footer Bottom */
.footer-bottom {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-designed-by {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nexen-credit {
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
  opacity: 0.85;
}

.nexen-credit:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.nexen-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

/* CSS Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for sequential animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Overlapping Products Showcase Section */
.products-overlap-section {
  background-color: var(--bg-light);
  padding: 0 0 100px 0;
  position: relative;
  z-index: 10;
}

.products-overlap-container {
  width: 90%;
  max-width: 1200px;
  margin: -100px auto 0 auto;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(10, 45, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.products-overlap-container.products-slider-layout {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 0;
  padding: 50px 24px 40px;
}

.overlap-tag {
  background-color: rgba(19, 78, 94, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 15px;
}

.slider-header {
  text-align: center;
  margin: 0 auto 40px;
  width: 90%;
  max-width: 1200px;
}

.slider-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.slider-header .overlap-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 850px;
  margin: 0 auto;
}

/* Slider core components */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.slider-viewport {
  width: 100%;
  overflow: hidden;
  padding: 15px 5px;
}

.slider-track {
  display: flex;
  gap: 25px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
}

.slider-slide {
  flex: 0 0 calc(33.333% - 17px);
  box-sizing: border-box;
}

/* Slide Cards styling */
.product-slide-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(19, 78, 94, 0.06);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-slide-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(212, 175, 55, 0.35);
}

.product-image-box {
  position: relative;
  width: 100%;
  padding-top: 90%; /* Rectangular/Square aspect ratio */
  overflow: hidden;
  background-color: var(--bg-light);
}

.product-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-slide-card:hover .product-slide-img {
  transform: scale(1.08);
}

.product-card-info {
  padding: 20px;
  text-align: center;
  background-color: var(--bg-white);
  border-top: 1px solid rgba(19, 78, 94, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.product-card-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.product-card-tag {
  display: inline-block;
  align-self: center;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--secondary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  z-index: 10;
}

.slider-nav-btn:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.slider-nav-btn.prev-btn {
  right: -24px;
}

.slider-nav-btn.next-btn {
  left: -24px;
}

/* Dots Indicators */
.slider-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(19, 78, 94, 0.15);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.slider-dot.active {
  background-color: var(--secondary);
  width: 25px;
  border-radius: 10px;
}

.slider-cta-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* Desktop & tablet: full-width grid — all products visible at once */
@media (min-width: 769px) {
  .products-overlap-container.products-slider-layout .slider-nav-btn,
  .products-overlap-container.products-slider-layout .slider-dots-container {
    display: none;
  }

  .products-overlap-container.products-slider-layout .slider-viewport {
    overflow: visible;
    padding: 15px 0;
    direction: ltr;
  }

  .products-overlap-container.products-slider-layout .slider-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
    transform: none !important;
    transition: none;
    direction: ltr;
  }

  .products-overlap-container.products-slider-layout .slider-slide {
    flex: none;
    width: auto;
  }

  .products-overlap-container.products-slider-layout .product-image-box {
    padding-top: 0;
    aspect-ratio: 1 / 1;
  }

  .products-overlap-container.products-slider-layout .product-slide-img {
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
  }

  .products-overlap-container.products-slider-layout .product-card-info h3 {
    font-size: 0.95rem;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .products-overlap-container.products-slider-layout .slider-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .about-grid, .showroom-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-image-wrapper {
    order: -1; /* image on top on tablets/mobiles */
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .showroom-image-box {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-logo-panel {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    min-height: 320px;
    padding: 40px 30px;
  }

  .contact-logo-img {
    max-width: 280px;
  }

  .contact-map-section {
    margin-top: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-overlap-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
    margin-top: -60px;
  }

  .products-overlap-image {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .nav-menu, .header-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-stats {
    position: static;
    margin-top: 20px;
    justify-content: center;
  }

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

  .footer-brand, .footer-links, .footer-newsletter {
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo-img {
    align-self: center;
  }

  .contact-logo-panel {
    min-height: 260px;
    padding: 30px 20px;
  }

  .contact-logo-img {
    max-width: 220px;
  }

  .map-container iframe {
    height: 300px;
  }

  .map-container {
    min-height: 300px;
  }

  .footer-links h4::after, .footer-newsletter h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-designed-by {
    justify-content: center;
  }

  .products-overlap-container {
    margin-top: -40px;
    padding: 30px 20px;
  }
  
  .products-overlap-content h2 {
    font-size: 1.8rem;
  }
  
  .overlap-features-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Slider mobile: one slide at a time, manual swipe */
  .products-overlap-container.products-slider-layout {
    padding: 40px 0 30px;
  }

  .products-overlap-container.products-slider-layout .slider-header {
    width: 100%;
    padding: 0 16px;
  }

  .products-overlap-container.products-slider-layout .slider-header h2 {
    font-size: 1.6rem;
  }

  .products-overlap-container.products-slider-layout .slider-wrapper {
    width: 100%;
  }

  .products-overlap-container.products-slider-layout .slider-viewport {
    width: 100%;
    padding: 8px 0;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .products-overlap-container.products-slider-layout .slider-viewport.is-dragging {
    cursor: grabbing;
  }

  .products-overlap-container.products-slider-layout .slider-viewport.is-dragging .slider-track {
    transition: none;
  }

  .products-overlap-container.products-slider-layout .slider-track {
    display: flex;
    gap: 0;
    width: auto;
    will-change: transform;
  }

  .products-overlap-container.products-slider-layout .slider-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0 12px;
  }

  .products-overlap-container.products-slider-layout .slider-nav-btn {
    display: none;
  }

  .products-overlap-container.products-slider-layout .product-slide-card {
    width: 100%;
    margin: 0 auto;
  }

  .products-overlap-container.products-slider-layout .product-image-box {
    padding-top: 0;
    aspect-ratio: 1 / 1;
    max-height: 300px;
  }

  .products-overlap-container.products-slider-layout .product-slide-img {
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
  }

  .products-overlap-container.products-slider-layout .product-card-info {
    padding: 14px 16px;
  }

  .products-overlap-container.products-slider-layout .product-card-info h3 {
    font-size: 1rem;
  }

  .products-overlap-container.products-slider-layout .slider-dots-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) and (hover: none) {
  .product-slide-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
  }

  .product-slide-card:hover .product-slide-img {
    transform: none;
  }
}

/* ==========================================
   6. Language Switcher Styling & LTR Overrides
   ========================================== */

/* Lang Switcher Button styling */
.lang-switch-btn {
  background-color: var(--secondary);
  border: 2px solid transparent;
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.lang-switch-btn:hover {
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
}

.lang-switch-btn i {
  font-size: 0.95rem;
}

/* Hide header lang switcher on mobile/tablet */
@media (max-width: 1024px) {
  .header-lang-wrapper {
    display: none;
  }
}

/* LTR layout overrides */
html[dir="ltr"] {
  font-family: 'Outfit', 'Inter', sans-serif;
}

html[dir="ltr"] .section-title-wrapper {
  text-align: left !important;
}

html[dir="ltr"] .about-stats {
  left: auto;
  right: 20px;
  border-left: 4px solid var(--secondary);
  border-right: none;
}

html[dir="ltr"] .slider-nav-btn.prev-btn {
  right: auto;
  left: -24px;
}

html[dir="ltr"] .slider-nav-btn.next-btn {
  left: auto;
  right: -24px;
}

html[dir="ltr"] .slider-nav-btn i {
  transform: rotate(180deg);
}

html[dir="ltr"] .footer-menu i,
html[dir="ltr"] .service-link i,
html[dir="ltr"] .showroom-cta i,
html[dir="ltr"] .btn-secondary i {
  transform: scaleX(-1); /* Flips directional arrow icons horizontally */
}

@media (max-width: 1024px) {
  html[dir="ltr"] .slider-nav-btn.prev-btn {
    right: auto;
    left: -10px;
  }
  html[dir="ltr"] .slider-nav-btn.next-btn {
    left: auto;
    right: -10px;
  }
}
