/* ==========================================================
   Jay Jalaram Software — site additions (2026 update)
   Loaded after main.css on every page.
   ========================================================== */

:root {
  --jjs-red: #e84545;
  --jjs-navy: #0f3460;
  --jjs-ink: #1a1a2e;
  --jjs-muted: #5f6470;
  --jjs-soft: #f6f7f9;
  --jjs-green: #25d366;
}

/* ---------- Home hero ---------- */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #111 url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero .hero-title {
  color: var(--contrast-color, #fff);
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero .hero-title { font-size: 30px; }
}

.clients .brands-label,
.our-clients .brands-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--jjs-muted);
  margin: 0 0 14px;
}

/* ---------- Client logo strip ---------- */
.our-clients { padding: 10px 0 50px; }
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.client-tile {
  flex: 0 0 160px;
  margin: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 130px;
}
.client-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  margin: auto 0;
}
.client-tile figcaption {
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--jjs-ink);
}
.client-tile figcaption span {
  display: block;
  font-weight: 400;
  color: var(--jjs-muted);
}
.client-text b {
  margin: auto 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jjs-soft);
  color: var(--jjs-navy);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.header .logo img { max-height: 48px; width: auto; height: auto; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--jjs-ink) 0%, var(--jjs-navy) 100%);
  color: #fff;
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 69, 0.25), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(232, 69, 69, 0.18);
  color: #ffb3b3;
  border: 1px solid rgba(232, 69, 69, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 720px;
}
.page-hero .hero-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-hero .hero-points li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 50px; }
  .page-hero h1 { font-size: 1.9rem; }
}

