/* ==========================================================================
   Homepage Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero {
  background-color: var(--color-dark);
  min-height: 100vh;
  padding-top: calc(var(--space-24) + var(--space-8)); /* Account for fixed header */
  padding-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Hero Content (Left Column)
   -------------------------------------------------------------------------- */

.hero-content {
  max-width: 700px;
}

/* Trusted By Label */
.hero-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-6);
}

/* Trust Logos Row */
.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.trust-logos img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.trust-logos img:hover {
  opacity: 1;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-400);
  max-width: 480px;
  margin-bottom: var(--space-8);
}

/* --------------------------------------------------------------------------
   Hero CTA Buttons
   -------------------------------------------------------------------------- */

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Link style button (Learn more) */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-link:hover {
  color: var(--color-primary-light);
}

.btn-link .arrow {
  transition: transform var(--transition-fast);
}

.btn-link:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero Image (Right Column)
   -------------------------------------------------------------------------- */

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet Breakpoint (1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero {
    padding-top: calc(var(--space-20) + var(--space-6));
    padding-bottom: var(--space-12);
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-logos {
    justify-content: center;
  }

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

  .hero-image {
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    max-width: 500px;
  }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile Breakpoint (768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-16) + var(--space-6));
    padding-bottom: var(--space-10);
  }

  .hero .container {
    gap: var(--space-8);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .trust-logos {
    gap: var(--space-6);
  }

  .trust-logos img {
    height: 20px;
  }

  .hero-image img {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Responsive - Small Mobile (480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--space-12) + var(--space-8));
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    font-size: var(--text-sm);
  }

  .trust-logos {
    gap: var(--space-4);
  }

  .trust-logos img {
    height: 16px;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Quality Section
   ========================================================================== */

.quality-section {
  background-color: var(--color-white);
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  text-align: left;
}

.quality-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.quality-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.quality-content {
  padding-left: var(--space-8);
}

.quality-content .section-subtitle {
  margin-bottom: var(--space-10);
}

/* --------------------------------------------------------------------------
   Section Title & Subtitle (Shared)
   -------------------------------------------------------------------------- */

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-500);
  max-width: 900px;
  margin-bottom: var(--space-12);
}

/* --------------------------------------------------------------------------
   Stats Row (Quality Section)
   -------------------------------------------------------------------------- */

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

.stat-item {
  text-align: left;
}

.stat-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.stat-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-400);
}

/* ==========================================================================
   Supplying Section
   ========================================================================== */

.supplying-section {
  background-color: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  text-align: center;
}

.supplying-section .section-title,
.supplying-section .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Feature Rows (Side-by-Side Layout)
   -------------------------------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
  text-align: left;
}

/* feature-row-reverse: Image on LEFT, Content on RIGHT */
/* HTML order is already Image first, Content second - no need for RTL hack */

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-content {
  padding: var(--space-4);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.feature-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  background-color: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet Breakpoint (1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .quality-section,
  .supplying-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .quality-section .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .quality-content {
    padding-left: 0;
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-10);
  }

  .stats-row {
    gap: var(--space-10);
  }

  .feature-row {
    gap: var(--space-8);
  }

  .feature-title {
    font-size: var(--text-2xl);
  }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile Breakpoint (768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .quality-section,
  .supplying-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stat-title {
    font-size: var(--text-xl);
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    direction: ltr;
  }

  .feature-row-reverse .feature-content {
    order: 1;
  }

  .feature-row-reverse .feature-image {
    order: 2;
  }

  .feature-title {
    font-size: var(--text-xl);
  }

  .feature-description {
    font-size: var(--text-base);
  }
}

/* --------------------------------------------------------------------------
   Responsive - Small Mobile (480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .stat-title {
    font-size: var(--text-lg);
  }

  .stat-description {
    font-size: var(--text-sm);
  }

  .feature-title {
    font-size: var(--text-lg);
  }

  .feature-description {
    font-size: var(--text-sm);
  }
}

