/**
 * home.css
 * Styles for the homepage widgets: stats band, industries served,
 * whychoose us, vdarshan rotation globe, and client testimonial sliders.
 *
 * @package Srushti_Theme
 */

/* ─────────────────────────────────────────────
   STATS BAND MODULE
   ───────────────────────────────────────────── */

.stats-band {
  padding: var(--space-12) 0;
  background: var(--color-surface-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(183, 45, 49, 0.02), transparent);
  pointer-events: none;
}

.stats-desktop-only {
  display: block;
}

.stats-mobile-marquee {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: left;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-left: 2px solid var(--color-border-tech);
  position: relative;
  transition: border-color 0.30s var(--ease-out), padding-left 0.30s var(--ease-out), background-color 0.30s ease;
}

.stat-item:hover {
  border-left-color: var(--color-brand-red-bright);
  padding-left: calc(var(--space-6) + 6px);
  background: rgba(183, 45, 49, 0.02);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand-red);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   INDUSTRIES SERVED MODULE
   ───────────────────────────────────────────── */

.industries-section {
  background: #FFFFFF;
}

.industry-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  position: relative;
  background: #FFFFFF !important;
  border: 1px solid var(--color-border-subtle) !important;
  box-shadow: 0 4px 20px rgba(38, 37, 35, 0.04) !important;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-out);
}

.industry-icon {
  width: 44px;
  height: 44px;
  background: #FFFFFF !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 6px rgba(38, 37, 35, 0.04);
  transition: all 0.30s var(--ease-out);
}

.industry-card:hover {
  transform: translateY(-4px);
  background: #FFFFFF !important;
  border-color: var(--color-brand-red) !important;
  box-shadow: 0 16px 32px rgba(38, 37, 35, 0.08) !important;
}

.industry-card:hover .industry-icon {
  background: var(--color-brand-red) !important;
  color: #FFFFFF !important;
  border-color: var(--color-brand-red) !important;
  transform: scale(1.05);
}

.industry-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.industry-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}



/* ─────────────────────────────────────────────
   VDARSHAN 360 SECTION SPECIALS
   ───────────────────────────────────────────── */

.vdarshan-section {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(183, 45, 49, 0.03) 0%, transparent 70%),
    var(--color-void);
  overflow: hidden;
  border-top: 1px solid var(--color-border-tech);
  border-bottom: 1px solid var(--color-border-tech);
}

/* Ensure text in the VDarshan section remains perfectly readable */
.vdarshan-section h2,
.vdarshan-section h3,
.vdarshan-section h4,
.vdarshan-section .text-primary,
.vdarshan-section .section-title {
  color: var(--text-primary) !important;
}

.vdarshan-section p,
.vdarshan-section li,
.vdarshan-section .text-secondary,
.vdarshan-section .why-desc,
.vdarshan-section .section-desc {
  color: var(--text-secondary) !important;
}

.vdarshan-globe-wrap {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
}

.vdarshan-globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(183, 45, 49, 0.15);
  animation: globeRotate 24s linear infinite;
}

.vdarshan-globe::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(183, 45, 49, 0.10);
  animation: globeRotate 18s linear infinite reverse;
}

.vdarshan-globe::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(183, 45, 49, 0.08);
  animation: globeRotate 12s linear infinite;
}

/* Simulated wireframe globe lines */
.globe-line-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(183, 45, 49, 0.15);
}

.globe-line-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(183, 45, 49, 0.15);
}

.vdarshan-section:hover .vdarshan-globe {
  animation-play-state: paused;
}

/* ─────────────────────────────────────────────
   CLIENT TESTIMONIALS MODULE
   ───────────────────────────────────────────── */

.testimonial-card {
  padding: var(--space-8);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-icon-wrap {
  margin-bottom: var(--space-2);
  line-height: 1;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--color-brand-red);
  line-height: 1;
  display: block;
  height: 32px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  font-style: normal;
  flex-grow: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid rgba(38, 37, 35, 0.06);
  padding-top: var(--space-4);
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  font-style: normal;
}

.testimonial-company {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   NEW LAYOUT & ALIGNMENT STYLES
   ───────────────────────────────────────────── */

/* Hero Split Screen Image Wrapper */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-base);
  padding: var(--space-3);
  box-shadow: 0 20px 40px rgba(38, 37, 35, 0.08);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out);
}

