/* ============================================
   Happy Valley Friends - Website Styles
   Font: Nunito | Design from Sketch HappyValley_v01
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #460055;
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Utilities --- */
.container {
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  -webkit-transition: -webkit-transform 0.1s, box-shadow 0.1s;
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-appearance: none;
}

.btn-play-nav {
  background: #00d0ff;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 10px 29px;
  border-radius: 10px;
  box-shadow: 0 5px 0 #3a3a5c;
  white-space: nowrap;
}

.btn-play-nav:hover {
  -webkit-transform: translateY(2px);
  transform: translateY(2px);
  box-shadow: 0 3px 0 #3a3a5c;
}

.btn-play-nav:active {
  -webkit-transform: translateY(5px);
  transform: translateY(5px);
  box-shadow: 0 0 0 #3a3a5c;
}

.btn-play-hero {
  background: #00d0ff;
  color: #fff;
  font-size: 36px;
  padding: 28px 72px;
  border-radius: 18px;
  font-weight: 900;
  box-shadow: 0 8px 0 #3a3a5c;
}

.btn-play-hero:hover {
  -webkit-transform: translateY(3px);
  transform: translateY(3px);
  box-shadow: 0 5px 0 #3a3a5c;
}

.btn-play-hero:active {
  -webkit-transform: translateY(8px);
  transform: translateY(8px);
  box-shadow: 0 0 0 #3a3a5c;
}

.btn-play-footer {
  background: #06a3ff;
  color: #fff;
  font-size: 22px;
  padding: 10px 29px;
  border-radius: 10px;
  margin-top: 16px;
}

/* --- Navigation --- */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2F003A;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  height: 72px;
  width: 100%;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0.25px 0 0 rgba(255,255,255,0.75)) drop-shadow(-0.25px 0 0 rgba(255,255,255,0.75)) drop-shadow(0 0.25px 0 rgba(255,255,255,0.75)) drop-shadow(0 -0.25px 0 rgba(255,255,255,0.75));
}

.nav-links {
  display: flex;
  gap: 40px;
  margin-right: 32px;
}

.nav-link {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  color: #92e8ff;
}

