/* ==========================================================================
   Abraj Al Noor Appliance Repair Shop (محل أبراج النور لصيانة الأجهزة المنزلية)
   Modern Arabic (RTL) Stylesheet - Storefront Navy & Yellow Aesthetic
   ========================================================================== */

:root {
  --navy-primary: #0F2C59;
  --navy-dark: #071933;
  --navy-light: #183B75;
  --gold-accent: #FFC107;
  --gold-hover: #E5AC00;
  --gold-deep: #D99B00;
  --gold-light: #FFF8E1;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5D;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --border-gold: #FFC107;
  --shadow-gold: 0 8px 25px -4px rgba(255, 193, 7, 0.45);
  --shadow-navy: 0 10px 25px -5px rgba(15, 44, 89, 0.2);
  --shadow-green: 0 8px 25px -4px rgba(37, 211, 102, 0.45);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* Smooth anchor scrolling offset for sticky header */
section[id] {
  scroll-margin-top: 5rem;
}

/* Hero Section Exact 40% Viewport Height */
.hero-viewport-40 {
  height: 40vh;
  min-height: 240px;
  max-height: 40vh;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero-viewport-40 {
    height: 40vh;
    min-height: 220px;
    max-height: 40vh;
  }
}

/* Button Pulse Animation */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 193, 7, 0);
  }
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.btn-cta-call {
  background: linear-gradient(135deg, #FFD54F 0%, #FFC107 50%, #FFA000 100%);
  color: #071933;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-gold 3s infinite;
}

.btn-cta-call:hover {
  background: linear-gradient(135deg, #FFE082 0%, #FFC107 50%, #E5AC00 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(255, 193, 7, 0.6);
}

.btn-cta-whatsapp {
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  box-shadow: var(--shadow-green);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-green 3s infinite 1.5s;
}

.btn-cta-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(37, 211, 102, 0.6);
}

/* Service Card Hover Effects */
.service-card {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
  box-shadow: 0 15px 30px -5px rgba(15, 44, 89, 0.12);
}

.service-card:hover .service-icon-box {
  background-color: var(--navy-primary);
  color: var(--gold-accent);
  transform: scale(1.08);
}

.service-icon-box {
  transition: all 0.25s ease-in-out;
}

/* Special Used/New Appliance Card Styling */
.special-service-card {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF2 100%);
  border: 2px solid #FFC107;
}

.special-badge-tag {
  background: linear-gradient(90deg, #FFC107, #FFA000);
  color: #071933;
}

/* Navigation active link indicator */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--gold-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

/* Mobile Sticky Bottom Floating Action Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #FFC107;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(15, 44, 89, 0.12);
  }
}
