/* =========================================================
   Makkah Repairing Center - Custom Stylesheet
   Color palette:
   --primary   : #0B5FA5 (deep professional blue)
   --primary-2 : #0E7FD1 (mid blue)
   --accent    : #17B3E8 (sky/cyan accent)
   --navy      : #0B2C4D (dark navy - footer/headings)
   --bg-light  : #F3F8FC (off-white section bg)
   --white     : #FFFFFF
   ========================================================= */

:root{
  --primary: #0B5FA5;
  --primary-2: #0E7FD1;
  --accent: #17B3E8;
  --navy: #0A2A48;
  --bg-light: #F3F8FC;
  --white: #FFFFFF;
  --text-dark: #16283C;
  --text-muted: #5A7086;
  --whatsapp: #25D366;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 10px 30px rgba(11, 44, 77, 0.08);
  --shadow-strong: 0 18px 45px rgba(11, 44, 77, 0.16);
  --transition: all .35s ease;
}

*{ scroll-behavior: smooth; }

body{
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img{ max-width: 100%; }

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

.section{ padding: 90px 0; }
@media (max-width: 767px){ .section{ padding: 60px 0; } }

/* ---------- Reveal animation ---------- */
[data-aos]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-aos].aos-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section header ---------- */
.section-header{ max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow{
  display: inline-block;
  background: rgba(11, 95, 165, 0.08);
  color: var(--primary);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .9rem;
  margin-bottom: 14px;
}
.section-title{
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-desc{ color: var(--text-muted); font-size: 1.05rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.topbar{
  background: var(--navy);
  color: #cfe4f7;
  font-size: .88rem;
}
.topbar-link{ color: #cfe4f7; }
.topbar-link:hover{ color: var(--accent); }
.topbar-link i{ color: var(--accent); margin-inline-end: 4px; }
.badge-open{
  background: rgba(23, 179, 232, .18);
  color: #b9ecfb;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}

.main-nav{
  background: var(--white);
  box-shadow: 0 2px 18px rgba(11,44,77,.06);
  padding: 12px 0;
}
.navbar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon{
  font-size: 2rem;
  color: var(--primary);
  background: rgba(11,95,165,.08);
  padding: 10px;
  border-radius: 14px;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong{ color: var(--navy); font-size: 1.05rem; }
.brand-text small{ color: var(--text-muted); font-size: .75rem; letter-spacing: .5px; }

.nav-link{
  color: var(--text-dark) !important;
  font-weight: 600;
  position: relative;
  padding: 8px 14px !important;
}
.nav-link::after{
  content: "";
  position: absolute;
  bottom: 2px; right: 14px; left: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-link:hover{ color: var(--primary) !important; }
.nav-link:hover::after{ transform: scaleX(1); }

.btn-nav-call{
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 22px;
  border: none;
}
.btn-nav-call:hover{ background: var(--navy); }

/* Sticky header shrink effect */
.site-header.scrolled .main-nav{ padding: 6px 0; box-shadow: 0 6px 24px rgba(11,44,77,.12); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  background: linear-gradient(120deg, var(--navy) 0%, var(--primary) 55%, var(--primary-2) 100%);
  padding: 90px 0 130px;
  overflow: hidden;
  color: #fff;
}
.hero-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(23,179,232,.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-title{
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 18px;
}
.text-accent{ color: var(--accent); }
.hero-subtitle{
  font-size: 1.1rem;
  color: #dcebf7;
  max-width: 560px;
  margin: 0 auto 30px;
}
@media (min-width: 992px){ .hero-subtitle{ margin: 0 0 30px; } }

.hero-btns{ margin-bottom: 30px; }
.btn-hero-primary{
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 50px;
  box-shadow: 0 12px 25px rgba(23,179,232,.35);
}
.btn-hero-primary:hover{ background: #fff; color: var(--navy); transform: translateY(-3px); }

.btn-hero-whatsapp{
  background: var(--whatsapp);
  color: #fff;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 50px;
  box-shadow: 0 12px 25px rgba(37,211,102,.3);
}
.btn-hero-whatsapp:hover{ background: #1fa855; color: #fff; transform: translateY(-3px); }

.hero-mini-stats{
  font-size: .92rem;
  color: #cfe4f7;
  font-weight: 600;
}
.hero-mini-stats i{ color: var(--accent); margin-inline-end: 6px; }

.hero-media{ position: relative; max-width: 480px; margin: 0 auto; }
.hero-img-main{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,.15);
}
.hero-img-float{
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 42%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 5px solid #fff;
  box-shadow: var(--shadow-strong);
  animation: floatY 4s ease-in-out infinite;
}
.hero-badge-card{
  position: absolute;
  top: 20px;
  right: -20px;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-strong);
  animation: floatY 5s ease-in-out infinite reverse;
}
.hero-badge-card i{ font-size: 1.4rem; color: var(--primary); }
.hero-badge-card strong{ display: block; font-size: .88rem; }
.hero-badge-card span{ font-size: .75rem; color: var(--text-muted); }

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

.hero-wave{ position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg{ width: 100%; height: 80px; }
.hero-wave path{ fill: var(--white); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-section{ background: var(--white); }
.service-card{
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(11,95,165,.15);
  background: #fff;
}
.service-icon{
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 18px;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.service-card h3{ font-weight: 800; font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.service-card p{ color: var(--text-muted); margin-bottom: 16px; }
.service-link{ color: var(--primary); font-weight: 700; font-size: .92rem; }
.service-link i{ margin-inline-start: 4px; transition: var(--transition); }
.service-link:hover i{ transform: translateX(-4px); }

/* =========================================================
   WHY US
   ========================================================= */
.why-us-section{ background: var(--bg-light); }
.feature-card{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.feature-icon{
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,95,165,.08);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
}
.feature-card h4{ font-weight: 800; color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p{ color: var(--text-muted); font-size: .93rem; margin: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-section{ background: var(--white); }
.about-media{ position: relative; max-width: 460px; margin: 0 auto; }
.about-img-main{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.about-exp-card{
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 26px;
  text-align: center;
  box-shadow: var(--shadow-strong);
}
.exp-number{ display: block; font-size: 2rem; font-weight: 900; }
.exp-label{ font-size: .85rem; font-weight: 600; }
.about-text{ color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 20px; }
.about-points{ list-style: none; padding: 0; margin-bottom: 26px; }
.about-points li{ padding: 8px 0; font-weight: 600; color: var(--text-dark); }
.about-points i{ color: var(--primary); margin-inline-end: 10px; }

.btn-primary-custom{
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 12px 25px rgba(11,95,165,.25);
}
.btn-primary-custom:hover{ background: var(--navy); color: #fff; transform: translateY(-3px); }

/* =========================================================
   PROCESS
   ========================================================= */
.process-section{ background: var(--bg-light); }
.process-card{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: var(--transition);
}
.process-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.process-step{
  position: absolute;
  top: 14px; left: 18px;
  font-weight: 900;
  font-size: 1.6rem;
  color: rgba(11,95,165,.12);
}
.process-icon{
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,179,232,.1);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.35rem;
}
.process-card h4{ font-weight: 800; color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.process-card p{ color: var(--text-muted); font-size: .88rem; margin: 0; }

/* connecting line on large screens */
@media (min-width: 992px){
  .process-row{ position: relative; }
  .process-row::before{
    content: "";
    position: absolute;
    top: 30px; right: 12%; left: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(11,95,165,.25) 0 10px, transparent 10px 20px);
    z-index: 0;
  }
}

/* =========================================================
   STATS
   ========================================================= */
.stats-section{
  background: linear-gradient(120deg, var(--navy), var(--primary));
  color: #fff;
}
.stat-card{ padding: 10px; }
.stat-icon{ font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; }
.counter{ font-size: 2.4rem; font-weight: 900; margin-bottom: 4px; }
.stat-card p{ color: #cfe4f7; font-weight: 600; margin: 0; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section{ background: var(--white); }
.testimonial-card{
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  max-width: 680px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.quote-icon{ font-size: 2rem; color: rgba(11,95,165,.15); margin-bottom: 14px; }
.testimonial-card p{ font-size: 1.1rem; color: var(--text-dark); font-weight: 600; margin-bottom: 24px; line-height: 1.8; }
.testimonial-author{ display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong{ display: block; color: var(--navy); }
.stars{ color: #f5b400; font-size: .8rem; }

.testimonial-nav-btn{
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.carousel-control-prev, .carousel-control-next{ width: 6%; opacity: 1; }
.testimonial-indicators{ position: static; margin-top: 30px; }
.testimonial-indicators button{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(11,95,165,.25);
  border: none;
  opacity: 1;
}
.testimonial-indicators button.active{ background: var(--primary); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section{ background: var(--bg-light); }
.faq-accordion .accordion-item{
  border: none;
  margin-bottom: 14px;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-accordion .accordion-button{
  font-weight: 700;
  color: var(--navy);
  padding: 18px 22px;
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed){
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:focus{ box-shadow: none; }
.faq-accordion .accordion-button::after{ filter: none; }
.faq-accordion .accordion-body{ color: var(--text-muted); padding: 18px 22px; background: #fff; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section{ background: var(--white); }
.contact-info-card{
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  height: 100%;
}
.contact-info-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-info-item i{
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,179,232,.18);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.1rem;
}
.contact-info-item strong{ display: block; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item span{ color: #cfe4f7; }
.contact-info-item a:hover{ color: var(--accent); }
.map-wrap{ border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }

.contact-form{
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-soft);
}
.contact-form .form-label{ font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-form .form-control, .contact-form .form-select{
  border-radius: 12px;
  border: 1px solid #dbe6f0;
  padding: 12px 16px;
}
.contact-form .form-control:focus, .contact-form .form-select:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(11,95,165,.15);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--navy);
  color: #b9cde0;
  padding: 70px 0 20px;
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand i{ font-size: 2rem; color: var(--accent); }
.footer-brand strong{ display: block; color: #fff; font-size: 1.1rem; }
.footer-brand small{ color: #8fa9c2; }
.footer-about{ font-size: .92rem; line-height: 1.8; margin-bottom: 18px; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50%;
}
.footer-social a:hover{ background: var(--accent); color: var(--navy); }

.footer-title{ color: #fff; font-weight: 800; margin-bottom: 18px; font-size: 1rem; }
.footer-links{ list-style: none; padding: 0; margin: 0; }
.footer-links li{ margin-bottom: 12px; }
.footer-links a{ color: #b9cde0; font-size: .92rem; }
.footer-links a:hover{ color: var(--accent); }
.footer-links i{ color: var(--accent); margin-inline-end: 6px; }

.site-footer hr{ border-color: rgba(255,255,255,.1); margin: 30px 0 20px; }
.footer-bottom p{ font-size: .85rem; margin: 0; color: #8fa9c2; }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.float-btn{
  position: fixed;
  bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 999;
  transition: var(--transition);
}
.float-btn:hover{ transform: scale(1.1); color: #fff; }
.float-whatsapp{
  right: 24px;
  background: var(--whatsapp);
  animation: pulse 2.2s infinite;
}
.float-call{
  left: 24px;
  background: var(--primary);
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(20px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: var(--transition);
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 991px){
  .hero{ padding: 50px 0 100px; text-align: center; }
  .hero-media{ margin-top: 20px; }
  .about-exp-card{ right: 10px; bottom: -18px; padding: 14px 18px; }
}
@media (max-width: 575px){
  .float-btn{ width: 50px; height: 50px; font-size: 1.3rem; bottom: 16px; }
  .float-whatsapp{ right: 16px; }
  .float-call{ left: 16px; }
  .hero-img-float{ display: none; }
  .hero-badge-card{ display: none; }
  .contact-info-card, .contact-form{ padding: 26px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  [data-aos]{ opacity: 1 !important; transform: none !important; }
}
