/* =========================================================
   RAINISH INDIA — Premium polish layer
   High-end surfaces, motion & homepage experience
   ========================================================= */

body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(53, 88, 240, 0.05), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(0, 200, 240, 0.04), transparent 55%),
    var(--color-paper);
}

.section-title {
  max-width: 18ch;
}
.section-head .btn--outline {
  border-color: var(--color-line);
  background: #fff;
}
.section-head .btn--outline:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

/* Product cards — premium */
.product-grid {
  gap: 1.25rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 1px 0 rgba(10, 12, 18, 0.02);
}
.product-card__media {
  position: relative;
}
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 12, 18, 0.08));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.product-card:hover .product-card__media::after { opacity: 1; }
.product-card__body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  min-height: 2.6em;
}
.product-card__actions {
  margin-top: auto;
  padding-top: 0.35rem;
}
.product-card__actions .btn--whatsapp {
  margin-left: 0;
}

/* Page heroes shared */
.page-hero__overlay,
.svc-hero__overlay,
.contact-hero__overlay,
.loc-hero__overlay {
  background:
    linear-gradient(105deg, rgba(8, 10, 16, 0.88) 0%, rgba(10, 12, 22, 0.55) 48%, rgba(12, 14, 28, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.15) 0%, rgba(8, 10, 16, 0.72) 100%) !important;
}

/* =========================================================
   Homepage premium
   ========================================================= */
.page-home .hero {
  align-items: end;
  min-height: min(92vh, 860px);
}
.page-home .hero__media {
  background: #07090f;
}
.home-hero__glow {
  display: none;
}
.page-home .hero__overlay {
  background: transparent !important;
}
.page-home .hero__content {
  max-width: 720px;
  width: min(100% - 2.5rem, 720px);
  padding: 5rem 0 4rem;
  z-index: 4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.home-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 220, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fe8ff;
  -webkit-text-fill-color: #9fe8ff;
  line-height: 1;
}
.home-hero__brand::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(0, 200, 240, 0.7);
}
.page-home .hero__title {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 1.15rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.page-home .hero__title br { display: none; }
@media (min-width: 769px) {
  .page-home .hero__title br { display: inline; }
}
.page-home .hero__sub {
  max-width: 40ch;
  font-size: clamp(1.04rem, 1.7vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.85rem;
}
.page-home .hero__actions .btn {
  min-height: 52px;
  padding-inline: 1.4rem;
  border-radius: 14px;
}
.home-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.home-hero__pills li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 500;
}

.home-trust {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 10px 30px rgba(10, 12, 18, 0.03);
}
.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-trust__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.4rem 1.15rem;
  border-right: 1px solid var(--color-line);
}
.home-trust__item:last-child { border-right: 0; }
.home-trust__item > i {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--gradient-brand);
  font-size: 0.85rem;
}
.home-trust__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
}
.home-trust__item span {
  font-size: 0.8rem;
  color: var(--color-steel);
  line-height: 1.4;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.home-intro__points {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
}
.home-intro__points span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-steel);
  font-size: 0.95rem;
}
.home-intro__points i {
  color: var(--color-accent);
  font-size: 0.8rem;
}
.home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.home-intro__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-lg);
}
.home-intro__media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.home-intro__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--gradient-brand);
}
.home-intro__badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.25rem;
  z-index: 2;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  max-width: 220px;
}
.home-intro__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.home-intro__badge span {
  font-size: 0.78rem;
  color: var(--color-steel);
}

