:root {
  --nav-height: 90px;
  --brand-blue: #f2e4d5;
  --brand-dark: #1d1b1a;
  --accent: #d29f71;
  --white: #ffffff;
  --menu-card-bg: #fefaf6;
  --menu-card-hover: #f2e4d5;
  --divider: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to bottom, #fefaf6, #f2e4d5);
  color: var(--brand-dark);
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--nav-height);
  background: var(--brand-blue);
  z-index: 1000;
  padding: 0 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo-link {
  display: flex;
  align-items: center;
  height: 75px;
}

.logo-img {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  object-fit: contain;
}

.navbar-left {
  flex: 1;
}

.navbar-right {
  flex: 1;
}

.navbar-center {
  flex: 2;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.navbar-center li {
  display: inline-block;
}

.navbar-center a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border 0.2s;
  padding: 5px 6px 3px 6px;
  min-height: 32px;
  display: inline-block;
  letter-spacing: 0.01em;
}

.navbar-center a:hover,
.navbar-center a.active {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
}

/* === DROPDOWN MENU (INDEX STYLE) === */
.more-dropdown {
  position: relative;
  display: inline-block;
}

.more-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--brand-blue);
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.10);
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  padding: 0.5rem 0;
  white-space: nowrap;
  min-width: max-content;
  text-align: center;
}

.more-dropdown:hover .dropdown-content,
.more-dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  color: var(--brand-dark);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  transition: background 0.16s;
}

.dropdown-content a:hover {
  background: var(--menu-card-hover);
  color: var(--accent);
  border-radius: 0.5rem;
}

/* === HAMBURGER MENU (MOBILE) === */
.navbar-mobile-menu {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2.8rem;
  padding: 18px 20px 18px 18px;
  margin-right: 8px;
  background: none;
  border: none;
  outline: none;
  color: var(--brand-dark);
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.13s, color 0.13s;
}

.hamburger:active,
.hamburger:focus {
  background: var(--menu-card-hover);
  color: var(--accent);
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  background: var(--brand-blue);
  position: absolute;
  top: var(--nav-height);
  right: 0;
  width: auto; /* ✅ shrink-wrap like index page */
  white-space: nowrap; /* ✅ prevent text wrapping */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1200;
  border-top: 2px solid var(--accent);
  padding: 0.5rem 0 1rem 0;
  animation: fadeInDown 0.24s;
}

.mobile-nav-links a {
  padding: 1.1rem 1.7rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.11rem;
  border-bottom: 1px solid #e2d3c2;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap; /* ✅ Add this line to prevent line breaks */
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background: var(--menu-card-hover);
  color: var(--accent);
  border-radius: 12px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 950px) {
  .navbar {
    padding: 0 2vw;
    justify-content: space-between;
  }

  .navbar-left {
    display: flex !important;
    align-items: center;
    z-index: 1500;
  }

  .logo-link {
    margin-left: 12px;
  }

  .navbar-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: var(--nav-height);
    position: relative;
    flex: 1;
    z-index: 1300;
  }

  .navbar-center,
  .navbar-right {
    display: none !important;
  }

  .hamburger {
    display: block;
  }
}

@media (min-width: 951px) {
  .navbar-mobile-menu {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }
}

/* === MAIN CONTENT === */
main {
  background: transparent;
  padding-top: var(--nav-height);
  min-height: 100vh;
  width: 100%;
}

.crowdfund-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem 4.5rem 1rem;
  position: relative;
}

.crowdfund-section h2 {
  text-align: center;
  color: var(--brand-dark);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.crowdfund-subtext {
  color: var(--accent);
  text-align: center;
  font-size: 1.18rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* === TIER GRID === */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.1rem 2.4rem;
  justify-items: center;
  align-items: stretch;
}

.tier-card {
  position: relative;
  border-radius: 2.3rem;
  padding: 2.4rem 1.4rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid var(--divider);
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 290px;
  min-height: 330px;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 8px 36px 0 rgba(210,159,113,0.09), 0 1.5px 10px 0 #1d1b1a0a;
  animation: fadeInUp 0.7s both;
}

.tier-card:nth-child(1) { background: #fff8f2; animation-delay: 0s; }
.tier-card:nth-child(2) { background: #fff5ec; animation-delay: 0.1s; }
.tier-card:nth-child(3) { background: #fff1e6; animation-delay: 0.2s; }
.tier-card:nth-child(4) { background: #fff7ee; animation-delay: 0.3s; }
.tier-card:nth-child(5) { background: #fef3e3; animation-delay: 0.4s; }

.tier-card.tier-bottom:nth-child(4) { grid-column: 2 / 3; }
.tier-card.tier-bottom:nth-child(5) { grid-column: 3 / 4; }

.tier-card:hover {
  box-shadow: 0 12px 44px #d29f719c, 0 6px 22px #1d1b1a22;
  transform: translateY(-3px) scale(1.025);
  border: 2.2px solid var(--accent);
}

.tier-num {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 60% 40%, #efd3b2 45%, #d29f71 100%);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 2.1rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 16px #d29f7164, 0 1px 4px #fff8;
  border: 2.5px solid #fff4e3;
  transition: box-shadow 0.17s;
}

.tier-card:hover .tier-num {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tier-card h3 {
  color: var(--brand-dark);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0.4rem 0 1rem 0;
  text-align: center;
}

.tier-card ul {
  padding-left: 1.3em;
  margin: 0;
  line-height: 1.6;
  color: var(--brand-dark);
  font-size: 1.01rem;
  text-align: left;
  font-weight: 400;
}

/* === DISCLAIMER === */
.disclaimer {
  font-size: 0.94rem;
  color: #4e453f;
  background: #fefaf6;
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  max-width: 960px;
  margin: 1.5rem auto 2.2rem auto;
  line-height: 1.7;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.disclaimer strong {
  color: var(--brand-dark);
}

/* === FOOTER === */
footer {
  background: var(--brand-blue);
  color: var(--brand-dark);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-top: 2.5rem;
  box-shadow: 0 -4px 16px 0 #d29f7132;
}

.footer-content p {
  margin: 0.3rem 0;
  line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3, p, .about-summary, .gallery-card p, .video-caption {
  word-break: break-word;
  hyphens: auto;
}

/* === RESPONSIVE GRID === */
@media (max-width: 1100px) {
  .tiers-grid {
    gap: 1.3rem 1.3rem;
  }
  .tier-card {
    min-width: 220px;
  }
}

@media (max-width: 900px) {
  .crowdfund-section {
    padding: 2.4rem 0.5rem 3.2rem 0.5rem;
  }
  .tiers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.5rem;
  }
  .tier-card {
    width: 95%;
    margin: 0 auto;
  }
  .tier-card:nth-child(5) {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 370px;
  }
}

@media (max-width: 600px) {
  .crowdfund-section {
    padding: 1.3rem 0.2rem 1.6rem 0.2rem;
  }
  .tiers-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    width: 100%;
  }
  .tier-card {
    width: 94vw;
    margin: 0 auto;
  }
  .tier-num {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
  }
  .disclaimer {
  font-size: 0.84rem;
  padding: 0.9rem 0.9rem;
  line-height: 1.5;
  margin: 1rem 0.5rem 1.8rem 0.5rem;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
}

/* === ANIMATIONS === */
.fade-in-up {
  animation: fadeInUp 0.7s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
