/*
 * Home Page Template — Samanvi Technologies
 * Paired with: page-templates/template-home.php
 */

/* ════════════════════════════════
   GENERATEPRESS OVERRIDES
════════════════════════════════ */

/* Full-width containers — remove all GP padding/max-width */
body.page-template-page-templates-template-home-php .site-content,
body.page-template-page-templates-template-home-php .site-inner,
body.page-template-page-templates-template-home-php #primary,
body.page-template-page-templates-template-home-php .site-main,
body.page-template-page-templates-template-home-php article,
body.page-template-page-templates-template-home-php .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hide ALL GP-generated page elements — title, featured image, entry content wrapper */
body.page-template-page-templates-template-home-php .entry-header,
body.page-template-page-templates-template-home-php .entry-title,
body.page-template-page-templates-template-home-php .entry-content,
body.page-template-page-templates-template-home-php .post-image,
body.page-template-page-templates-template-home-php .featured-image,
body.page-template-page-templates-template-home-php .generate-featured-image,
body.page-template-page-templates-template-home-php .page-header-image,
body.page-template-page-templates-template-home-php .inside-page-hero,
body.page-template-page-templates-template-home-php .generate-page-header,
body.page-template-page-templates-template-home-php .entry-footer {
  display: none !important;
}

/* Our wrapper fills full width */
body.page-template-page-templates-template-home-php #home-page-wrapper {
  display: block !important;
  width: 100%;
  overflow-x: hidden;
}

/* ════════════════════════════════
   CSS VARIABLES
════════════════════════════════ */
:root {
  --black: #091628;
  --off-black: #0d2040;
  --dark: #0b2d38;
  --mid: #174060;
  --light-bg: #edf5f8;
  --white: #ffffff;
  --off-white: #edf5f8;
  --muted: #6fa3c0;
  --teal: #00a896;
  --teal-dark: #028090;
  --blue: #1f4e8a;
  --blue-light: rgba(31, 78, 138, 0.08);
  --blue-mid: rgba(31, 78, 138, 0.18);
  --blue-border: rgba(31, 78, 138, 0.22);
}

/* ── Hero responsive padding ── */
@media screen and (min-width: 768px) {
  body.page-template-page-templates-template-home-php .hero,
  body.page-template-page-templates-template-home-php #home-page-wrapper .hero {
    padding: 20px 30px 0px 50px !important;
  }
}

/* ════════════════════════════════
   HERO — DASHBOARD RESULTS DESIGN
════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #091628 0%, #1f4e8a 50%, #091628 100%);
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Teal glow top-left */
.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(0, 168, 150, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
/* Blue glow bottom-right */
.hero::after {
  content: "";
  position: absolute;
  bottom: -5%;
  right: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(31, 78, 138, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 3rem 5rem 5rem;
  position: relative;
  z-index: 2;
}

/* Live indicator dot */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 168, 150, 0.08);
  border: 1px solid rgba(0, 168, 150, 0.22);
  border-radius: 100px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  margin-bottom: 2.5rem;
  width: fit-content;
}
.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}
.hero-live-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
}

/* Headline with animated word swap */
.hero-headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.75rem;
  letter-spacing: -2px;
}
.hero-headline .static-line {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  font-size: 0.65em;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
}
.hero-headline .swap-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.1em;
}
.hero-headline .swap-words {
  display: flex;
  flex-direction: column;
  animation: word-swap 6s steps(1) infinite;
}
@keyframes word-swap {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-1.1em);
  }
  50% {
    transform: translateY(-2.2em);
  }
  75% {
    transform: translateY(-3.3em);
  }
}
.hero-headline .swap-word {
  display: block;
  height: 1.1em;
  line-height: 1.1;
  color: #ffffff;
}

.hero-body {
  font-size: 0.97rem;
  color: rgb(231 233 236);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-body strong {
  color: #fff;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* Trust logos row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;

  flex-wrap: wrap;
}
.hero-trust-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}
.hero-trust-logos {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.trust-logo-pill {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
}

/* ── Hero right: Dashboard cards + person image ── */
.hero-dashboard {
  position: relative;
  height: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 2rem 0 5rem 1rem;
  background-image: url("https://samanvi.in/wp-content/uploads/2026/03/seo-6_converted.webp");
  background-size: cover;
  background-position: center right;
}

/* Left fade so cards blend into hero bg */
.hero-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    #091628 30%,
    rgba(9, 22, 40, 0.6) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* Bottom fade */
.hero-dashboard::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #091628, transparent);
  z-index: 1;
  pointer-events: none;
}

