:root{
  --bg: #FEFBF6;
  --text: #4B4D39;
  --muted:#6A6A6A;
  --accent:#A2C26C;
  --border:#DDDDDD;
  --radius-lg: 20px;
  --container: 1100px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden; /* <-- FIX horizontal scroll */
}

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

/* ---------------- NAVBAR ---------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid #DDDDDD;
  transition: box-shadow .2s ease;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 84px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  padding: .25rem .1rem;
  border-radius: 6px;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle { display:none; }

.menu-btn {
  display:none;
  width: 40px;
  height: 32px;
  position: relative;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left:0; right:0;
  height:3px;
  background:var(--text);
  border-radius:3px;
  transition: .25s ease;
}
.menu-btn span:nth-child(1){ top:4px; }
.menu-btn span:nth-child(2){ top:14px; }
.menu-btn span:nth-child(3){ top:24px; }

.nav-toggle:checked + .menu-btn span:nth-child(1){
  top:14px; transform:rotate(45deg);
}
.nav-toggle:checked + .menu-btn span:nth-child(2){
  opacity:0;
}
.nav-toggle:checked + .menu-btn span:nth-child(3){
  top:14px; transform:rotate(-45deg);
}

@media(max-width:768px){
  .nav-links{display:none;}
  .menu-btn{display:block;}
  .nav-toggle:checked ~ .nav-links{
    display:flex;
    flex-direction:column;
    gap:1rem;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--bg);
    padding:1rem;
  }
}

/* -------------------------------------------------------
   TEAM SECTION (REPLACES ABOUT US)
---------------------------------------------------------- */

.team {
  padding: 20px 0 64px;
}

.team-title {
  margin: .25rem 0 1rem;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.team-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--muted);
  line-height: 1.7;
}

.team-grid {
  display:flex;
  flex-direction:column;
  gap:60px;
}

.team-card {
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:40px;
  align-items:start;
}

.team-photo {
  width:100%;
  border-radius:var(--radius-lg);
  object-fit:cover;
  background:#eee;
}

.team-info h3 {
  margin:0 0 4px;
  font-size: clamp(1.5rem,2.8vw,2rem);
  font-weight:700;
}

.team-role {
  margin:0 0 14px;
  font-size:.95rem;
  font-weight:600;
  color:var(--muted);
}

.team-tags {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:0;
  margin:0 0 18px;
}

.team-tags li {
  background:#f4f4f4;
  padding:6px 14px;
  border-radius:20px;
  font-size:.85rem;
  color:var(--text);
}

.team-bio {
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:20px;
}

.team-btn {
  display:inline-block;
  padding:10px 22px;
  background:var(--text);
  color:white;
  border-radius:8px;
  font-size:.95rem;
  text-decoration:none;
}
.team-btn:hover {
  background:var(--accent);
}

/* ---------------- RESPONSIVE ---------------- */

@media(max-width:900px){
  .team-card{
    grid-template-columns:1fr;
    text-align:center;
  }
  .team-photo{
    max-width:360px;
    margin:0 auto;
  }
}

@media(max-width:768px){
  .team-bio{
    font-size:.95rem;
  }
  .team-grid{
    gap:50px;
  }
  .team-card{
    gap:28px;
  }
}

@media(max-width:480px){
  .team-title{ font-size:2rem; }
  .team-intro{ font-size:.98rem; margin-bottom:34px; }
  .team-photo{ max-width:260px; }
  .team-tags li{ font-size:.8rem; padding:5px 12px; }
  .team-btn{ font-size:.9rem; padding:9px 20px; }
}

/* -------------------------------------------------------
   FOOTER (unchanged)
---------------------------------------------------------- */

.light-footer {
  background:#c8dc9f;
  color:var(--text);
  margin-top:48px;
  padding-top:48px;
}

.light-footer .footer-container {
  max-width:var(--container);
  margin:0 auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:32px;
}

.light-footer .footer-logo {
  height:70px;
  margin-bottom:1rem;
}

.light-footer .footer-links ul {
  list-style:none;
  padding:0;
  margin:0;
}

.light-footer .footer-bottom {
  border-top:1px solid rgba(0,0,0,0.15);
  margin-top:32px;
  text-align:center;
  padding:1rem;
  font-size:.85rem;
  color:var(--muted);
}

@media(max-width:768px){
  .light-footer .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* FIX: Proper container width */
.team .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 16px;
}

/* FIX: Smaller image & cleaner layout */
.team-photo {
  width: 100%;
  max-height: 300px;      /* prevents huge photos */
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* FIX: Tighten spacing */
.team-grid {
  gap: 40px;
}

.team-card {
  gap: 24px;
}

/* FIX: Reduce footer overlap at bottom */
.team {
  padding-bottom: 80px;
}

/* FIX: Make layout centered on wide screens */
.team {
  display: flex;
  justify-content: center;
}
