/* ===== 1. FONT: Poppins poori site par ===== */
html, body,
body *:not(code):not(pre):not(kbd):not(samp) {
  font-family: 'Poppins', sans-serif !important;
}
body { line-height: 1.65; }
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-weight: 600;
  line-height: 1.25;
}

/* ===== 2. IMAGES ===== */
body img { max-width: 100%; height: auto; }

/* Ye 2 jagah upload ki hui image ki shape alag hoti hai, isliye ek ratio mein crop */
body .sd-aside-img img,
body .svc-intro-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;     /* ratio badalna ho toh yahan */
  object-fit: cover;
  object-position: center;
}

/* Lightbox mein poori image dikhe, crop nahi */
body .lb__img { object-fit: contain; max-height: 90vh; }

/* ===== 3. POPUPS (professional, white card) ===== */
:root {
  --pop-accent: #f97316;       /* accent color yahan se badlo */
  --pop-accent-dark: #ea580c;
  --pop-ink: #111827;
  --pop-muted: #6b7280;
  --pop-line: #e5e7eb;
}

body .cm-backdrop,
body .lrp-backdrop {
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body .cm-box,
body .lrp-box {
  background: #fff;
  color: var(--pop-ink);
  border: 1px solid var(--pop-line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, .25);
  max-height: 92vh;
  overflow-y: auto;
}
body .cm-box  { padding: 36px 32px 30px; max-width: 540px; }
body .lrp-box { padding: 40px 32px 32px; max-width: 420px; }

/* Close button */
body .cm-close {
  width: 34px; height: 34px;
  top: 14px; right: 14px;
  background: #f3f4f6;
  border: 0;
  color: var(--pop-muted);
}
body .cm-close:hover { background: #e5e7eb; color: var(--pop-ink); transform: none; }

/* Heading / text */
body .cm-eyebrow { color: var(--pop-accent); }
body .cm-title,
body .lrp-title {
  color: var(--pop-ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
}
body .cm-subtitle,
body .lrp-desc { color: var(--pop-muted); font-size: 14px; }
body .cm-service-tag { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }

/* Form fields */
body .cm-field label {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
body .cm-field input,
body .cm-field textarea,
body .cm-field select,
body .cm-select {
  background-color: #fff;
  border: 1px solid #d1d5db;
  color: var(--pop-ink);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
}
body .cm-field input::placeholder,
body .cm-field textarea::placeholder { color: #9ca3af; }
body .cm-field input:focus,
body .cm-field textarea:focus,
body .cm-field select:focus,
body .cm-select:focus {
  border-color: var(--pop-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}
body .cm-field select,
body .cm-select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
body .cm-field select option,
body .cm-select option { background: #fff; color: var(--pop-ink); }

/* Buttons */
body .cm-submit {
  background: var(--pop-accent);
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
body .cm-submit:hover {
  background: var(--pop-accent-dark);
  transform: none;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .3);
}
body .cm-submit::after { display: none; }

/* Success state */
body .cm-success-icon { background: #ecfdf5; border-color: #a7f3d0; }
body .cm-success-state h4 { color: var(--pop-ink); }
body .cm-success-state p  { color: var(--pop-muted); }

/* Login-required popup */
body .lrp-icon { background: #fff7ed; border-color: #fed7aa; color: var(--pop-accent); }
body .lrp-btn { border-radius: 10px; font-weight: 600; }
body .lrp-btn--primary { background: var(--pop-accent); box-shadow: none; }
body .lrp-btn--primary:hover {
  background: var(--pop-accent-dark);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .3);
}
body .lrp-btn--outline { background: #fff; color: #374151; border: 1px solid #d1d5db; }
body .lrp-btn--outline:hover { background: #f9fafb; color: var(--pop-ink); border-color: #9ca3af; }
body .lrp-note { color: #9ca3af; }

@media (max-width: 575px) {
  body .cm-box, body .lrp-box { padding: 28px 20px 24px; border-radius: 14px; }
  body .cm-row { grid-template-columns: 1fr; }
}

/* SweetAlert2 (OTP page) */
body .swal2-popup { border-radius: 16px; padding: 28px 24px; }
body .swal2-confirm { border-radius: 10px !important; font-weight: 600; }

/* ===== 4. Polish ===== */
body a:focus-visible, body button:focus-visible,
body input:focus-visible, body textarea:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body * { transition: none !important; animation: none !important; }
}
/* ===== 5. POPUP FONT SIZE (chhota) ===== */
body .cm-title,
body .lrp-title { font-size: 1.2rem; }
body .cm-subtitle,
body .lrp-desc { font-size: 13px; }
body .cm-eyebrow { font-size: 10.5px; }
body .cm-field label { font-size: 12px; }
body .cm-field input,
body .cm-field textarea,
body .cm-field select,
body .cm-select { font-size: 13px; padding: 10px 13px; }
body .cm-submit { font-size: 14px; padding: 12px; }
body .lrp-btn { font-size: 13.5px; padding: 12px 18px; }
body .lrp-note { font-size: 12px; }
body .cm-service-tag { font-size: 11.5px; }
body .cm-success-state h4 { font-size: 18px; }
body .cm-success-state p { font-size: 13px; }

/* ===== 6. TOP MENU: Poppins ke liye compact (arrow na aaye) ===== */
body .jda-nav__link {
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  letter-spacing: 0;
}
body .jda-nav__link::after { left: 10px; right: 10px; }

/* ===== 7. HEADINGS: Poppins ke liye professional sizes ===== */
body .hv2-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
body .section-headline,
body .why-content-v2 h2,
body .consult-left-v2 h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
body .cta-inner-v2 h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
/* Italic hata do, sirf orange color rahega */
body .hv2-title em,
body .section-headline em,
body .why-content-v2 h2 em,
body .consult-left-v2 h2 em,
body .cta-inner-v2 h2 em { font-style: normal; }

body .hv2-badge { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
body .hv2-desc  { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.78); }
body .hv2-stat-n { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }

/* ===== 8. Login popup close button + dropdown options ===== */
body .lrp-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: background .2s, color .2s;
}
body .lrp-close:hover { background: #e5e7eb; color: #111827; }

body .cm-field select option,
body .cm-field select optgroup,
body .cm-select option {
  background: #fff !important;
  color: #111827 !important;
}
body .cm-field select optgroup { font-weight: 600; }

/* ===== 10. SAB PAGES: images ka same size/ratio ===== */

/* Cards (home, services, category, blog, news) = 16:9 */
body :is(.svc-card-v2-img, .feat-img-v2, .blog-img-v2, .svc-card__thumb,
         .ch-svc-card__media, .post-card__img, .pcard__img, .sdc-img) {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
body :is(.svc-card-v2-img, .feat-img-v2, .blog-img-v2, .svc-card__thumb,
         .ch-svc-card__media, .post-card__img, .pcard__img, .sdc-img) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body :is(.svc-card-v2-img, .feat-img-v2, .blog-img-v2, .svc-card__thumb,
         .ch-svc-card__media, .post-card__img, .pcard__img, .sdc-img) > [class*="fallback"],
body :is(.svc-card-v2-img, .feat-img-v2, .blog-img-v2, .svc-card__thumb,
         .ch-svc-card__media, .post-card__img, .pcard__img, .sdc-img) > [class*="img-bg"] {
  position: absolute;
  inset: 0;
}

/* Blog post cover = 16:9 */
body .feat-wrap img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Team photos = 4:5 */
body :is(.team-photo-wrap, .about-team-photo-wrap) {
  position: relative;
  overflow: hidden;
  height: auto;
  aspect-ratio: 4 / 5;
}
body :is(.team-photo-wrap, .about-team-photo-wrap) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
body :is(.team-photo-wrap, .about-team-photo-wrap) > [class*="avatar"] {
  position: absolute;
  inset: 0;
}

/* Overview / main images = 4:3 */
body .fl-overview-img-wrap img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}
