/* ==========================================================
   TKK — TAEKWONDO KOPO KETAPANG
   Design System — style.css
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

/* ── Root Variables ── */
:root {
  --primary:      #1664C0;
  --primary-dark: #0f4d9a;
  --primary-light:#e8f1fc;
  --accent:       #C92429;
  --accent-dark:  #a01d21;
  --white:        #FFFFFF;
  --gray:         #9E9E9E;
  --gray-light:   #F5F5F5;
  --gray-border:  #E0E0E0;
  --dark:         #272727;
  --dark-80:      rgba(39,39,39,0.8);

  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-full:  9999px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --shadow-blue:  0 6px 24px rgba(22,100,192,0.28);

  --transition:   0.25s ease;
  --nav-height:   70px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Utility ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gray    { color: var(--gray); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(22,100,192,0.35); }
.btn-accent  { background: var(--accent);  color: var(--white); }
.btn-accent:hover  { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ── Section Title ── */
.section-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 14px;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-size: 1rem; color: var(--gray); max-width: 600px; line-height: 1.7;
}
.section-header { margin-bottom: 50px; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: all var(--transition);
  display: flex; flex-direction: column; width: 100%;
}
#navbar.scrolled {
  background: rgba(39,39,39,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
#navbar.scrolled #announcement { display: none; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-badge {
  width: 44px; height: 44px; background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--white);
  letter-spacing: 1px;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text strong { color: var(--white); font-size: 0.95rem; font-weight: 700; }
.nav-logo-text span   { color: var(--gray);  font-size: 0.7rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.85); padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Drawer ── */
.nav-drawer {
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--dark); padding: 24px;
  transform: translateY(-100%); transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999; border-bottom: 3px solid var(--primary);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.nav-drawer a {
  display: block; color: rgba(255,255,255,0.85); padding: 13px 0;
  font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--primary); }
.nav-drawer .btn { width: 100%; margin-top: 16px; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent  { background: #fde8e8; color: var(--accent); }
.badge-dark    { background: var(--dark); color: var(--white); }
.badge-gray    { background: var(--gray-light); color: var(--gray); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(39,39,39,0.92) 0%, rgba(26,42,74,0.85) 50%, rgba(15,30,58,0.95) 100%),
              url('../img/taekwondo_training.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(22,100,192,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,36,41,0.2) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 2; }
.hero-tag { color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white); line-height: 1.0;
  margin-bottom: 8px;
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300; margin-bottom: 20px;
}
.hero-desc { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 480px; margin-bottom: 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px;
}
.hero-stat {
  text-align: center; padding: 16px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}
.hero-stat .number { font-family: var(--font-display); font-size: 2.4rem; color: var(--white); line-height: 1; }
.hero-stat .label  { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ── Announcement Bar ── */
.announcement {
  background: var(--primary); color: var(--white);
  padding: 10px 0; font-size: 0.85rem; font-weight: 500;
  position: relative; z-index: 900;
}
.announcement-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.announcement-icon { color: #FFD700; }

/* ── News Card ── */
.news-card { border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); transition: all var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 200px; background: var(--gray-light); position: relative; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 0.75rem; color: var(--gray); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.news-card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--dark); }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.news-card-footer { padding: 0 20px 20px; display: flex; align-items: center; justify-content: space-between; }
.read-more { font-size: 0.82rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* ── Schedule Table ── */
.schedule-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-border); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule-header {
  background: var(--primary); color: var(--white);
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
}
.schedule-header h3 { font-size: 1rem; font-weight: 600; }
.schedule-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--gray-border);
  transition: background var(--transition);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: var(--gray-light); }
.schedule-day { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; min-width: 40px; }
.schedule-info { flex: 1; }
.schedule-info .name { font-weight: 600; font-size: 0.9rem; }
.schedule-info .time { font-size: 0.78rem; color: var(--gray); margin-top: 2px; }
.schedule-badge { font-size: 0.72rem; }

/* ── Achievement ── */
.achievement-card {
  background: linear-gradient(135deg, var(--dark), #1a2a4a);
  border-radius: var(--radius-md); padding: 28px;
  color: var(--white); position: relative; overflow: hidden;
}
.achievement-card::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(22,100,192,0.2); border-radius: 50%;
}
.achievement-number { font-family: var(--font-display); font-size: 3rem; color: #FFD700; line-height: 1; }
.achievement-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.achievement-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ── Footer ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; max-width: 280px; }
.footer-heading { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-item { display: flex; gap: 10px; font-size: 0.85rem; margin-bottom: 12px; }
.footer-contact-icon { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 0.9rem;
}
.footer-social-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all var(--transition); color: white; font-size: 1.5rem;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.65); }

/* ── Fade-in Animation ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }

/* ── Competition Event Card ── */
.event-card {
  display: flex; align-items: center; gap: 25px;
}
.event-date {
  background: var(--primary-light); color: var(--primary); padding: 15px; border-radius: 12px; text-align: center; min-width: 110px; border: 1px solid rgba(22, 100, 192, 0.2);
}
@media (max-width: 768px) {
  .event-card {
    flex-direction: column; align-items: flex-start; gap: 15px;
  }
  .event-date {
    min-width: 0; padding: 10px 20px; display: inline-block;
  }
}

/* ── Filter Tabs ── */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tab-btn {
  padding: 8px 20px;
  background: var(--gray-light);
  color: var(--gray);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 100, 192, 0.25);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .hero-actions { flex-direction: column; }
  
  /* ── Mobile Typography Normalization ── */
  h1, .page-title, [style*="font-size:3.5rem"], [style*="font-size: 3.5rem"], [style*="font-size:3rem"], [style*="font-size: 3rem"] {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  h2, .section-title, [style*="font-size:2.5rem"], [style*="font-size: 2.5rem"], [style*="font-size:2rem"], [style*="font-size: 2rem"] {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  h3, [style*="font-size:1.5rem"], [style*="font-size: 1.5rem"], [style*="font-size:1.8rem"], [style*="font-size: 1.8rem"] {
    font-size: 1.3rem !important;
  }
  p, li, [style*="font-size:1.1rem"], [style*="font-size: 1.1rem"] {
    font-size: 1rem !important;
  }
  h1, h2, h3, .section-title, .page-title {
    font-weight: 800 !important;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 8px; }
  .hero-stat .number { font-size: 1.8rem; }
}
/* ── Accordion FAQ ── */
.faq-details {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-details[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 24px 20px;
  color: var(--gray);
  line-height: 1.6;
}

