* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --blue: #1a5fa8;
  --blue-dark: #134a87;
  --blue-light: #e8f1fb;
  --teal: #0d9488;
  --teal-light: #e0f5f3;
  --gray: #4b5563;
  --gray-light: #f3f6fb;
  --white: #ffffff;
  --text: #1f2937;
  --border: #dce8f5;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); line-height: 1.6; }

/* ── URDU / PUNJABI (RTL) ── */
html[dir="rtl"] body {
  font-family: 'Noto Nastaliq Urdu', 'Segoe UI', system-ui, sans-serif;
  line-height: 2;
}
html[dir="rtl"] nav { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero { flex-direction: row-reverse; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
html[dir="rtl"] .service-detail { flex-direction: row-reverse; }
html[dir="rtl"] .booking-wrap { flex-direction: row-reverse; }
html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .step { flex-direction: row-reverse; }
html[dir="rtl"] .footer-inner { direction: rtl; }
html[dir="rtl"] .footer-col { text-align: right; }
html[dir="rtl"] .hours-row { flex-direction: row-reverse; }
html[dir="rtl"] .footer-hours { direction: rtl; }
html[dir="rtl"] .contact-bottom { direction: rtl; }
html[dir="rtl"] .whatsapp-section { flex-direction: row-reverse; }
html[dir="rtl"] .breadcrumb { direction: rtl; text-align: right; }
html[dir="rtl"] .page-hero { direction: rtl; }
html[dir="rtl"] .section-header { direction: rtl; }
html[dir="rtl"] .faq-question { flex-direction: row-reverse; }
html[dir="rtl"] .services-jump { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .why-card { direction: rtl; }
html[dir="rtl"] .value-card { direction: rtl; }
html[dir="rtl"] .team-card { direction: rtl; }
html[dir="rtl"] .contact-card { direction: rtl; }
html[dir="rtl"] .mobile-cta { flex-direction: row-reverse; }
html[dir="rtl"] .emergency-bar { direction: rtl; }

/* ── RTL MOBILE OVERRIDES ── */
@media (max-width: 900px) {
  /* Hero: force column layout in RTL on mobile (overrides row-reverse) */
  html[dir="rtl"] .hero { flex-direction: column; }
  html[dir="rtl"] .hero-content { text-align: right; width: 100%; }
  html[dir="rtl"] .hero-buttons { justify-content: flex-end; }
  html[dir="rtl"] .hero p { max-width: 100%; }
}
@media (max-width: 640px) {
  /* Mobile nav RTL: force column layout (overrides row-reverse from RTL rule) */
  html[dir="rtl"] nav .nav-links { flex-direction: column; }
  html[dir="rtl"] nav .nav-links a { text-align: right; }
  html[dir="rtl"] nav .nav-links li:nth-last-child(2) a { text-align: center; }
  html[dir="rtl"] .mobile-lang { direction: rtl; }
  /* Keep hamburger on right side in RTL mobile */
  html[dir="rtl"] nav { flex-direction: row; }
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex; gap: 4px; align-items: center; margin-left: 12px;
}
.lang-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--gray); transition: all 0.2s;
}
.lang-btn:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.lang-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
html[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 12px; }
.mobile-lang { display: none; }
@media (max-width: 768px) {
  .lang-switcher {
    display: flex;
    margin-left: 0;
    margin-right: 8px;
  }
  .lang-btn {
    padding: 3px 8px;
    font-size: 0.72rem;
  }
}

/* ── EMERGENCY BAR ── */
.emergency-bar {
  background: #dc2626; color: white;
  text-align: center; padding: 7px 16px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3px;
  position: sticky; top: 0; z-index: 101;
}
.emergency-bar a { color: white; text-decoration: none; }
.emergency-bar a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky; top: 35px; z-index: 100;
  background: var(--white);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; background: var(--blue);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.logo-text span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray);
  font-size: 0.93rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: white !important;
  padding: 9px 20px; border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #0f3d72 0%, #1a5fa8 60%, #1a8c98 100%);
  color: white; padding: 60px 5% 56px; text-align: center;
}
.page-hero .tag {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; letter-spacing: 0.5px; margin-bottom: 16px;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: 0.85; max-width: 500px; margin: 0 auto; }

/* ── SECTION COMMONS ── */
section { padding: 72px 5%; }
.section-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--gray); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue); color: white;
  padding: 13px 28px; border-radius: 9px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,95,168,0.25); background: var(--blue-dark); }
.btn-outline {
  border: 2px solid var(--blue); color: var(--blue);
  padding: 11px 26px; border-radius: 9px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; display: inline-block; transition: background 0.2s;
}
.btn-outline:hover { background: var(--blue-light); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: white; border-radius: 16px; padding: 32px 28px;
  border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(26,95,168,0.12); }
