/* ===========================
   Team Page – Full CSS
   (Desktop-safe; mobile bottom nav only on ≤768px)
   =========================== */

/* Base */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #fff3e0, #ffe0cc);
  color: #3e2f2f;
}

/* Desktop Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #0d0d0d;
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0d0d0d;
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 999;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.dropdown-menu li a:hover { background-color: #aa3f63; }
.dropdown:hover .dropdown-menu { display: flex; }

/* Branding */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo img { height: 60px; }
.logo-text { height: 28px; }

/* Desktop Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a.active { border-bottom: 2px solid #ffbad2; }
.nav-links a:hover { color: #ffbad2; }

/* Section */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.section h2 {
  text-align: center;
  font-size: 3rem;
  color: #3a1f0f;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #c97e4f;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Team grid */
.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.team-member {
  text-align: center;
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff8f3;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.team-member:hover { transform: translateY(-5px); }

.team-member img {
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  clip-path: inset(0 0 0.65in 0); /* top, right, bottom, left */
}

.team-member h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4b2e2e;
  margin-bottom: 0.2rem;
}

.team-member p.role {
  font-size: 1.2rem;
  color: #aa5d3c;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.team-member .bio {
  font-size: 1rem;
  color: #5c4b45;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Studio Values */
.studio-values {
  padding: 4rem 2rem;
  background-color: #fff0e6;
  text-align: center;
  border-top: 4px dashed #f4b393;
}

.studio-values h2 {
  font-size: 2.2rem;
  color: #844a29;
  margin-bottom: 2rem;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.value-card {
  background: #fffaf6;
  border: 2px solid #ffd6bf;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 280px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.value-card h3 {
  color: #b04c2b;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 1rem;
  color: #5f4a42;
  line-height: 1.5;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0d0d0d;
  color: #fff;
  font-size: 0.8rem;
}

/* ===========================
   MOBILE UI VISIBILITY (Desktop default)
   Hide mobile header + bottom bar on desktop/tablet
   =========================== */
.mobile-navbar,
.bottom-nav {
  display: none !important; /* critical to prevent desktop spillover */
}

/* ===========================
   MOBILE (≤768px): show mobile nav, hide desktop header
   =========================== */
@media screen and (max-width: 768px) {
  /* Hide desktop header on mobile */
  .desktop-only { display: none !important; }

  /* Show mobile header wrapper */
  .mobile-navbar { display: block !important; }

  /* Fixed bottom navigation bar */
  .bottom-nav {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background-color: #0d0d0d;
    padding: 0.4rem 0;
    list-style: none;
    z-index: 1000;
    border-top: 2px solid #aa5d3c;
  }

  .bottom-nav li { flex: 1; text-align: center; }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
  }

  .bottom-nav a:hover { color: #ffbad2; }
  .nav-icon { width: 22px; height: 22px; margin-bottom: 0.2rem; }

  /* Mobile typography & spacing tweaks */
  .section h2 { font-size: 2rem; }

  .team-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .team-member { margin: 1.5rem 1rem; padding: 1rem; }
  .team-member h3 { font-size: 1.5rem; }
  .team-member p.role { font-size: 1rem; }
  .team-member .bio { font-size: 0.95rem; padding: 0 0.5rem; }

  .studio-values { padding: 2rem 1rem; }
  .studio-values h2 { font-size: 1.8rem; }

  .values-grid { flex-direction: column; gap: 1.5rem; }
  .value-card { max-width: 90%; margin: auto; }

  /* Keep footer content clear of fixed bar */
  footer { padding-bottom: 60px; }
}