.dashboard-stack {
  position: relative;
  width: 400px;
  height: 430px;
  z-index: 2;
}

/* Shared card style */
.db-card {
  position: absolute;
  background: rgba(13, 32, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
.db-card:hover {
  transform: scale(1.02) translateY(-3px) !important;
}

/* Card: Traffic growth */
.db-traffic {
  width: 240px;
  top: 10px;
  left: 0;
  padding: 1.4rem;
  animation: float-a 5s ease-in-out infinite;
}
@keyframes float-a {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.db-traffic:hover {
  animation: none;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.db-card-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.db-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.db-card-badge.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

.db-big-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 0.25rem;
}
.db-sub-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* Mini SVG chart */
.db-chart {
  width: 100%;
  height: 56px;
}

/* Card: Rank tracker */
.db-rank {
  width: 155px;
  top: 40px;
  right: 0;
  padding: 1.2rem;
  animation: float-b 6s ease-in-out infinite 1s;
}
@keyframes float-b {
  0%,
  100% {
    transform: translateY(0px) rotate(1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}
.db-rank:hover {
  animation: none;
}

.db-rank-pos {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -3px;
}
.db-rank-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}
.db-rank-kw {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card: Revenue */
.db-revenue {
  width: 195px;
  bottom: 10px;
  left: 20px;
  padding: 1.2rem;
  animation: float-c 7s ease-in-out infinite 0.5s;
}
@keyframes float-c {
  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}
.db-revenue:hover {
  animation: none;
}

.db-rev-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.db-rev-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* Mini progress bar */
.db-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.db-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, var(--teal), #00d4b8);
}

/* Card: Campaigns */
.db-campaigns {
  width: 150px;
  bottom: 30px;
  right: 20px;
  padding: 1rem;
  animation: float-a 4.5s ease-in-out infinite 1.5s;
}

.db-camp-count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}
.db-camp-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Dot grid background texture */
.db-dots {
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

/* Hero bottom ticker */
.hero-ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0000004f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.hero-ticker {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}
.ticker-item::after {
  content: "·";
  color: rgba(0, 168, 150, 0.3);
}

/* ════════════════════════════════
   MARQUEE BAND
════════════════════════════════ */
.marquee-band {
  display: none;
}
.marquee-track {
  display: flex;
  animation: marquee-run 32s linear infinite;
  white-space: nowrap;
}
@keyframes marquee-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgb(0 168 150);
  flex-shrink: 0;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════ PAINFIX V2 — Split Card Design ════ */
.painfix {
  background: #ffffff;
  padding: 7rem 5rem;
}
.painfix-intro {
  text-align: center;
  margin-bottom: 5rem;
}
.painfix-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.painfix-eyebrow::before,
.painfix-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  opacity: 0.5;
}
.painfix-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.painfix-heading span {
  color: var(--teal);
}
.painfix-sub {
  font-size: 0.95rem;
  color: #6a8fa5;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* 3-column split card grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pf-card {
  border-radius: 12px;
  border: 1px solid var(--blue-border);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(9, 22, 40, 0.09);
}

/* Problem half */
.pf-problem {
  background: #f8fafc;
  position: relative;
}
/* pf-num removed */
/* Problem image — 3:1 aspect ratio, no padding */
.pf-problem-img {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.pf-problem-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-problem-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.65rem;
  padding: 0.5rem 2rem;
}
.pf-problem-desc {
  font-size: 0.82rem;
  color: #7a95a8;
  line-height: 1.75;
  padding: 0 2rem 0.5rem;
}

/* Connector strip */
.pf-connector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(
    to right,
    rgba(31, 78, 138, 0.06),
    rgba(31, 78, 138, 0.03)
  );
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
}
.pf-connector-line {
  flex: 1;
  height: 1px;
  background: var(--blue-border);
}
.pf-connector-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00a896;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  animation: bounce-icon 1.4s ease-in-out infinite;
}
@keyframes bounce-icon {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(31, 78, 138, 0.25);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(31, 78, 138, 0.35);
  }
}
.pf-connector-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

