/* ═══════════════════════════════════════════════════
   KARATE KLUB ZAGREB — style.css
   Branding 2024: Zagreb Stone
   Antracit #2A2A2A · Terakota #C47A45 · Topla bijela #F8F6F3
═══════════════════════════════════════════════════ */

:root {
  --blue:       #2A2A2A;
  --blue-mid:   #C47A45;
  --blue-light: #FDF0E6;
  --red:        #C47A45;
  --red-dark:   #8B4E22;
  --gold:       #C47A45;
  --dark:       #1A1A1A;
  --gray:       #6B7280;
  --gray-light: #F8F6F3;
  --white:      #FFFFFF;
  --shadow:     0 4px 24px rgba(42,42,42,0.10);
  --shadow-md:  0 8px 40px rgba(42,42,42,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.65; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }
input, textarea, select, button { font-family: var(--font); font-size: 1rem; }

/* ─── Layout ────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--gray-light); }

/* ─── Section Headers ───────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--blue); margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 560px; margin: 0 auto; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,122,69,0.35); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-outline.dark { border-color: var(--blue); color: var(--blue); }
.btn-outline.dark:hover { background: var(--blue); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-portal {
  background: var(--gold); color: var(--dark);
  padding: 8px 18px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-portal:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }

/* ─── Navbar ────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(42,42,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,122,69,0.18);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 42px; width: auto; }
.brand-text { color: var(--white); font-size: 1.05rem; }
.brand-text strong { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 500;
  padding: 7px 13px; border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 60%, #3a3028 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/hero.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.90) 0%, rgba(42,42,42,0.45) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 24px; max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(196,122,69,0.18);
  color: rgba(255,255,255,0.95);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(196,122,69,0.5);
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-content .accent { color: var(--gold); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); overflow: hidden;
  width: fit-content;
}
.stat { padding: 16px 28px; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.stat span { font-size: 0.8rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.stat-sep { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }

/* ─── About ─────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--gray); margin-bottom: 20px; font-size: 1.02rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.value-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 20px; transition: all var(--transition);
}
.value-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.value-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.value-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.value-card p { font-size: 0.85rem; color: var(--gray); margin: 0; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-image img { width: 100%; height: 500px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--blue); color: var(--white);
  padding: 10px 16px; border-radius: 10px;
  border-left: 4px solid var(--blue-mid);
}
.about-badge strong { display: block; font-size: 1.1rem; font-weight: 800; }
.about-badge span { font-size: 0.75rem; opacity: 0.8; }

/* ─── Schedule ──────────────────────────────────── */
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.schedule-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
  border-top: 4px solid var(--blue-mid);
}
.schedule-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--gold); }
.schedule-day { font-size: 1.1rem; font-weight: 800; color: var(--blue); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.schedule-time { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.schedule-group { font-size: 0.88rem; color: var(--blue-mid); font-weight: 600; margin-bottom: 8px; }
.schedule-note { font-size: 0.82rem; color: var(--gray); }
.schedule-info { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.info-chip {
  background: var(--blue); color: var(--white);
  padding: 10px 20px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  border: 1px solid rgba(196,122,69,0.3);
}
.info-chip a { color: var(--gold); }

/* ─── Enrollment ────────────────────────────────── */
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.enroll-steps h3 { font-size: 1.35rem; font-weight: 700; color: var(--blue); margin-bottom: 28px; }
.step { display: flex; gap: 18px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--blue-mid); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.step strong { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.enroll-form-wrap {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.enroll-form-wrap h3 { font-size: 1.35rem; font-weight: 700; color: var(--blue); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px; font-size: 0.93rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(196,122,69,0.18);
}
.form-note { font-size: 0.8rem; color: var(--gray); margin-top: 10px; text-align: center; }
.form-success { text-align: center; padding: 32px; }
.success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.form-success h4 { font-size: 1.2rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.form-success p { color: var(--gray); font-size: 0.95rem; }

/* ─── Contact ───────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 18px; margin-bottom: 30px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.contact-item p { font-size: 0.93rem; color: var(--gray); margin: 0; }
.contact-item a { color: var(--blue-mid); font-weight: 500; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 300px; border: none; display: block; }
.map-link {
  display: block; background: var(--blue);
  color: var(--white); text-align: center;
  padding: 12px; font-size: 0.88rem; font-weight: 600;
}
.map-link:hover { background: var(--dark); color: var(--white); }

/* ─── Portal ────────────────────────────────────── */
.portal-section { background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 100%); }
.portal-section .section-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.portal-section .section-header h2 { color: var(--white); }
.portal-section .section-sub { color: rgba(255,255,255,0.7); }

/* Login */
.portal-login { display: flex; justify-content: center; }
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.login-icon { text-align: center; font-size: 2.5rem; margin-bottom: 16px; }
.login-card h3 { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 28px; }
.login-error { color: var(--red); font-size: 0.85rem; margin-bottom: 10px; min-height: 20px; }
.login-note { text-align: center; font-size: 0.82rem; color: var(--gray); margin-top: 16px; }

/* Dashboard */
.portal-dashboard { animation: fadeIn 0.4s ease; }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 24px; color: var(--white);
}
.dashboard-header h3 { font-size: 1.2rem; font-weight: 700; }
.dashboard-sub { font-size: 0.88rem; opacity: 0.7; margin-top: 4px; }
.dashboard-header .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.dashboard-header .btn-outline:hover { background: var(--white); color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dash-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.dash-card h4 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; margin-bottom: 16px;
}
.status-active { background: #C6EFCE; color: #276221; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #F3F4F6; font-size: 0.9rem; }
.status-row span { color: var(--gray); }
.payment-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pm-cell {
  aspect-ratio: 1;
  border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  cursor: default;
}
.pm-ok   { background: #C6EFCE; color: #276221; }
.pm-sent { background: #FFF2CC; color: #7E6000; }
.pm-nok  { background: #F3F4F6; color: var(--gray); }
.pm-pause{ background: #E5E7EB; color: #9CA3AF; }
.upcoming-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.upcoming-item:last-child { border-bottom: none; }
.up-day {
  background: var(--blue); color: var(--white);
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 9px; border-radius: 6px; flex-shrink: 0;
}
.up-info { font-size: 0.88rem; color: var(--dark); }
.notice-item { padding: 12px; border-radius: 8px; margin-bottom: 10px; font-size: 0.88rem; }
.notice-info { background: var(--blue-light); border-left: 3px solid var(--blue-mid); }
.notice-ok   { background: #C6EFCE; border-left: 3px solid #276221; }
.notice-item strong { display: block; font-weight: 700; margin-bottom: 2px; color: var(--dark); }
.notice-item span { color: var(--gray); }

/* ─── Footer ────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-logo { height: 48px; width: auto; }
.footer-brand strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.footer-brand p { font-size: 0.85rem; margin-bottom: 2px; }
.footer-brand a { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; }
.footer-copy p { margin-bottom: 4px; }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .enroll-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 340px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--dark); flex-direction: column;
    padding: 20px; gap: 4px;
    transform: translateY(-120%); opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: all; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
  .hero-stats { flex-direction: column; background: none; border: none; gap: 0; }
  .stat { padding: 8px 0; }
  .stat-sep { display: none; }
  .schedule-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .payment-months { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
  .hero-content h1 { font-size: 2.2rem; }
}
