/*
Theme Name: JANAS Stitch
Theme URI: https://janas.co.in/
Author: JANAS
Author URI: https://janas.co.in/
Description: WordPress theme converted from the JANAS Stitch website design.
Version: 1.0.54
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: janas-stitch
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Load the theme integration CSS even if WordPress/CDN asset loading is delayed. */
@import url("assets/style.css");

/* Guaranteed base styling. Tailwind remains responsible for the approved desktop design. */
html, body { margin:0; padding:0; width:100%; min-height:100%; background:#0f131c; color:#dfe2ee; }
*, *::before, *::after { box-sizing:border-box; }
img { max-width:100%; }
a { color:inherit; }

/* Responsive fallback: these rules intentionally live in the root stylesheet so they work
   even when the Tailwind CDN is unavailable on mobile/tablet browsers. */
@media (max-width:1023px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden !important; background:#0f131c !important; color:#dfe2ee !important; }
  body { font-family:Inter, Arial, sans-serif !important; font-size:16px; line-height:1.6; }
  img { max-width:100%; height:auto; }
  a { color:inherit; text-decoration:none; }

  /* Header */
  body > header, header.fixed { position:relative !important; inset:auto !important; width:100% !important; height:auto !important; min-height:0 !important; background:#0f131c !important; z-index:100 !important; }
  header.fixed > div { width:100% !important; max-width:none !important; min-height:72px !important; height:auto !important; padding:10px 16px !important; display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:8px !important; }
  header img { display:block !important; width:auto !important; height:52px !important; max-width:180px !important; object-fit:contain !important; }
  header > div > div:first-child { flex:1 1 auto !important; min-width:0 !important; }
  header > div > div:last-child { margin-left:auto !important; display:flex !important; align-items:center !important; }
  header > div > div:last-child .hidden.sm\\:inline-flex { display:inline-flex !important; }
  header > div > div:last-child > div { display:none !important; }
  header nav, header nav.hidden.lg\\:flex { display:flex !important; order:3 !important; flex:0 0 100% !important; width:100% !important; max-width:100% !important; overflow-x:auto !important; overflow-y:hidden !important; white-space:nowrap !important; gap:2px !important; padding:4px !important; background:#181c24 !important; border-radius:12px !important; scrollbar-width:none !important; }
  header nav::-webkit-scrollbar { display:none !important; }
  header nav a { display:inline-flex !important; flex:0 0 auto !important; align-items:center !important; justify-content:center !important; min-height:40px !important; padding:8px 12px !important; border-radius:8px !important; color:#c2c6d6 !important; font:600 14px/20px Inter,Arial,sans-serif !important; }
  header nav a:hover { color:#fff !important; }
  header nav a[data-path="contact"] { background:linear-gradient(135deg,#e5038a,#ff45a2) !important; color:#fff !important; box-shadow:0 0 20px rgba(229,3,138,.45) !important; }

  /* Document */
  main { width:100% !important; max-width:100% !important; min-height:0 !important; overflow:visible !important; }
  main > div, main section { max-width:100% !important; overflow:visible; }
  footer { width:100% !important; overflow:hidden !important; }
  footer .grid { grid-template-columns:1fr !important; }

  /* Common Stitch utilities needed when Tailwind is unavailable */
  .w-full { width:100% !important; }
  .h-auto { height:auto !important; }
  .flex { display:flex !important; }
  .inline-flex { display:inline-flex !important; }
  .flex-col { flex-direction:column !important; }
  .flex-wrap { flex-wrap:wrap !important; }
  .items-center { align-items:center !important; }
  .items-start { align-items:flex-start !important; }
  .justify-between { justify-content:space-between !important; }
  .justify-center { justify-content:center !important; }
  .grid { display:grid !important; }
  .relative { position:relative !important; }
  .absolute { position:absolute !important; }
  .mx-auto { margin-left:auto !important; margin-right:auto !important; }
  .hidden { display:none !important; }
  .block { display:block !important; }
  .overflow-hidden { overflow:hidden !important; }
  .object-cover { object-fit:cover !important; }
  .z-10 { z-index:10 !important; }
  .grid-cols-1 { grid-template-columns:1fr !important; }
  .grid-cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .max-w-\\[1440px\\] { max-width:1440px !important; }
  .max-w-2xl { max-width:42rem !important; }
  .px-margin-mobile, .md\\:px-margin-tablet, .lg\\:px-margin { padding-left:1rem !important; padding-right:1rem !important; }
  .pt-20 { padding-top:5rem !important; }
  .pt-32 { padding-top:7rem !important; }
  .pb-24 { padding-bottom:6rem !important; }
  .p-space-lg { padding:1.25rem !important; }
  .px-space-lg { padding-left:1.25rem !important; padding-right:1.25rem !important; }
  .px-space-md { padding-left:1rem !important; padding-right:1rem !important; }
  .py-space-sm { padding-top:.5rem !important; padding-bottom:.5rem !important; }
  .font-display,.font-headline-lg,.font-headline-md,.font-headline-sm,.font-headline-lg-mobile,.font-display-mobile { font-family:"Plus Jakarta Sans",Inter,Arial,sans-serif !important; }
  .text-on-surface,.text-on-background { color:#dfe2ee !important; }
  .text-on-surface-variant { color:#c2c6d6 !important; }
  .text-primary { color:#adc6ff !important; }
  .text-tertiary { color:#4cd7f6 !important; }
  .text-headline-lg { font-size:2rem !important; line-height:2.5rem !important; }
  .text-headline-sm { font-size:1.5rem !important; line-height:2rem !important; }
  .text-body-lg { font-size:1.125rem !important; line-height:1.75rem !important; }
  .text-body-md { font-size:1rem !important; line-height:1.625rem !important; }
  .text-body-sm { font-size:.875rem !important; line-height:1.375rem !important; }
  .text-label-lg { font-size:.875rem !important; line-height:1.25rem !important; }
}

@media (min-width:640px) and (max-width:1023px) {
  header.fixed > div { padding:10px 28px 12px !important; min-height:110px !important; }
  header img { height:58px !important; }
  header nav a { padding:8px 14px !important; font-size:14px !important; }
  main section > .max-w-\\[1440px\\] { width:100% !important; max-width:100% !important; padding-left:28px !important; padding-right:28px !important; }
}

@media (max-width:639px) {
  header img { height:50px !important; max-width:165px !important; }
  header > div > div:last-child .hidden.sm\\:inline-flex { display:none !important; }
  header nav a { padding:7px 10px !important; font-size:13px !important; min-height:38px !important; }
  .text-display-mobile { font-size:2.25rem !important; line-height:2.6rem !important; }
  .grid-cols-2.md\\:grid-cols-4 { grid-template-columns:1fr !important; }
}


/* =========================================================
   V17 RESPONSIVE LAYER
   Desktop (1024px+) is intentionally untouched.
   ========================================================= */
@media (max-width: 1023px) {
  html, body { width:100% !important; max-width:100% !important; min-width:0 !important; overflow-x:hidden !important; }
  body { min-height:100vh !important; overflow-y:auto !important; overscroll-behavior-y:auto !important; }
  *, *::before, *::after { box-sizing:border-box !important; }
  img, video, svg { max-width:100%; height:auto; }
  main { width:100% !important; max-width:100% !important; min-width:0 !important; overflow:visible !important; }
  main > * { max-width:100% !important; }

  /* Header */
  header.fixed { position:relative !important; width:100% !important; top:auto !important; left:auto !important; right:auto !important; }
  header.fixed > div {
    width:100% !important; max-width:none !important; min-height:0 !important; height:auto !important;
    padding:10px 16px !important; display:flex !important; flex-wrap:wrap !important;
    align-items:center !important; gap:8px !important;
  }
  header.fixed > div > div:first-child { flex:1 1 auto !important; min-width:0 !important; }
  header img { width:auto !important; max-width:170px !important; height:52px !important; object-fit:contain !important; }
  header.fixed > div > div:last-child { flex:0 0 auto !important; margin-left:auto !important; }
  header.fixed > div > div:last-child > div { display:none !important; }
  header.fixed > div > div:last-child .hidden.sm\:inline-flex {
    display:inline-flex !important; min-height:40px !important; padding:8px 13px !important;
    font-size:13px !important; line-height:1.2 !important; white-space:nowrap !important;
  }
  header nav.hidden.lg\:flex, header nav {
    display:flex !important; order:3 !important; flex:0 0 100% !important; width:100% !important;
    max-width:100% !important; overflow-x:auto !important; overflow-y:hidden !important;
    justify-content:flex-start !important; white-space:nowrap !important; scrollbar-width:none !important;
    padding:3px !important; gap:2px !important; margin-top:2px !important;
  }
  header nav::-webkit-scrollbar { display:none !important; }
  header nav a {
    display:inline-flex !important; flex:0 0 auto !important; align-items:center !important; justify-content:center !important;
    min-height:38px !important; padding:7px 11px !important; font-size:13px !important; line-height:1.2 !important;
    white-space:nowrap !important;
  }

  /* Consistent page gutters */
  main section > .max-w-\[1440px\],
  main .max-w-\[1440px\] {
    width:100% !important; max-width:1440px !important; margin-left:auto !important; margin-right:auto !important;
    padding-left:16px !important; padding-right:16px !important;
  }
  .px-margin-mobile, .md\:px-margin-tablet, .lg\:px-margin {
    padding-left:16px !important; padding-right:16px !important;
  }

  /* Responsive grids: prevent fixed/oversized children from forcing overflow. */
  .grid { min-width:0 !important; }
  .grid > * { min-width:0 !important; max-width:100% !important; }
  .grid-cols-1.lg\:grid-cols-12 { grid-template-columns:1fr !important; }
  .grid-cols-1.md\:grid-cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .grid-cols-2.md\:grid-cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .lg\:col-span-5, .lg\:col-span-7, .lg\:col-span-12 { grid-column:auto !important; width:auto !important; }

  /* Typography and media */
  .text-display-mobile { font-size:clamp(2.25rem,7vw,3.5rem) !important; line-height:1.05 !important; }
  .text-headline-lg { font-size:clamp(2rem,5vw,2.5rem) !important; line-height:1.15 !important; }
  .text-headline-sm { font-size:clamp(1.4rem,4vw,1.75rem) !important; line-height:1.25 !important; }
  .text-body-lg { font-size:1.05rem !important; line-height:1.65 !important; }
  .text-body-md { font-size:1rem !important; line-height:1.6 !important; }
  .text-body-sm { font-size:.875rem !important; line-height:1.5 !important; }
  .absolute { max-width:100% !important; }

  /* Contact page */
  body.janas-contact-route .janas-contact-content,
  body.janas-contact-route .janas-contact-showcase {
    width:100% !important; max-width:1440px !important; margin-left:auto !important; margin-right:auto !important;
    padding-left:16px !important; padding-right:16px !important; box-sizing:border-box !important;
  }
  body.janas-contact-route .janas-contact-grid { grid-template-columns:1fr !important; gap:24px !important; }
  body.janas-contact-route .janas-contact-right { width:100% !important; min-width:0 !important; }

  /* Footer */
  footer { width:100% !important; max-width:100% !important; overflow:hidden !important; }
}

@media (min-width:640px) and (max-width:1023px) {
  header.fixed > div { padding:10px 28px 12px !important; }
  header img { height:56px !important; max-width:190px !important; }
  header nav a { padding:8px 13px !important; font-size:14px !important; }
  main section > .max-w-\[1440px\], main .max-w-\[1440px\] { padding-left:28px !important; padding-right:28px !important; }
  .px-margin-mobile, .md\:px-margin-tablet, .lg\:px-margin { padding-left:28px !important; padding-right:28px !important; }
  body.janas-contact-route .janas-contact-content,
  body.janas-contact-route .janas-contact-showcase { padding-left:28px !important; padding-right:28px !important; }
  body.janas-contact-route .janas-contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:24px !important; }
  footer .grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@media (max-width:639px) {
  header img { height:48px !important; max-width:155px !important; }
  header.fixed > div > div:last-child .hidden.sm\:inline-flex { display:none !important; }
  header nav a { min-height:36px !important; padding:7px 10px !important; font-size:12.5px !important; }
  main section > .max-w-\[1440px\], main .max-w-\[1440px\] { padding-left:16px !important; padding-right:16px !important; }
  .px-margin-mobile, .md\:px-margin-tablet, .lg\:px-margin { padding-left:16px !important; padding-right:16px !important; }
  .grid-cols-1.md\:grid-cols-2,
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3,
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4,
  .grid-cols-2.md\:grid-cols-4 { grid-template-columns:1fr !important; }
  body.janas-contact-route .janas-contact-content,
  body.janas-contact-route .janas-contact-showcase { padding-left:16px !important; padding-right:16px !important; }
  body.janas-contact-route .janas-contact-grid { grid-template-columns:1fr !important; }
  footer .grid { grid-template-columns:1fr !important; }
}
/* =========================================================
   MOBILE / TABLET HAMBURGER NAVIGATION
   Desktop navigation remains unchanged.
   ========================================================= */
@media (max-width: 1023px) {
  header.fixed > div { position:relative !important; }
  .janas-mobile-toggle {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    height:44px !important;
    margin-left:auto !important;
    border:1px solid rgba(255,255,255,.14) !important;
    border-radius:10px !important;
    background:#181c24 !important;
    color:#dfe2ee !important;
    cursor:pointer !important;
    padding:0 !important;
    flex:0 0 44px !important;
  }
  .janas-mobile-toggle .material-symbols-outlined {
    font-size:24px !important;
    line-height:1 !important;
  }
  header nav#janas-mobile-nav {
    display:none !important;
    order:3 !important;
    flex:0 0 100% !important;
    width:100% !important;
    margin-top:8px !important;
    padding:8px !important;
    background:#181c24 !important;
    border-radius:12px !important;
    overflow:visible !important;
    white-space:normal !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:2px !important;
  }
  header nav#janas-mobile-nav.janas-mobile-open {
    display:flex !important;
  }
  header nav#janas-mobile-nav a {
    display:flex !important;
    width:100% !important;
    min-height:44px !important;
    padding:10px 14px !important;
    justify-content:flex-start !important;
    text-align:left !important;
    border-radius:8px !important;
    font-size:14px !important;
  }
}

@media (min-width: 1024px) {
  .janas-mobile-toggle { display:none !important; }
}



/* JANAS signature motion: low-contrast cyan particles and network links. */
html { background: #0f131c; }
body { position: relative; }
.janas-brand-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .98;
  mix-blend-mode: screen;
  contain: strict;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 12%, rgba(38, 106, 169, .10), transparent 42%),
              radial-gradient(ellipse at 86% 28%, rgba(0, 181, 220, .055), transparent 38%);
}
@media (prefers-reduced-motion: reduce) {
  .janas-brand-motion { opacity: .52; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .janas-brand-motion { opacity: .72; }
}

/* JANAS branded native scrollbar: visible on the right, with a cyan-to-blue thumb. */
html {
  scrollbar-width: thin;
  scrollbar-color: #39bdf8 #111827;
  scroll-behavior: smooth;
}
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #0b1018; border-left: 1px solid rgba(96, 165, 250, .10); }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #55d6ff 0%, #3478f6 55%, #7c3aed 100%);
  border: 3px solid #0b1018;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8be5ff 0%, #5c94ff 55%, #a78bfa 100%); }

/* Floating WhatsApp call-to-action */
.janas-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: linear-gradient(115deg, #3b82f6 0%, #7c3aed 48%, #e5038a 100%);
  color: #fff !important;
  font: 700 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.32), 0 0 26px rgba(229,3,138,.24), 0 0 18px rgba(76,215,246,.12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.janas-whatsapp-float:hover,
.janas-whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,.38), 0 0 32px rgba(229,3,138,.36), 0 0 22px rgba(76,215,246,.18);
  filter: brightness(1.06);
  color: #fff !important;
}
.janas-whatsapp-float:focus-visible { outline: 3px solid #8be5ff; outline-offset: 4px; }
.janas-whatsapp-float svg { width: 25px; height: 25px; flex: 0 0 25px; }
.janas-whatsapp-float .janas-wa-label { display: inline-flex; flex-direction: column; gap: 2px; }
.janas-whatsapp-float .janas-wa-label small { font-size: 10px; font-weight: 500; opacity: .9; letter-spacing: .02em; }
@media (max-width: 600px) {
  html::-webkit-scrollbar { width: 6px; }
  .janas-whatsapp-float { right: 14px; bottom: 16px; min-height: 50px; padding: 0 15px 0 13px; gap: 8px; font-size: 14px; }
  .janas-whatsapp-float svg { width: 23px; height: 23px; flex-basis: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .janas-whatsapp-float { transition: none; }
  .janas-whatsapp-float:hover,
  .janas-whatsapp-float:focus-visible { transform: none; }
}

/* Keep content above the decorative canvas; canvas remains transparent and non-interactive. */
body > header, body > main, body > footer, body > div:not(.janas-brand-motion) { position: relative; z-index: 1; }
body > header { z-index: 50; }


/* Home hero: transparent surface lets the animated JANAS network show through. */
body:has(.janas-brand-motion) .janas-brand-motion {
  filter: drop-shadow(0 0 1px rgba(76, 215, 246, .12));
}


/* V1.0.20 — animated network layer: keep canvas above section fills but below content.
   The earlier parent z-index placed the canvas behind the whole <main>, so only the
   transparent hero could reveal it. */
.janas-brand-motion {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
}
body > header { position: relative !important; z-index: 50 !important; }
body > main,
body > footer { position: relative !important; z-index: auto !important; }

/* Section background fills remain below the canvas; section content sits above it. */
main section > div:not(.absolute),
main section > article,
body > footer > div {
  position: relative;
  z-index: 2;
}
main section > .absolute,
main section > div.absolute {
  z-index: 0;
}
.janas-whatsapp-float { z-index: 9998 !important; }

@media (prefers-reduced-motion: reduce) {
  .janas-brand-motion { opacity: .58 !important; }
}
@media (max-width: 640px) {
  .janas-brand-motion { opacity: .86 !important; }
}
