/* =========================================
   Container Layout (The Grid Magic)
========================================= */
.about-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* 1.5rem + 300px + 1.5rem = 348px total height */
  grid-template-rows: 1.5rem 380px 1.5rem; 
        max-width: var(--MAX-CWIDTH);
  margin: 0 auto;
  /* Ensure nothing spills out */
  overflow: hidden; 
}

/* =========================================
   Image Section (Left)
========================================= */
.mugshot {
  /* Spans from column 1 to 8 */
  grid-column: 1 / 9;
  /* Spans all 3 rows so it's taller than the text box */
  grid-row: 1 / 4; 
  max-height: 600px;
}

.mugshot__img-wrap {
  height: 100%;
  width: 100%;
}

.mugshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--R-MD);
}

/* =========================================
   Text Section (Right)
========================================= */
.about__text {
  grid-column: 4 / 13;
  grid-row: 2 / 3;
  background-color: var(--C-WHT);
  border-radius: var(--R-LG);
  z-index: 2;
  padding: var(--PAD-CARD);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* section__header colour override handled by .section__header--accent in style.css */

.about__text p {
  font-size: 1.05rem;
  color: var(--C-DRK);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about__text p:last-of-type {
  /* CRITICAL: Removing the bottom margin on the last item 
     prevents the bottom spacing from looking larger than the top */
  margin-bottom: 0;
}
/* =========================================
   CTA Button Section
========================================= */
.about__cta {
  /* Shares the exact same row/column space as the text box */
  grid-column: 5 / 13;
  grid-row: 2 / 3;
  z-index: 3;
  
  /* Pushes the button to the bottom right of the grid cell */
  justify-self: end;
  align-self: end;
  
  /* Pulls it down exactly 50% of its own height to straddle the edge */
  transform: translateY(35%);
  margin-right: 4rem; 
}

/* =========================================
   Mobile Responsiveness
========================================= */
@media (max-width: 1200px) {
  .about-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
    gap: 0;
  }

  .mugshot {
    width: 75%;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
  }

  .mugshot img {
    width: 100%;
    height: auto;
    object-fit: unset;
    border-radius: var(--R-MD);
    display: block;
  }

  .about__text {
    margin-top: -3rem;
    width: 75%;
    margin-left: auto;
    margin-right: 0;
    z-index: 2;
    padding: var(--SPACE-LG);
    box-shadow: var(--S-CARD);
  }

  .about__cta {
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-self: auto;
    transform: translateY(-50%);
    margin: 0 var(--SPACE-LG) 0 auto;
    grid-column: unset;
    grid-row: unset;
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 600px) {
  .mugshot {
    width: 100%;
  }

  .about__text {
    margin-top: -2rem;
    width: 100%;
    padding: var(--SPACE-MD);
  }

  .about__text p {
    font-size: 0.95rem;
  }

  .about__cta {
    margin-right: var(--SPACE-MD);
  }
}


/* Uses .section.section--grid-2 in HTML */
.vcard {
  background: var(--C-WHT);
  border: 1px solid var(--C-LIG);
  border-radius: var(--R-MD);
  padding: var(--PAD-CARD);
  box-shadow: var(--S-CARD);
  display: flex;
  flex-direction: column;
  gap: var(--SPACE-MD);
}

.vcard__header {
  display: flex;
  align-items: center;
  gap: var(--SPACE-MD);
}

.vcard__icon {
  font-size: 1.6rem;
  color: var(--C-TEA);
  flex-shrink: 0;
}

.vcard__titles {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--SPACE-SM);
}

.vcard__name {
  font-family: var(--F-QCK);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--C-DRK);
  margin: 0;
}

.vcard__divider {
  color: var(--C-LIG);
  font-weight: 300;
  font-size: 1.1rem;
}

.vcard__motto {
  font-family: var(--F-RUB);
  font-size: var(--TEXT-SM);
  font-weight: 500;
  color: var(--C-MAG);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.vcard__body {
  font-family: var(--F-RUB);
  font-size: 0.9rem;
  color: var(--C-DRK);
  opacity: 0.65;
  line-height: 1.7;
  margin: 0;
}

/* ── About CTA row ───────────────────────────────────────── */
.about__cta-row {
  display: flex;
  gap: var(--SPACE-SM);
  margin-top: var(--GAP-CONTENT);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn--secondary {
  background: transparent;
  color: var(--C-DRK);
  border: 1.5px solid var(--C-DLIG);
}
.btn--secondary:hover {
  background: var(--C-DRK);
  color: var(--C-WHT);
  border-color: var(--C-DRK);
}

/* ── Definition card ─────────────────────────────────────── */
.about-definition {
  display: flex;
  justify-content: center;
}

.definition-card {
  border-left: 3px solid var(--C-TEA);
  padding: var(--SPACE-MD) var(--SPACE-XL);
  max-width: 480px;
}

.definition-card__word {
  font-family: var(--F-QCK);
  font-size: var(--TEXT-XL);
  font-weight: 700;
  color: var(--C-DRK);
  margin-bottom: 0.15rem;
}

.definition-card__phonetic {
  font-family: var(--F-RUB);
  font-size: var(--TEXT-MD);
  font-weight: 400;
  color: var(--C-TEA);
  margin-left: var(--SPACE-XS);
}

.definition-card__pos {
  font-size: var(--TEXT-SM);
  font-style: italic;
  color: var(--C-DRK);
  opacity: 0.45;
  margin-bottom: var(--SPACE-SM);
}

.definition-card__list {
  margin: 0;
  padding-left: var(--SPACE-LG);
  display: flex;
  flex-direction: column;
  gap: var(--SPACE-XS);
}

.definition-card__list li {
  font-size: var(--TEXT-MD);
  color: var(--C-DRK);
  opacity: 0.7;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .about-values { grid-template-columns: 1fr; }
}

.about-values { padding-top: 0; }