/**
 * Theme Specific Rules, Hero, Footer, and Animations
 * Works in tandem with variables.css, utilities.css, and components.css
 *
 * @package Koladiya_Theme
 */

/* ============================================
   1. BASE TYPOGRAPHY & DEFAULTS
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ki-font-body);
  font-size: var(--ki-fs-body);
  line-height: var(--ki-lh-body);
  color: var(--ki-ink);
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ki-font-heading);
  margin-top: 0;
  color: var(--ki-ink);
}

h1 {
  font-size: var(--ki-fs-hero);
  font-weight: var(--ki-fw-hero);
  line-height: var(--ki-lh-hero);
  letter-spacing: var(--ki-ls-hero);
}

h2 {
  font-size: var(--ki-fs-h2);
  font-weight: var(--ki-fw-h2);
  line-height: var(--ki-lh-h2);
  letter-spacing: var(--ki-ls-h2);
}

h3 {
  font-size: var(--ki-fs-h3);
  font-weight: var(--ki-fw-h3);
  line-height: var(--ki-lh-h3);
  letter-spacing: var(--ki-ls-h3);
}

h4 {
  font-size: var(--ki-fs-h4);
  font-weight: var(--ki-fw-h4);
  line-height: var(--ki-lh-h4);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ============================================
   2. HERO BANNER (Lean Video Presentation)
============================================ */
.hero {
  background: var(--ki-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 170px 24px 110px;
  min-height: clamp(680px, 82vh, 900px);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: brightness(0.92) contrast(1.12) saturate(1.18);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 75% at 50% 50%, rgba(4, 5, 6, 0.18) 0%, rgba(4, 5, 6, 0.55) 75%, rgba(4, 5, 6, 0.95) 100%),
    linear-gradient(180deg, rgba(4, 5, 6, 0.45) 0%, transparent 25%, transparent 70%, #040506 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  width: 100%;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ki-radius-pill);
  padding: 6px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  60% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

.hero-live span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.hero-h1 {
  font-size: var(--ki-fs-hero);
  font-weight: var(--ki-fw-hero);
  letter-spacing: var(--ki-ls-hero);
  line-height: var(--ki-lh-hero);
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-p {
  font-size: var(--ki-fs-lead);
  font-weight: var(--ki-fw-lead);
  line-height: var(--ki-lh-lead);
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   3. CERTIFIED MARQUEE TICKER
============================================ */
.cert-strip {
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--ki-border-light);
  background: var(--ki-g50);
}

.cs-pin {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ki-g500);
  padding: 0 24px 0 32px;
  white-space: nowrap;
  border-right: 1px solid var(--ki-border-light);
  flex-shrink: 0;
}

.cs-track-wrapper {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.cs-track {
  display: flex;
  animation: mq 32s linear infinite;
  width: max-content;
}

.cs-track:hover {
  animation-play-state: paused;
}

.cs-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-right: 1px solid var(--ki-border-light);
  height: 48px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ki-g600);
  white-space: nowrap;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ki-blue-bright);
  flex-shrink: 0;
}

@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ============================================
   CAPACITY STRIP  (front-page, directly under the hero)
============================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--ki-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-cell {
  padding: 22px clamp(18px, 3vw, 32px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-num {
  font-family: var(--ki-font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.ss-lbl {
  margin-top: 5px;
  font-family: var(--ki-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ki-g400);
}

@media (min-width: 860px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .ss-cell { border-bottom: 0; }
  .ss-cell:last-child { border-right: 0; }
}

/* ============================================
   4. CHAMFER CARD & CARD SURFACES
============================================ */
.chamfer-card {
  border-radius: var(--ki-card-radius);
  border: var(--ki-card-border);
  box-shadow: var(--ki-shadow-card);
  overflow: hidden;
}

.rounded-card {
  border-radius: var(--ki-card-radius);
}

/* ============================================
   5. CORPORATE FOOTER
============================================ */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--ki-border-light);
  padding: 72px 0 36px;
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.ft-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.ft-bio {
  font-size: 13.5px;
  color: var(--ki-g500);
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 18px;
}

.ft-address {
  font-size: 12px;
  color: var(--ki-g400);
  line-height: 1.5;
}

.ft-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ki-ink);
  margin-bottom: 16px;
}

.ft-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-col a {
  font-size: 13.5px;
  color: var(--ki-g500);
  transition: color 150ms ease;
}

.ft-col a:hover {
  color: var(--ki-blue-bright);
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--ki-border-light);
  font-size: 12px;
  color: var(--ki-g400);
  flex-wrap: wrap;
  gap: 16px;
}

.ft-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ft-legal-links a:hover {
  color: var(--ki-ink);
}

/* ============================================
   6. RESPONSIVE BREAKPOINTS
============================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 140px 20px 80px;
    min-height: 580px;
  }
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 16px 60px;
    min-height: 520px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .ki-btn {
    width: 100%;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}