/* ============================================================
   RESPONSIVE.CSS — Complete Responsive Enhancement
   Team Shivam Tripathi Website
   Covers ALL breakpoints: 320px → 2560px+
   Mobile-first approach with progressive enhancement
   ============================================================ */

/* ─── CSS CUSTOM PROPERTIES OVERRIDES FOR ULTRA-WIDE ──────── */
:root {
  --container-w: min(1200px, 94vw);
  --section-v-pad: clamp(48px, 8vw, 100px);
  --card-gap: clamp(12px, 2vw, 28px);
}

/* ─── GLOBAL RESET ENHANCEMENTS ───────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0; /* Prevents flex/grid overflow */
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ─── FLUID CONTAINER SYSTEM ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 40px);
}

/* ─── TOP BAR FULL RESPONSIVE ─────────────────────────────── */
.top-bar {
  width: 100%;
  overflow: hidden;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 0;
}

.tb-left,
.tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tb-item {
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  white-space: nowrap;
}

/* ─── NAVBAR — FULLY ADAPTIVE ─────────────────────────────── */
#nav-bar {
  width: 100%;
  overflow: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 8vh, 80px);
  padding: 0 clamp(10px, 1.5vw, 24px);
  gap: 8px;
  max-width: 100%;
}

.nav-logo {
  flex-shrink: 0;
  max-width: 50%;
}

.nav-logo img {
  height: clamp(38px, 6vh, 64px);
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(13px, 1.6vw, 21px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-slogan {
  font-size: clamp(7px, 0.9vw, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin-right: clamp(8px, 2vw, 30px);
  gap: 0;
  overflow: visible;
}

.nav-menu a {
  padding: 0 clamp(8px, 0.8vw, 14px);
  font-size: clamp(0.72rem, 0.8vw, 0.76rem);
  white-space: nowrap;
}

.nav-join-btn {
  padding: 8px clamp(12px, 1vw, 18px);
  font-size: clamp(0.74rem, 0.8vw, 0.78rem);
  white-space: nowrap;
}

/* ─── HERO SECTION — FULLY RESPONSIVE ─────────────────────── */
#hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  width: 100%;
  min-height: clamp(420px, 60vh, 700px);
}

.hero-content {
  padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 72px);
}

.hero-eyebrow {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  word-break: break-word;
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  word-break: break-word;
}

.hero-desc {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  max-width: min(460px, 100%);
  word-break: break-word;
}

.hero-actions {
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
}

.btn-hero-primary {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  padding: clamp(10px, 1.5vh, 14px) clamp(20px, 3vw, 32px);
  white-space: nowrap;
}

/* STAT BOXES */
.hero-stats-wrap {
  padding: clamp(16px, 3vw, 40px);
}

.hero-stats-grid {
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
}

.stat-box {
  padding: clamp(14px, 2.5vw, 28px);
  gap: clamp(8px, 1.5vw, 16px);
}

.stat-icon {
  width: clamp(36px, 5vw, 52px);
  height: clamp(36px, 5vw, 52px);
  font-size: clamp(1rem, 2vw, 1.6rem);
}

.stat-info h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.9rem);
}

.stat-info p {
  font-size: clamp(0.78rem, 1.2vw, 0.96rem);
}

/* ─── SECTION TITLES — FLUID TYPOGRAPHY ──────────────────── */
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  word-break: break-word;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: min(620px, 100%);
  word-break: break-word;
}

.section-label {
  font-size: clamp(0.7rem, 1vw, 0.82rem);
}

/* ─── WHY AGENT SECTION ───────────────────────────────────── */
#why-agent {
  padding: var(--section-v-pad) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}

.skill-card {
  padding: clamp(14px, 2vw, 24px) clamp(10px, 1.5vw, 16px);
}

.skill-icon {
  width: clamp(56px, 8vw, 84px);
  height: clamp(56px, 8vw, 84px);
}

.skill-card h4 {
  font-size: clamp(0.74rem, 1.2vw, 0.9rem);
}

