/* Reusable, cross-section styles for index.php (grows as more sections migrate;
   other pages will get this file too once their own migration starts). */

/* Site-wide horizontal spacing scale: 20px under 768px, 40px from 768px up.
   Single source of truth -- sections should rely on this via .container
   instead of hand-rolling their own horizontal padding. */
:root {
  --section-px: 20px;
}

@media (min-width: 768px) {
  :root {
    --section-px: 40px;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--section-px);
}

/* Reusable, responsive type scale for future markup. Named .type-h1..h4
   (not .h1..h4) to avoid colliding with Bootstrap's own .h1-.h6 utility
   classes, which are already relied on elsewhere in this codebase. All
   sizes use clamp() so they scale fluidly with viewport width -- no
   breakpoint media queries needed for the font-size itself. */
.type-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.type-h2 {
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.type-h3 {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.3;
}

.type-h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
}

/* NOTE: the original test.css had two conflicting @keyframes fadeInUp
   definitions (30px and 20px translateY). Because CSS keyframe lookup is
   global-by-name and the 20px one was declared later in the file, it was
   the one actually winning site-wide (including for the hero animations)
   before this migration. Using 20px here to match that real prior behavior. */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-call {
  display: inline-flex;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  background: white;
  color: #9c27b0;
  border: 3px solid #9c27b0;
}

.btn-outline-primary:hover {
  background: #f3e5f5;
  transform: translateY(-2px);
}

.btn-white {
  background: linear-gradient(135deg, var(--white), var(--white));
  color: #000000;
}

.btn-white:hover {
  background: var(--glass);
  border-color: rgba(255, 255, 255);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white:active {
  transform: translateY(0);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline img {
  filter: brightness(0) invert(1);
}

.btn-outline-light:hover {
  background: var(--white);
  color: #7928ca;
}

.cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: start;
  flex-wrap: wrap;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.8s both;
}

@media (max-width: 768px) {
  .cta__buttons {
    flex-direction: column;
    gap: 5px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
