/* ===============================
   AKopiCafe About Page
   File: about.css
   Professional + mobile ready
================================ */

/* ===============================
   PAGE BASE
================================ */

body.internal-page.about-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(181, 139, 96, 0.12), transparent 30%),
    radial-gradient(circle at 86% 80%, rgba(90, 56, 37, 0.08), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #fffdf9 48%, #f8efe6 100%);
  color: var(--dark, #2d1c13);
}

.about-page-main {
  width: 100%;
  overflow: hidden;
}

/* ===============================
   ABOUT HEADER
================================ */

body.about-page .about-header {
  position: relative;
  overflow: hidden;

  margin: 0;
  padding: 154px 24px 86px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background:
    radial-gradient(circle at 14% 16%, rgba(181, 139, 96, 0.10), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(90, 56, 37, 0.07), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, #f7ecdf 100%);

  border-bottom: 1px solid rgba(181, 139, 96, 0.12);
  box-sizing: border-box;
}

body.about-page .about-header::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;

  width: min(780px, 92%);
  height: 300px;

  transform: translateX(-50%);

  background: radial-gradient(circle, rgba(217, 174, 124, 0.16), transparent 68%);
  pointer-events: none;
}

body.about-page .about-header::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);

  background-size: 34px 34px;
  pointer-events: none;
  opacity: 0.5;
}

.about-header-content {
  position: relative;
  z-index: 2;

  width: min(1120px, 100%);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-kicker {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 7px 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(181, 139, 96, 0.26);

  background: rgba(255, 255, 255, 0.62);
  color: var(--coffee, #5a3825);

  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 10px 24px rgba(45, 26, 17, 0.05);
}

body.about-page .about-header h1 {
  width: 100%;
  max-width: 1120px;

  margin: 0 0 18px;
  padding: 0;
  border: 0;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: center;
}

body.about-page .about-header h1::after {
  content: "";
  display: block;

  width: 92px;
  height: 4px;

  margin: 20px auto 0;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--coffee, #5a3825), var(--accent, #b58b60));
}

body.about-page .about-header p {
  width: min(760px, 100%);
  margin: 0 auto;

  color: #6d5a4f;

  font-family: var(--body-font, 'Lora', serif);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  text-align: center;
}

/* ===============================
   INTRO CARD
================================ */

.about-intro-card {
  position: relative;
  overflow: hidden;

  width: min(920px, calc(100% - 32px));
  margin: 64px auto 46px;
  padding: clamp(30px, 4vw, 52px);

  border-radius: 28px;
  border: 1px solid rgba(181, 139, 96, 0.18);

  background:
    radial-gradient(circle at top right, rgba(181, 139, 96, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 246, 0.96));

  box-shadow: 0 18px 45px rgba(45, 26, 17, 0.10);

  font-family: var(--body-font, 'Lora', serif);
  color: var(--dark, #2d1c13);

  animation: aboutFadeUp 0.55s ease both;
  box-sizing: border-box;
}

.about-intro-card::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -130px;

  width: 300px;
  height: 300px;

  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 174, 124, 0.17), transparent 68%);
  pointer-events: none;
}

.about-intro-card::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;

  width: 300px;
  height: 300px;

  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 56, 37, 0.07), transparent 68%);
  pointer-events: none;
}

.about-intro-section {
  position: relative;
  z-index: 2;

  padding: 0 0 32px;
  margin: 0 0 32px;

  border-bottom: 1px solid rgba(181, 139, 96, 0.16);

  text-align: center;
}

