/* Community Place — RHS Class of 1972 Hub
   Design System: Deep Blue + Cyan + Amber
   Font: DM Sans (Google Fonts) */

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(30, 58, 138);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

em {
  color: rgb(245, 158, 11);
  font-style: italic;
}

strong {
  font-weight: 700;
}

a {
  color: rgb(6, 182, 212);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: rgb(34, 211, 238);
  text-decoration: underline;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

nav > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-brand a {
  color: white;
}

.nav-brand a:hover {
  color: rgb(6, 182, 212);
  text-decoration: none;
}

.nav-label {
  background-color: rgb(245, 158, 11);
  color: rgb(30, 58, 138);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-group {
  position: relative;
}

.nav-group-title {
  color: rgb(6, 182, 212);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(30, 58, 138, 0.98);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  margin-top: 0.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-group:hover .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-dropdown a:hover {
  background-color: rgba(6, 182, 212, 0.1);
  text-decoration: none;
}

/* ===== SPACING ===== */
body {
  padding-top: 70px;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: rgb(6, 182, 212);
  color: rgb(30, 58, 138);
}

.btn-primary:hover {
  background-color: rgb(34, 211, 238);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: rgb(6, 182, 212);
  border: 2px solid rgb(6, 182, 212);
}

.btn-outline:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== HERO SECTION ===== */
#hero {
  text-align: center;
  padding: 4rem 2rem;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgb(6, 182, 212);
  object-fit: cover;
  margin: 0 auto 0.5rem;
}

.hero-avatar-label {
  font-size: 0.9rem;
  color: rgb(245, 158, 11);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.hero-welcome {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.hero-subtext {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto;
  line-height: 1.8;
}

.hero-cta {
  font-size: 1rem;
  margin: 1.5rem 0;
}

.hero-cta a {
  color: rgb(6, 182, 212);
  font-weight: 600;
  border-bottom: 2px solid rgb(6, 182, 212);
  padding-bottom: 0.25rem;
}

.hero-mission {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-mission em {
  color: rgb(245, 158, 11);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(245, 158, 11);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  color: rgb(6, 182, 212);
  font-weight: 600;
  border-bottom: 2px solid rgb(6, 182, 212);
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: rgb(34, 211, 238);
  text-decoration: none;
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== TIER CARDS ===== */
.tier-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.tier-card.featured {
  border-color: rgb(245, 158, 11);
  background: rgba(245, 158, 11, 0.05);
  transform: scale(1.05);
}

.tier-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(245, 158, 11);
  color: rgb(30, 58, 138);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(6, 182, 212);
  margin-bottom: 0.25rem;
}

.tier-price-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.tier-features {
  text-align: left;
  margin: 2rem 0;
  list-style: none;
}

.tier-features li {
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  position: relative;
  padding-left: 1.5rem;
}

.tier-features li:before {
  content: "✓";
  color: rgb(6, 182, 212);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-card .btn {
  margin-top: 1.5rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem auto;
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding: 2rem;
  text-align: center;
}

footer .nav-brand {
  justify-content: center;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

footer a {
  color: rgb(6, 182, 212);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
  nav > div {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-group {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    display: flex;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-welcome {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .tier-card.featured {
    transform: scale(1);
  }

  section {
    padding: 2rem 1rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .nav-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-welcome {
    font-size: 1.25rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .btn-group {
    gap: 0.5rem;
  }
}