/* ─── OPPORTUNITY SECTION ─────────────────────────────────── */
#opportunity {
  padding: var(--section-v-pad) 0;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.opportunity-image img {
  border-radius: clamp(12px, 2vw, 20px);
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.opp-copy {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.85;
}

.opp-features {
  margin-top: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 18px);
}

.opp-feature-card {
  border-radius: clamp(12px, 2vw, 18px);
}

.opp-feature-illus {
  height: clamp(140px, 18vw, 210px);
  width: 100%;
  object-fit: cover;
}

.opp-feature-card > div {
  padding: clamp(16px, 2vw, 26px);
}

.opp-feature-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.opp-feature-list li {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* ─── WHY US SECTION ──────────────────────────────────────── */
#why-us {
  padding: var(--section-v-pad) 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 50px);
}

.why-us-image img {
  border-radius: clamp(12px, 2vw, 20px);
  width: 100%;
}

.benefits-list {
  gap: clamp(14px, 2.5vw, 24px);
}

.benefit-item {
  padding: clamp(16px, 2.5vw, 24px);
  gap: clamp(12px, 2vw, 20px);
  border-radius: clamp(10px, 1.5vw, 16px);
}

.benefit-icon {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  flex-shrink: 0;
}

.benefit-icon img {
  width: clamp(26px, 4vw, 38px);
  height: clamp(26px, 4vw, 38px);
}

.benefit-text h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.benefit-text p {
  font-size: clamp(0.85rem, 1.2vw, 0.96rem);
}

/* ─── PROCESS SECTION ─────────────────────────────────────── */
#process {
  padding: var(--section-v-pad) 0;
}

.process-steps-new {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.step-card-new {
  flex: 1;
  min-width: 0; /* prevents overflow */
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
  border-radius: clamp(12px, 2vw, 20px);
}

.step-icon-bg {
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: clamp(12px, 1.5vw, 18px);
}

.step-body h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

.step-body p {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

.step-connector {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  padding: 0 clamp(4px, 1vw, 10px);
}

.btn-process-cta {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  padding: clamp(12px, 2vh, 18px) clamp(28px, 4vw, 48px);
}

/* ─── TESTIMONIALS SECTION ────────────────────────────────── */
#testimonials {
  padding: var(--section-v-pad) 0;
}

.testimonial-card {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px);
}

.testimonial-text {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  line-height: 1.8;
}

.testi-arrow {
  width: clamp(36px, 4vw, 54px);
  height: clamp(36px, 4vw, 54px);
  flex-shrink: 0;
}

.testi-carousel-wrap {
  gap: clamp(8px, 2vw, 20px);
  margin-top: clamp(28px, 4vw, 50px);
}

/* ─── CTA SECTION ─────────────────────────────────────────── */
#cta {
  padding: var(--section-v-pad) 0;
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  word-break: break-word;
}

.cta-inner p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: min(560px, 100%);
}

.cta-actions {
  gap: clamp(10px, 2vw, 18px);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-white,
#cta .btn-outline {
  font-size: clamp(0.88rem, 1.3vw, 0.98rem);
  padding: clamp(12px, 1.8vh, 16px) clamp(24px, 3.5vw, 40px);
}

/* ─── FOOTER — ADAPTIVE GRID ──────────────────────────────── */
#site-footer {
  padding-top: clamp(40px, 7vw, 70px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(28px, 4vw, 50px);
  padding-bottom: clamp(28px, 4vw, 50px);
}

.footer-logo img {
  height: clamp(50px, 8vw, 90px);
}

.footer-about {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
}

.footer-col h4 {
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
}

.footer-links a {
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
}

.contact-item {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
}

.footer-bottom {
  padding: clamp(16px, 2.5vh, 26px) clamp(14px, 4vw, 40px);
}

/* ─── WA FLOAT BUTTON ─────────────────────────────────────── */
.wa-float {
  bottom: clamp(20px, 4vh, 40px);
  right: clamp(14px, 3vw, 28px);
}

.wa-float-btn {
  width: clamp(44px, 5vw, 60px);
  height: clamp(44px, 5vw, 60px);
}