.about-intro-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.about-intro-section h2 {
  margin: 0 0 16px;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.about-intro-section p {
  width: min(760px, 100%);
  margin: 0 auto;

  color: #5f4d42;

  font-size: 16.5px;
  line-height: 1.85;
}

.about-intro-section a {
  color: var(--coffee, #5a3825);

  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-decoration: none;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.about-intro-section a:hover {
  color: var(--accent, #b58b60);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-intro-section strong {
  color: var(--coffee, #5a3825);
  font-weight: 900;
}

/* ===============================
   CHECK LIST
================================ */

.about-check-list {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0;

  display: grid;
  gap: 12px;

  list-style: none;
  text-align: left;
}

.about-check-list li {
  position: relative;

  padding: 14px 18px 14px 46px;

  border-radius: 16px;
  border: 1px solid rgba(181, 139, 96, 0.16);

  background: rgba(255, 255, 255, 0.74);

  color: #5f4d42;

  font-size: 16px;
  line-height: 1.5;

  box-shadow: 0 8px 20px rgba(45, 26, 17, 0.04);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.about-check-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--accent, #b58b60);

  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.about-check-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 139, 96, 0.32);
  box-shadow: 0 12px 26px rgba(45, 26, 17, 0.08);
}

/* ===============================
   TEAM SECTIONS
================================ */

.about-team {
  position: relative;
  overflow: hidden;

  padding: 88px 20px 96px;

  text-align: center;

  background:
    radial-gradient(circle at 12% 18%, rgba(181, 139, 96, 0.10), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(90, 56, 37, 0.07), transparent 32%),
    linear-gradient(180deg, #fffaf4 0%, #f8efe6 100%);

  border-top: 1px solid rgba(181, 139, 96, 0.12);
}

.about-team:nth-of-type(even) {
  background:
    radial-gradient(circle at 12% 18%, rgba(90, 56, 37, 0.06), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(181, 139, 96, 0.10), transparent 32%),
    linear-gradient(180deg, #fffdf9 0%, #fff4e8 100%);
}

.about-team::before {
  content: "";
  position: absolute;
  inset: 24px;

  border: 1px solid rgba(181, 139, 96, 0.13);
  border-radius: 32px;

  pointer-events: none;
}

.about-section-heading {
  position: relative;
  z-index: 2;

  width: min(760px, 100%);
  margin: 0 auto 52px;

  text-align: center;
}

.about-section-heading h2 {
  margin: 0;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.about-section-heading h2::after {
  content: "";
  display: block;

  width: 92px;
  height: 4px;

  margin: 18px auto 0;

  border-radius: 999px;
  background: linear-gradient(90deg, var(--coffee, #5a3825), var(--accent, #b58b60));
}

.about-section-heading p {
  width: min(620px, 100%);
  margin: 22px auto 0;

  color: #6d5a4f;

  font-size: 16.5px;
  line-height: 1.75;
}

/* ===============================
   TEAM GRID
================================ */

.team-container {
  position: relative;
  z-index: 2;

  width: min(1120px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 30px;
}

.team-container.owners {
  width: min(820px, 100%);
  grid-template-columns: repeat(2, minmax(0, 360px));
}

/* ===============================
   TEAM CARD
================================ */

.team-member {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  min-height: 430px;
  padding: 34px 28px 32px;

  display: flex;
  flex-direction: column;
  align-items: center;

  border-radius: 26px;
  border: 1px solid rgba(181, 139, 96, 0.22);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 242, 0.96));

  box-shadow:
    0 18px 44px rgba(45, 26, 17, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  text-align: center;

  animation: aboutFadeUp 0.65s ease both;
  animation-delay: var(--delay, 0s);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.team-member::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(135deg, rgba(90, 56, 37, 0.98), rgba(181, 139, 96, 0.94));

  opacity: 0;

  transition: opacity 0.28s ease;
}

.team-member::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  z-index: -1;

  width: 160px;
  height: 160px;

  border-radius: 50%;
  background: rgba(181, 139, 96, 0.12);

  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  border-color: rgba(181, 139, 96, 0.42);

  box-shadow:
    0 26px 64px rgba(45, 26, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.team-member:hover::before {
  opacity: 1;
}

.team-member:hover::after {
  transform: scale(1.14);
  background: rgba(255, 255, 255, 0.10);
}

.team-member img {
  position: relative;
  z-index: 2;

  width: 190px;
  height: 190px;

  margin: 0 auto 22px;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;
  border: 5px solid rgba(181, 139, 96, 0.72);

  background: #fff;

  box-shadow:
    0 16px 34px rgba(45, 26, 17, 0.16),
    0 0 0 8px rgba(181, 139, 96, 0.12);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.team-member:hover img {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 248, 239, 0.80);
  box-shadow:
    0 18px 40px rgba(45, 26, 17, 0.22),
    0 0 0 8px rgba(255, 248, 239, 0.14);
}

.team-member h3 {
  position: relative;
  z-index: 2;

  margin: 0 0 8px;

  color: var(--coffee, #5a3825);

  font-family: var(--heading-font, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;

  transition: color 0.28s ease;
}

.team-member p {
  position: relative;
  z-index: 2;

  margin: 0 0 8px;

  color: #6d5a4f;

  font-size: 15.5px;
  line-height: 1.65;

  transition: color 0.28s ease;
}

.team-member .team-role {
  margin-bottom: 14px;

  color: var(--accent, #b58b60);

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-member:hover h3,
.team-member:hover p,
.team-member:hover .team-role {
  color: #fff8ef;
}

.team-member:hover .team-role {
  color: #fff0cf;
}

/* ===============================
   HIRING CARDS
================================ */

.hiring-card {
  justify-content: flex-start;
}

.hiring-placeholder {
  position: relative;
  z-index: 2;

  width: 190px;
  height: 190px;

  margin: 0 auto 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 5px solid rgba(181, 139, 96, 0.72);

  background:
    radial-gradient(circle at 32% 24%, #fffdf8 0%, #fff3e4 44%, #e8c9aa 100%);

  box-shadow:
    0 16px 34px rgba(45, 26, 17, 0.16),
    0 0 0 8px rgba(181, 139, 96, 0.12);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.hiring-placeholder span {
  width: 118px;
  height: 118px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--coffee, #5a3825), var(--accent, #b58b60));

  color: #fff8ef;

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;

  box-shadow:
    0 12px 24px rgba(90, 56, 37, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.team-member:hover .hiring-placeholder {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 248, 239, 0.80);
  box-shadow:
    0 18px 40px rgba(45, 26, 17, 0.22),
    0 0 0 8px rgba(255, 248, 239, 0.14);
}

/* ===============================
   LEGACY SAFETY
   If old about.php still has .form-container,
   it will still look good.
================================ */

body.about-page .form-container {
  width: min(920px, calc(100% - 32px));
  max-width: 920px;
  margin: 64px auto 46px;
  padding: clamp(30px, 4vw, 52px);

  border-radius: 28px;
  border: 1px solid rgba(181, 139, 96, 0.18);

  background:
    radial-gradient(circle at top right, rgba(181, 139, 96, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 246, 0.96));

  box-shadow: 0 18px 45px rgba(45, 26, 17, 0.10);

  text-align: center;
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes aboutFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .team-container,
  .team-container.owners {
    width: min(620px, 100%);
    grid-template-columns: 1fr;
  }

  .team-member {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  body.about-page .about-header {
    padding: 130px 20px 72px;
  }

  body.about-page .about-header h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  body.about-page .about-header p {
    font-size: 15.5px;
  }

  .about-intro-card {
    width: min(100% - 24px, 920px);
    margin: 44px auto 38px;
    padding: 28px;
    border-radius: 22px;
  }

  .about-team {
    padding: 72px 16px 82px;
  }

  .about-team::before {
    inset: 18px 14px;
    border-radius: 26px;
  }

  .about-section-heading {
    margin-bottom: 42px;
  }

  .team-member {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .team-member img,
  .hiring-placeholder {
    width: 170px;
    height: 170px;
  }

  .hiring-placeholder span {
    width: 108px;
    height: 108px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body.about-page .about-header {
    padding: 118px 16px 64px;
  }

  .about-kicker {
    font-size: 10px;
    padding: 7px 13px;
  }

  .about-intro-card {
    width: min(100% - 18px, 920px);
    margin: 34px auto 30px;
    padding: 22px;
    border-radius: 18px;
  }

  .about-intro-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
  }

  .about-intro-section h2 {
    font-size: 28px;
  }

  .about-intro-section p {
    font-size: 15px;
    line-height: 1.75;
  }

  .about-check-list li {
    padding: 13px 14px 13px 40px;
    font-size: 14.5px;
  }

  .about-check-list li::before {
    left: 15px;
  }

  .about-team {
    padding: 62px 12px 70px;
  }

  .about-section-heading h2 {
    font-size: 32px;
  }

  .about-section-heading p {
    font-size: 15px;
  }

  .team-container,
  .team-container.owners {
    width: min(100% - 8px, 620px);
  }

  .team-member {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .team-member img,
  .hiring-placeholder {
    width: 150px;
    height: 150px;
  }

  .hiring-placeholder span {
    width: 94px;
    height: 94px;
    font-size: 11px;
  }

  .team-member h3 {
    font-size: 24px;
  }

  .team-member p {
    font-size: 14.5px;
  }
}
/* =========================================================
   FINAL MOBILE FIX: ABOUT TEAM / MEET THE OWNERS
   Fixes mobile overflow and stacking
========================================================= */

body.about-page *,
body.about-page *::before,
body.about-page *::after {
  box-sizing: border-box;
}

@media (max-width: 900px) {
  body.about-page .team-container,
  body.about-page .team-container.owners {
    width: min(100%, 620px) !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    gap: 24px !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.about-page .team-member {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;

    padding: 28px 22px !important;
    margin: 0 auto !important;

    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  body.about-page .about-team {
    padding: 58px 12px 66px !important;
    overflow: hidden !important;
  }

  body.about-page .about-team::before {
    inset: 14px 8px !important;
    border-radius: 22px !important;
  }

  body.about-page .about-section-heading {
    width: 100% !important;
    margin-bottom: 28px !important;
    padding: 0 6px !important;
  }

  body.about-page .about-section-heading h2 {
    font-size: 31px !important;
    line-height: 1.1 !important;
  }

  body.about-page .about-section-heading p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
  }

  body.about-page .team-container,
  body.about-page .team-container.owners {
    width: 100% !important;
    max-width: 100% !important;

    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.about-page .team-member {
    width: 100% !important;
    max-width: 100% !important;

    padding: 24px 16px !important;
    border-radius: 18px !important;

    text-align: center !important;
  }

  body.about-page .team-member img,
  body.about-page .hiring-placeholder {
    width: 145px !important;
    height: 145px !important;

    max-width: 145px !important;
    max-height: 145px !important;

    margin: 0 auto 16px !important;
  }

  body.about-page .hiring-placeholder span {
    width: 90px !important;
    height: 90px !important;
    font-size: 10.5px !important;
  }

  body.about-page .team-member h3 {
    font-size: 23px !important;
    line-height: 1.15 !important;
  }

  body.about-page .team-member p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body.about-page .team-member .team-role {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 360px) {
  body.about-page .team-member {
    padding: 22px 14px !important;
  }

  body.about-page .team-member img,
  body.about-page .hiring-placeholder {
    width: 128px !important;
    height: 128px !important;
    max-width: 128px !important;
    max-height: 128px !important;
  }

  body.about-page .hiring-placeholder span {
    width: 82px !important;
    height: 82px !important;
    font-size: 10px !important;
  }
}