/*
  =====================================================================
  HOME PAGE STYLESHEET
  ---------------------------------------------------------------------
  Purpose:
  - Defines all page-specific presentation for home.html.
  - Shared navbar/footer live in styles/shared.css.
  - This file covers hero, About snapshot, Why Us cards, partner marquee,
    and homepage CTA.
  =====================================================================
*/

/* HERO: two-column split with media left and messaging right. */
.hero {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 400px;
  padding-left: 1%;
  padding-top: 1%;
  padding-bottom: 1%;
  background: #1a1a2e /* Fallback for older browsers */
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-image-panel {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  background: #1a1a2e;
}

.hero-product-img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 800px;
  object-fit: contain;
}

/* RIGHT PANEL — text panel with brand gradient and vertical centering. */
.hero-text-panel {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  min-width: 320px;
}

/* Small lead-in text above the main headline. */
.hero-eyebrow {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

/* Primary hero headline with fluid scaling across viewport sizes. */
.hero-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

/* Emphasized word in headline rendered as styled block line. */
.hero-headline em {
  font-style: italic;
  font-weight: 700;
  display: block;
}

/* Supporting hero paragraph constrained for readability. */
.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 300px;
}

/* Primary CTA used in hero and reused by the CTA strip section. */
.hero-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  align-self: flex-start;
}

/* Hover state shifts CTA to action-red while preserving contrast. */
.hero-btn:hover {
  background: #ff4646;
  color: #ffffff;
  border-color: #ff4646;
}

/* Hide deprecated legacy hero selectors to avoid accidental double-rendering. */
.hero-text,
.hero-content,
.hero-tagline,
.hero-product-name,
.hero-description,
.hero-carousel {
  display: none;
}

/* Tablet/mobile hero stack behavior. */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-image-panel {
    flex: none;
    width: 100%;
    height: auto;
  }

  .hero-product-img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero-text-panel {
    flex: none;
    width: 100%;
    padding: 48px 8%;
    min-width: 0;
  }
}

