@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --primary-dark: #0b132b;
  --secondary-dark: #1c2541;
  --accent-blue: #3a506b;
  --electric-blue: #00b4d8;
  --accent-gold: #f2a900;
  --accent-gold-hover: #d4af37;
  
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  
  --text-dark: #1a202c;
  --text-muted: #64748b;
  --text-light: #f8f9fa;
  
  --glass-bg: rgba(28, 37, 65, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(242, 169, 0, 0.3);
  --shadow-electric: 0 0 20px rgba(0, 180, 216, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
}

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

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

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

/* RTL / LTR Configuration */
html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="ltr"] body {
  font-family: var(--font-en);
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--electric-blue);
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--electric-blue), var(--accent-gold));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: var(--bg-white);
}

.btn-outline {
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

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

.btn-whatsapp {
  background-color: #25d366;
  color: var(--bg-white);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  transition: var(--transition-normal);
}

header.scrolled .navbar {
  padding: 0.8rem 0;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--electric-blue), var(--accent-gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

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

header.scrolled .logo-text {
  color: var(--bg-white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

header.scrolled .nav-link {
  color: var(--bg-light);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.lang-toggle:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section & Slider
   ========================================================================== */
.hero {
  height: 90vh;
  min-height: 600px;
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}

.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.slide-content-inner {
  max-width: 650px;
  animation: fadeInUp var(--transition-slow) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-content-inner {
  animation: fadeInUp 0.8s 0.2s forwards;
}

.slide-tag {
  display: inline-block;
  background-color: rgba(242, 169, 0, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--bg-white) 60%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

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

.dot.active {
  background-color: var(--accent-gold);
  transform: scale(1.25);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(242, 169, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-visual {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  text-align: center;
  z-index: 5;
}

html[dir="ltr"] .experience-badge {
  right: auto;
  left: -20px;
}

.experience-years {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
}

.experience-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories {
  background-color: var(--secondary-dark);
  color: var(--text-light);
}

.categories .section-title h2 {
  color: var(--bg-white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 380px;
}

.category-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.category-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(28,37,65,0) 0%, rgba(28,37,65,0.9) 100%);
  position: relative;
  z-index: 2;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bg-white);
}

.category-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.category-card-link {
  color: var(--accent-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Products Catalog
   ========================================================================== */
.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Filter Tags */
.filter-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background-color: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-color: var(--primary-dark);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 25px;
  padding: 0.3rem 0.5rem 0.3rem 1.2rem;
  width: 100%;
  max-width: 350px;
  box-shadow: var(--shadow-sm);
}

html[dir="ltr"] .search-bar {
  padding: 0.3rem 1.2rem 0.3rem 0.5rem;
}

.search-input {
  flex-grow: 1;
  border: none;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.search-btn {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--accent-gold-hover);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  min-height: 400px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 169, 0, 0.2);
}

.product-img-container {
  height: 180px;
  position: relative;
  background-color: #f1f3f5;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--primary-dark);
  color: var(--accent-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

html[dir="ltr"] .product-badge {
  right: auto;
  left: 0.75rem;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.6rem;
}

.product-action {
  margin-top: auto;
}

.product-action .btn {
  width: 100%;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Smart Home Calculator
   ========================================================================== */
.calculator-section {
  background-color: #f1f5f9;
}

.calc-container {
  background-color: var(--bg-white);
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.calc-form {
  padding: 3rem;
}

.calc-results {
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
  color: var(--text-light);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-results::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  filter: blur(30px);
}

.calc-group {
  margin-bottom: 2.5rem;
}

.calc-group h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

/* Interactive Choice Option Card */
.choice-card {
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.choice-card i {
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.choice-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  display: none;
}

.choice-card:hover {
  border-color: var(--accent-blue);
  background-color: rgba(58, 80, 107, 0.02);
}

.choice-card.selected {
  border-color: var(--accent-gold);
  background-color: rgba(242, 169, 0, 0.04);
}

.choice-card.selected i {
  color: var(--accent-gold);
  transform: scale(1.1);
}

/* Custom Range Input */
.range-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.range-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}

.range-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 40px;
}

/* Calculator Pricing Results Display */
.price-display {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
}

.price-display-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.price-display-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1;
}

.price-display-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.calc-breakdown {
  margin-top: 1.5rem;
  flex-grow: 1;
}

.calc-breakdown-title {
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breakdown-label i {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.breakdown-val {
  font-weight: 600;
}

.calc-results-footer {
  margin-top: 2rem;
}

.calc-results-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.8rem;
}

/* ==========================================================================
   Branches & Contact Us
   ========================================================================== */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form-container {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--electric-blue);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-electric);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.branches-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.branch-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--electric-blue), var(--accent-gold));
}

html[dir="rtl"] .branch-card::before {
  left: auto;
  right: 0;
}

.branch-card:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

html[dir="ltr"] .branch-card:hover {
  transform: translateX(5px);
}

.branch-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-line i {
  color: var(--accent-blue);
  margin-top: 0.2rem;
  font-size: 1rem;
}

.detail-line strong {
  color: var(--text-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-right: 5px;
}

html[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Modals (Product Detail View)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

html[dir="ltr"] .modal-close {
  right: auto;
  left: 1rem;
}

.modal-close:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.modal-img-wrapper {
  background-color: #f1f3f5;
  height: 100%;
  min-height: 300px;
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.modal-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.modal-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .calc-container {
    grid-template-columns: 1fr;
  }
  
  .calc-results {
    border-top: 1px solid var(--glass-border);
  }
  
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .slide-content h1 {
    font-size: 2.2rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 3rem 0;
    transition: var(--transition-normal);
    z-index: 999;
    gap: 2rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    max-width: 100%;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
  }
  
  .modal-img-wrapper {
    height: 200px;
    min-height: 200px;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-form {
    padding: 1.5rem;
  }
  
  .calc-results {
    padding: 1.5rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}
