/* =============================================
   SYED SUBHAN SHAH - ISLAMIC PREMIUM WEBSITE
   style.css
   ============================================= */

/* ---- Root Variables ---- */
:root {
  --gold: #b8960c;
  --gold-light: #d4af37;
  --gold-pale: #f5e6a3;
  --cream: #fdf8f0;
  --cream-dark: #f0e6d3;
  --white: #ffffff;
  --black: #111111;
  --charcoal: #2b2b2b;
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --shadow-sm: 0 2px 12px rgba(184,150,12,0.10);
  --shadow-md: 0 6px 30px rgba(184,150,12,0.18);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Arial', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Islamic Pattern Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184,150,12,0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(45,106,79,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Utility ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-light); }
.text-green { color: var(--green); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 50px;
}
.divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--green-light));
  border-radius: 2px;
  margin: 14px auto 20px;
}
.divider-left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-decoration: none;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c5e);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.40);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold-light);
}
.btn-outline-gold:hover {
  background: var(--gold-light);
  color: var(--white);
}
.btn-call {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  box-shadow: 0 4px 18px rgba(45,106,79,0.30);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,106,79,0.40);
}

/* ======================================================
   HEADER
   ====================================================== */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,248,240,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,150,12,0.18);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.logo span { color: var(--gold-light); }

/* Nav */
nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--gold-light);
  background: rgba(184,150,12,0.08);
}

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid rgba(184,150,12,0.15);
  padding: 18px 24px 22px;
  gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  border: 1px solid transparent;
}
.mobile-nav a:hover {
  background: rgba(184,150,12,0.08);
  color: var(--gold-light);
  border-color: rgba(184,150,12,0.18);
}
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

/* ======================================================
   HERO SLIDER
   ====================================================== */
#hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.slider-wrapper {
  position: relative;
  width: 100%;
  max-height: 620px;
  overflow: hidden;
}
.slide {
  display: none;
  width: 100%;
  animation: fadeSlide 0.7s ease-in-out;
}
.slide.active { display: block; }
.slide img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(184,150,12,0.80);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: var(--gold-light); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.50);
  border: 2px solid rgba(255,255,255,0.70);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: scale(1.3);
}

/* ======================================================
   ABOUT US
   ====================================================== */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(184,150,12,0.25);
  pointer-events: none;
}
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-lg); }

.about-content p { color: var(--text-mid); margin-bottom: 16px; font-size: 1.0rem; line-height: 1.85; }

.icon-accent {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(184,150,12,0.12), rgba(45,106,79,0.08));
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border: 1px solid rgba(184,150,12,0.2);
}

/* ======================================================
   SERVICES
   ====================================================== */
#services {
  background: var(--cream);
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--green-light), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(184,150,12,0.10);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184,150,12,0.25);
}
.service-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.service-card-body p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.service-card-body .btn { align-self: flex-start; padding: 10px 22px; font-size: 0.88rem; }

/* ======================================================
   WHY TRUST US
   ====================================================== */
#trust {
  background: linear-gradient(135deg, #1a2f25, #0f1e18);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,150,12,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(64,145,108,0.12) 0%, transparent 60%);
  pointer-events: none;
}
#trust .section-title { color: var(--white); }
#trust .section-subtitle { color: rgba(255,255,255,0.65); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,150,12,0.20);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.trust-card:hover {
  background: rgba(184,150,12,0.10);
  transform: translateY(-4px);
  border-color: rgba(184,150,12,0.40);
}
.trust-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(184,150,12,0.25), rgba(45,106,79,0.25));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
  border: 1px solid rgba(184,150,12,0.30);
}
.trust-card h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--gold-pale); font-family: var(--font-heading); }
.trust-card p { font-size: 0.90rem; color: rgba(255,255,255,0.60); line-height: 1.7; }

/* ======================================================
   CONTENT SECTIONS (2 & 3)
   ====================================================== */
.content-section { background: var(--white); }
.content-section.alt { background: var(--cream); }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.content-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(184,150,12,0.20);
  pointer-events: none;
}
.content-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); }
.content-text p { color: var(--text-mid); margin-bottom: 16px; font-size: 1rem; line-height: 1.85; }
.content-text .btn { margin-top: 10px; }

