/*
  =========================================
  Abdullah Al Othaibi Drinking Water CSS
  Modern, Dynamic, Premium Water-Themed Styling
  =========================================
*/

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

:root {
  /* Color Palette - White/Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(241, 245, 249, 0.7);
  --bg-card-hover: rgba(226, 232, 240, 0.9);
  
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --accent-cyan: #0ea5e9;
  --accent-cyan-glow: rgba(14, 165, 233, 0.2);
  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  
  --whatsapp: #16a34a;
  --whatsapp-glow: rgba(22, 163, 74, 0.25);
  --call-red: #dc2626;
  --call-red-glow: rgba(220, 38, 38, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-white: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-footer: #f1f5f9;
  --bg-section-accent: rgba(241, 245, 249, 0.6);
  --bg-badge: rgba(255, 255, 255, 0.95);
  --bg-gradient-start: #e0f2fe;
  
  /* Fonts */
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Effects */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-main: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --glass-blur: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-en);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

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

/* Utility Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 var(--primary-glow);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 119, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 var(--accent-gold-glow);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 183, 3, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 183, 3, 0);
  }
}

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

@keyframes pulseCall {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--call-red-glow);
  }
  50% {
    transform: scale(1.03);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

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

@keyframes floatBadge {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes ripple {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Global Background Waves Overlay */
.water-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, var(--bg-gradient-start) 0%, var(--bg-primary) 70%);
  overflow: hidden;
}

.water-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='600' viewBox='0 0 1000 600'%3E%3Cpath d='M0,300 C150,200 350,400 500,300 C650,200 850,400 1000,300 L1000,600 L0,600 Z' fill='%230077b6' fill-opacity='0.03'/%3E%3C/svg%3E") repeat-x;
  animation: ripple 25s linear infinite;
  opacity: 0.8;
  transform: translate(-25%, -25%);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-svg {
  width: 45px;
  height: 45px;
  fill: var(--accent-cyan);
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 245, 212, 0.25));
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0, 245, 212, 0.45));
}

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

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: var(--text-main);
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.logo-phone {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Highlight Primary Phone Number Header Button */
.phone-badge-header {
  background: linear-gradient(135deg, var(--call-red) 0%, #d90429 100%);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
  animation: pulseCall 2.5s infinite;
  transition: var(--transition-smooth);
}

.phone-badge-header:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.phone-number-highlight {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Language Selector styling */
.lang-selector-container {
  position: relative;
}

.lang-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.lang-select:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding-top: 130px;
  padding-bottom: 60px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span {
  background: linear-gradient(135deg, #00b4d8 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 480px;
}

.hero-primary-call {
  background: linear-gradient(135deg, var(--call-red) 0%, #d90429 100%);
  color: var(--text-white);
  padding: 18px 30px;
  border-radius: var(--border-radius-md);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(255, 59, 48, 0.5);
  transition: var(--transition-smooth);
  animation: pulseCall 3s infinite;
}

.hero-primary-call:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 12px 30px rgba(255, 59, 48, 0.7);
}

.hero-secondary-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-whatsapp-btn {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #128c7e 100%);
  color: var(--text-white);
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.hero-whatsapp-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.hero-secondary-phone {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.hero-secondary-phone:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Hero Media Panel */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

.hero-img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-main);
  border: 1px solid var(--border-color);
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-img:hover {
  transform: scale(1.02) rotate(1deg);
}

.badge-floating {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--bg-badge);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-cyan);
  padding: 15px 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-main);
  z-index: 3;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-floating:active {
  cursor: grabbing;
}

.badge-floating:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15);
}

.badge-floating-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatBadge 4s ease-in-out infinite;
}

[dir="rtl"] .badge-floating {
  right: auto;
  left: -20px;
}

.badge-icon {
  width: 35px;
  height: 35px;
  fill: var(--accent-cyan);
}

.badge-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.badge-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Features/Services Section */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-title span {
  background: linear-gradient(135deg, #00b4d8 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 35px 30px;
  box-shadow: var(--shadow-main);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-cyan) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 245, 212, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon-container {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(0, 119, 182, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.card-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-cyan);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Calculator Section */
.calc-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-main);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 25px;
}

