@import url("./variables.css");

/* Typography Utilities
   -------------------------------------------------------------------------- */

.text-h1 {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-700);
  line-height: 1.2;
}

.text-h2 {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-700);
  line-height: 1.25;
}

.text-h3 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-600);
  line-height: 1.3;
}

.text-h4 {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-600);
  line-height: 1.35;
}

.text-h5 {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-600);
  line-height: 1.4;
}

.text-h6 {
  font-size: var(--text-h6);
  font-weight: var(--font-weight-600);
  line-height: 1.4;
}

.text-body-xl {
  font-size: var(--text-xlarge);
  font-weight: var(--font-weight-400);
  line-height: 1.6;
}

.text-body-lg {
  font-size: var(--text-large);
  font-weight: var(--font-weight-400);
  line-height: 1.6;
}

.text-body {
  font-size: var(--text-regular);
  font-weight: var(--font-weight-400);
  line-height: 1.6;
}

.text-body-sm {
  font-size: var(--text-small);
  font-weight: var(--font-weight-400);
  line-height: 1.5;
}

.text-caption {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-400);
  line-height: 1.4;
}

.text-overline {
  font-size: var(--text-overline);
  font-weight: var(--font-weight-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-quote {
  font-size: var(--text-quote);
  font-weight: var(--font-weight-500);
  line-height: 1.6;
}

.text-citation {
  font-size: var(--text-citation);
  font-weight: var(--font-weight-400);
  line-height: 1.4;
}

/* Font weight helpers */
.font-regular {
  font-weight: var(--font-weight-400);
}

.font-medium {
  font-weight: var(--font-weight-500);
}

.font-semibold {
  font-weight: var(--font-weight-600);
}

.font-bold {
  font-weight: var(--font-weight-700);
}

/* Text color helpers */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-neutral {
  color: var(--neutral-700);
}

.text-white {
  color: var(--white);
}

.text-black {
  color: var(--black);
}

/* Button Utilities
     -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--radius-2);
  border-style: solid;
  font-weight: var(--font-weight-600);
  font-size: var(--text-btn-primary);
  line-height: 1.2;
  cursor: pointer;
  background-color: transparent;
  color: var(--primary-700);
  border-color: var(--primary-400);
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

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

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-600);
  border-color: var(--primary-700);
}

.btn-secondary {
  background-color: var(--secondary-100);
  border-color: var(--secondary-600);
  color: var(--primary-700);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-200);
  border-color: var(--secondary-700);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--primary-700);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--primary-100);
}

/* White + outline variants */
.btn-white {
  background-color: var(--white);
  color: var(--primary-700);
  border-color: transparent;
}

.btn-primary-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-primary-outline:hover:not(:disabled) {
  background-color: rgba(55, 55, 55, 0.2);
  border-color: var(--primary);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-white-outline:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Button sizes */
.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-btn-small);
}

.btn-md {
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--text-btn-secondary);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-6);
  font-size: var(--text-btn-primary);
}

/* Section container */
.section-container {
  /* max-width: 1440px; */
  max-width: 100%;
  margin: 0 auto;
  padding: var(--spacing-10) var(--spacing-12);
}

@media (max-width: 768px) {
  .section-container {
    padding: var(--spacing-10) var(--spacing-8);
  }
}