/* Phone-specific density and CTA full-width treatment. */
@media (max-width: 480px) {
  .hero-image-panel {
    height: auto;
  }

  .hero-text-panel {
    padding: 36px 6%;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════════ */

/* ABOUT (legacy block kept for compatibility with prior markup revisions). */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  background: #f7f9fc;
  flex-wrap: wrap;
}

/* Legacy text column constraints for old About variant. */
.about-text {
  max-width: 500px;
}

/* Legacy heading size for old About variant. */
.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

/* Legacy secondary button style retained for older templates. */
.secondary-btn {
  border: 2px solid #4eb3f6;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  color: #4eb3f6;
  font-weight: 500;
}

/* Legacy secondary button hover state. */
.secondary-btn:hover {
  background: #4eb3f6;
  color: white;
}

/* Legacy image width control for old About variant. */
.about-image img {
  width: 400px;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT TFS — Split layout with timeline
   ═══════════════════════════════════════════════════════════════ */
/* Main split section: left visual/stats panel + right narrative panel. */
.about-tfs {
  display: flex;
  align-items: stretch;
  min-height: 600px;
  background: #f7f9fc;
  margin-top: 60px;
}

/* Left column groups shop visual and KPI stat cards. */
.about-tfs-left {
  flex: 0 0 38%;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px;
  gap: 50px;
}

/* Elevated visual frame around the left-side image. */
.about-tfs-logo-wrap {
  background: white;
  border-radius: 15px;
  padding: 24px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Fixed visual dimensions to maintain consistent section rhythm. */
.about-tfs-logo {
  height: 300px;
  width: 300px;
  display: block;
}

/* Vertical KPI stack in desktop layout. */
.about-tfs-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Individual KPI card with accent border and soft layered shadow. */
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 5px solid #4eb3f6;
  box-shadow:
    0 6px 24px rgba(78, 179, 246, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Numeric emphasis for KPI values. */
.about-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #4eb3f6;
  line-height: 1;
}

/* Descriptor text below KPI value. */
.about-stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Right content column (headline, copy, timeline, CTA). */
.about-tfs-right {
  flex: 0 0 62%;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Section eyebrow for About snapshot. */
.about-tfs-eyebrow {
  font-size: 16px;
  font-weight: 600;
  color: #4eb3f6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Main heading in About snapshot. */
.about-tfs-headline {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a2e;
  margin-bottom: 10px;
}

/* Paragraph body text style for About snapshot. */
.about-tfs-body {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  max-width: 540px;
}

/* Timeline */
/* Vertical timeline list for key business milestones. */
.about-tfs-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}

/* Decorative timeline spine connecting milestone dots. */
.about-tfs-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e0eaf4;
}

/* Individual milestone row. */
.about-tfs-milestone {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 12px 0;
  position: relative;
}

/* Timeline marker dot with hover animation. */
.milestone-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4eb3f6;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #4eb3f6;
  margin-top: 3px;
  z-index: 1;
  transition: transform 0.2s ease;
}

/* Hover emphasizes active milestone with color and scale shift. */
.about-tfs-milestone:hover .milestone-dot {
  transform: scale(1.3);
  background: #ff4646;
  box-shadow: 0 0 0 2px #ff4646;
}

/* Milestone title style. */
.milestone-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}

/* Milestone description style. */
.milestone-content p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* About section CTA button. */
.about-tfs-btn {
  display: inline-block;
  background: #4eb3f6;
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

/* CTA hover adds lateral motion cue and color transition. */
.about-tfs-btn:hover {
  background: #ff4646;
  transform: translateX(4px);
}

/* Responsive stack and spacing adjustments for About snapshot. */
@media (max-width: 900px) {
  .about-tfs {
    flex-direction: column;
  }
  .about-tfs-left {
    flex: none;
    width: 100%;
    padding: 40px 8%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .about-tfs-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .about-tfs-right {
    flex: none;
    width: 100%;
    padding: 40px 8%;
  }
}
/* ═══════════════════════════════════════════════════════════════ */

/* WHY CHOOSE US */
/* Multi-card value proposition grid section. */
.why-us {
  padding: 100px 8%;
  background: #ffffff;
  text-align: center;
}

/* Section eyebrow style. */
.why-us-eyebrow {
  font-size: 16px;
  font-weight: 600;
  color: #4eb3f6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Section headline style. */
.why-us-headline {
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

/* Introductory subtext style. */
.why-us-subtext {
  font-size: 16px;
  color: #666;
  max-width: 520px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* 3-column desktop card grid. */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card base styling with hover elevation and top accent animation. */
.why-card {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Hidden accent line revealed on hover. */
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #4eb3f6;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Card hover interaction. */
.why-card:hover {
  background: white;
  box-shadow: 0 12px 40px rgba(78, 179, 246, 0.15);
  transform: translateY(-6px);
}

/* Activates animated accent line. */
.why-card:hover::before {
  transform: scaleX(1);
}

/* Icon chip container inside each Why card. */
.why-icon {
  width: 52px;
  height: 52px;
  background: #eaf5fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #4eb3f6;
  transition: all 0.3s ease;
}

/* Icon sizing normalization. */
.why-icon svg {
  width: 26px;
  height: 26px;
}

/* Invert icon chip colors on hover for stronger feedback. */
.why-card:hover .why-icon {
  background: #4eb3f6;
  color: white;
}

/* Why card heading typography. */
.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

/* Why card body copy typography. */
.why-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* Collapse to 2 columns on medium screens. */
@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Collapse to single column on narrow phones. */
@media (max-width: 580px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* RETAIL PARTNERS */
/* Horizontal logo marquee container (animation handled in home.html script). */
.partners {
  padding: 80px 0;
  background: #f7f9fc;
  text-align: center;
  overflow: hidden;
}

/* Section eyebrow style. */
.partners-eyebrow {
  font-size: 16px;
  font-weight: 600;
  color: #4eb3f6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Section headline style. */
.partners-headline {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 50px;
}

/* Emphasis color for italicized headline segment. */
.partners-headline em {
  font-style: italic;
  color: #4eb3f6;
}

/* Overflow mask wrapper for scrolling logo track. */
.partners-track-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Fade edges */
/* Soft edge masks to hide logo entry/exit points. */
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* Left-side fade mask. */
.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #f7f9fc, transparent);
}
/* Right-side fade mask. */
.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #f7f9fc, transparent);
}

/* Track set to max-content so JS translate can loop seamlessly. */
.partners-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

/* Placeholder pause behavior if CSS animation is ever introduced. */
.partners-track:hover {
  animation-play-state: paused;
}

/* Individual partner logo card. */
.partner-logo {
  background: white;
  border-radius: 12px;
  width: 240px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Logo card hover elevation. */
.partner-logo:hover {
  box-shadow: 0 8px 28px rgba(78, 179, 246, 0.18);
  transform: translateY(-4px);
}

/* Logos start grayscale and gain color on hover for emphasis. */
.partner-logo img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Hover reveals full-color partner mark. */
.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA */
/* Final conversion section prompting contact action. */
.cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  text-align: center;
  padding: 100px 10%;
}

/* CTA headline scale. */
.cta h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

/* CTA supporting text spacing. */
.cta p {
  margin-bottom: 25px;
}

/* Re-skin hero button for dark CTA background context. */
.cta .hero-btn {
  border-color: white;
  color: white;
  background: transparent;
}

/* CTA button hover color shift to action-red. */
.cta .hero-btn:hover {
  background: #ff4646;
  color: #ffffff;
  border-color: #ff4646;
}