/* Iron Guardians MC - Modern Redesign */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

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

:root {
  --red:        #b91c1c;
  --red-dark:   #7f1d1d;
  --red-light:  #ef4444;
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --dark3:      #222222;
  --border:     #2a2a2a;
  --text:       #e5e5e5;
  --muted:      #9ca3af;
  --white:      #ffffff;
  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-bold:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── NAVBAR ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  box-shadow: 0 2px 20px rgba(185,28,28,0.25);
}

#navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(185,28,28,0.45);
}

#navbar .brand span {
  color: var(--red-light);
}

#navbar .brand .brand-patch {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--red-dark);
  flex-shrink: 0;
}

#nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

#nav-links li a {
  display: block;
  padding: 0 1rem;
  line-height: 62px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

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

#nav-links li a.login-btn {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  margin: auto 0;
  line-height: normal;
  padding: 0.45rem 1rem;
  margin-left: 0.5rem;
  border-bottom: none;
}

#nav-links li a.login-btn:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* Hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO BANNER ── */
#hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, #1c0404 50%, var(--dark) 100%);
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185,28,28,0.12) 0%, transparent 70%);
  pointer-events: none;
}

#hero .hero-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(185,28,28,0.5));
  margin-bottom: 1.5rem;
  border-radius: 50%;
}

#hero h1 {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(185,28,28,0.5), 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1;
}

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

#hero .tagline {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── PAGE LAYOUT ── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-section {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
}

.sidebar-section ul {
  list-style: none;
  padding: 0.5rem 0;
}

.sidebar-section ul li a {
  display: block;
  padding: 0.5rem 1rem 0.5rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, padding-left 0.2s;
  border-left: 2px solid transparent;
}

.sidebar-section ul li a:hover {
  color: var(--red-light);
  padding-left: 1.5rem;
  border-left-color: var(--red-light);
}

/* ── MAIN CONTENT ── */
.main-content {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  min-height: 400px;
}

.main-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.main-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--red);
}

.main-content p {
  color: var(--text);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.main-content a {
  color: var(--red-light);
  text-decoration: none;
  transition: color 0.2s;
}

.main-content a:hover { color: var(--red-light); text-decoration: underline; }

.main-content img.pic {
  float: right;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  max-width: 200px;
}

.main-content ul {
  list-style: none;
  margin-bottom: 1rem;
}

.main-content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.main-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ── CALLOUT BOXES ── */
.callout {
  background: rgba(185,28,28,0.08);
  border: 1px solid rgba(185,28,28,0.3);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.callout strong { color: var(--red-light); }

/* ── BULLET FACTS (About page) ── */
.fact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--dark3);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.fact-item .fact-icon {
  color: var(--red-light);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── CHAPTER CARDS ── */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.chapter-card {
  background: var(--dark3);
  border: 2px solid var(--red-dark);
  border-radius: 4px;
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  /* patch-like corner notches */
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}

.chapter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(185,28,28,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.chapter-card:hover {
  border-color: var(--red-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(185,28,28,0.25);
}

.chapter-card .chapter-icon {
  font-size: 2.4rem;
  color: var(--red);
  margin-bottom: 0.85rem;
  display: block;
  filter: drop-shadow(0 0 6px rgba(185,28,28,0.4));
}

.chapter-card h3 {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.chapter-card .chapter-state {
  font-size: 0.72rem;
  color: var(--red-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.chapter-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ── TESTIMONIAL CARDS ── */
.testimonial-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 1.25rem;
  font-size: 4rem;
  color: var(--red);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.testimonial-card .t-author {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  color: var(--red-light);
  font-weight: 600;
}

/* ── IN MEMORY ── */
.memory-card {
  text-align: center;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.memory-card img {
  border-radius: var(--radius);
  border: 3px solid var(--red-dark);
  max-width: 200px;
  margin: 1rem auto;
  display: block;
  filter: grayscale(20%);
}

.memory-card h3 {
  font-size: 1.4rem;
  color: var(--red-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.memory-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.memory-card .rip {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ── CONTACT ── */
.contact-box {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-box .email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
  margin-top: 1.5rem;
}

.contact-box .email-link:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* ── PARENTS PAGE ── */
.warning-signs {
  columns: 2;
  column-gap: 1.5rem;
  margin: 1rem 0;
}

.warning-signs li {
  break-inside: avoid;
}

.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.tip-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--dark3);
  border-radius: var(--radius);
  gap: 0.25rem;
}

.tip-row p { margin: 0; font-size: 0.9rem; }

/* ── FOOTER ── */
#footer {
  background: var(--dark);
  border-top: 2px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

#footer p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--red-light);
  border-color: var(--red);
}

/* ── DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .sidebar {
    position: static;
  }

  #nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
  }

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

  #nav-links li a {
    line-height: normal;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin: 0;
  }

  #nav-links li a:hover,
  #nav-links li a.active {
    border-left-color: var(--red-light);
    border-bottom: none;
  }

  #nav-links li a.login-btn {
    margin: 0.5rem 1.5rem;
    text-align: center;
    line-height: normal;
    padding: 0.6rem 1rem;
  }

  #nav-toggle { display: flex; }

  .warning-signs { columns: 1; }

  .main-content { padding: 1.5rem; }

  .main-content img.pic {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 100%;
  }
}