.hero-image-wrap:hover {
  transform: translateY(-4px);
}

.hero-img-element {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}


/* Reduced VDarshan section title size */
.vdarshan-title {
  font-size: clamp(26px, 3.5vw, 36px) !important;
  line-height: 1.25 !important;
}

/* VDarshan Virtual Tour Preview Card */
.vdarshan-preview-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 45, 49, 0.15) !important;
  background: var(--glass-base);
  padding: var(--space-3);
  box-shadow: 0 24px 48px rgba(38, 37, 35, 0.05);
  overflow: hidden;
  max-width: 420px;
  height: 440px;
  margin-left: auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vdarshan-preview-card:hover {
  border-color: rgba(183, 45, 49, 0.3) !important;
  box-shadow: 0 24px 48px rgba(183, 45, 49, 0.06);
}

.vdarshan-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.vdarshan-preview-card:hover .vdarshan-preview-img {
  transform: scale(1.03);
}

/* Immersive 360 Floating Badge styling */
.vdarshan-preview-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-charcoal);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(183, 45, 49, 0.20);
  border-left: 3px solid var(--color-brand-red-bright);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.vdarshan-preview-badge svg {
  color: var(--color-brand-red-bright);
}

/* Center-aligned Industries list on Home page */
.industries-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: var(--space-6) !important;
  margin-top: var(--space-12) !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .why-img-element {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .stats-desktop-only {
    display: none !important;
  }

  .stats-mobile-marquee {
    display: block !important;
    overflow: hidden;
    width: 100%;
    padding: var(--space-2) 0;
    -webkit-mask: linear-gradient(90deg, transparent 0%, #000000 15%, #000000 85%, transparent 100%);
    mask: linear-gradient(90deg, transparent 0%, #000000 15%, #000000 85%, transparent 100%);
  }

  .stats-marquee-track {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
  }

  .stats-mobile-marquee .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-shrink: 0;
    text-align: left;
    padding: var(--space-3) var(--space-6);
    border-left: 2px solid var(--color-brand-red);
    min-width: 180px;
    background: rgba(183, 45, 49, 0.02);
  }

  .stats-mobile-marquee .stat-item:hover {
    padding-left: var(--space-6) !important;
    background: rgba(183, 45, 49, 0.02) !important;
  }
}

/* ─────────────────────────────────────────────
   INSIGHTS & EXPERT ARTICLES MODULE
   ───────────────────────────────────────────── */
.insights-section {
  padding: var(--space-20) 0;
  background: var(--color-surface-2);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-border-subtle);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.insight-card-col {
  grid-column: span 4;
}

.insight-article-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  transition: transform 0.35s var(--ease-out);
}

.insight-article-card:hover {
  transform: translateY(-4px);
  border-color: transparent !important;
  box-shadow: none !important;
}

.insight-thumb-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.insight-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background: var(--color-surface-3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(38, 37, 35, 0.05);
}

.insight-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.insight-article-card:hover .insight-card-img {
  transform: scale(1.05);
}

.insight-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 161, 91, 0.06);
}

/* Two-tier Orixy-Style Date Badge overlapping the bottom edge */
.orixy-date-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  display: inline-flex;
  flex-direction: column;
  min-width: 82px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(38, 37, 35, 0.16);
  z-index: 3;
}

.orixy-date-badge .badge-day {
  background-color: #181716;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  padding: 7px 14px 2px;
  text-align: center;
  letter-spacing: -0.02em;
}

.orixy-date-badge .badge-month-year {
  background-color: var(--color-brand-red);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 12px 6px;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.insight-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
  color: #181716;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.insight-title-link {
  color: #181716;
  text-decoration: none;
  transition: color 0.25s ease;
}

.insight-title-link:hover {
  color: var(--color-brand-red);
}

.insight-card-excerpt {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: #5F5C56;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.insight-card-footer {
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

.insight-read-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #181716;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.2s ease;
}

.insight-read-link:hover {
  color: var(--color-brand-red);
  transform: translateX(2px);
}

@media (max-width: 991px) {
  .insight-card-col {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .insight-card-col {
    grid-column: span 12;
  }
}