/* -------- Global Styles -------- */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff5eb;
  color: #5e3c29;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 auto;
}

/* -------- Nav Bar -------- */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9b233;
  padding: 0 30px;
  height: auto;
  position: absolute;
  top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 10;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

.left-nav,
.right-nav {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: 20px;
}

.nav-bar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 4px 8px; /* moved from hover to base */
  border-radius: 4px; /* ensure consistent radius */
}

.nav-bar a:hover {
  color: #5e3c29;
  background-color: rgba(255,255,255,0.2);
}  

.logo-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 70px; /* restore original spacing */
  flex: 0 0 auto;
  overflow: visible;
  z-index: 10;
}

.logo-bg {
  background-color: white;
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-top: 10px;
  z-index: 1;
}

.logo {
  height: 110px;        /* restore original size */
  width: auto;
  margin-top: -10px;
  z-index: 2;
}

/* Hamburger icon (hidden by default) */
.hamburger {
  display: none;
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
}

/* -------- Hero Banner -------- */
.hero-banner {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* adjust how high the image crops */
  opacity: 0.55;
}

.about-hero-text {
  position: absolute;
  top: 50%;
  left: 70px;
  transform: translateY(-50%);
  z-index: 2;
  color: #5e3c29;
}

.about-hero-text h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.72;
  margin-left: 50px;
}

.about-sub {
  padding-left: 20px;
}

.about-content {
  background-color: #fff5eb;
  color: #5e3c29;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Team Section */
.team-section h2 {
  font-size: 2rem;
  margin-top: 60px;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 80px;
  justify-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  width: 270px;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: scale(1.03);
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #fcfbfa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.card-front .name {
  font-weight: bold;
  color: #5e3c29;
  margin-bottom: 4px;
}

.card-front .role {
  font-style: italic;
  color: #5e3c29;
}

.team-card.peach .card-back {
  background-color: #ffe4be;
}

.team-card.light .card-back {
  background-color: #fbe1cd;
}

.card-back {
  transform: rotateY(180deg);
  color: #5e3c29;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* -------- Newsletter -------- */
.newsletter {
  background-color: #fff;
  border: 2px solid #ceb8a7;
  padding: 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 70px;
  margin-bottom: -10px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
}

.newsletter input {
  padding: 8px;
  width: 60%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.newsletter button {
  padding: 8px 12px;
  background-color: #e98a1e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* -------- Footer -------- */
footer {
  background-color: #f9c873;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  color: #5e3c29;
  font-weight: bold;
  flex-wrap: wrap;
  text-align: center;
}

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

  /* Divider */
  .section-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 60px auto;
    max-width: 100%;
    margin-top: 80px;
  }

/* Default: hide arrows and use grid layout */
.mobile-only {
  display: none;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .nav-bar a {
    font-size: 0.9rem; /* slightly smaller text */
    padding: 2px 6px;  /* slightly less padding */
  }

  .nav-group {
    gap: 10px;
  }
}  

/* -------- Mobile Styles -------- */
@media (max-width: 768px) {
  .nav-bar {
    position: absolute; /* not fixed */
    top: 20px;           /* gap from top of screen */
    left: 0;
    right: 0;
    background-color: #f9b233;
    z-index: 999;
    height: auto;
    padding: 10px 20px;
    box-sizing: border-box;
  }

  .logo-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .logo {
    height: 110px;
  }

  .logo-bg {
    width: 50px;
    height: 35px;
  }

  .hero-banner {
    height: 250px;
    position: relative;
    z-index: 0;
    margin-top: 0; /* KEY: no margin pushing it down */
  }

  .hero-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: -1;
  }

  .about-hero-text {
    position: absolute;
    top: 25%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 2;
    color: #5e3c29;
    font-size: 2.5rem;
  }

  .about-hero-text h1 {
    font-size: 3rem;
  }

  .left-nav, .right-nav {
    display: none;
  }

  .hamburger {
    display: block;
    order: -1;
    font-size: 2rem;
    cursor: pointer;
    color: white;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #f9b233;
    padding: 10px 20px;
  }

  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu a {
    padding: 10px 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }

  .about-content {
    margin: 60px 10px;;
    padding: 0 20px;
  }

  .newsletter {
    margin: 80px auto 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 10px;
  }

  .newsletter input,
  .newsletter button {
    width: 100% !important;
    box-sizing: border-box;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    text-align: center;
  }

  footer div {
    width: 100%;
    margin-bottom: 10px;
  }

  .team-section h2 {
    margin-top: -10px;
    font-size: 1.6rem;
  }

  .team-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .team-card {
    flex: 0 0 auto;
    width: 300px;
    height: 400px;
    margin-top: -20px;
  }

  .card-back {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
  }

  .team-nav-buttons {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    gap: 10px;
  }

  .team-nav-buttons button {
    background-color: #f9b233;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .mobile-only {
    display: block;
  }
  
  .team-slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 16px;
  }
  
  .team-slider-controls button {
    background-color: #f9b233;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
  }
}