.home-cats {
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.1rem;
  min-height: 560px;
}
.home-cat {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 240px;
  color: #fff;
  isolation: isolate;
  display: flex;
  align-items: end;
  background: var(--color-slate);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.home-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(10, 12, 18, 0.18);
}
.home-cat--wide {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 100%;
}
.home-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.home-cat:hover img { transform: scale(1.06); }
.home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6, 8, 14, 0.88) 100%);
  z-index: 1;
}
.home-cat__body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}
.home-cat__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fe8ff;
}
.home-cat h3 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.home-cat--wide h3 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}
.home-cat p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.95rem;
  font-size: 0.95rem;
  max-width: 34ch;
}
.home-cat__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #fff;
}
.home-cat__cta i {
  font-size: 0.75rem;
  transition: transform var(--transition);
}
.home-cat:hover .home-cat__cta i { transform: translateX(3px); }
.home-cat--accent {
  background: linear-gradient(160deg, #121722 0%, #0b0e16 100%);
  border: 1px solid rgba(53, 88, 240, 0.25);
}
.home-cat--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 220px at 20% 20%, rgba(0, 200, 240, 0.18), transparent 60%),
    radial-gradient(420px 240px at 90% 90%, rgba(109, 40, 240, 0.22), transparent 55%);
  z-index: 0;
}
.home-cat--accent::after { display: none; }
.home-cat--accent .home-cat__body { z-index: 1; }

.home-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-why__item {
  padding: 1.55rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.home-why__item:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 88, 240, 0.25);
  box-shadow: var(--shadow-lg);
}
.home-why__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
  background: var(--gradient-brand);
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(53, 88, 240, 0.28);
}
.home-why__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.home-why__item p {
  margin: 0;
  color: var(--color-steel);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.home-app {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  display: flex;
  align-items: end;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.home-app img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.home-app:hover img { transform: scale(1.07); }
.home-app::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
}
.home-app span {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}
.home-process__step {
  padding: 1.4rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.home-process__step:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 88, 240, 0.25);
  box-shadow: var(--shadow);
}
.home-process__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.55rem;
  line-height: 1;
}
.home-process__step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.home-process__step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-steel);
  line-height: 1.5;
}

.home-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.home-project {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  cursor: pointer;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.home-project img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.home-project:hover img { transform: scale(1.06); }
.home-project__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.35rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 14, 0.88));
}
.home-project__meta h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 0.2rem;
}
.home-project__meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 15% 20%, rgba(0, 200, 240, 0.18), transparent 60%),
    radial-gradient(600px 300px at 90% 80%, rgba(109, 40, 240, 0.22), transparent 55%),
    linear-gradient(135deg, #0b0e16 0%, #121722 100%);
  color: #fff;
  padding: clamp(3.75rem, 7vw, 5.75rem) 0;
}
.home-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-brand);
}
.home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}
.home-cta .section-title {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 0.7rem;
}
.home-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
  margin: 0;
}
.home-cta__eyebrow {
  color: #9fe8ff;
  -webkit-text-fill-color: #9fe8ff;
}
.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .home-cats {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .home-cat--wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 340px;
  }
  .home-trust__grid,
  .home-why,
  .home-apps,
  .home-process,
  .home-projects,
  .home-intro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-trust__item:nth-child(2n) { border-right: 0; }
  .home-trust__item:nth-child(-n + 2) { border-bottom: 1px solid var(--color-line); }
}

@media (max-width: 768px) {
  .page-home .hero { min-height: min(86vh, 720px); }
  .page-home .hero__content {
    width: min(100% - 1.5rem, var(--container));
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding: 2.75rem 0 2.75rem;
  }
  .page-home .hero__title { max-width: none; }
  .page-home .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .page-home .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .home-hero__pills { gap: 0.4rem; }
  .home-trust__grid,
  .home-cats,
  .home-why,
  .home-apps,
  .home-process,
  .home-projects,
  .home-intro__grid { grid-template-columns: 1fr; }
  .home-cat--wide { grid-column: auto; min-height: 280px; }
  .home-trust__item {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .home-trust__item:last-child { border-bottom: 0; }
  .home-intro__media,
  .home-intro__media img { min-height: 300px; }
  .home-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .home-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow { display: none; }
  .home-cat:hover,
  .home-why__item:hover,
  .home-process__step:hover,
  .product-card:hover { transform: none; }
}