/* ============================================================
   ULTRA-WIDE (2560px+) — Scale Content
   ============================================================ */
@media (min-width: 2560px) {
  :root {
    --container-w: 1600px;
    font-size: 18px;
  }

  .nav-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .hero-h1 {
    font-size: 3.2rem;
  }

  .hero-stats-grid {
    max-width: 640px;
  }

  .opp-feature-illus {
    height: 260px;
  }
}

/* ============================================================
   LARGE DESKTOP (1440px–2560px)
   ============================================================ */
@media (min-width: 1440px) {
  :root {
    --container-w: 1280px;
  }
}

/* ============================================================
   STANDARD DESKTOP & LAPTOP (1280px)
   ============================================================ */
@media (max-width: 1280px) {
  :root {
    --container-w: 1140px;
  }

  .brand-name {
    font-size: 16px;
  }
  
  .brand-slogan {
    font-size: 10px;
  }

  .nav-menu a {
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .nav-join-btn {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .nav-logo img {
    height: 45px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 36px;
  }

  .opp-features {
    gap: 14px;
  }
}

/* ============================================================
   NARROW DESKTOP / SMALL LAPTOP (1150px)
   ============================================================ */
@media (max-width: 1150px) {
  .nav-inner {
    padding: 0 14px;
  }
  
  .brand-name {
    font-size: 14px;
  }
  
  .brand-slogan {
    font-size: 8.5px;
  }
  
  .nav-logo img {
    height: 40px;
  }

  .nav-menu a {
    padding: 0 7px;
    font-size: 0.7rem;
  }

  .nav-join-btn {
    padding: 7px 14px;
    font-size: 0.7rem;
  }
}

/* ============================================================
   TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Nav collapses to hamburger */
  .mobile-toggle {
    display: flex;
  }

  .nav-right .nav-join-btn {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-slogan {
    font-size: 9px;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0; /* Overridden dynamically by JS */
    right: 0;
    width: min(260px, 75vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--gold-nav);
    flex-direction: column;
    align-items: flex-end;
    padding: 12px 24px 20px;
    gap: 0;
    z-index: 9000;
    box-shadow: -4px 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0 16px;
  }

  #nav-bar.open .nav-menu {
    display: flex;
  }

  .nav-menu a {
    height: auto;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-join-btn-mobile {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    border: none;
    cursor: pointer;
  }

  /* Hero stacks vertically */
  .hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    flex: none;
    width: 100%;
    padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px) clamp(28px, 4vw, 44px);
    text-align: center;
  }

  .hero-floating-menu {
    display: block;
    margin-bottom: 20px;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats-wrap {
    flex: none;
    width: 100%;
    padding: clamp(12px, 3vw, 24px) clamp(24px, 5vw, 56px) clamp(32px, 5vw, 56px);
  }

  .hero-stats-grid {
    max-width: 560px;
    margin: 0 auto;
  }

  /* Grid sections → single column */
  .why-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .why-grid .why-content {
    text-align: center;
  }

  .why-grid .why-content .divider {
    margin-inline: auto;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 36px);
  }

  .opportunity-image {
    height: clamp(240px, 35vw, 380px);
    border-radius: clamp(12px, 2vw, 20px);
    overflow: hidden;
    order: 2;
  }

  .opportunity-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .opportunity-grid > div:last-child {
    order: 1;
  }

  .opp-features {
    grid-template-columns: 1fr;
    gap: clamp(14px, 2.5vw, 24px);
    margin-top: clamp(20px, 3vw, 32px);
  }

  .opp-feature-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .opp-feature-illus {
    width: clamp(140px, 25vw, 220px);
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
  }

  .opp-feature-card > div {
    flex: 1;
    padding: clamp(16px, 2.5vw, 24px);
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .why-us-image img {
    max-height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 44px);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .footer-grid > :nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ============================================================
   SMALL LAPTOP / LARGE TABLET (900px)
   ============================================================ */
@media (max-width: 900px) {
  .section-padding {
    padding: clamp(48px, 7vw, 72px) 0;
  }

  #why-agent,
  #opportunity,
  #why-us,
  #process,
  #testimonials,
  #cta {
    padding: clamp(48px, 7vw, 72px) 0;
  }

  .process-steps-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 20px);
  }

  .step-connector {
    display: none; /* Use grid gap instead */
  }

  .step-card-new {
    border-radius: clamp(12px, 2vw, 18px);
  }
}