/* ======================================================
   TESTIMONIALS
   ====================================================== */
#testimonials { background: var(--cream-dark); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(184,150,12,0.10);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 4rem;
  color: rgba(184,150,12,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}
.stars { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), var(--green-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid rgba(184,150,12,0.25);
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.92rem; color: var(--charcoal); }
.author-loc { font-size: 0.82rem; color: var(--text-light); }

/* ======================================================
   CTA SECTION
   ====================================================== */
#cta {
  background: linear-gradient(135deg, var(--green), #1b4332);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.18) 0%, transparent 70%);
  pointer-events: none;
}
#cta .section-title { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
#cta p { color: rgba(255,255,255,0.80); font-size: 1.1rem; margin-bottom: 36px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-arabic {
  font-size: 1.5rem;
  color: var(--gold-pale);
  margin-bottom: 10px;
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

/* ======================================================
   FOOTER
   ====================================================== */
#footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.70);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 42px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; font-size: 1.25rem; }
.footer-brand p { font-size: 0.91rem; line-height: 1.80; color: rgba(255,255,255,0.60); max-width: 300px; }
.footer-contact { margin-top: 16px; font-size: 0.91rem; }
.footer-contact a { color: var(--gold-pale); transition: var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184,150,12,0.25);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.91rem; color: rgba(255,255,255,0.60); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.40); }
.disclaimer {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.30);
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 18px;
}

/* ======================================================
   FLOATING BUTTONS
   ====================================================== */
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
  color: #fff;
  font-size: 1.6rem;
}
.float-wa:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 10px 34px rgba(37,211,102,0.55); }
.float-wa .wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.50);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

#backToTop {
  position: fixed;
  bottom: 98px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
#backToTop.visible { display: flex; }
#backToTop:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ======================================================
   ANIMATIONS
   ====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap img, .content-img-wrap img { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .nav-menu { display: none; }
  .header-cta .btn-whatsapp { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .slide img { height: 300px; }
  .slider-wrapper { max-height: 300px; }
  .content-grid.reverse { direction: ltr; }
  .float-wa { right: 18px; bottom: 22px; width: 52px; height: 52px; font-size: 1.4rem; }
  #backToTop { right: 18px; bottom: 84px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .slide img { height: 220px; }
  .slider-wrapper { max-height: 220px; }
  .logo { font-size: 1.15rem; }
}

/* IMAGE SECTION FIX */
.content-img-wrap{
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

/* IMAGE ALIGN + RESPONSIVE FIX */
.content-img-wrap img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: contain;
}

/* OPTIONAL - SAME HEIGHT LOOK */
@media (min-width:768px){
    .content-img-wrap img{
        max-height: 500px;
    }
}

/* =========================
   ALL WEBSITE IMAGE FIX CSS
========================= */

/* ALL IMAGE WRAPPERS */
.content-img-wrap,
.about-img-wrap,
.service-img-wrap,
img{
    max-width: 100%;
}

/* ALL IMAGES AUTO FIX */
.content-img-wrap img,
.about-img-wrap img,
.service-img-wrap img,
img{
    width: 100%;
    height: auto !important;      /* actual image ratio */
    display: block;
    object-fit: contain !important;
    border-radius: 20px;
}

/* REMOVE FIXED HEIGHTS */
.about-img-wrap img,
.content-img-wrap img,
.service-img-wrap img{
    max-height: none !important;
    min-height: auto !important;
}

/* IMAGE CONTAINERS */
.content-img-wrap,
.about-img-wrap,
.service-img-wrap{
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* MOBILE RESPONSIVE */
@media(max-width:768px){

    .content-img-wrap img,
    .about-img-wrap img,
    .service-img-wrap img,
    img{
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }

}
.content-img-wrap {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 10px;
    box-sizing: border-box;
}

.content-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-img-wrap {
        padding: 8px;
    }

    .content-img-wrap img {
        border-radius: 10px;
        margin-bottom: 15px;
    }
}