.service-icon {
  width: 56px; height: 56px; background: var(--blue-light); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.6rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { background: var(--blue-light); color: var(--blue); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

/* ── BOOKING FORM ── */
.booking-wrap { display: flex; gap: 60px; align-items: flex-start; }
.booking-info { flex: 1; }
.booking-info h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.booking-info p { color: var(--gray); margin-bottom: 28px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--gray); }
.info-list .icon {
  background: var(--blue); color: white; border-radius: 8px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.booking-form {
  flex: 0 0 420px; background: white; border-radius: 18px; padding: 36px;
  box-shadow: 0 8px 30px rgba(26,95,168,0.1); border: 1px solid var(--border);
}
.booking-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; color: var(--blue); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 0.9rem; font-family: inherit; color: var(--text); transition: border-color 0.2s; background: white;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
  width: 100%; padding: 13px; background: var(--blue); color: white;
  border: none; border-radius: 9px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 6px; transition: background 0.2s, transform 0.15s;
}
.submit-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── CONTACT CARDS ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card {
  background: white; border-radius: 14px; padding: 28px 24px;
  border: 1px solid var(--border); text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.contact-card p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }
.contact-card a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: #0f2743; color: rgba(255,255,255,0.7);
  padding: 56px 5% 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-col h4 {
  color: white; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-col p { font-size: 0.85rem; margin-bottom: 16px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.84rem; }
.footer-contact a { color: rgba(255,255,255,0.75); text-decoration: none; display: inline; }
.footer-contact a:hover { color: white; }
.footer-contact span { white-space: nowrap; }
.footer-col > a {
  display: block; color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.85rem;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col > a:hover { color: white; }
.footer-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 0.83rem; }
.footer-hours span:nth-child(odd) { color: rgba(255,255,255,0.5); }
.footer-hours span:nth-child(even) { color: white; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; font-size: 0.82rem; text-align: center;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── MOBILE STICKY CTA ── */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9997; box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-cta-call {
  flex: 1; background: #0f2743; color: white; text-align: center;
  padding: 15px; text-decoration: none; font-weight: 700;
  font-size: 0.9rem; border-right: 1px solid rgba(255,255,255,0.1);
}
.mobile-cta-book {
  flex: 1; background: var(--blue); color: white; text-align: center;
  padding: 15px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
}
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 54px; }
  .wa-float { bottom: 120px; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 10px 5%; background: white;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--gray);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ── SERVICES MINI-NAV ── */
.services-jump {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px; padding: 16px 20px;
  background: white; border-radius: 14px;
  border: 1px solid var(--border);
  position: sticky; top: 103px; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.services-jump a {
  padding: 7px 16px; border-radius: 20px;
  background: var(--gray-light); color: var(--text);
  text-decoration: none; font-size: 0.83rem; font-weight: 600;
  border: 1px solid var(--border); transition: all 0.2s; white-space: nowrap;
}
.services-jump a:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ── BOOK THIS TEST BUTTON ── */
.book-test-btn {
  display: inline-block; margin-top: 16px;
  background: var(--blue); color: white;
  padding: 10px 22px; border-radius: 8px;
  text-decoration: none; font-size: 0.88rem; font-weight: 700;
  transition: background 0.2s;
}
.book-test-btn:hover { background: var(--blue-dark); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--blue); color: white; border: none;
  border-radius: 50%; cursor: pointer; z-index: 9996;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,95,168,0.35);
  font-size: 1.2rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
@media (max-width: 768px) {
  .back-to-top { bottom: 76px; right: 14px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ── PRINT (contact page) ── */
@media print {
  .emergency-bar, nav, .page-hero, .whatsapp-section,
  .contact-form-box, .hours-section, footer,
  .wa-float, .mobile-cta, .back-to-top, .review-banner,
  .referral-box { display: none !important; }
  .contact-top { grid-template-columns: 1fr 1fr; }
  .contact-bottom { grid-template-columns: 1fr; }
  .map-box iframe { display: none; }
  .map-info a { display: none; }
}

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--teal); color: white; padding: 14px 22px;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s; z-index: 999; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .booking-wrap { flex-direction: column; }
  html[dir="rtl"] .booking-wrap { flex-direction: column; }
  .booking-form { flex: unset; width: 100%; }
  nav .nav-links { gap: 16px; }
  .page-hero h1 { font-size: 1.8rem; }
}
/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  nav .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  nav .nav-links.open {
    max-height: 600px;
    padding: 8px 0 16px;
    border-top: 2px solid var(--blue);
    overflow-y: auto;
  }
  nav .nav-links li { width: 100%; }
  nav .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  nav .nav-links a:hover { color: var(--blue); background: var(--blue-light); }
  nav .nav-links li:nth-last-child(2) a {
    margin: 12px 16px 0;
    border-radius: 8px;
    text-align: center;
    border-bottom: none;
    background: var(--blue);
    color: white !important;
    padding: 12px;
  }
  .mobile-lang {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-lang .lang-btn {
    font-size: 0.9rem;
    padding: 6px 16px;
  }
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 9998;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ── WATERMARK ── */
body::after {
  content: '';
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 120px;
  height: 120px;
  background: url('logo.svg') no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
}