/* ============================================================
   TABLET PORTRAIT (768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Top bar */
  .top-bar-inner {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }

  .tb-address {
    display: none !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .tb-left,
  .tb-right {
    justify-content: center;
    gap: 10px;
  }

  /* Nav inner */
  .nav-inner {
    height: 64px;
    padding: 0 clamp(14px, 4vw, 24px);
  }

  .nav-logo img {
    height: clamp(36px, 6vh, 48px);
  }

  .brand-name {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .brand-slogan {
    font-size: clamp(7px, 2vw, 10px) !important;
  }

  /* Hero */
  .hero-content {
    padding: clamp(36px, 7vw, 54px) clamp(18px, 5vw, 32px) clamp(24px, 4vw, 36px);
  }

  .hero-h1 br {
    display: none;
  }

  .hero-desc br {
    display: none;
  }

  .hero-stats-wrap {
    padding: 0 clamp(14px, 4vw, 28px) clamp(28px, 5vw, 44px);
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 2vw, 16px);
  }

  /* Process: 2-column grid */
  .process-steps-new {
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 18px);
  }

  /* Skills: 2 col */
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 2vw, 16px);
  }

  /* Opp features: 1 col */
  .opp-features {
    grid-template-columns: 1fr;
  }

  .opp-feature-card {
    flex-direction: column;
  }

  .opp-feature-illus {
    width: 100%;
    height: clamp(160px, 30vw, 220px);
  }

  /* Benefit items */
  .benefit-item {
    padding: clamp(16px, 3vw, 22px) clamp(14px, 3vw, 20px);
  }

  /* Testi arrows */
  .testi-arrow {
    width: 36px;
    height: 36px;
  }

  /* Footer 2-col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 36px);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :nth-child(4) {
    grid-column: 1 / -1;
  }

  /* CTA */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-white,
  #cta .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE LARGE (600px)
   ============================================================ */
@media (max-width: 600px) {
  .hero-content {
    padding: clamp(32px, 7vw, 48px) clamp(16px, 4.5vw, 26px) clamp(20px, 4vw, 32px);
  }

  .hero-h1 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }

  /* Process: single column vertical */
  .process-steps-new {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    display: flex;
    transform: rotate(90deg);
    height: 30px;
    padding: 0;
    font-size: 1.2rem;
    justify-content: center;
    color: var(--gold);
    opacity: 0.7;
  }

  .step-card-new {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    border-radius: 14px;
    padding: clamp(16px, 4vw, 24px) clamp(14px, 4vw, 22px);
    margin-bottom: 2px;
  }

  .step-icon-wrap {
    flex-shrink: 0;
  }

  /* Opp feature: smaller illustrations */
  .opp-feature-illus {
    height: clamp(140px, 28vw, 180px);
  }

  /* Skills 3-col */
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .skill-card {
    padding: 14px 8px;
  }

  .skill-icon {
    width: 52px;
    height: 52px;
  }

  .skill-card h4 {
    font-size: 0.76rem;
  }

  /* Stat boxes: row layout */
  .stat-box {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
  }

  .stat-info h3 {
    margin-bottom: 0;
  }

  /* Footer */
  #site-footer {
    padding-top: clamp(36px, 6vw, 52px);
  }

  /* Page hero */
  .page-hero {
    padding: clamp(40px, 8vw, 56px) 0 clamp(32px, 6vw, 48px);
  }

  .page-hero h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    word-break: break-word;
  }
}