/* Solution half */
.pf-solution {
  background: #fff;
  padding: 1.75rem;
}
.pf-solution-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f4e8a;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}
.pf-solution-desc {
  font-size: 0.82rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.pf-result-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1f4e8a;
  border: 1px solid #1f4e8a;
  border-radius: 100px;
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
}

/* CTA inside painfix */
.painfix-cta {
  text-align: center;
  margin-top: 4.5rem;
}
.painfix-cta p {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 1.25rem;
}

/* ════════════════════════════════
   SECTION SHARED
════════════════════════════════ */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}
.section-eyebrow.light {
  color: rgba(0, 168, 150, 0.8);
}
.section-eyebrow.light::before {
  background: rgba(0, 168, 150, 0.8);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.section-title.on-dark {
  color: var(--white);
}

.section-desc {
  font-size: 1rem;
  color: #3d6882;
  line-height: 1.8;
  max-width: 560px;
}
.section-desc.on-dark {
  color: rgba(255, 255, 255, 0.45);
}

/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.services-section {
  background: var(--off-white);
  padding: 8rem 5rem;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

/* Tabs — Card Selector Style */
.services-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
  border-bottom: none;
  width: 100%;
}
.services-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  border: 1.5px solid var(--blue-border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  background: #fff;
  transition: all 0.22s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.services-tab::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.services-tab:hover {
  border-color: rgba(31, 78, 138, 0.45);
  box-shadow: 0 6px 24px rgba(31, 78, 138, 0.1);
}
.services-tab:hover::before {
  transform: scaleX(1);
}
.services-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(31, 78, 138, 0.3);
}
.services-tab.active::before {
  display: none;
}
.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: all 0.22s;
}
.services-tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tab-text {
  flex: 1;
  min-width: 0;
}
.tab-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.22s;
}
.services-tab.active .tab-label {
  color: #fff;
}
.tab-desc {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
  transition: color 0.22s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.services-tab.active .tab-desc {
  color: rgba(255, 255, 255, 0.7);
}
.tab-count {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
  align-self: flex-start;
  flex-shrink: 0;
  transition: all 0.22s;
}
.services-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Service cards */
.services-panel {
  display: none;
}
.services-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.services-panel.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.3s;
}
.service-card:hover {
  border-color: rgba(31, 78, 138, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 78, 138, 0.1);
}
.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.service-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}
.service-desc {
  font-size: 0.85rem;
  color: #5a8eaa;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.service-link:hover {
  gap: 0.75rem;
}

/* ════════════════════════════════
   PROCESS / STEPS
════════════════════════════════ */
.process-section {
  background: #ffffff;
  padding: 8rem 5rem;
  border-top: 1px solid rgba(31, 78, 138, 0.08);
  border-bottom: 1px solid rgba(31, 78, 138, 0.08);
}
.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
/* Override on-dark colours since background is now white */
.process-section .section-title.on-dark {
  color: var(--black);
}
.process-section .section-desc.on-dark {
  color: #4a6a82;
}
.process-section .section-eyebrow.light {
  color: var(--teal);
}
.process-section .section-eyebrow.light::before {
  background: var(--teal);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(31, 78, 138, 0.12);
}
.process-step {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid rgba(31, 78, 138, 0.12);
  transition: background 0.2s;
}
.process-step:last-child {
  border-right: none;
  padding-right: 0;
}
.process-step:first-child {
  padding-left: 0;
}
.process-step:not(:first-child) {
  padding-left: 2.5rem;
}
.process-step:hover {
  background: rgba(31, 78, 138, 0.03);
}

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(31, 78, 138, 0.07);
  line-height: 1;
  margin-bottom: -1.2rem;
  letter-spacing: -4px;
}
.step-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.step-body {
  font-size: 0.88rem;
  color: #4a6a82;
  line-height: 1.85;
}

/* ════════════════════════════════
   WHY CHOOSE US
════════════════════════════════ */
.why-section {
  background-color: var(--black);
  background-image: url("https://samanvi.in/wp-content/uploads/2026/04/AI-tools-2.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 8rem 5rem;
  position: relative;
}
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #091628b0;
  z-index: 0;
}
.why-section .why-grid {
  position: relative;
  z-index: 1;
}

