/* ============================================
   TTC COURSES — TEMPLATE CSS
   Technician Training Canada
   Inter font — clean, technical, modern
   ============================================ */

:root {
  --navy:        #1c2e3d;       /* Dark sidebar/header */
  --navy-dark:   #152433;       /* Deeper navy */
  --navy-mid:    #243a4d;       /* Slightly lighter navy for hover */
  --offwhite:    #f4f4ef;       /* Main content background */
  --white:       #ffffff;
  --charcoal:    #1a2b38;       /* Button colour */
  --text:        #1a2b38;       /* Main text */
  --text-mid:    #4a5568;       /* Body copy */
  --text-light:  #8fa8b8;       /* Muted text on dark */
  --border:      #e2e8f0;
  --header-height: 68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--offwhite); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.ttc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.ttc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ── LOGO ── */
.ttc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ttc-logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
}

.ttc-logo-name strong {
  font-weight: 700;
}

.ttc-logo-tagline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── NAV ── */
.ttc-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ttc-nav ul,
.ttc-nav .mod-list,
.ttc-nav nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
}

.ttc-nav ul li a,
.ttc-nav nav ul li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
}

.ttc-nav ul li a:hover,
.ttc-nav ul li.active a,
.ttc-nav ul li.current a {
  color: var(--charcoal);
  background: rgba(26,43,56,0.06);
}

/* ── ENROL BUTTON ── */
.ttc-enrol-btn {
  flex-shrink: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.ttc-enrol-btn:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

/* ── MOBILE TOGGLE ── */
.ttc-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.ttc-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MAIN CONTENT ── */
.ttc-main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 280px);
  background: var(--offwhite);
}

.ttc-main .item-page,
.ttc-main article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
}

.ttc-main h1, .ttc-main h2, .ttc-main h3 {
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.ttc-main p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-mid);
}

/* System messages */
.ttc-main .alert {
  max-width: 1200px;
  margin: 20px auto;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
}

.ttc-main .alert-message { background: #e8f4fd; border-left: 4px solid var(--navy); }
.ttc-main .alert-error   { background: #fde8e8; border-left: 4px solid #e53e3e; }

/* ── FOOTER ── */
.ttc-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 56px 32px 0;
}

.ttc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ttc-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  max-width: 300px;
}

.ttc-footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ttc-footer-col ul { list-style: none; }
.ttc-footer-col ul li { margin-bottom: 10px; }
.ttc-footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.ttc-footer-col ul li a:hover { color: var(--white); }

.ttc-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

/* ── UTILITY CLASSES (for page content) ── */
.ttc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.ttc-section       { padding: 80px 0; }
.ttc-section-light { background: var(--white); }
.ttc-section-dark  { background: var(--navy-dark); color: var(--white); }
.ttc-section-grey  { background: var(--offwhite); }

.ttc-btn-primary {
  display: inline-block;
  background: var(--charcoal);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}

.ttc-btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.ttc-btn-outline {
  display: inline-block;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  padding: 13px 34px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}

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

/* ── MOBILE ── */
@media (max-width: 768px) {
  .ttc-header-inner { padding: 0 20px; gap: 16px; }

  .ttc-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .ttc-nav.open { display: block; }
  .ttc-nav ul, .ttc-nav nav ul { flex-direction: column; gap: 4px; }
  .ttc-nav ul li a, .ttc-nav nav ul li a { display: block; padding: 12px 16px; }

  .ttc-enrol-btn { display: none; }
  .ttc-mobile-toggle { display: flex; }

  .ttc-logo-tagline { display: none; }
  .ttc-logo-name { font-size: 17px; }

  .ttc-footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .ttc-main .item-page,
  .ttc-main article { padding: 40px 20px; }
}