/* --- Hero Section --- */
.hero {
  background: url('../images/Banner_Image.jpg') center center / cover no-repeat;
  padding: 60px 24px;
  text-align: center;
  min-height: clamp(280px, 34vw, 490px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-inner {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 96px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 3px 4px #075380b3;
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 48px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 3px 4px #075380b3;
}

/* --- Join CTA Section (dark blue) --- */
.join-cta-section {
  background: #68007F;
  padding: 64px 24px;
  text-align: center;
}

.join-cta-section h2 {
  font-size: 54px;
  font-weight: 900;
  white-space: nowrap;
  margin-bottom: 16px;
  color: #fff;
}

.join-availability {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.join-cta-section .btn-play-hero {
  margin-bottom: 0;
}

/* --- Game Content Section (pink) --- */
.join-section {
  background: #fff;
  padding: 60px 24px;
  text-align: center;
}

.join-content p {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.join-content .join-highlight {
  font-size: 54px;
  font-weight: 900;
  margin-bottom: 16px;
}

.game-video {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.game-video video {
  width: 100%;
  display: block;
}

.game-showcase {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.game-screenshot {
  max-width: 282px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- Meet New Friends Section --- */
.friends-section {
  background: #fff;
  padding: 60px 24px 0;
  text-align: center;
  overflow: hidden;
}

.friends-section h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 32px;
  color: #1a1a2e;
}

.characters-strip {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.characters-strip img {
  width: 100%;
  display: block;
}

/* --- Welcome Section --- */
.welcome-section {
  background: #47b500;
  padding: 80px 24px;
  text-align: center;
}

.welcome-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

/* --- Feature Cards Section --- */
.features-section {
  background: #fff;
  padding: 40px 24px 80px;
}

.feature-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 350px;
}

.feature-image {
  max-width: 282px;
  margin-bottom: 24px;
}

.feature-image img {
  width: 100%;
  border-radius: 24px;
}

.feature-card h3 {
  font-size: 54px;
  font-weight: 900;
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 20px;
  line-height: 1.5;
  color: #333;
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1144px;
  margin: 0 auto;
}

.footer-links {
  font-size: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: #fff;
  font-weight: 400;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-dot {
  margin: 0 12px;
  color: #fff;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: #00beab;
  display: inline-block;
  padding: 8px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  margin-top: 24px;
  color: #fff;
}

/* ============================================
   FAQ Page
   ============================================ */
.faq-section {
  padding: 80px 24px 60px;
}

.faq-title {
  font-size: 54px;
  font-weight: 700;
  color: #480e80;
  text-align: center;
  margin-bottom: 60px;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category-title {
  font-size: 36px;
  font-weight: 700;
  color: #480e80;
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 2px solid rgba(6, 163, 255, 0.3);
  margin-bottom: 8px;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  color: #480e80;
  text-align: left;
  -webkit-appearance: none;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
}

.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #480e80;
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
}

.faq-chevron::before {
  left: 2px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.faq-chevron::after {
  right: 2px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.faq-item.open .faq-chevron::before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.faq-item.open .faq-chevron::after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.3s ease, padding 0.3s ease;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 16px;
  color: #480e80;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ============================================
   Legal Pages (Privacy Policy, Terms)
   ============================================ */
.legal-section {
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-date {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.legal-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
}

.legal-heading {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-subheading {
  font-size: 22px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============================================
   Say Hi / Contact Page
   ============================================ */
.sayhi-section {
  padding: 80px 24px 100px;
  text-align: center;
}

.sayhi-title {
  font-size: 54px;
  font-weight: 900;
  color: #480e80;
  margin-bottom: 12px;
}

.sayhi-subtitle {
  font-size: 24px;
  color: #480e80;
  margin-bottom: 48px;
}

.sayhi-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #480e80;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  padding: 14px 18px;
  border: 2px solid rgba(72, 14, 128, 0.25);
  border-radius: 12px;
  color: #460055;
  background: #fff;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00d0ff;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-send {
  font-size: 28px;
  padding: 20px 56px;
  margin-top: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-logo {
    display: none;
  }

  .nav-inner {
    justify-content: center;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 64px);
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.2;
    margin-bottom: 32px;
  }

  .btn-play-hero {
    font-size: clamp(18px, 3.5vw, 24px);
    padding: 14px 36px;
    border-radius: 12px;
  }

  .join-section {
    padding: 48px 20px;
  }

  .join-section h2,
  .friends-section h2,
  .faq-category-title {
    font-size: clamp(22px, 4vw, 28px);
  }

  .join-content p {
    font-size: clamp(14px, 2.5vw, 18px);
  }

  .join-content .join-highlight {
    font-size: 54px;
    line-height: 1.1;
  }

  .welcome-title {
    font-size: 54px;
    line-height: 1.2;
  }

  .feature-cards {
    flex-direction: column;
    align-items: center;
  }

  .feature-image {
    max-width: 250px;
  }

  .feature-card h3 {
    font-size: 54px;
  }

  .feature-card p {
    font-size: 18px;
    text-align: center;
  }

  .faq-title {
    font-size: clamp(28px, 5vw, 36px);
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 24px;
  }

  .btn-play-nav {
    font-size: 16px;
    padding: 8px 20px;
  }

  .game-showcase {
    flex-direction: column;
    gap: 24px;
  }

  .game-screenshot {
    max-width: clamp(200px, 50vw, 282px);
  }

  .game-buttons {
    max-width: 280px;
  }

  .game-btn {
    width: 75px;
  }

  .no-sub-inner {
    flex-direction: column;
    text-align: center;
  }

  .no-sub-image {
    max-width: 120px;
  }

  .no-sub-text h2 {
    font-size: 28px;
  }

  .footer-links {
    font-size: clamp(14px, 2.5vw, 18px);
  }

  .sayhi-title {
    font-size: clamp(36px, 7vw, 54px);
  }

  .sayhi-subtitle {
    font-size: clamp(16px, 3vw, 24px);
  }

  .btn-send {
    font-size: clamp(20px, 4vw, 28px);
    padding: 16px 40px;
  }
}

@media (max-width: 490px) {
  .nav-now {
    display: none;
  }

  .join-cta-section {
    padding: 36px 24px;
  }

  .join-cta-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .join-availability {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 16px;
  }

  .btn-play-hero {
    padding: 12px 28px;
  }

  .welcome-section {
    padding: 48px 16px;
  }

  .feature-card p {
    font-size: 16px;
  }
}
