/* ==========================================================================
   Purana India - Responsive & Multi-Device Stylesheet
   Supports Mobile, Tablet, Laptop, Desktop, Large Screens & RTL Layouts
   ========================================================================== */

:root {
  --primary-gold: #c5a059;
  --gold-hover: #b08b46;
  --dark-bg: #111111;
  --light-bg: #f9f9f9;
  --text-dark: #222222;
  --text-muted: #666666;
  --border-light: #eeeeee;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

ul {
  list-style: none;
}

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

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

/* Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #f3d79b;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.promo-banner i {
  margin-right: 6px;
  color: var(--primary-gold);
}

/* Top Header & Language Switcher */
.top-bar {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}

.social-icon:hover {
  background: var(--primary-gold);
  transform: translateY(-2px);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--primary-gold);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

/* Main Navigation Header & Dropdown */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dark-bg);
}

.logo-text span {
  color: var(--primary-gold);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

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

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1100;
  border-top: 3px solid var(--primary-gold);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: #fdfaf3;
  color: var(--primary-gold);
  padding-left: 25px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 5px;
}

/* Page Header Banner */
.page-header-section {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.page-header-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #f3d79b;
}

.page-header-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ==========================================================================
   Image Carousel (Slider) Component
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 40px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 480px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  padding: 30px 25px 20px 25px;
  text-align: center;
}

.carousel-caption h3 {
  font-size: 1.6rem;
  color: #f3d79b;
  margin-bottom: 6px;
}

.carousel-caption p {
  font-size: 1.05rem;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-gold);
  color: #111;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--primary-gold);
  transform: scale(1.2);
}

/* ==========================================================================
   Product Cards Grid & High Quality Responsive Images
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  position: relative;
  width: 100%;
}

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

.product-visual {
  width: 100%;
  height: 400px;
  background: #fafafa;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
}

.product-card:hover .product-visual img {
  transform: scale(1.04);
}

.product-visual.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  gap: 10px;
  background: #f5f5f5;
}

.product-visual.no-image i {
  font-size: 3rem;
  color: #ccc;
}

.product-badge-sold {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.product-spec {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}

.product-spec strong {
  color: var(--text-dark);
  font-weight: 600;
}

.product-brand {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.product-action {
  margin-top: auto;
  padding-top: 15px;
}

.btn-wa-inquire {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-wa-inquire:hover {
  background: #1eb956;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-hero {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-hero:hover {
  background: var(--gold-hover);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* RTL (Right-to-Left) Stylesheet */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .top-bar .container {
  flex-direction: row-reverse;
}

html[dir="rtl"] .main-header .container {
  flex-direction: row;
}

html[dir="rtl"] .nav-links {
  direction: rtl;
}

html[dir="rtl"] .nav-dropdown .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .product-card {
  text-align: right;
}

html[dir="rtl"] .product-badge-sold {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .product-spec strong {
  margin-left: 4px;
  margin-right: 0;
}

html[dir="rtl"] .carousel-btn.prev {
  left: auto;
  right: 15px;
}

html[dir="rtl"] .carousel-btn.next {
  right: auto;
  left: 15px;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Category Overview Cards & Bottom Alignment */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  padding: 35px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

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

.service-card .exp-action,
.service-card > a.btn-hero {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}

/* Advantages Grid: 3 boxes per row in 2 rows */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.advantage-item {
  background: #f9f9f9;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

/* Large Screens (> 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-visual {
    height: 420px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Standard Laptops & Desktops (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-visual {
    height: 380px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile & Tablet Devices (< 992px) */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 290px;
    height: calc(100vh - 75px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    gap: 18px;
    overflow-y: auto;
    z-index: 1200;
  }

  html[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
  }

  .nav-links.active {
    left: 0;
  }

  html[dir="rtl"] .nav-links.active {
    right: 0;
    left: auto;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 15px;
    display: block;
    min-width: 100%;
  }

  html[dir="rtl"] .dropdown-menu {
    padding-left: 0;
    padding-right: 15px;
  }

  .dropdown-menu li a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-visual {
    height: 340px;
  }

  .carousel-slide {
    height: 360px;
  }
}

/* Small Tablets & Large Phones (< 768px) */
@media (max-width: 767px) {
  .top-bar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-header-section {
    padding: 40px 15px;
  }

  .page-header-section h1 {
    font-size: 1.9rem;
  }

  .page-header-section p {
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card-name {
    font-size: 1.05rem;
  }

  .product-body {
    padding: 15px;
  }

  .product-visual {
    height: 280px;
  }

  .carousel-slide {
    height: 280px;
  }

  .carousel-caption h3 {
    font-size: 1.25rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
  }
}

/* Small Mobile Phones (< 576px) */
@media (max-width: 575px) {
  .container {
    padding: 0 14px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-visual {
    height: 320px;
  }

  .btn-hero {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-hero {
    width: 100%;
  }
}


/* Comprehensive RTL (Right-to-Left) Layout & Typography System */
html[dir=rtl] {
  direction: rtl;
  text-align: right;
}

html[dir=rtl] body {
  direction: rtl;
  text-align: right;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Heebo', 'Rubik', sans-serif;
}

html[dir=rtl] .top-header .header-inner,
html[dir=rtl] .nav-inner {
  flex-direction: row-reverse;
}

html[dir=rtl] .header-actions {
  flex-direction: row-reverse;
}

html[dir=rtl] .nav-menu {
  flex-direction: row-reverse;
}

html[dir=rtl] .breadcrumb {
  flex-direction: row-reverse;
}

html[dir=rtl] .breadcrumb li + li::before {
  content: \;
  padding: 0 8px;
}

html[dir=rtl] .product-card,
html[dir=rtl] .service-card,
html[dir=rtl] .advantage-card {
  text-align: right;
}

html[dir=rtl] .product-spec {
  text-align: right;
}

html[dir=rtl] .product-spec strong {
  margin-left: 6px;
  margin-right: 0;
}

html[dir=rtl] .btn-wa-inquire i,
html[dir=rtl] .btn-wa-header i,
html[dir=rtl] .btn-hero i {
  margin-left: 8px;
  margin-right: 0;
}

html[dir=rtl] .form-group input,
html[dir=rtl] .form-group textarea {
  text-align: right;
  direction: rtl;
}

html[dir=rtl] .contact-wrapper {
  text-align: right;
}

html[dir=rtl] .text-center,
html[dir=rtl] .section-header,
html[dir=rtl] .hero-content {
  text-align: center;
}
