/* ——— ROOT ——— */
:root {
  --primary: #FF0000;
  --primary-dark: #B30000;
  --accent: #FF4D4D;
  --bg-light: #FFF5F5;
  --text-main: #222;
  --text-muted: #555;
  --border: #FFCCCC;
  --white: #fff;
  --max-width: 1100px;
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.08);
  --radius: 4px;
  --transition: 0.2s ease;
}

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

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text-main);
  background: #fff;
}

/* ——— LAYOUT ——— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ——— TOP BAR ——— */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 1rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 2px;
  cursor: pointer;
}

/* ——— HEADER ——— */
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

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

.logo img {
  border-radius: 50%;
}

/* ——— NAV ——— */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--primary);
}

/* ——— HERO (Toronto images) ——— */
.hero {
  position: relative;
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.hero-slide {
  display: none;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 5rem 0;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,0,0.55), rgba(179,0,0,0.55));
}

.hero-slide.active {
  display: block;
}

.primary-btn {
  margin-top: 1rem;
  background: var(--accent);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ——— LMHI INTRO ——— */
.lmhi-intro {
  padding: 3rem 0;
  text-align: center;
}

.chapter-welcome {
  background: #f9a825;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.chapter-welcome p {
  margin: 0;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.lmhi-title {
  font-size: 2rem;
  font-weight: 700;
  color: #004b8d;
  margin: 0.5rem 0 1rem;
}

.lmhi-sub {
  font-style: italic;
  color: #444;
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
}

.lmhi-body {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #333;
  line-height: 1.6;
}

/* ——— STATS ——— */
.stats {
  background: var(--bg-light);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* ——— INTERACTIVE LMHI SECTION ——— */
.lmhi-info {
  padding: 3rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

/* Left menu */
.info-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 2px solid #eee;
}

.info-menu li {
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: 0.2s ease;
}

.info-menu li:hover {
  background: #f5f5f5;
}

.info-menu li.active {
  border-left-color: var(--primary);
  background: #ffecec;
  font-weight: 700;
}

/* Right content panel */
.info-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: stretch;
}

/* Scrollable text container */
.info-text-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Text styling */
.info-content h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.info-content p {
  line-height: 1.6;
  color: #333;
}

/* Image styling */
.info-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.info-image img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ——— FADE ANIMATION ——— */
.fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeLMHI 0.35s ease forwards;
}

@keyframes fadeLMHI {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive LMHI */
@media (max-width: 900px) {
  .info-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-menu {
    border-right: none;
    border-bottom: 2px solid #eee;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .info-menu li {
    flex-shrink: 0;
    padding: 0.8rem 1rem;
  }

  .info-text-scroll {
    max-height: 380px;
  }
}

/* ——— ANNOUNCEMENTS ——— */
.ticker {
  margin-top: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
}

.ticker-inner span {
  padding: 0.5rem 1.5rem;
  display: inline-block;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ——— CONTENT ——— */
.content-section {
  padding: 2.5rem 0;
}

.content-section.alt {
  background: var(--bg-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ——— FOOTER ——— */
.footer {
  background: #111827;
  color: #e5e7eb;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 0.75rem;
  text-align: center;
}

.footer-bottom::before {
  content: "🍁 ";
  color: var(--accent);
}

/* ——— RESPONSIVE NAV ——— */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 100%;
    box-shadow: var(--shadow-soft);
  }
  .nav ul.open { display: flex; }
}

/* ——— CONTACT PAGE ——— */
.contact-page {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form h2,
.contact-info h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-item i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— ANIMATIONS ——— */
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.content-section h2 {
  animation: pop 0.4s ease-out;
}
