/* ===== Welcome Section ===== */

.welcome{
  padding: clamp(56px, 8vw, 96px) 0;
}

/* Headings */
.welcome__title{
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2px;
  margin-bottom: var(--space-2);
}
.welcome__subtitle{
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin: 0 auto var(--space-5);
  max-width: 48ch;
}

/* Intro paragraph */
.welcome__intro{
  max-width: 72ch;
  margin: 0 auto var(--space-6);
  text-align: justify;
}
.welcome__intro em { font-style: italic; }

/* ===== Rows & Cards (shared) ===== */
.welcome__rows {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  justify-content: center;
  margin-inline: auto;
  max-width: min(1440px, 95vw); /* keeps design’s full width but with safe edges */
  padding-inline: clamp(16px, 4vw, 48px); /* adds breathing space symmetrically */
}


/* Mobile-first: stack & center */
.welcome__row{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.welcome-card{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1), var(--shadow-2);
  padding: 20px 18px;
  min-height: 170px;                 /* match tallest card */
  width: min(100%, 320px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.welcome-card span{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.9vw, 22px);
  line-height: 1.2;
}
.welcome-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(14,39,77,.12), var(--shadow-2);
}

/* ========= TABLET: 2 cards per row, both rows act like one ========= */
@media (min-width: 640px) and (max-width: 1024px){
  .welcome__rows{
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    justify-content: center;
    gap: 24px 28px;
  }
  /* Flatten row wrappers so their children (cards) flow together */
  .welcome__row{
    display: contents;               /* makes both rows behave as one grid */
  }
  .welcome-card{
    width: 100%;                     /* fill each grid cell nicely */
  }
}

/* ========= DESKTOP: exact 3 + 4 centered layout ========= */
@media (min-width: 1025px){
  .welcome__rows{ gap: 48px; }

  /* Restore real grids for each row */
  .welcome__row{
    display: grid;
    justify-content: center;
    align-items: stretch;
    gap: 24px 28px;
  }

  .welcome__row--top{
    grid-template-columns: repeat(3, 300px);   /* 3 centered */
  }
  .welcome__row--bottom{
    grid-template-columns: repeat(4, 300px);   /* 4 centered */
  }

  .welcome-card{
    width: 300px;
  }
}

/* Optional tighter spacing on very large screens */
@media (min-width: 1280px){
  .welcome__rows { gap: 44px; }
}
