/* ==========================================================================
   House of Minds — Team Member Page (shared stylesheet)
   Reusable across every /team/<name>.html page.
   Per-page differences (hero photo, name, bio, expertise items) all come
   from the HTML content — this file never needs to change per member.
   ========================================================================== */

:root {
  /* Palette */
  --hom-cream: var(--warm-ivory, #fbf7ef);
  --hom-cream-soft: var(--sand, #efe3cf);
  --hom-forest: var(--deep-forest, #21372a);
  --hom-forest-deep: var(--deep-forest, #21372a);
  --hom-forest-mid: var(--sage-green, #5f725f);
  --hom-gold: var(--soft-gold, #b89b5e);
  --hom-ink: var(--dark-charcoal, #292620);
  --hom-ink-soft: var(--muted-brown, #686052);
  --hom-line: rgba(41, 38, 32, 0.12);

  /* Type */
  --member-font-display: var(--font-heading, "Playfair Display", serif);
  --member-font-body: var(--font-body, "Inter", sans-serif);

  /* Layout */
  --page-max: 1180px;
  --gap-lg: 64px;
  --gap-md: 32px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--member-font-body);
  color: var(--hom-ink);
  background: var(--hom-cream);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--member-font-display);
  color: #f4e8dc;
  margin: 0;
  font-weight: 600;
}

/* ---------- Navbar ---------- */
.hom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: var(--hom-cream);
}

.hom-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--member-font-display);
  font-size: 1.05rem;
  color: var(--hom-forest);
  letter-spacing: 0.02em;
}

.hom-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.hom-logo strong { display: block; font-weight: 700; }
.hom-logo span { display: block; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--hom-ink-soft); }

.hom-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--hom-ink);
}

.hom-links a {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.hom-links a:hover { color: var(--hom-forest); }

.hom-links a.active { color: var(--hom-forest); font-weight: 600; }

.hom-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hom-gold);
}

/* ---------- Hero ---------- */
.member-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--hom-forest-deep);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* set this per-page via inline style="--hero-image:url(...)" or a page-specific class */
.member-hero {
  background-image:
    
    var(--hero-image, none);
}

.member-hero__leaves {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 420px;
  opacity: 0.5;
  pointer-events: none;
}

.member-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 40px 80px;
}

.member-hero__content {
  max-width: 620px;
  margin-left: auto;
}

.member-hero__title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
}

.member-hero__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
}

.member-hero__divider::before,
.member-hero__divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: rgba(255,255,255,0.5);
}

.member-hero__role {
  font-size: 1.15rem;
  color: var(--warm-ivory);
  font-weight: 500;
  margin-bottom: 26px;
  line-height: 1.5;
}

.member-hero__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--hom-forest);
  border-radius: 10px;
  padding: 18px 22px;
  color: #fff;
}

.member-hero__badge-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-hero__badge-text { font-size: 0.92rem; line-height: 1.4; }
.member-hero__badge-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8rem;
  color: var(--hom-cream-soft);
}

/* ---------- About ---------- */
.member-about {
  padding: 80px 0;
}

.member-about__grid {
  display: block;
}

.member-about__grid::after {
  content: "";
  display: block;
  clear: both;
}

.member-about h2 {
  font-size: 2rem;
  margin-bottom: 26px;
}

.member-about__body p {
  color: var(--hom-ink-soft);
  line-height: 1.75;
  font-size: 0.98rem;
  margin: 0 0 20px;
  text-align: justify;
  text-align-last: left;
}

.member-quote {
  float: right;
  width: min(360px, 36%);
  background: var(--hom-cream-soft);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  margin: 0 0 28px var(--gap-lg);
}

.member-quote__mark {
  font-family: var(--member-font-display);
  font-size: 2.8rem;
  color: var(--hom-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.member-quote p {
  font-family: var(--member-font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--hom-forest);
  margin: 0;
}

/* ---------- Areas of Expertise (auto-filling grid) ---------- */
.expertise {
  padding: 20px 0 80px;
}

.expertise__header { text-align: center; margin-bottom: 20px; }
.expertise__header h2 { font-size: 2rem; }

.expertise__divider {
  width: 70px;
  height: 1px;
  background: var(--hom-line);
  margin: 16px auto 0;
  position: relative;
}

.expertise__divider::after {
  content: "\2766";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--hom-cream);
  padding: 0 10px;
  color: var(--hom-gold);
  font-size: 0.85rem;
}

.expertise__panel {
  margin-top: 40px;
  border: 1px solid var(--hom-line);
  border-radius: 18px;
  padding: 40px;
  background: var(--hom-cream);
}

/*
  Auto-filling grid: add or remove <li> items in the HTML and the
  grid reflows on its own — column count adapts to available width,
  no JS and no per-page CSS edits needed.
*/
.expertise__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: var(--gap-md);
  row-gap: 22px;
}

