/* ============================================
   CHOW HOON GOSHIN JU JITSU — Main Stylesheet
   Sleek Black & Red Modern Theme
   ============================================ */

:root {
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --mid-gray: #2a2a2a;
  --light-gray: #888888;
  --off-white: #f0f0f0;
  --white: #ffffff;
  --red: #cc0000;
  --red-bright: #ff2222;
  --red-dark: #8b0000;
  --red-glow: rgba(204, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { font-size: 1.05rem; }

a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--white); }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--red-dark);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo-circle {
  height: 44px !important;
  width: auto !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--off-white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red-bright);
  border-bottom-color: var(--red);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-gray);
  border: 1px solid var(--red-dark);
  border-radius: 0 0 6px 6px;
  list-style: none;
  min-width: 140px;
  padding: 0.4rem 0;
  z-index: 999;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--light-gray);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  border-radius: 0;
}

.nav-dropdown-menu li a:hover {
  color: var(--red-bright);
  background: rgba(204,0,0,0.08);
}

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: 0.3s;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at 50% 60%, rgba(139, 0, 0, 0.25) 0%, transparent 60%),
              linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cc0000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-logo {
  width: 200px;
  max-width: 40vw;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px var(--red-glow));
  position: relative;
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 span {
  color: var(--red);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
}

.hero-tagline {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--off-white);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-search-line {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 1.25rem auto 0;
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---- Section Commons ---- */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-dark {
  background: var(--dark-gray);
}

.section-red-accent {
  background: linear-gradient(135deg, var(--black) 0%, #150000 100%);
  position: relative;
}

.section-red-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-header h2 span {
  color: var(--red);
}

.section-header p {
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- History Section ---- */
.history-grid,
.history-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.history-section {
  margin-bottom: 3rem;
}

.history-section-reverse {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.history-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-text p {
  margin-bottom: 0.75rem;
  color: var(--off-white);
}

.history-text p:last-child {
  margin-bottom: 0;
}

.history-text .highlight {
  color: var(--red);
  font-weight: 600;
}

.okazaki-img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  border: 2px solid var(--red-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.history-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--light-gray);
  line-height: 1.4;
}

.history-caption em {
  color: var(--red);
  font-style: normal;
}

/* ---- Styles Section ---- */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

.styles-grid .style-card {
  grid-column: span 2;
}

.styles-grid .style-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.styles-grid .style-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.style-card {
  background: var(--mid-gray);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.style-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.style-card-body {
  padding: 1.2rem;
}

.style-card-body h3 {
  color: var(--red);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.style-card-body p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* ---- Instructors ---- */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.instructor-card {
  background: var(--mid-gray);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

.instructor-card-split {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
}

.instructor-card-split .instructor-body {
  padding: 0;
  flex: 1;
}

.instructor-photo-left {
  width: 180px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.instructor-card .chowhoon-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}

.instructor-photo {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: var(--mid-gray);
  margin: 0 auto;
}

.instructor-body {
  padding: 1.5rem;
}

.instructor-body h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.instructor-title {
  color: var(--red);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.instructor-body p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* ---- Classes ---- */
.classes-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.class-block {
  background: var(--mid-gray);
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.8rem;
  border-radius: 0 8px 8px 0;
}

.class-block h3 {
  color: var(--red);
  margin-bottom: 0.25rem;
}

.class-level {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.class-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--off-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.class-time::before {
  content: '🕐';
}

.class-days {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.class-info-box {
  background: rgba(204, 0, 0, 0.08);
  border: 1px solid var(--red-dark);
  padding: 1.5rem;
  border-radius: 8px;
}

.class-info-box h4 {
  color: var(--red);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.class-info-box p {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* ---- Register ---- */
.register-section {
  text-align: center;
}

.register-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--light-gray);
}

.register-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.register-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--red-bright) !important;
  border-bottom: 1px solid var(--red-dark);
  padding-bottom: 2px;
}

.register-link:hover {
  color: var(--white) !important;
  border-color: var(--white);
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--red-dark);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-logo-circle {
  height: 60px;
  width: auto;
  border-radius: 50%;
  background: #ffffff;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.footer p {
  font-size: 0.78rem;
  color: var(--light-gray);
  margin-bottom: 0.1rem;
  line-height: 1.25;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #222;
  font-size: 0.72rem;
  color: #555;
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Disclaimer Banner ---- */
.disclaimer-banner {
  background: rgba(204, 0, 0, 0.12);
  border-bottom: 1px solid var(--red-dark);
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--light-gray);
  line-height: 1.4;
}

.disclaimer-banner strong {
  color: var(--red);
}

/* ---- History Section ---- */
.history-section {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.history-section-reverse {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.history-section .history-image,
.history-section-reverse .history-image {
  margin: 0;
}

.history-intro {
  margin-bottom: 0.75rem;
}

.history-text p {
  margin-bottom: 0.75rem;
  color: var(--off-white);
  font-size: 1rem;
  line-height: 1.58;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.history-text .highlight {
  color: var(--red);
  font-weight: 600;
}

.history-text .highlight em,
.history-text em {
  font-style: normal;
  color: var(--red-bright);
}

.history-image {
  text-align: center;
}

.history-image .okazaki-img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 2px solid var(--red-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

@media (max-width: 980px) {
  .styles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .styles-grid .style-card,
  .styles-grid .style-card:nth-child(4),
  .styles-grid .style-card:nth-child(5) {
    grid-column: auto;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark-gray);
    border-bottom: 1px solid var(--red-dark);
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    border-top: 1px solid #2a2a2a;
    border-radius: 0;
    padding-left: 1.5rem;
    background: transparent;
  }

  .nav-links.open .nav-dropdown-menu li a {
    color: #888888;
    padding: 0.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-logo {
    width: 150px;
  }

  .history-grid,
  .styles-grid,
  .classes-wrapper {
    grid-template-columns: 1fr;
  }

  .history-section,
  .history-section-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .history-section-reverse .history-image {
    order: -1;
  }

  .nav-dropdown-menu {
    position: static;
    border-radius: 0;
    border-left: 2px solid var(--red-dark);
    border-right: none;
    border-bottom: none;
    padding-left: 1rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .instructor-card-split {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .instructor-card-split .instructor-body {
    padding: 0;
    text-align: center;
  }

  .instructor-photo-left {
    width: 140px;
  }
}
