/**
 * Utilities
 * Depends on: variables.css

  @media (min-width: 768px)  { }   // Tablet
   @media (min-width: 992px)  { }   // Desktop
   @media (min-width: 1200px) { }   // Large desktop
 */

/* ========================================
   📦 CONTAINER / SECTIONS
======================================== */
.base-container {
  width: 99%;
  margin-inline: auto;
  border-radius: var(--base-radius);
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
  position: relative;
  /* overflow: hidden; */
}

.section-title-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.section-title-wrapper::before {
  content: attr(data-index); /* pulls 01, 02, 03 from HTML */
  font-size: 0.8rem;
  color: var(--color-gray-600);
  flex-shrink: 0;
}

.section-title-wrapper::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.section-title {
  font-size: 0.8rem;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  margin: 0;
  flex-shrink: 0;
  order: 1; /* label sits between index and line */
}

/* index before, label in middle, line after */
.section-title-wrapper::before {
  order: 0;
}
.section-title {
  order: 1;
}
.section-title-wrapper::after {
  order: 2;
}

@media (min-width: 1200px) {
  .section-title {
    text-align: left;
  }
}

/* ========================================
   LINKS HOVER LINE EFFECT
======================================== */

.links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.links a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-900);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gray-900);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.links a:hover {
  color: var(--color-gray-900);
}

.links a:hover::after {
  transform: scaleX(1);
}

/* ========================================
   🎯 FLEX
======================================== */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ========================================
   👁️ VISIBILITY
======================================== */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }
}