.expertise__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--hom-ink);
  line-height: 1.4;
}

.expertise__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--hom-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise__icon svg { width: 17px; height: 17px; }

/* ---------- Closing banner ---------- */
.member-banner {
  background: var(--deep-forest);
  padding: 56px 40px;
  margin: 0 40px 80px;
  border-radius: 18px;
  text-align: center;
  position: relative;
  max-width: calc(var(--page-max) - 80px);
  margin-left: auto;
  margin-right: auto;
}

.member-banner__leaf {
  display: none;
}

.member-banner p {
  font-family: var(--member-font-display);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--warm-ivory);
  max-width: 720px;
  margin: 0 auto;
}

.member-banner__divider {
  margin-top: 22px;
  color: var(--hom-gold);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.hom-footer {
  background: var(--hom-forest-deep);
  color: rgba(255,255,255,0.82);
  padding: 60px 40px 24px;
}

.hom-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr;
  gap: 30px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.hom-footer h4 {
  color: #fff;
  font-family: var(--member-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.hom-footer ul { list-style: none; margin: 0; padding: 0; }
.hom-footer li { margin-bottom: 10px; font-size: 0.88rem; }
.hom-footer li a:hover { color: #fff; }

.hom-footer__about p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 12px 0 20px;
  max-width: 220px;
}

.hom-footer__social { display: flex; gap: 10px; }
.hom-footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}

.hom-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }

.hom-footer__bottom {
  max-width: var(--page-max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hom-links { display: none; }
  .member-quote {
    float: none;
    width: 100%;
    margin: 32px 0 0;
  }
  .member-hero {
    background-image: var(--hero-image-mobile, var(--hero-image, none));
    background-position: center center;
    align-items: flex-end;
  }
  .member-hero__inner { padding: 100px 24px 48px; }
  .member-hero__content {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
    text-align: left;
  }
  .hom-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap, .hom-nav, .hom-footer { padding-left: 20px; padding-right: 20px; }
  .expertise .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .expertise__panel {
    border-radius: 14px;
    padding: 22px 16px;
  }
  .expertise__list {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .expertise__item {
    gap: 12px;
  }
  .hom-footer__grid { grid-template-columns: 1fr; }
  .member-banner { margin: 0 20px 60px; padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.expertise {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(
        rgba(30,39,25,.88),
        rgba(30,39,25,.93)
    );
    isolation: isolate;
}

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

    background:url("../assets/team/darkbg.png") center center / cover no-repeat;

    /* stays behind this section */
    transform:scale(1.05);
}

.expertise::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:rgba(30,39,25,.65);
}

.expertise > *{
    position:relative;
    z-index:2;
}
@media (max-width: 900px) {
  .hom-links { display: none; }
  .member-quote {
    float: none;
    width: 100%;
    margin: 32px 0 0;
  }
  .member-hero {
    background-image: var(--hero-image-mobile, var(--hero-image, none));
    background-position: center center;
    align-items: flex-end;   /* bottom alignment — already there */
  }
  .member-hero__inner { padding: 100px 24px 48px; }
  .member-hero__content {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
    text-align: left;        /* left alignment — already there */
  }

  /* NEW — smaller hero text on mobile */
  .member-hero__title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }
  .member-hero__role {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .hom-footer__grid { grid-template-columns: 1fr 1fr; }
}
.member-hero{
    position: relative;
    overflow: hidden;
}

.member-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        /* Top shadow */
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.78) 0%,
            rgba(0,0,0,0.45) 12%,
            rgba(0,0,0,0.18) 24%,
            rgba(0,0,0,0) 38%
        ),

        /* Overall overlay */
        linear-gradient(
            to right,
            rgba(0,0,0,0.30),
            rgba(0,0,0,0.15)
        );
}

.member-hero > *{
    position: relative;
    z-index: 2;
}
