/* Site-specific polish and utilities */
:root {
  --brand-primary: #0d6efd;
  --brand-accent: #d63384;
  --brand-success: #25d366; /* WhatsApp */
}

.announcement-bar {
  background: #fff5f5;
  color: #a10000;
  text-align: center;
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid #ffd6d6;
}

/* Hero tweaks */
.left-content .btn {
  border-radius: 999px;
}

/* Client logos grid spacing */
.client-logos .logo-item {
  padding: 10px 16px;
}
.client-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s ease, transform .2s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
}

/* Client logo cards */
.logo-card { margin: 8px 10px; padding: 10px 12px; border: 1px solid #eef2f7; border-radius: 10px; background: #fff; text-align: center; width: 160px; }
.logo-card img { display: block; margin: 0 auto 6px; max-width: 100%; height: 44px; object-fit: contain; }
.logo-card figcaption { font-size: .75rem; color: #6b7280; line-height: 1.2; }

/* Stats */
.stats h5 {
  font-size: 2rem;
  color: var(--brand-primary);
}

/* Industries */
.industries .industry-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  height: 100%;
}
.industry-ico { font-size: 28px; color: var(--brand-primary); margin-bottom: 8px; }
.industry-title { font-weight: 600; font-size: 0.95rem; }

/* Industry chips (inline under Services) */
.industry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.industry-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #e2e8f0; color: #334155;
  padding: 6px 10px; border-radius: 999px; font-size: .9rem;
}
.industry-chip i { color: var(--brand-primary); }

