/* ============================================================
   Anh Ngu Ms Hong — Brand Hub layout + component styles
   Depends on tokens.css (loaded before this file).
   ============================================================ */

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: #ffffff;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---- Hub header ---- */
.hub-header {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hub-header__wordmark {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hub-header__wordmark span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hub-header__sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Hub nav ---- */
.hub-nav {
  background: #ffffff;
  border-bottom: 2px solid #f0e8ef;
}

.hub-nav__list {
  display: flex;
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
  overflow-x: auto;
}

.hub-nav__item a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.hub-nav__item a:hover,
.hub-nav__item a[aria-current="page"] {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-red);
}

/* ---- Main content ---- */
.hub-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ---- Hero intro block ---- */
.hub-intro {
  margin-bottom: 3rem;
}

.hub-intro__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}

.hub-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hub-intro__title span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hub-intro__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
  max-width: 620px;
}

/* ---- Section cards grid ---- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hub-card {
  border: 1.5px solid #ece4eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.hub-card:hover {
  border-color: var(--brand-pink);
  box-shadow: 0 4px 20px rgba(8, 40, 97, 0.08);
}

.hub-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.hub-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.hub-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #666;
}

.hub-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  border-bottom: 1.5px solid var(--brand-pink);
}

/* ---- Placeholder page ---- */
.hub-placeholder {
  text-align: center;
  padding: 4rem 1rem;
  color: #999;
}

.hub-placeholder__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.hub-placeholder__body {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Footer ---- */
.hub-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hub-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }

  .hub-main {
    padding: 2rem 1rem 3rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }
}
