/* ============================================================
   DM ACADEMY — BASE STYLES
   Shared across all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --clr-dark:    #262626;
  --clr-darker:  #1a1a1a;
  --clr-darkest: #111111;
  --clr-yellow:  #FBE41E;
  --clr-yellow-dim: #d4be18;
  --clr-light:   #EFEDE9;
  --clr-light-muted: #b8b4ae;
  --clr-mid:     #3a3a3a;
  --clr-border:  #333333;

  --font-headline: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-accent:   'DM Serif Display', Georgia, serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;

  --shadow-glow: 0 0 30px rgba(251, 228, 30, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.6);

  --nav-height: 72px;
  --max-width:  1200px;
  --transition: 0.22s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-dark);
  color: var(--clr-light);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ── Typography Scale ──────────────────────────────────────── */
.t-display {
  font-family: var(--font-headline);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.t-headline {
  font-family: var(--font-headline);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.t-accent {
  font-family: var(--font-accent);
  line-height: 1.3;
}

.t-body {
  font-family: var(--font-body);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — circular badge style */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-yellow);
  border: 2px solid var(--clr-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.logo-badge__initials {
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--clr-dark);
  line-height: 1;
  letter-spacing: 0.03em;
}

.logo-badge__est {
  font-family: var(--font-body);
  font-size: 6px;
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text__name {
  font-family: var(--font-headline);
  font-size: 20px;
  color: var(--clr-light);
  letter-spacing: 0.05em;
}

.logo-text__sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--clr-light-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav right */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-light-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav__link:hover {
  color: var(--clr-light);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-yellow);
  color: var(--clr-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__cta:hover {
  background: #e8d41c;
  transform: translateY(-1px);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--clr-yellow);
  color: var(--clr-dark);
  font-size: 15px;
  padding: 16px 36px;
}

.btn--primary:hover {
  background: #e8d41c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--clr-light);
  font-size: 14px;
  padding: 14px 28px;
  border: 1px solid var(--clr-border);
}

.btn--outline:hover {
  border-color: var(--clr-yellow);
  color: var(--clr-yellow);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-light-muted);
  font-size: 14px;
  padding: 12px 20px;
}

.btn--ghost:hover {
  color: var(--clr-light);
}

.btn--sm {
  font-size: 13px;
  padding: 10px 20px;
}

.btn--lg {
  font-size: 17px;
  padding: 20px 48px;
}

.btn--full {
  width: 100%;
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Form Elements ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-light-muted);
}

.form-input {
  background: var(--clr-darker);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-light);
  font-size: 15px;
  padding: 14px 16px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--clr-yellow);
}

.form-input::placeholder {
  color: var(--clr-border);
}

.form-input--error {
  border-color: #e55;
}

.form-hint {
  font-size: 12px;
  color: var(--clr-light-muted);
}

.form-error {
  font-size: 13px;
  color: #ff6b6b;
  font-weight: 500;
}

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert--error {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.3);
  color: #ff8080;
}

.alert--success {
  background: rgba(251, 228, 30, 0.08);
  border: 1px solid rgba(251, 228, 30, 0.25);
  color: var(--clr-yellow);
}

.alert--info {
  background: rgba(100, 149, 237, 0.1);
  border: 1px solid rgba(100, 149, 237, 0.3);
  color: #8ab4f8;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--clr-darkest);
  border-top: 1px solid var(--clr-border);
  padding: 28px 24px;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__brand {
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--clr-light);
}

.footer__brand span {
  color: var(--clr-yellow);
}

.footer__copy {
  font-size: 12px;
  color: var(--clr-light-muted);
  letter-spacing: 0.04em;
}

.footer__copy a {
  color: var(--clr-yellow);
  transition: opacity var(--transition);
}

.footer__copy a:hover {
  opacity: 0.7;
}

/* ── Utility Classes ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 24px;
}

.section--sm {
  padding: 60px 24px;
}

.section--lg {
  padding: 140px 24px;
}

.yellow { color: var(--clr-yellow); }
.muted  { color: var(--clr-light-muted); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--clr-yellow);
  border-radius: 2px;
}

.divider--center {
  margin: 0 auto;
}

/* Page transition */
body {
  opacity: 0;
  animation: fadeIn 0.35s ease forwards;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section    { padding: 64px 20px; }
  .section--sm { padding: 40px 20px; }
  .section--lg { padding: 80px 20px; }

  .logo-text { display: none; }

  .nav__cta {
    padding: 9px 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .btn--primary { padding: 14px 24px; font-size: 14px; }
  .btn--lg      { padding: 16px 32px; font-size: 15px; }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-yellow);
}
