* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fffaf0;
  color: #17201c;
  font-family: Arial, sans-serif;
}

header {
  height: 78px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe4dd;
  position: sticky;
  top: 0;
  background: #fffaf0ee;
  backdrop-filter: blur(12px);
  z-index: 5;
}

.brand {
  color: #17201c;
  text-decoration: none;
  font-weight: 700;
}

.brand b {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #1f4d3a;
  color: #fffaf0;
  margin-right: 9px;
  overflow: hidden;
}

.brand b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

nav a {
  color: #435049;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.active {
  color: #1f4d3a !important;
}

.join {
  background: #1f4d3a;
  color: #fffaf0 !important;
  padding: 11px 17px;
  border-radius: 99px;
}

button {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  color: #1f4d3a;
}

/* HERO & AMBASSADORS SECTION */
.hero {
  text-align: center;
  padding: 95px 7% 90px;
  background: #f5efe3;
}

.hero small,
.cta small {
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  color: #3f6b4f;
}

.hero h1 {
  font: 600 clamp(50px, 7vw, 82px) / 1.05 Georgia, serif;
  margin: 15px 0;
}

.hero h1 i {
  color: #3f6b4f;
}

.hero > p {
  max-width: 650px;
  margin: 0 auto 65px;
  color: #65716b;
  line-height: 1.7;
}

/* FLEX GRID: 5 per row max, centered alignment on all screens */
.ambassadors-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 25px;
}

.ambassador-card {
  text-align: center;
  flex: 0 0 calc(20% - 20px); /* 5 items per row on laptop */
  max-width: calc(20% - 20px);
}

.circle {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #dce2da;
  border: 6px solid #fffaf0;
  box-shadow: 0 12px 30px #17201c18;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambassador-card h3 {
  font-size: 15px;
  margin: 16px 0 4px;
  color: #17201c;
}

.ambassador-card span {
  font-size: 12px;
  color: #65716b;
}

/* CALL TO ACTION */
.cta {
  margin: 60px 7% 90px;
  padding: 65px 8%;
  text-align: center;
  background: #1f4d3a;
  color: #fffaf0;
  border-radius: 28px;
}

.cta small {
  color: #cdbb8d;
}

.cta h2 {
  font: 600 clamp(36px, 5vw, 54px) Georgia, serif;
  margin: 15px 0;
}

.cta p {
  max-width: 620px;
  margin: 0 auto 25px;
  color: #e2e9e4;
  line-height: 1.7;
}

.cta a {
  display: inline-block;
  background: #fffaf0;
  color: #1f4d3a;
  padding: 14px 22px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
}

/* FOOTER */
footer {
  padding: 30px 7%;
  border-top: 1px solid #dfe4dd;
  display: flex;
  gap: 25px;
  align-items: center;
}

footer span {
  color: #65716b;
  font-size: 12px;
}

footer a {
  margin-left: auto;
  color: #1f4d3a;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .ambassador-card {
    flex: 0 0 calc(25% - 20px); /* 4 per row on medium screens */
    max-width: calc(25% - 20px);
  }
}

@media (max-width: 800px) {
  button {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 25px 7%;
    background: #fffaf0;
    flex-direction: column;
    align-items: flex-start;
  }

  nav.open {
    display: flex;
  }

  .ambassador-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 per row on tablets */
    max-width: calc(33.333% - 20px);
  }

  .circle {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 580px) {
  .ambassador-card {
    flex: 0 0 calc(50% - 15px); /* 2 per row on smaller mobile */
    max-width: calc(50% - 15px);
  }

  .circle {
    width: 120px;
    height: 120px;
  }

  footer {
    flex-wrap: wrap;
  }

  footer a {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .ambassador-card {
    flex: 0 0 100%; /* 1 per row on very small screens */
    max-width: 100%;
  }
}
