/* ==========================================================
   COMPONENTS: reusable pieces (buttons, and later cards, form fields)
   ========================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--button-size);
  line-height: 24px;                 /* gives the 56px button height in your design */
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease);
}

/* On hover the arrow turns 45 degrees and points straight right */
.btn:hover .btn__icon {
  transform: rotate(45deg);
}

/* Phones and touch screens have no hover, so the arrow rests pointing right */
@media (max-width: 767px), (hover: none) {
  .btn__icon,
  .btn:hover .btn__icon {
    transform: rotate(45deg);
  }
}

/* Primary: red */
.btn--primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--brand-primary-hover);
}

/* Ghost: outlined, for dark photo backgrounds */
.btn--ghost {
  padding: calc(var(--button-padding-y) - 1px) calc(var(--button-padding-x) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-inverse);
  font-weight: 400;
  text-transform: none;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}


/* ---------- Section heading pieces (used by every light section) ---------- */

/* Small red line + grey label, e.g. "ABOUT SOLA" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  font-weight: 700;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--text-light-body);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand-primary);
  opacity: 0.6;
}

/* Section heading (H2) */
.section-title {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  letter-spacing: var(--h2-track);
  color: var(--text-light-heading);
}

/* Large paragraph text */
.section-text {
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
  color: var(--text-light-body);
}

/* Mobile: paragraphs use the regular body size (16/24) */
@media (max-width: 767px) {
  .section-text {
    font-size: var(--body-size);
    line-height: var(--body-line);
  }
}