.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.jbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.jbtn:hover { transform: translateY(-2px); }
.jbtn-red { background: var(--jjs-red); color: #fff; box-shadow: 0 4px 18px rgba(232, 69, 69, 0.35); }
.jbtn-red:hover { color: #fff; }
.jbtn-wa { background: var(--jjs-green); color: #fff; box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3); }
.jbtn-wa:hover { color: #fff; }
.jbtn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.jbtn-ghost:hover { color: #fff; border-color: #fff; }
.jbtn-outline { background: #fff; color: var(--jjs-red); border-color: var(--jjs-red); }
.jbtn-outline:hover { color: #fff; background: var(--jjs-red); }

/* ---------- Content sections ---------- */
.jsec { padding: 70px 0; }
.jsec.alt { background: var(--jjs-soft); }
.jsec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.jsec-head .tag {
  display: inline-block;
  background: #fff0f0;
  color: var(--jjs-red);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.jsec-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--jjs-ink);
  margin: 14px 0 10px;
}
.jsec-head p { color: var(--jjs-muted); margin: 0; }

.jcard {
  background: #fff;
  border: 1px solid #e8e9ee;
  border-radius: 14px;
  padding: 26px 24px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jcard:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 52, 96, 0.08); }
.jcard .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff0f0;
  color: var(--jjs-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.jcard h3 { font-size: 1.08rem; font-weight: 700; color: var(--jjs-ink); margin-bottom: 8px; }
.jcard p { color: var(--jjs-muted); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.jcard ul { padding-left: 18px; margin: 10px 0 0; color: var(--jjs-muted); font-size: 0.9rem; }
.jcard ul li { margin-bottom: 4px; }

/* Add-on / product cards */
.addon {
  display: flex;
  flex-direction: column;
}
.addon .addon-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.addon .badge-soft {
  background: #eef4ff;
  color: var(--jjs-navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.addon .addon-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed #e3e5ea;
}
.addon .price { font-weight: 800; color: var(--jjs-ink); font-size: 0.95rem; }
.addon .price small { display: block; font-weight: 500; color: var(--jjs-muted); font-size: 0.72rem; }
.addon .ask {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jjs-green);
  text-decoration: none;
  white-space: nowrap;
}
.addon .ask:hover { color: #1da851; }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 22px 22px 22px 70px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e9ee;
  height: 100%;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jjs-red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--jjs-ink); margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--jjs-muted); margin: 0; }

/* Comparison table */
.jtable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jtable {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
.jtable th, .jtable td { padding: 13px 16px; border-bottom: 1px solid #eef0f3; font-size: 0.92rem; text-align: left; }
.jtable thead th { background: var(--jjs-ink); color: #fff; font-weight: 700; }
.jtable td:not(:first-child), .jtable th:not(:first-child) { text-align: center; }
.jtable .yes { color: #1a9d4b; font-weight: 700; }
.jtable .no { color: #b3b6bf; }

/* Highlight box */
.note-box {
  background: #fffaf0;
  border: 1px solid #f5d9a8;
  border-left: 4px solid #f0a020;
  border-radius: 10px;
  padding: 16px 18px;
  color: #5b4a2a;
  font-size: 0.92rem;
}

/* Gujarati block */
.gu-block {
  background: linear-gradient(135deg, #fff7f0, #fff);
  border: 1px solid #ffe0cc;
  border-radius: 16px;
  padding: 30px 28px;
}
.gu-block h2 { font-size: 1.5rem; font-weight: 800; color: var(--jjs-ink); }
.gu-block p, .gu-block li { color: #444; font-size: 1rem; line-height: 1.8; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--jjs-navy), var(--jjs-ink));
  color: #fff;
  border-radius: 20px;
  padding: 46px 34px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-weight: 800; font-size: 1.8rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0 auto; max-width: 560px; }
.cta-band .btn-row { justify-content: center; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-card .meta { font-size: 0.78rem; color: var(--jjs-muted); margin-bottom: 8px; }
.post-card h3 a { color: var(--jjs-ink); }
.post-card h3 a:hover { color: var(--jjs-red); }
.post-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.88rem; }
.article { max-width: 780px; margin: 0 auto; font-size: 1.04rem; line-height: 1.85; color: #33363d; }
.article h2 { font-size: 1.5rem; font-weight: 800; color: var(--jjs-ink); margin: 38px 0 12px; }
.article h3 { font-size: 1.15rem; font-weight: 700; color: var(--jjs-ink); margin: 26px 0 8px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .jtable { min-width: 0; }

/* ---------- Site-wide widgets (inner pages) ---------- */
#whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: var(--jjs-green);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease;
}
#whatsapp-btn:hover { transform: scale(1.1); color: #fff; }

#mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #fff;
  box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
  gap: 8px;
}
@media (max-width: 768px) {
  #mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
  #whatsapp-btn { display: none; }
}
.mob-btn-call, .mob-btn-wa {
  flex: 1;
  color: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.mob-btn-call { background: var(--jjs-navy); }
.mob-btn-wa { background: var(--jjs-green); }
.mob-btn-call:hover, .mob-btn-wa:hover { color: #fff; }

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000 !important; /* above scroll-top and WhatsApp buttons */
  background: var(--jjs-ink);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
#cookie-banner[hidden] { display: none; }
#cookie-banner p { margin: 0; color: rgba(255, 255, 255, 0.85); flex: 1; min-width: 220px; }
#cookie-banner a { color: #ff8c42; text-decoration: underline; }
#cookie-accept, #cookie-decline {
  border-radius: 6px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
#cookie-accept { background: var(--jjs-red); color: #fff; border: none; }
#cookie-decline { background: transparent; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.25); }

/* Own products & partners strip: show in full colour */
.clients .client-logo { display: flex; align-items: center; justify-content: center; }
.clients .client-logo img { filter: none; opacity: 1; padding: 10px; max-width: 100%; max-height: 90px; width: auto; }
/* ---------- Phone layout (under 768px) ---------- */
@media (max-width: 767px) {
  /* one WhatsApp/call bar is enough: the bottom bar stays, floating extras go */
  #quote-tab, #whatsapp-btn, #wa-popup { display: none !important; }
  .scroll-top { bottom: 72px !important; }
  body { padding-bottom: 64px; }

  section, .section { padding-top: 36px !important; padding-bottom: 36px !important; }
  .clients, .our-clients { padding-top: 12px !important; padding-bottom: 12px !important; }
  .section-title { padding-bottom: 20px !important; }
  .section-title h2, section h2 { font-size: 24px !important; }

  /* hero */
  .hero { padding-top: 110px !important; padding-bottom: 40px !important; min-height: auto !important; }
  .hero .hero-title { font-size: 26px; }
  .hero p { font-size: 0.95rem; }
  .hero .btn, .hero a[class*="btn"] { padding: 10px 18px !important; font-size: 0.9rem !important; }

  /* brand + client strips */
  .clients .client-logo img { max-height: 56px; padding: 6px; }
  .client-grid { gap: 8px; }
  .client-tile { flex: 0 0 calc(33.333% - 6px); min-height: 104px; padding: 10px 6px 8px; border-radius: 8px; }
  .client-tile img { max-height: 34px; }
  .client-tile figcaption { font-size: 0.66rem; margin-top: 6px; }
  .client-text b { width: 36px; height: 36px; font-size: 0.75rem; }

  /* cards: tighter padding so more fits on screen */
  .about .icon-box, .icon-boxes .icon-box { padding: 22px 18px !important; }
  .about .icon-box h3, .icon-boxes h3 { font-size: 1.1rem !important; margin-bottom: 6px !important; }
  .services .service-item { padding: 22px 14px 14px !important; }
  #call-to-action [style*="padding:32px"] { padding: 18px 16px !important; }
  #call-to-action [style*="padding:32px"] h4, #call-to-action [style*="padding:32px"] h5 { font-size: 1.05rem !important; }
  .stats .stats-item { padding: 16px 10px !important; }
  .stats .col-md-6 { width: 50%; }
  .stats-item span { font-size: 32px !important; }
}

/* Phone: long card lists become swipe rows (next card peeks in from the right) */
@media (max-width: 767px) {
  #about .icon-boxes,
  #services .row.gy-4,
  #call-to-action .row.mb-5,
  #testimonials .row.gy-4 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    margin-left: 0;
    margin-right: -12px;
    padding: 4px 12px 10px 0;
  }
  #about .icon-boxes::-webkit-scrollbar,
  #services .row.gy-4::-webkit-scrollbar,
  #call-to-action .row.mb-5::-webkit-scrollbar,
  #testimonials .row.gy-4::-webkit-scrollbar { display: none; }
  #about .icon-boxes > *,
  #services .row.gy-4 > *,
  #call-to-action .row.mb-5 > *,
  #testimonials .row.gy-4 > * {
    flex: 0 0 82%;
    max-width: 82%;
    margin-top: 0 !important;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }
  #about .icon-boxes > * > *,
  #services .row.gy-4 > * > *,
  #call-to-action .row.mb-5 > * > *,
  #testimonials .row.gy-4 > * > * { height: 100%; }
}
@media (max-width: 767px) {
  .services .service-item { flex-direction: column; border: 1px solid #eee; border-radius: 12px; background: #fff; }
  .services .service-item .icon { margin: 0 0 10px !important; }
  .services .service-item .title { font-size: 1.1rem !important; margin-bottom: 8px !important; }
  .services .service-item .description { font-size: 0.9rem; margin-bottom: 0; }
}
@media (max-width: 767px) {
  #contact .info-item { padding: 18px 16px !important; }
  #contact .info-item i { font-size: 26px !important; }
  #contact .info-item h3 { font-size: 1.05rem !important; margin: 8px 0 6px !important; }
  #contact .info-item p { font-size: 0.88rem; margin-bottom: 4px; }
}
@media (max-width: 767px) {
  #testimonials .d-inline-flex { flex-wrap: wrap; justify-content: center; max-width: 100%; padding: 12px 14px !important; }
}

/* Phone: inner pages (Tally, Labh, Training, etc.) */
@media (max-width: 767px) {
  .jsec { padding: 36px 0; }
  .jsec-head { margin-bottom: 22px; }
  .jsec-head h2 { font-size: 1.45rem; }
  .jcard { padding: 18px 16px; }
  .page-hero { padding-top: 100px !important; padding-bottom: 36px !important; }
  .page-hero h1 { font-size: 1.6rem !important; }

  .jsec .row.gy-4:has(> * > .jcard),
  .jsec .row.gy-4:has(> * > .addon) {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -12px;
    padding-bottom: 8px;
  }
  .jsec .row.gy-4:has(> * > .jcard) > *,
  .jsec .row.gy-4:has(> * > .addon) > * {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
}