/* ======================================
   ABOUT US (about-us.css) — Mobile First
   Folder-wise (copy-paste) — REVISED
   GOAL:
   - About-page-text stays under title
   - About-page-text is FULL container width at ALL times (no inner grid)
   - Mobile: About text, then image, then text (repeat)
   - Tablet+: alternating rows using .about-row.reverse
   - Individual intro text matches About text styling
====================================== */

/* =========================
   1) PAGE LAYOUT
========================= */
.about-page {
  display: grid;
  width: 100%;
  padding-top: 70px;
}

/* =========================
   2) TITLE SECTION
========================= */
.about-page-title {
  width: 100%;
  background-color: #e6e6e6;
  padding: clamp(36px, 5vw, 72px) clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  text-align: center;
}

.about-page-title h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
}

.about-page-gradient-text {
  background: linear-gradient(90deg, #ff8500, #023047);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* =========================
   3) INTRO SECTION WRAPPER
========================= */
.about-page-intro {
  width: 100%;
  background-color: #ffb803;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 5vw, 28px);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* =========================
   4) MAIN CONTAINER
   (kept 1-col always so About text stays on top)
========================= */
.about-page-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(20px, 7vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* =========================
   5) ABOUT TEXT BLOCK (TOP)
   - FULL container width at all times
   - no inner grid (so edges = container edges)
========================= */
.about-page-text {
  width: 100%;
  grid-column: 1 / -1;
  box-sizing: border-box;
}

.about-page-text h2 {
  margin: 0 0 clamp(8px, 1vw, 12px);
  font-family: "Poppins", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.about-page-text p {
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.55;
  margin: 0 0 clamp(16px, 3.5vw, 22px);
  color: #333;
  max-width: 100%;
  text-align: left;
}

/* =========================
   6) CTA BUTTON
========================= */
.about-page-button {
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 3.3vw, 16px);
  color: #fff;
  background-color: #000;
  border: 1px solid #565656;
  padding: clamp(12px, 3.2vw, 14px) clamp(20px, 4.8vw, 30px);
  border-radius: 100em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 26rem;
  box-shadow:
    8px 8px 10px #a87d07,
    -8px -8px 10px #fdd250;
}

.about-page-button:hover {
  background-color: #023047;
  transform: translateY(-2px);
}

.about-page-button:active {
  box-shadow:
    inset 4px 4px 8px #010b10,
    inset -4px -4px 8px #006091;
  transform: translateY(0);
}

/* =========================
   7) IMAGE CARD (GLASS)
========================= */
.about-page-image-card {
  position: relative;
  width: 100%;
  padding: clamp(8px, 1.2vw, 12px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px 5px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  z-index: 1;
  animation: aboutFadeInCard 0.8s ease-in-out forwards;
  opacity: 0;
  box-sizing: border-box;
}

@keyframes aboutFadeInCard {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-page-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   8) PERSON ROWS
========================= */
.about-row {
  display: grid;
  grid-template-columns: 1fr; /* mobile stack */
  gap: clamp(20px, 7vw, 48px);
  align-items: center;
  margin-bottom: clamp(28px, 6vw, 56px);
}

.about-row .about-page-image-card {
  order: 1; /* image first on mobile */
}

.about-row .about-page-individual-intro {
  order: 2; /* text after image on mobile */
}

/* Individual intro text matches About text styling */
.about-page-individual-intro h2 {
  margin: 0 0 clamp(8px, 1vw, 12px);
  font-family: "Poppins", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.about-page-individual-intro p {
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.55;
  margin: 0 0 clamp(16px, 3.5vw, 22px);
  color: #333;
  max-width: 60ch;
  text-align: left;
}

/* =========================
   9) REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  .about-page-image-card {
    animation: none;
    opacity: 1;
  }
  .about-page-button {
    transition: none;
  }
}

/* =========================
   10) BREAKPOINTS (YOUR RANGES)
========================= */

/* Mobile+: 481–767px */
@media (min-width: 481px) and (max-width: 767px) {
  .about-page-section {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }

  .about-page-container {
    max-width: 700px;
    text-align: center;
  }

  .about-page-text p,
  .about-page-individual-intro p {
    margin-inline: auto;
  }

  .about-page-button {
    width: auto;
  }
}

/* Tablets: 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-page-container {
    max-width: 1000px;
    text-align: left;
  }

  .about-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-row.reverse {
    direction: rtl;
  }

  .about-row.reverse > * {
    direction: ltr;
  }

  .about-row .about-page-image-card,
  .about-row .about-page-individual-intro {
    order: 0;
  }
}

/* Laptops: 1024–1280px */
@media (min-width: 1024px) and (max-width: 1280px) {
  .about-page-container {
    max-width: 1100px;
  }

  .about-row {
    grid-template-columns: 1fr 1.1fr;
  }

  .about-row.reverse {
    direction: rtl;
  }

  .about-row.reverse > * {
    direction: ltr;
  }

  .about-row .about-page-image-card,
  .about-row .about-page-individual-intro {
    order: 0;
  }
}

/* Desktop: 1281px+ */
@media (min-width: 1281px) {
  .about-page-container {
    max-width: 1200px;
  }

  .about-row {
    grid-template-columns: 1fr 1.15fr;
  }

  .about-row.reverse {
    direction: rtl;
  }

  .about-row.reverse > * {
    direction: ltr;
  }

  .about-row .about-page-image-card,
  .about-row .about-page-individual-intro {
    order: 0;
  }
}
/* Center bottom CTA button */
.about-page-button {
  justify-self: center; /* centers horizontally in grid */
  margin-top: clamp(24px, 5vw, 60px);
}
