/* ============================================
   HOUSEKEEPING INSTITUTE — TEMPLATE CSS
   Raleway + Source Sans 3
   ============================================ */

:root {
  --primary: #1a3c5e;        /* Deep professional blue */
  --primary-dark: #102840;
  --accent: #e8873a;         /* Warm orange — career/energy */
  --accent-hover: #d4742a;
  --light: #f8f9fb;
  --white: #ffffff;
  --text: #2d3748;
  --text-mid: #5a6a7e;
  --text-light: #8896a7;
  --border: #e2e8f0;
  --header-height: 70px;
}

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

/* ── HEADER ── */
.hki-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--primary-dark);
  z-index: 1000;
  border-bottom: 2px solid var(--accent);
}

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

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

.hki-logo-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-size: 15px; font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.hki-logo-text {
  display: flex;
  flex-direction: column;
}

.hki-logo-name {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hki-logo-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* Override Joomla module output */
.hki-nav ul,
.hki-nav .mod-list,
.hki-nav nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0; padding: 0;
}

.hki-nav ul li a,
.hki-nav nav ul li a {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}

.hki-nav ul li a:hover,
.hki-nav ul li.active a,
.hki-nav ul li.current a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── ENROL BUTTON ── */
.hki-enrol-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

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

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

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

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

/* Joomla default article styling inside our template */
.hki-main .item-page,
.hki-main article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
}

.hki-main h1, .hki-main h2, .hki-main h3 {
  font-family: 'Raleway', sans-serif;
}

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

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

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

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

.hki-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);
}

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

.hki-footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hki-footer-col ul {
  list-style: none;
}

.hki-footer-col ul li {
  margin-bottom: 10px;
}

.hki-footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.hki-footer-col ul li a:hover {
  color: var(--accent);
}

.hki-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) ── */
.hki-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hki-section { padding: 80px 0; }
.hki-section-light { background: var(--light); }
.hki-section-dark { background: var(--primary-dark); color: var(--white); }

.hki-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232,135,58,0.3);
}

.hki-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,135,58,0.35);
}

.hki-btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 13px 34px;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.hki-btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

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

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

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

  .hki-logo-tagline { display: none; }
  .hki-logo-name { font-size: 14px; }

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

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