.calc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.slider-container {
  position: relative;
  padding: 10px 0;
}

/* Custom styled inputs */
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calc-select:focus {
  border-color: var(--accent-cyan);
}

.calc-result-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.calc-result-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.calc-result-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 5px;
}

.calc-result-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.calc-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--whatsapp) 0%, #128c7e 100%);
  color: var(--text-white);
  padding: 15px 25px;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
  animation: pulseWhatsApp 3s infinite;
}

.calc-order-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Trust Gallery / Proof Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-main);
  border: 1px solid var(--border-color);
  aspect-ratio: 16/10;
}

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

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(10, 17, 40, 0.95));
  padding: 20px;
  color: var(--text-white);
  transition: var(--transition-smooth);
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Map & Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-main);
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-phone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.contact-phone-item.primary-phone-highlight {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15) 0%, rgba(217, 4, 41, 0.05) 100%);
  border-color: var(--call-red);
}

.contact-phone-item.primary-phone-highlight .phone-val {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
}

.contact-phone-item:hover {
  transform: translateX(5px);
  border-color: var(--accent-cyan);
}

[dir="rtl"] .contact-phone-item:hover {
  transform: translateX(-5px);
}

.phone-label-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 119, 182, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-circle.whatsapp-circle {
  background: rgba(37, 211, 102, 0.15);
}

.phone-icon-circle.call-circle {
  background: rgba(255, 59, 48, 0.15);
}

.phone-icon {
  width: 18px;
  height: 18px;
}

.phone-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.phone-val {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Map Card */
.map-card {
  height: 100%;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-marker-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-cyan);
}

.map-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.map-btn-link {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.map-btn-link:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.map-iframe-container {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
}

/* Footer styling */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 100px 0; /* extra space at the bottom for floating bar */
}

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

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 15px;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-cyan);
}

[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

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

.footer-link-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-link-item a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

[dir="rtl"] .footer-link-item a:hover {
  transform: translateX(-3px);
}

.footer-contact-details {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating Bottom Action Bar for Mobile & Laptop */
.floating-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  z-index: 90;
  display: none; /* Display is toggled with Media Query */
  box-shadow: var(--shadow-main);
}

.floating-bar-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.floating-btn-call {
  background: linear-gradient(135deg, var(--call-red) 0%, #d90429 100%);
  color: var(--text-white);
  padding: 12px;
  border-radius: var(--border-radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
  animation: pulseCall 2.5s infinite;
  text-align: center;
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #128c7e 100%);
  color: var(--text-white);
  padding: 12px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive Styles */

/* Laptop Mode (up to 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card:last-child {
    grid-column: span 2;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Tablet & Mobile Mode (up to 768px) */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .logo-title {
    font-size: 1rem;
  }
  
  .phone-badge-header {
    display: none; /* Hidden on mobile header, shown in floating bottom bar instead */
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .tagline-carousel {
    border-left: none;
    border-right: none;
    border-bottom: 2px solid var(--accent-cyan);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 15px;
  }
  
  .hero-ctas {
    margin: 0 auto;
  }
  
  .hero-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .badge-floating {
    top: -15px;
    bottom: auto;
    right: 50%;
    transform: translateX(50%);
  }
  
  [dir="rtl"] .badge-floating {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }
  
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card:last-child {
    grid-column: span 1;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  /* Show mobile floating bottom bar */
  .floating-bottom-bar {
    display: block;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-secondary-buttons {
    grid-template-columns: 1fr;
  }
  
  .calc-card {
    padding: 20px;
  }
  
  .floating-bar-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .floating-btn-call {
    font-size: 1rem;
    padding: 10px;
  }
  
  .floating-btn-whatsapp {
    font-size: 0.95rem;
    padding: 10px;
  }
  
  footer {
    padding-bottom: 140px; /* extra margin for stacked floating buttons */
  }
}
