/* ============================================================
   TEAM PAGE STYLES
   ------------------------------------------------------------
   Sections:
   1. About Floating Panel (Who we are section w/ taped card)
   2. Map Styling
   3. Team Grid (cards, avatars, roles, bios)
   4. Team Filter Buttons
   5. Carousel (scrolling team members)
   6. Team Values / Motto
   7. Team Doodle CSS
============================================================ */


/* ============================================================
   1. SPECIAL FLOATING TAPED ABOUT PANEL
   ------------------------------------------------------------
   - Two-column grid: text + taped image
   - Image askew for scrapbook feel
   - Text will never bleed under image
============================================================ */

.about-panel {
  display: grid;
  grid-template-columns: 1fr auto;  /* text expands, image fixed */
  gap: 32px;
  align-items: start;
}

.about-text {
  max-width: 65ch;
}

.about-float-panel {
  position: relative;
  top: 20px;
  right: 5px;
  width: 250px;             /* fixed image panel width */
  transform: rotate(4deg); /* askew effect */
  flex-shrink: 0;           /* don't collapse */
}

.about-float-panel .sheet {
  padding: 0;               /* remove padding inside */
}

.about-float-panel img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

/* Mobile fallback: stack image under text */
@media (max-width: 900px) {
  .about-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-float-panel {
    margin: 20px auto 0;
    transform: none;
    width: 70%;
    max-width: 320px;
  }
}


/* ============================================================
   2. MAP STYLING
   ------------------------------------------------------------
   Decorative map panel in contact section
   Includes Leaflet overrides for papercraft look
============================================================ */

#map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  margin-top: 12px;
}

.leaflet-container {
  background: var(--paper-alt) !important;
  border-radius: var(--radius-lg);
}

.leaflet-control-zoom a {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  color: var(--ink) !important;
  font-weight: bold;
}


/* ============================================================
   3. TEAM GRID
   ------------------------------------------------------------
   Responsive grid of team cards
   Includes avatars, roles, tags, bios
============================================================ */

.hero-team .sheet {
  text-align: center;
  padding: 48px 24px;
}

.team-card {
  text-align: center;
  padding: 18px;
}

.team-card .team-photo {
  width: 70%;
  max-width: 140px;
  margin: 0 auto 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}

.team {
  display: grid;
  gap: 26px;
}

@media (min-width:640px)  { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:900px)  { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width:1200px) { .team { grid-template-columns: repeat(4, 1fr); } }

.member .sheet {
  padding: 0;
  overflow: visible;
}

.member .meta {
  padding: 16px 18px;
}

.avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.role {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 2px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.14);
  font-size: 12px;
  margin: 6px 6px 0 0;
  color: var(--muted);
}

/* Bio collapse/expand animation */
.bio {
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
}
.bio.expanded {
  max-height: 800px;
  opacity: 1;
}
.bio-toggle {
  margin-top: 10px;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}


/* ============================================================
   4. TEAM FILTER BUTTONS
   ------------------------------------------------------------
   Filter row above team grid
   Includes active state + brand color variants
============================================================ */

.team-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.filter-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-accent);
}

.filter-btn.active {
  background: var(--sage);
  color: #fff;
  border-color: rgba(62,94,78,.4);
}

/* Brand-specific active states */
.filter-btn[data-filter="apothecary"].active {
  background: var(--sage);  /* soft green */
  color: #fff;
}
.filter-btn[data-filter="flamewood"].active {
  background: var(--rust);  /* warm red-brown */
  color: #fff;
}
.filter-btn[data-filter="stealth"].active {
  background: var(--gold);  /* golden yellow */
  color: #111;
}


/* ============================================================
   5. CAROUSEL
   ------------------------------------------------------------
   Horizontal scrollable track of team members
   Includes hidden scrollbar + custom nav buttons
============================================================ */

.team-carousel {
  position: relative;
  margin: 0 auto;
  padding: 0 0 20px;
}

.team-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 4px;
  -webkit-overflow-scrolling: touch;
}

.team-track::-webkit-scrollbar {
  display: none; /* hide scrollbar for clean look */
}

.member {
  flex: 0 0 auto;
  width: 280px;
  max-width: 80vw;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.carousel-controls button {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: bold;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .15s var(--ease), background .2s var(--ease);
}

.carousel-controls button:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.carousel-controls button:active {
  transform: translateY(0);
}

/* ============================================================
   6. TEAM VALUES / MOTTO
   ------------------------------------------------------------
   Three-column taped card showing Craft, Care, Curiosity
============================================================ */

#team-values .sheet {
  text-align: center;
  padding: 32px 24px;
}

.team-values-grid {
  gap: 24px;
}

.team-values-grid .value {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
}

.team-values-grid .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.team-values-grid h3 {
  margin: 6px 0;
  font-weight: 700;
}

.team-values-grid p {
  font-size: 14px;
  max-width: 28ch;
}

/* Constrain doodle icon sizing */
.team-values-grid .icon img {
  width: 100px;       /* adjust to taste (70–120px works well) */
  height: auto;
  display: block;
  margin: 0 auto 8px;
}


/* ============================================================
   7. TEAM DOODLE ILLUSTRATION
   ------------------------------------------------------------
   Centered papercraft still life under intro panel
============================================================ */

#team-doodle {
  margin: 0 auto;
}

.team-doodle-img {
  max-width: 240px;   /* adjust as needed */
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}