/* Left column eyebrow — keep teal as user requested */
.why-section .section-eyebrow {
  color: var(--teal);
}
.why-section .section-eyebrow::before {
  background: var(--teal);
}

/* Left column heading stays dark (site colour) */
.why-section .section-title {
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.why-body {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.why-quote {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 4px 4px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.why-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
}
.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #00000063;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.why-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.why-item-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}
.why-item-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ════════════════════════════════
   STATS
════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, #091628 0%, #0d2f4a 50%, #0b2d38 100%);
  padding: 7rem 5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.stat-item {
  padding: 4rem 3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 0.5rem;
}
.stat-number sup {
  font-size: 1.8rem;
  color: var(--teal);
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.stats-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 2.5rem;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════
   PORTFOLIO
════════════════════════════════ */
.portfolio-section {
  background: var(--off-white);
  padding: 8rem 5rem;
}
.portfolio-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 78, 138, 0.12);
}
.portfolio-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portfolio-visual svg {
  opacity: 0.25;
}
.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}
.portfolio-info {
  padding: 1.5rem;
}
.portfolio-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}
.portfolio-desc {
  font-size: 0.85rem;
  color: #5a8eaa;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.portfolio-result {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
.testimonials-section {
  background: linear-gradient(160deg, #0d2040 0%, #0b2d38 100%);
  padding: 8rem 5rem;
}
.testimonials-header {
  margin-bottom: 4rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 2.5rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(31, 78, 138, 0.35);
}
.testimonial-quote-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  color: var(--teal);
  line-height: 0.7;
  opacity: 0.35;
  margin-bottom: 1.25rem;
  display: block;
}
.testimonial-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
  margin-bottom: 2rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
/* Real photo avatar */
.testimonial-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Blog visual as link wrapper */
.blog-visual-link {
  display: block;
  text-decoration: none;
}

/* Button hover — keep text colour unchanged */
.painfix-cta .btn-primary:hover,
.portfolio-header .btn-primary:hover,
.blog-header .btn-primary:hover {
  color: #fff !important;
}
.blog-read:hover {
  color: var(--teal) !important;
}
.testimonial-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial-role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ════════════════════════════════
   BLOG TEASER
════════════════════════════════ */
.blog-section {
  background: var(--off-white);
  padding: 8rem 5rem;
}
.blog-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 78, 138, 0.1);
  border-color: rgba(31, 78, 138, 0.4);
}
.blog-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0, 168, 150, 0.1);
  border: 1px solid rgba(0, 168, 150, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}
.blog-info {
  padding: 1.75rem;
}
.blog-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.blog-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}
.blog-excerpt {
  font-size: 0.85rem;
  color: #5a8eaa;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.blog-read {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.blog-read:hover {
  gap: 0.75rem;
}

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #091628 0%, #1f4e8a 45%, #028090 100%);
  padding: 9rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "SAMANVI";
  position: absolute;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: -5px;
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 168, 150, 0.8);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.cta-eyebrow::before,
.cta-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(0, 168, 150, 0.5);
}
.cta-headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.cta-headline span {
  color: var(--teal);
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 3.5rem;
  max-width: 420px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  margin-top: 2rem;
}
.cta-phone svg {
  color: var(--teal);
}

/* ════════════════════════════════
   GSAP ANIMATION STATES
════════════════════════════════ */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}
.gsap-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}
.gsap-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1200px) {
  .services-panel.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-dashboard {
    display: none;
  }
  .hero-content {
    padding: 9rem 2.5rem 5rem;
  }
  .painfix {
    padding: 5rem 2.5rem;
  }
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .services-section,
  .process-section,
  .why-section,
  .stats-section,
  .portfolio-section,
  .testimonials-section,
  .blog-section,
  .cta-section {
    padding: 5rem 2.5rem;
  }
  .services-header,
  .process-header,
  .portfolio-header,
  .blog-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .services-tabs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .services-panel.active,
  .services-panel.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2.5rem 0;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 1rem 1.5rem 4rem;
  }
  .hero-headline {
    letter-spacing: -1px;
  }
  .services-panel.active,
  .services-panel.cols-4 {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .painfix,
  .services-section,
  .process-section,
  .why-section,
  .stats-section,
  .portfolio-section,
  .testimonials-section,
  .blog-section,
  .cta-section {
    padding: 4rem 1.5rem;
  }
}
