/* ==========================================================================
   IN4 Solutions — multi-product landing page components
   Extends the shared design system (base/buttons/cards/forms/hero).
   ========================================================================== */

/* ---- Dark section text overrides ---- */

/* ---- Gradient text helpers ---- */
.grad-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Inner landing hero (product + company pages) ---- */
.inner-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.inner-hero-copy p.lead {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--text-body);
  max-width: 60ch;
}

.inner-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.inner-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-badge .ico { color: var(--purple-600); }

.inner-hero-visual { position: relative; min-height: 460px; }

/* ---- Home: product ecosystem visual ---- */

/* ---- Home: ecosystem animation keyframes ---- */

/* ---- Product showcase cards (home) ---- */

/* ---- Problem / solution cards (visitor + parking) ---- */

/* Solution feature cards reuse .feature-card with a small tweak */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- Use cases (pill chips) ---- */
.use-case-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 820px; margin-inline: auto; }

.use-case-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.use-case-chip:hover {
  transform: translateY(-3px);
  border-color: var(--purple-200);
  box-shadow: var(--shadow-md);
}

.use-case-chip .icon-badge { width: 36px; height: 36px; border-radius: 11px; }

/* ---- Benefit cards (parking) ---- */

/* ---- Module pills (CloudHR one platform) ---- */

/* ---- Process flow (numbered steps) ---- */
.process-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

.process-step {
  position: relative;
  flex: 1 1 180px;
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.process-step .step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad-purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.process-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); }

.process-arrow {
  align-self: center;
  color: var(--purple-400);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- Lead form section ---- */
.lead-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-purple);
  border-radius: var(--r-xl);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
}

.lead-band::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.lead-band .lead-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.lead-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-band .lead-copy p { color: rgba(255, 255, 255, 0.86); margin-top: 14px; font-size: 16px; }

.lead-band .lead-card { box-shadow: var(--shadow-lg); }

/* ---- Company page ---- */
/* The contact hero dropped its breadcrumb band (which carried the background
   photo), so it supplies its own balanced top and bottom spacing. */
.contact-page .page-hero {
  padding-top: clamp(3rem, 6vw, 4.75rem);
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
}

/* Contact hero: copy on the left, the Chennai office map on the right */
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* the three contact pills stay on one row beside the map */
.contact-hero-copy .page-hero-meta { gap: 10px; }
.contact-hero-copy .page-hero-meta a { padding: 9px 13px; font-size: 13.5px; }

.contact-map {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(75, 32, 200, 0.14), 0 8px 20px rgba(17, 24, 39, 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 26vw, 360px);
  border: 0;
  border-radius: 15px;
}

.contact-map-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
}

.contact-map-card .icon-badge { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; font-size: 13px; }

.contact-map-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.contact-map-text b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; color: var(--ink-800); }
.contact-map-text em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }

.contact-map-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.contact-map-dir .ico { width: 1em; height: 1em; font-size: 11px; }

@media (max-width: 960px) {
  .contact-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-map iframe { height: 270px; }
  .contact-map-card { flex-wrap: wrap; gap: 8px 10px; }
  .contact-map-card .icon-badge { display: none; }
  .contact-map-dir { margin-left: 0; }
}

/* The pricing and resources heroes dropped their breadcrumb bands (which
   carried the background photos), so they supply their own balanced spacing. */
.page-pricing .page-hero,
.page-resources .page-hero {
  padding-top: clamp(3rem, 6vw, 4.75rem);
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    }

@media (max-width: 900px) {
  .inner-hero { grid-template-columns: 1fr; }
  .inner-hero-visual { order: -1; min-height: 440px; }
  .lead-band .lead-band-inner { grid-template-columns: 1fr; }
    }

@media (max-width: 720px) {
    .solution-grid { grid-template-columns: 1fr; }
            }

/* ==========================================================================
   Contact — branch offices: four cards (head office highlighted), each with
   address and directions.
   ========================================================================== */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.branch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.branch-card:hover {
  transform: translateY(-4px);
  border-color: #6C35FF;
  box-shadow: 0 22px 44px rgba(75, 32, 200, 0.12);
}

