/* Custom overrides for mobile UI enhancements and button system */

/* -------------------------------------------------
   CLIENTS GRID - Force 2 columns on all mobile
   ------------------------------------------------- */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* -------------------------------------------------
   Button styles – primary & secondary variants
   ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;               /* space between text & icon */
  min-height: 48px;          /* touch‑target size */
  padding: 0 var(--spacing-4);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease,
              border-color    0.2s ease,
              color           0.2s ease,
              transform       0.1s ease;
}

/* Primary CTA – green brand color */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Secondary CTA – outline style with brand green */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover,
.btn--secondary:focus {
  background-color: rgba(40,88,59,0.08); /* subtle green tint */
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Large size – used on hero */
.btn--lg {
  font-size: var(--font-size-lg);
  padding: var(--spacing-2) var(--spacing-6);
}

/* Hero CTA container – responsive layout */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  align-items: center;
}
@media (min-width: 576px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
/* -------------------------------------------------
   HERO OVERLAY – improve text contrast on background image
   ------------------------------------------------- */
/* Use ::after instead of ::before to avoid conflict with background image */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* dark overlay */
  z-index: 1;
  pointer-events: none;
}
/* Ensure hero content stays above overlay */
.hero-section .hero-content {
  position: relative;
  z-index: 3;
}

/* Adjust button text color for better readability */
.hero-section .btn {
  color: var(--color-white);
}
.hero-section .btn--secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.hero-section .btn--secondary:hover {
  background-color: rgba(255,255,255,0.1);
}