/* Services grid */
.services-grid { margin-top: 8px; }
.service-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #0d6efd, #54a0ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(13,110,253,.25);
}
/* color variants bound to column order */
.services-grid > div:nth-of-type(1) .service-icon { background: linear-gradient(135deg, #0d6efd, #54a0ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(13,110,253,.25); }
.services-grid > div:nth-of-type(2) .service-icon { background: linear-gradient(135deg, #20c997, #69e0be); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(32,201,151,.25); }
.services-grid > div:nth-of-type(3) .service-icon { background: linear-gradient(135deg, #fd7e14, #ffb26b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(253,126,20,.25); }
.services-grid > div:nth-of-type(4) .service-icon { background: linear-gradient(135deg, #6f42c1, #aa88ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(111,66,193,.25); }
.service-icon i { font-size: 20px; }
.service-title { font-size: 1.05rem; margin: 6px 0 2px; }
.service-desc { color: #6b7280; font-size: .95rem; margin: 0 0 4px; }
.service-cta { align-self: flex-start; font-weight: 600; color: var(--brand-primary); text-decoration: none; }
.service-cta:hover { text-decoration: underline; }

/* service tags */
.service-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 2px; }
.service-tags li { font-size: .8rem; background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155; padding: 2px 8px; border-radius: 999px; }

/* Portfolio metric cards */
.portfolio-metrics .metric-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.portfolio-metrics .metric-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.metric-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 8px; }
.portfolio-metrics > div:nth-of-type(1) .metric-icon { background: linear-gradient(135deg, #0d6efd, #54a0ff); }
.portfolio-metrics > div:nth-of-type(2) .metric-icon { background: linear-gradient(135deg, #20c997, #69e0be); }
.portfolio-metrics > div:nth-of-type(3) .metric-icon { background: linear-gradient(135deg, #6f42c1, #aa88ff); }
.metric-icon i { font-size: 20px; }
.metric-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; color: var(--brand-primary); }
.metric-label { color: #6b7280; margin-top: 2px; }

/* Portfolio carousel image sizing */
#portfolio-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Trust (About > Trust list) */
.trust-list .trust-item {
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.trust-list .trust-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.trust-list .trust-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.08);
}
/* Per-item accent colors (icon badge + left accent) */
.trust-list > div:nth-child(1) .trust-item i { background: #0d6efd; }
.trust-list > div:nth-child(2) .trust-item i { background: #20c997; }
.trust-list > div:nth-child(3) .trust-item i { background: #fd7e14; }
.trust-list > div:nth-child(4) .trust-item i { background: #6f42c1; }
.trust-list > div:nth-child(5) .trust-item i { background: #d63384; }
.trust-list > div:nth-child(6) .trust-item i { background: #0dcaf0; }
.trust-list > div:nth-child(1) .trust-item { border-left: 4px solid #0d6efd; }
.trust-list > div:nth-child(2) .trust-item { border-left: 4px solid #20c997; }
.trust-list > div:nth-child(3) .trust-item { border-left: 4px solid #fd7e14; }
.trust-list > div:nth-child(4) .trust-item { border-left: 4px solid #6f42c1; }
.trust-list > div:nth-child(5) .trust-item { border-left: 4px solid #d63384; }
.trust-list > div:nth-child(6) .trust-item { border-left: 4px solid #0dcaf0; }

/* Testimonials */
.testimonial {
  background: #fff;
  border-left: 4px solid var(--brand-primary);
  padding: 16px;
  border-radius: 8px;
  font-style: italic;
}
.testimonial cite { display: block; margin-top: 8px; font-style: normal; color: #6b7280; }

/* Info card (used in Vision) */
.info-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.icon-badge { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #0d6efd, #54a0ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 10px rgba(13,110,253,.15); }
.icon-badge i { font-size: 18px; }

/* Team card */
.team-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #f1f5f9; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 10px; }

/* About testimonials spacing */
.about-testimonials { margin-top: 8px; }
.about-testimonials .section-subtitle { margin-bottom: 8px; }

/* Contact modern styles */
.contact-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Improve checkbox wrapping & alignment in contact form */
#contact .form-check { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

#contact .form-check-input {
  inline-size: 14px !important; /* logical width */
  block-size: 14px !important;  /* logical height */
  width: 14px !important;
  height: 14px !important;
  aspect-ratio: 1 / 1; /* enforce square in newer browsers */
  margin-top: 2px; /* align with first line of label */
  border: 2px solid #0d6efd !important;
  border-radius: 2px !important;
  flex-shrink: 0;
  background-color: #ffffff !important;
  background-image: none !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

#contact .form-check-input:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  background-size: 10px 10px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 1px 3px rgba(13,110,253,0.3) !important;
}

#contact .form-check-label {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  cursor: pointer;
  flex: 1;
}

/* Smooth anchor jump below sticky header */
#contact-us { scroll-margin-top: 110px; }

/* Smooth anchor jump below sticky header */
#contact-us { scroll-margin-top: 110px; }

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  background: var(--brand-success);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.whatsapp-fab:hover { filter: brightness(0.95); }
.whatsapp-icon { font-size: 24px; line-height: 1; }

/* [Removed] Sticky CTA styles no longer used */

/* Utilities */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1100;
  border-radius: 6px;
}
.skip-link:focus {
  top: 8px;
}

/* Modern section headings */
.section-heading h2,
#portfolio .section-heading h2,
#about .section-heading h2,
#services .section-heading h2,
.section-subtitle {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-heading h2 span { color: var(--brand-primary); }
.section-heading h2 em { font-style: normal; color: var(--brand-accent); }
.section-heading h2::after,
.section-subtitle::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: .9;
}

/* About modern styles */
.about-lead { font-size: 1.02rem; line-height: 1.6; }
.about-list li { margin: 6px 0; color: #374151; }
.about-list i { color: #20c997; margin-right: 8px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; padding: 6px 10px; border-radius: 999px; font-size: .85rem; }
.badge-chip i { color: var(--brand-primary); }

/* About intro spacing and image constraints */
.about-intro { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.about-intro-img { display: block; margin-left: auto; max-height: 360px; width: auto; object-fit: contain; }
@media (min-width: 1200px) { .about-intro-img { max-height: 420px; } }
@media (max-width: 991.98px) { .about-intro { padding-top: 1rem !important; padding-bottom: 1rem !important; } }

/* Tighten spacing between About intro and trust cards */
.trust-list { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid #eef2f7; background: #fff; }
.footer-cta { background: linear-gradient(90deg, rgba(13,110,253,.08), rgba(214,51,132,.08)); color: #0f172a; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.footer-title { font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: 6px; color: #0f172a; }
.footer-links li { margin: 4px 0; }
.footer-links a { color: #475569; text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--brand-primary); text-decoration: underline; }
.link-muted { color: #94a3b8; cursor: default; }
.footer-brand .brand-name { font-weight: 600; }
.footer-brand img { max-width: 40px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.footer-contact li { margin: 6px 0; color: #475569; line-height: 1.5; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-social .social-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; margin-right: 6px; color: #fff; text-decoration: none; }
.footer-social .whatsapp { background: #25d366; }
.footer-social .call { background: #0d6efd; }
.footer-social .email { background: #6f42c1; }
.footer-bottom { border-top: 1px solid #eef2f7; background: #fbfdff; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Mobile responsiveness tweaks */
@media (max-width: 576px) {
  header .logo img { width: 64px !important; height: 64px !important; }
  .main-banner .right-image img { max-height: 280px; width: 100%; height: auto; object-fit: cover; }
  .logo-card { width: min(44vw, 160px); }
  .logo-card img { height: 36px; }
  /* Normalize nav item padding/alignment so all items line up the same */
  .header-area .main-nav .nav li,
  .background-header .main-nav .nav li { padding-left: 0 !important; padding-right: 0 !important; }
  .header-area .main-nav .nav li a,
  .background-header .main-nav .nav li a { display: block; padding: 16px !important; height: auto; line-height: 1.5; text-align: center; }

  /* Ensure Contact (last item) matches other items in mobile and keeps readable text */
  .header-area .main-nav .nav li:last-child a,
  .background-header .main-nav .nav li:last-child a {
    background: transparent !important;
    color: #191a20 !important;
    border-radius: 0;
  }
  .header-area .main-nav .nav li:last-child a:hover,
  .header-area .main-nav .nav li:last-child a:focus,
  .header-area .main-nav .nav li:last-child a.active,
  .background-header .main-nav .nav li:last-child a:hover,
  .background-header .main-nav .nav li:last-child a:focus,
  .background-header .main-nav .nav li:last-child a.active {
    background: #f0f2f5 !important;
  color: #fe3f40 !important; /* match theme red */
  }
  #contact .input-group .form-control { padding-top: .6rem; padding-bottom: .6rem; }
}

/* Ensure Contact menu item shows on tablet/mobile and styles correctly */
@media (max-width: 992px) {
  .header-area .main-nav .nav li:last-child,
  .background-header .main-nav .nav li:last-child { display: block !important; }
  /* Let the button wrapper behave like a normal link in the stacked menu */
  .header-area .main-nav .nav li .main-red-button { display: contents; }
  .header-area .main-nav .nav li:last-child a {
    background: #f7f7f7 !important;
    color: #191a20 !important;
    border-radius: 0;
  }
  /* Make Contact hover/active red like other items on tablet/mobile */
  .header-area .main-nav .nav li:last-child a:hover,
  .header-area .main-nav .nav li:last-child a:focus,
  .header-area .main-nav .nav li:last-child a.active,
  .background-header .main-nav .nav li:last-child a:hover,
  .background-header .main-nav .nav li:last-child a:focus,
  .background-header .main-nav .nav li:last-child a.active {
    color: #fe3f40 !important;
  }
}

/* Social link round buttons (migrated from new-change.css) */
.social-link {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 50%;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.social-link:hover,
.social-link:focus {
  background: #ddd;
  text-decoration: none;
  color: #555;
}

/* Licenses & Registrations strip */
.license-strip { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; }
.license-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.license-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #0f172a; }
.license-badge i { font-size: 14px; }
.badge-psara { background: #e6f0ff; border: 1px solid #cfe0ff; }

/* Basic alert styles (fallback if not using Bootstrap's .alert) */
.alert { padding: 12px 14px; border-radius: 6px; border: 1px solid transparent; margin-bottom: 12px; font-size: 0.95rem; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.d-none { display: none !important; }

/* Map placeholder */
.map-wrapper { border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; background: #fff; }
.map-placeholder { display: grid; place-items: center; min-height: 280px; background: linear-gradient(135deg, #f8fafc, #eef2f7); color: #475569; font-weight: 600; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Improve focus visibility if the base theme suppresses outlines */
:focus-visible { outline: 3px solid #0d6efd; outline-offset: 2px; }

/* Minor performance: ensure images don’t exceed container */
img { max-width: 100%; height: auto; }
.badge-udhyam { background: #e8fff5; border: 1px solid #c9f5e2; }
.badge-gst { background: #fff6e6; border: 1px solid #ffe3b8; }
.badge-esic { background: #f3e8ff; border: 1px solid #e2d4ff; }
.badge-epfo { background: #eefdf8; border: 1px solid #d9fbf0; }

/* Contact toast */
.toast { position: fixed; right: 16px; bottom: 84px; z-index: 1050; padding: 12px 14px; border-radius: 10px; color: #0f172a; background: #e6ffed; border: 1px solid #bbf7d0; display: none; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.toast.error { background: #ffe6e6; border-color: #fecaca; }
.toast.show { display: block; }

/* Map placeholder */
.map-wrapper { border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; background: #fff; }
.map-placeholder { display: grid; place-items: center; min-height: 280px; background: linear-gradient(135deg, #f8fafc, #eef2f7); color: #475569; font-weight: 600; }

/* Focus visibility improvements */
a:focus-visible, button:focus-visible, .social-ico:focus-visible, .service-cta:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 8px; }
