/* General reset + fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Main";
  src: url(../fonts/BDLifelessGrotesk-Regular.otf) format("opentype");
}
@font-face {
  font-family: "MainLight";
  src: url(../fonts/BDLifelessGrotesk-Light.otf) format("opentype");
}
@font-face {
  font-family: "Secondary";
  src: url(../fonts/Intrigora-Medium.otf) format("opentype");
}
@font-face {
  font-family: "Extra";
  src: url(assets/fonts/Neue\ Kaine\ Variable.ttf) format("truetype");
}

body {
  font-family: "Extra", sans-serif;
  background-color: #f5f3ee;
  color: #111;
  line-height: 1.4;
}

/* Navbar (your existing CSS) */
.navbar {
  font-family: "Extra";
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo img { height: 50px; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin: 0 1rem; }
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #007bff; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span {
  background: #333;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* Ensure viewport meta is present in your HTML head */

/* MAIN SECTIONS */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* === Collections Section === */
.collections-header h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
}
.collections-header { margin-bottom: 1rem; }

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
}
.categories span {
  font-size: 0.9rem;
  font-family: "MainLight";
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem 1rem;
}
.categories ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}
.categories ul li a.active {
  text-decoration: underline;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.collection-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.caption {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-family: "MainLight";
}
.caption .year { font-size: 0.8rem; }

/* Responsive media-queries */
@media (max-width: 768px) {
  main {
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }
  .caption {
    flex-direction: column;
    gap: 0.25rem;
  }
  .caption .year {
    font-size: 0.75rem;
  }
}


/* === Timeline / Excellence === */
.timeline-section {
  background: #111;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem; /* ensure spacing when items wrap */
}

.timeline-images {
  flex: 1 1 250px;
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-images img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.timeline-content {
  flex: 2 1 400px;
  padding-left: 2rem;
}

.timeline-content h2 {
  /* fluid between 1.5rem and 2rem */
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.timeline-content strong {
  font-weight: 900;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-content li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.timeline-content .year {
  font-weight: 700;
}

/* === Membership / Experience === */
.membership-section {
  margin-top: 4rem;
  padding: 0 2rem;
}

.members-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.members-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #333;
  font-family: "MainLight";
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.member-profile img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.member-profile small {
  display: block;
  font-family: "MainLight";
  font-size: 0.9rem;
}

/* ——— Responsive Breakpoints ——— */

/* Tablets and below */
@media (max-width: 768px) {

  .timeline-section {
    flex-direction: column;
    padding: 1.5rem;
  }
  .timeline-content {
    padding-left: 0;
  }
  .membership-section {
    padding: 0 1.5rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {

  .timeline-section {
    padding: 1rem;
    gap: 1rem;
  }
  .timeline-images {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .timeline-content h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
  .timeline-content li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .members-nav {
    padding: 0;
  }
  .member-profile {
    gap: 0.5rem;
  }
  .member-profile img {
    width: 50px;
    height: 50px;
  }
  .member-profile small {
    font-size: 0.8rem;
  }
}


/* === Hero === */
.membership-hero {
  position: relative;
  background: #111;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-images {
  width: 100%;
  position: relative;
}

.hero-images img {
  display: block;
  width: 100%;
}

.hero-images .main {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.hero-images .side {
  position: absolute;
  width: 150px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-images .side.left {
  left: 1rem;
}

.hero-images .side.right {
  right: 1rem;
}

.hero-text {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
}

.hero-text h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.btn-join {
  display: inline-block;
  background: #fff;
  color: #111;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  border-radius: 4px;
  transition: transform 0.2s;
}
.btn-join:hover {
  transform: scale(1.05);
}

/* === Contact + Footer === */
.contact-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.contact-section small {
  display: block;
  font-family: "MainLight";
  margin-bottom: 0.5rem;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.contact-section p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin: 0.2rem 0;
  font-weight: 700;
}

/* === Mobile Menu Responsive (≤768px) === */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-container {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .nav-container.active {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .logo {
    margin: 1rem 0;
  }

  /* Hero tweaks */
  .membership-hero {
    padding: 1.5rem;
  }
  .hero-images .side {
    display: none;
  }
  .hero-text {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* === Phones (≤480px) === */
@media screen and (max-width: 480px) {
  .membership-hero {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-images .main {
    max-height: 250px;
  }
  .hero-text h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .btn-join {
    width: 100%;
    padding: 0.75rem;
  }

  .contact-section {
    margin-bottom: 1.5rem;
  }
  .contact-section p {
    font-size: clamp(1rem, 4vw, 1.1rem);
  }
}