.branch-card.is-main { border-color: rgba(108, 53, 255, 0.4); }
.branch-head { display: flex; align-items: center; gap: 12px; }
.branch-head .icon-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #6C35FF, #8B5CF6);
  color: #ffffff;
}
.branch-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6C35FF;
}
.branch-head h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.25; }

.branch-addr {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}


.branch-dir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f1ecff;
  color: #6C35FF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.branch-dir:hover { background: linear-gradient(135deg, #6C35FF, #8B5CF6); color: #ffffff; }
.branch-dir .ico { width: 1em; height: 1em; font-size: 11px; }

.branch-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* each branch shows its own live map beside the details */
.branch-map {
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-lav);
}
.branch-map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; }

@media (max-width: 1100px) {
  .branch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .branch-card { grid-template-columns: 1fr; }
  .branch-map, .branch-map iframe { min-height: 220px; }
}

/* Contact — compact contact card and demo form, so the two cards sit lower */
.contact-page #lead .lead-grid { align-items: stretch; }
/* equal heights: the contact card fills its column and spreads its rows */
.contact-page #lead .lead-grid > .reveal:first-child { display: flex; }
.contact-page #lead .contact-card { display: flex; flex-direction: column; width: 100%; }
.contact-page #lead .contact-card-body { display: flex; flex: 1; flex-direction: column; }
.contact-page #lead .contact-list { flex: 1; justify-content: space-evenly; }
.contact-page #lead .contact-card-head { padding: 18px 24px; }
.contact-page #lead .contact-card-head h3 { font-size: 19px; }
.contact-page #lead .contact-card-head p { margin-top: 4px; font-size: 13.5px; }
.contact-page #lead .contact-card-body { padding: 4px 24px 8px; }
.contact-page #lead .contact-line { gap: 12px; padding: 11px 0; }
.contact-page #lead .contact-line .icon-badge { width: 36px; height: 36px; border-radius: 10px; }
.contact-page #lead .contact-line strong { margin-bottom: 1px; font-size: 13.5px; }
.contact-page #lead .contact-line a,
.contact-page #lead .contact-line address { font-size: 14.5px; line-height: 1.5; }
.contact-page #lead .contact-card-foot { padding: 4px 24px 18px; }

.contact-page #lead .lead-card { padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.contact-page #lead .form-grid { gap: 10px 16px; }
.contact-page #lead .form-field { gap: 5px; }
.contact-page #lead .form-input { padding: 10px 14px; }
.contact-page #lead textarea.form-input { min-height: 78px; }
.contact-page #lead .form-error { min-height: 0; }
.contact-page #lead .form-note { margin-top: 10px; }
@media (max-width: 600px) {
  .contact-page #lead .contact-line address br { display: none; }
}

/* ---- branch cards: hover animation ----
   the border turns solid purple, a light sheen sweeps across,
   the icon wobbles with a pulse ring,
   the map lifts and the directions button fills. */
.branch-card { overflow: hidden; isolation: isolate; }
.branch-card > * { position: relative; z-index: 1; }

.branch-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: 2;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.branch-card:hover::after { animation: branchSheen 0.9s var(--ease) 1; }

@keyframes branchSheen { to { left: 130%; } }

.branch-head .icon-badge { transition: box-shadow 0.4s var(--ease); }
.branch-card:hover .branch-head .icon-badge {
  animation: branchWobble 0.7s var(--ease) 1, branchPulse 1.6s ease-out 0.3s infinite;
}
@keyframes branchWobble {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-12deg) scale(1.12); }
  60% { transform: rotate(8deg) scale(1.08); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes branchPulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 53, 255, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(108, 53, 255, 0); }
}


.branch-map { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); }
.branch-card:hover .branch-map {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(108, 53, 255, 0.35);
  box-shadow: 0 16px 32px rgba(75, 32, 200, 0.16);
}

.branch-card:hover .branch-dir { background: linear-gradient(135deg, #6C35FF, #8B5CF6); color: #ffffff; }
.branch-dir .ico { transition: transform 0.3s var(--ease); }
.branch-card:hover .branch-dir .ico { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .branch-card:hover::after,
  .branch-card:hover .branch-head .icon-badge { animation: none; }
  .branch-card:hover .branch-map { transform: none; }
}