/* ============================================================
   MOBILE STANDARD (480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-v-pad: 44px;
  }

  .container {
    padding-inline: clamp(12px, 4vw, 18px);
  }

  .nav-inner {
    height: 60px;
    padding: 0 14px;
  }

  .nav-logo img {
    height: 36px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-slogan {
    font-size: 7px !important;
    display: none;
  }

  /* Hero compact */
  .hero-content {
    padding: 32px 14px 20px;
  }

  .hero-h1 {
    font-size: clamp(1.35rem, 7.5vw, 1.9rem);
  }

  .hero-desc {
    font-size: 0.86rem;
  }

  .hero-stats-wrap {
    padding: 0 14px 32px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-box {
    padding: 12px 10px;
    gap: 8px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .stat-info h3 {
    font-size: 1.1rem;
  }

  .stat-info p {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  /* Share menu: compact */
  .hero-floating-menu .share-btn {
    width: 40px;
    height: 40px;
  }

  .hero-floating-menu .share.open .submenu li:nth-child(1) { left: 40px; }
  .hero-floating-menu .share.open .submenu li:nth-child(2) { left: 80px; }
  .hero-floating-menu .share.open .submenu li:nth-child(3) { left: 120px; }
  .hero-floating-menu .share.open .submenu li:nth-child(4) { left: 160px; }
  .hero-floating-menu .share.open .submenu li:nth-child(5) { left: 200px; }

  .hero-floating-menu .submenu a {
    width: 40px;
    height: 40px;
  }

  /* Skills: 2-col on very small */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .skill-icon {
    width: 48px;
    height: 48px;
  }

  .opp-feature-illus {
    height: 140px;
  }

  .step-card-new {
    gap: 12px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .step-icon-bg {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    border-radius: 12px;
  }

  .step-body h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .step-body p {
    font-size: 0.82rem;
    margin-bottom: 8px;
    line-height: 1.55;
  }

  .step-tag {
    font-size: 0.66rem;
    padding: 3px 10px;
  }

  .testimonial-card {
    padding: 22px 16px;
  }

  .testi-quote-icon {
    font-size: 4rem;
    top: 12px;
    right: 20px;
  }

  .testimonial-text {
    font-size: 0.88rem;
  }

  /* Benefits compact */
  .benefit-item {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .benefit-icon img {
    width: 24px;
    height: 24px;
  }

  .benefit-text h4 {
    font-size: 0.95rem;
  }

  .benefit-text p {
    font-size: 0.84rem;
  }


  .footer-logo img {
    height: 48px;
  }

  .footer-bottom {
    padding: 18px 14px;
    font-size: 0.78rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* CTA */
  #cta {
    padding: 44px 0;
  }

  .cta-inner h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .cta-inner p {
    font-size: 0.9rem;
  }

  /* Nav menu full-width on small mobile */
  .nav-menu {
    width: 100%;
    border-radius: 0;
    right: 0;
    left: 0;
    align-items: center;
    padding: 10px 20px 16px;
  }

  .nav-menu a {
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.88rem;
  }

  .wa-float {
    bottom: 16px;
    right: 12px;
  }

  .wa-float-btn {
    width: 46px;
    height: 46px;
  }

  .btn-process-cta {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   SMALL MOBILE (425px)
   ============================================================ */
@media (max-width: 425px) {
  .hero-h1 {
    font-size: clamp(1.3rem, 8vw, 1.7rem);
  }

  .section-title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .page-hero h1 {
    font-size: clamp(1.25rem, 7vw, 1.7rem);
  }
}

/* ============================================================
   SMALL MOBILE (375px)
   ============================================================ */
@media (max-width: 375px) {
  .hero-h1 {
    font-size: clamp(1.2rem, 8.5vw, 1.55rem);
  }

  .nav-logo .nav-brand-text {
    display: none;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .stat-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 6px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .stat-info h3 {
    font-size: 1rem;
  }

  .stat-info p {
    font-size: 0.72rem;
  }

  .step-card-new {
    padding: 12px 10px;
    gap: 10px;
  }

  .step-icon-bg {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .hero-floating-menu .share.open .submenu li:nth-child(1) { left: 40px; }
  .hero-floating-menu .share.open .submenu li:nth-child(2) { left: 80px; }
  .hero-floating-menu .share.open .submenu li:nth-child(3) { left: 120px; }
  .hero-floating-menu .share.open .submenu li:nth-child(4) { left: 160px; }
  .hero-floating-menu .share.open .submenu li:nth-child(5) { left: 200px; }
}

/* ============================================================
   EXTRA SMALL MOBILE (320px)
   ============================================================ */
@media (max-width: 320px) {
  .container {
    padding-inline: 10px;
  }

  .hero-h1 {
    font-size: 1.15rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero-desc {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .nav-inner {
    padding: 0 10px;
  }

  .nav-logo img {
    height: 32px;
  }

  .stat-info h3 {
    font-size: 0.95rem;
  }

  .skill-card h4 {
    font-size: 0.7rem;
  }

  .benefit-text h4 {
    font-size: 0.88rem;
  }

  .benefit-text p {
    font-size: 0.8rem;
  }

  /* Force 2-col skills even at 320 */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .step-body h3 {
    font-size: 0.88rem;
  }

  .step-body p {
    font-size: 0.78rem;
  }

  .testi-arrow {
    display: none; /* Too narrow — rely on swipe */
  }

  .testimonial-card {
    padding: 18px 14px;
  }

  .testimonial-text {
    font-size: 0.84rem;
  }

  .footer-grid {
    gap: 22px;
  }

  .btn-process-cta {
    font-size: 0.84rem;
  }

  .hero-floating-menu .share.open .submenu li:nth-child(5) {
    display: none; /* Too narrow for 5 icons */
  }
}

/* ============================================================
   FOLDABLE DEVICES (280px–320px)
   ============================================================ */
@media (max-width: 280px) {
  html {
    font-size: 14px;
  }

  .nav-logo .nav-brand-text {
    display: none;
  }

  .hero-h1 {
    font-size: 1.1rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stat-box {
    flex-direction: row;
    align-items: center;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-steps-new {
    gap: 0;
  }
}

/* ============================================================
   LANDSCAPE PHONE ORIENTATION
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
  }

  .hero-inner {
    flex-direction: row;
    min-height: auto;
  }

  .hero-content {
    flex: 0 0 55%;
    padding: 20px 24px 20px 32px;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-floating-menu {
    margin-bottom: 12px;
  }

  .hero-h1 {
    font-size: clamp(1.2rem, 4vh, 1.8rem);
    margin-bottom: 6px;
  }

  .hero-desc {
    margin-bottom: 14px;
    font-size: 0.85rem;
  }

  .hero-stats-wrap {
    flex: 1;
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stats-grid {
    max-width: 340px;
    gap: 10px;
  }

  .nav-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

/* ============================================================
   HIGH DPI / RETINA DISPLAY
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo img,
  .footer-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================================
   ZOOMED BROWSER VIEWS
   ============================================================ */
@media (max-width: 768px) and (min-resolution: 1.5dppx) {
  .nav-inner {
    padding: 0 14px;
  }

  .container {
    padding-inline: 14px;
  }
}

/* ============================================================
   PRINT MEDIA
   ============================================================ */
@media print {
  .wa-float,
  .mobile-toggle,
  .testi-arrow,
  .hero-floating-menu,
  #cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================
   ACCESSIBILITY: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-floating-menu .submenu li {
    transition: none !important;
  }

  .testi-track {
    transition: none !important;
  }
}

/* ============================================================
   UTILITY — PREVENT OVERFLOW GLOBALLY
   ============================================================ */
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* Fix any table/pre overflow */
table, pre {
  overflow-x: auto;
  max-width: 100%;
}

/* Fix any image that might escape container */
section img,
article img,
div img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   PROCESS STEPS — RESPONSIVE ENHANCEMENTS
   ============================================================ */

/* Desktop: 4 columns horizontal */
@media (min-width: 901px) {
  .process-steps-new {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .step-connector {
    display: flex;
  }
}

/* ============================================================
   OPPORTUNITY FEATURE CARDS — TABLET INTERMEDIATE
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .opp-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .opp-feature-card {
    flex-direction: row;
    align-items: stretch;
  }

  .opp-feature-illus {
    width: 200px;
    height: auto;
    flex-shrink: 0;
  }

  .opp-feature-card > div {
    flex: 1;
  }
}

/* ============================================================
   NAV BAR SCROLL BEHAVIOR
   ============================================================ */
#header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* ============================================================
   TOP BAR RESPONSIVE ENHANCEMENTS
   ============================================================ */
@media (max-width: 480px) {
  .top-bar {
    padding: 6px 0;
  }

  .top-bar-inner {
    padding: 0;
    gap: 4px;
  }

  .tb-item {
    font-size: 0.72rem;
  }

  .tb-left,
  .tb-right {
    gap: 8px;
  }
}

/* ============================================================
   FOOTER RESPONSIVE — FULL SINGLE COL ON MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .footer-logo img {
    height: 44px;
  }

  .footer-about {
    font-size: 0.84rem;
    text-align: left;
  }

  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 0.84rem;
  }

  .contact-item {
    font-size: 0.82rem;
  }
}

/* ============================================================
   ABOUT PAGE GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 80px) 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 36px);
    padding: clamp(40px, 7vw, 60px) 0;
  }

  .about-image img {
    min-height: auto;
    max-height: 400px;
    object-position: top;
  }

  .about-content .achievements {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .about-content .achievements {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   BLOG GRID RESPONSIVE
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
   BENEFITS BIG GRID RESPONSIVE
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .benefits-big-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .benefits-big-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ============================================================
   GALLERY GRID RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================================
   WHY LIC GRID RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .why-lic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   FORMS GRID RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .forms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

/* ============================================================
   PAGE HERO BREADCRUMB
   ============================================================ */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ============================================================
   CONTACT WRAPPER
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(40px, 6vw, 80px) 0;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 36px);
    padding: clamp(36px, 6vw, 56px) 0;
  }
}

/* ============================================================
   FINAL: Ensure no horizontal scrollbar on any size
   ============================================================ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent absolute-positioned elements from causing overflow */
section {
  overflow-x: hidden;
}

/* ============================================================
   MOBILE PERFORMANCE OPTIMIZATIONS (Fix 8, 13, 14, 17)
   All rules scoped to max-width:768px — desktop untouched
   ============================================================ */

/* Fix 13: content-visibility:auto — skips rendering of off-screen sections */
@media (max-width: 768px) {
  /* Apply to all below-fold sections EXCEPT hero (first visible) */
  section:not(:first-of-type),
  .section-padding:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
  }

  /* Fix 14: Reduce hero padding on mobile for faster paint */
  .hero-section,
  .hero,
  .ct-hero,
  .page-hero {
    padding-top: clamp(60px, 12vw, 100px) !important;
    padding-bottom: clamp(40px, 8vw, 80px) !important;
  }

  /* Fix 17: Reduce heavy box-shadows on mobile (GPU relief) */
  .benefit-card,
  .stat-box,
  .service-card,
  .team-card,
  .faq-item,
  .blog-card,
  .ct-info-card,
  .proc-step,
  .ben-why-card,
  .wl-reason-card,
  .bs-benefit-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }

  /* Fix 17: Remove expensive backdrop-filter on mobile */
  .glassmorphism,
  [class*="glass"],
  .nav-glassmorphism {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.95) !important;
  }

  /* Fix 8: Ensure only transform/opacity are animated (composited) */
  .btn,
  .wa-float,
  .hero-cta,
  .stat-box,
  .benefit-card,
  .service-card {
    will-change: transform;
    transform: translateZ(0); /* promote to own GPU layer */
  }

  /* Fix 8: Remove width/height/top/left transitions on mobile */
  *:not(.faq-answer):not(.bs-faq-answer) {
    transition-property: transform, opacity !important;
  }

  /* Fix 17: Reduce gradient complexity on mobile hero */
  .hero-section::before,
  .hero::before {
    display: none !important;
  }

  /* Reduce font rendering on mobile for speed */
  body {
    -webkit-font-smoothing: auto;
    text-rendering: optimizeSpeed;
  }
}
