/* ========================================
   KAWATO PARTY — Global Styles
   style.css
   ======================================== */

/* --- Google Fonts: Prompt --- */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Colors */
  --purple-dark:    #1a0533;
  --purple-main:    #3b0764;
  --purple-mid:     #6b21a8;
  --purple-light:   #a855f7;
  --purple-pale:    #f3e8ff;
  --gold:           #d4a843;
  --gold-light:     #f0c96a;
  --white:          #ffffff;
  --off-white:      #f8f5ff;
  --black:          #0d0d0d;
  --gray:           #6b7280;
  --gray-light:     #e5e7eb;

  /* Typography */
  --font:           'Prompt', sans-serif;

  /* Font Weights */
  --fw-thin:        200;
  --fw-light:       300;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;
  --fw-extrabold:   800;
  --fw-black:       900;

  /* Spacing */
  --nav-height:     70px;

  /* Transitions */
  --transition:     all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(107, 33, 168, 0.12);
  --shadow-md:      0 8px 24px rgba(107, 33, 168, 0.2);
  --shadow-lg:      0 16px 48px rgba(107, 33, 168, 0.3);
  --shadow-gold:    0 4px 20px rgba(212, 168, 67, 0.3);

  /* Border Radius */
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      40px;
  --radius-full:    9999px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ========================================
   NAVBAR
   ======================================== */
/* ========================================
   PURE WHITE NAVBAR
======================================== */

.navbar {

  background:
    rgba(255,255,255,0.95);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  border-bottom:
    1px solid rgba(255,255,255,0.7);

  box-shadow:
    0 8px 30px rgba(0,0,0,0.04);

}

/* SCROLL */

.navbar.scrolled {

  background:
    rgba(255,255,255,0.98);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.06);

}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-text span {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--purple-mid);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold) !important;
  border: 1px solid rgba(212, 168, 67, 0.4);
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--purple-light) !important;
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-gold);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple-mid);
  color: var(--white);
  border: 1.5px solid transparent;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-white {
  background: var(--white);
  color: var(--purple-main);
  border: 1.5px solid transparent;
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   SECTION LABELS
   ======================================== */
.section-number {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-number::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: var(--fw-light);
  color: var(--gray);
  line-height: 1.7;
  max-width: 560px;
}

/* ========================================
   GOLD DIVIDER
   ======================================== */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px 0;
  border-radius: var(--radius-full);
}

.gold-divider.center {
  margin: 16px auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--purple-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Footer Slogan Section */
.footer-slogan {
  padding: 80px 24px;
  text-align: center;
  position: relative;
}

.footer-slogan-sub {
  font-size: 0.9rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.footer-slogan-main {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  margin-bottom: 8px;
}

.footer-slogan-main .number {
  color: var(--gold);
  font-size: 1.3em;
}

.footer-slogan-main .party-name {
  color: var(--purple-light);
}

.footer-slogan-desc {
  font-size: 0.95rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Social Media Icons */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 168, 67, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}
.social-links i {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.4);
}

.footer-bottom span {
  color: var(--gold);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-purple { color: var(--purple-light); }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray); }

.bg-purple   { background-color: var(--purple-dark); }
.bg-white    { background-color: var(--white); }
.bg-pale     { background-color: var(--off-white); }

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--purple-dark);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .footer-slogan {
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }
}

/* ========================================
   WHITE GLASS NAVBAR
======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);

  background: rgba(255,255,255,0.88);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(91,36,122,0.08);

  z-index: 1000;

  transition: var(--transition);

  box-shadow:
    0 8px 30px rgba(91,36,122,0.06);
}

/* NAVBAR SCROLL */

.navbar.scrolled {

  background:
    rgba(255,255,255,0.95);

  box-shadow:
    0 10px 40px rgba(91,36,122,0.10);

}

/* ========================================
   LOGO
======================================== */

.nav-logo-text {

  color:
    #3A1466;

}

.nav-logo-text span {

  color:
    #7B35AA;

}

/* ========================================
   NAV LINKS
======================================== */

.nav-links a {

  color:
    rgba(58,20,102,0.72);

}

.nav-links a:hover,
.nav-links a.active {

  color:
    #5B247A;

}

/* UNDERLINE */

.nav-links a::after {

  background:
    linear-gradient(
      90deg,
      #5B247A,
      #B66DFF
    );

  height: 2px;

  border-radius: 999px;

}

/* ========================================
   CTA BUTTON
======================================== */

.nav-cta {

  background:
    linear-gradient(
      135deg,
      #5B247A,
      #7B35AA
    );

  color:
    #fff !important;

  border:
    none;

  box-shadow:
    0 10px 25px rgba(91,36,122,0.18);

}

.nav-cta:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 14px 35px rgba(91,36,122,0.24);

}

/* ========================================
   MOBILE MENU
======================================== */

.nav-toggle span {

  background:
    #5B247A;

}

@media (max-width: 768px) {

  .nav-links {

    background:
      rgba(255,255,255,0.97);

    backdrop-filter:
      blur(20px);

  }

}

/* FIX SCROLL BUG ON IPAD */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* กันภาพ/section กระตุก */
section,
div,
.card,
.hero,
.members-section {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ถ้ามี container ใหญ่ */
.container {
  overflow: visible;
}


