/* ==========================================================================
   index.css — RPL Access Australia homepage
   Scoped with .hm- prefix. Brand navy: #1c375b. University/college styling:
   restrained font sizes, structured grid, serif headings, generous whitespace.
   ========================================================================== */

:root {
  --hm-navy:        #1c375b;
  --hm-navy-dark:   #12253c;
  --hm-navy-soft:   #eef2f6;
  --hm-gold:        #c99a3b;
  --hm-gold-dark:   #a97d24;
  --hm-ink:         #202733;
  --hm-muted:       #5b6472;
  --hm-border:      #e2e6ec;
  --hm-bg-soft:     #f6f8fa;
  --hm-white:       #ffffff;
  --hm-radius:      10px;
  --hm-radius-lg:   16px;
  --hm-shadow:      0 6px 20px rgba(28, 55, 91, 0.08);
  --hm-shadow-lg:   0 14px 34px rgba(28, 55, 91, 0.14);
  --hm-font-serif:  'Georgia', 'Iowan Old Style', 'Palatino Linotype', serif;
  --hm-font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.hm-page { color: var(--hm-ink); font-family: var(--hm-font-sans); font-size: 15.5px; line-height: 1.6; }
.hm-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hm-eyebrow {
  font-family: var(--hm-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hm-gold-dark);
  margin: 0 0 10px;
}

.hm-section-title {
  font-family: var(--hm-font-serif);
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 700;
  color: var(--hm-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}

.hm-section-lead { color: var(--hm-muted); font-size: 15px; max-width: 640px; margin: 0 0 28px; }

.hm-section { padding: 64px 0; }
.hm-section:nth-of-type(even) { background: var(--hm-bg-soft); }

.hm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.hm-section-head .hm-section-title { margin-bottom: 4px; }

.hm-link-arrow {
  color: var(--hm-navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--hm-gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.hm-link-arrow:hover { color: var(--hm-gold-dark); }

.hm-empty-state { color: var(--hm-muted); font-size: 14.5px; }

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--hm-radius);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hm-btn-primary { background: var(--hm-navy); color: var(--hm-white); }
.hm-btn-primary:hover { background: var(--hm-navy-dark); transform: translateY(-1px); box-shadow: var(--hm-shadow); }
.hm-btn-secondary { background: transparent; border-color: var(--hm-navy); color: var(--hm-navy); }
.hm-btn-secondary:hover { background: var(--hm-navy-soft); transform: translateY(-1px); }
.hm-btn-light { background: var(--hm-gold); color: var(--hm-navy-dark); }
.hm-btn-light:hover { background: var(--hm-gold-dark); color: var(--hm-white); }

/* ============ HERO ============ */
.hm-hero {
  background: linear-gradient(160deg, var(--hm-navy) 0%, var(--hm-navy-dark) 100%);
  color: var(--hm-white);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.hm-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -60% auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 154, 59, 0.22), transparent 70%);
  pointer-events: none;
}
.hm-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hm-hero .hm-eyebrow { color: var(--hm-gold); }
.hm-hero h1 {
  font-family: var(--hm-font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.28;
  margin: 0 0 16px;
  font-weight: 700;
}
.hm-hero-text { font-size: 15.5px; color: rgba(255,255,255,0.86); max-width: 560px; margin: 0 0 26px; }

.hm-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 34px; }
.hm-hero .hm-btn-secondary { border-color: rgba(255,255,255,0.5); color: var(--hm-white); }
.hm-hero .hm-btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hm-stat-row { display: flex; gap: 34px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.18); flex-wrap: wrap; }
.hm-stat-row dt { font-family: var(--hm-font-serif); font-size: 24px; font-weight: 700; color: var(--hm-gold); margin: 0; }
.hm-stat-row dd { font-size: 12.5px; color: rgba(255,255,255,0.75); margin: 2px 0 0; }

.hm-hero-media { position: relative; }
.hm-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--hm-radius-lg);
  box-shadow: var(--hm-shadow-lg);
  background: rgba(255,255,255,0.08);
}
.hm-hero-badge {
  position: absolute;
  left: -16px;
  bottom: -18px;
  background: var(--hm-white);
  color: var(--hm-navy);
  border-radius: var(--hm-radius);
  padding: 14px 18px;
  box-shadow: var(--hm-shadow-lg);
  display: flex;
  flex-direction: column;
  max-width: 240px;
}
.hm-hero-badge strong { font-family: var(--hm-font-serif); font-size: 16px; }
.hm-hero-badge span { font-size: 12px; color: var(--hm-muted); margin-top: 3px; }

/* Search */
.hm-search { position: relative; max-width: 480px; margin-bottom: 4px; }
.hm-search-label { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.hm-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hm-white);
  border-radius: var(--hm-radius);
  padding: 12px 16px;
  box-shadow: var(--hm-shadow);
}
.hm-search-icon { width: 18px; height: 18px; color: var(--hm-muted); flex-shrink: 0; }
.hm-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14.5px;
  color: var(--hm-ink);
  font-family: var(--hm-font-sans);
  background: transparent;
}
.hm-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--hm-white);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow-lg);
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}
.hm-search-list { list-style: none; margin: 0; padding: 0; }
.hm-search-list li + li { border-top: 1px solid var(--hm-border); }
.hm-search-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px;
  text-decoration: none;
  border-radius: 8px;
}
.hm-search-list a:hover { background: var(--hm-bg-soft); }
.hm-search-title { font-weight: 700; color: var(--hm-navy); font-size: 14px; }
.hm-search-industry { font-size: 12px; color: var(--hm-gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.hm-search-empty { padding: 14px; font-size: 13.5px; color: var(--hm-muted); margin: 0; }

/* ============ STEPS ============ */
.hm-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.hm-step {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  padding: 24px 20px;
  position: relative;
}
.hm-step-number {
  font-family: var(--hm-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--hm-gold);
  display: block;
  margin-bottom: 10px;
}
.hm-step h3 { font-size: 16px; margin: 0 0 8px; color: var(--hm-navy); font-family: var(--hm-font-serif); }
.hm-step p { font-size: 14px; color: var(--hm-muted); margin: 0; }

/* ============ CARDS (pathways / articles) ============ */
.hm-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-card {
  display: flex;
  flex-direction: column;
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-card:hover { transform: translateY(-3px); box-shadow: var(--hm-shadow-lg); }
.hm-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hm-navy-soft); }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--hm-navy);
  color: var(--hm-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.hm-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hm-card-body h3 { font-family: var(--hm-font-serif); font-size: 17px; margin: 0; color: var(--hm-navy); line-height: 1.35; }
.hm-card-body p { font-size: 13.8px; color: var(--hm-muted); margin: 0; flex: 1; }
.hm-card-cta { font-size: 13px; font-weight: 700; color: var(--hm-gold-dark); margin-top: 4px; }

/* ============ CATEGORIES ============ */
.hm-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-category-card {
  display: block;
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-left: 4px solid var(--hm-gold);
  border-radius: var(--hm-radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-category-card:hover { transform: translateY(-2px); box-shadow: var(--hm-shadow); }
.hm-category-card h3 { font-family: var(--hm-font-serif); font-size: 16.5px; margin: 0 0 6px; color: var(--hm-navy); }
.hm-category-card p { font-size: 13.5px; color: var(--hm-muted); margin: 0 0 10px; }
.hm-category-count { font-size: 12px; font-weight: 700; color: var(--hm-gold-dark); text-transform: uppercase; letter-spacing: 0.03em; }

/* ============ TESTIMONIALS ============ */
.hm-testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 12px; }
.hm-testimonial-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  padding: 26px;
  margin: 0;
}
.hm-testimonial-card blockquote { font-size: 14.8px; color: var(--hm-ink); line-height: 1.7; margin: 0 0 18px; font-style: italic; }
.hm-testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.hm-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--hm-navy-soft); }
.hm-testimonial-card figcaption strong { display: block; font-size: 14px; color: var(--hm-navy); }
.hm-testimonial-card figcaption span { display: block; font-size: 12.5px; color: var(--hm-muted); }

/* ============ FORM / HUBSPOT PLACEHOLDER ============ */
.hm-form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.hm-form-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-form-points li {
  font-size: 14px;
  color: var(--hm-ink);
  padding-left: 26px;
  position: relative;
}
.hm-form-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hm-white);
  background: var(--hm-navy);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-hubspot-placeholder {
  background: var(--hm-white);
  border: 2px dashed var(--hm-border);
  border-radius: var(--hm-radius-lg);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.hm-hubspot-placeholder p { color: var(--hm-muted); font-size: 14px; margin: 0; }

/* ============ FAQ ============ */
.hm-faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.hm-faq-list { display: flex; flex-direction: column; gap: 12px; }
.hm-faq-item {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  padding: 6px 20px;
}
.hm-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--hm-navy);
  font-size: 14.8px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 20px;
  color: var(--hm-gold-dark);
  font-weight: 700;
}
.hm-faq-item[open] summary::after { content: '−'; }
.hm-faq-item p { font-size: 14px; color: var(--hm-muted); margin: 0 0 16px; line-height: 1.7; }
.hm-faq-item p a { color: var(--hm-navy); font-weight: 600; }

/* ============ FINAL CTA ============ */
.hm-cta { background: var(--hm-navy-dark); color: var(--hm-white); padding: 56px 0; text-align: center; }
.hm-cta-inner { max-width: 620px; margin: 0 auto; }
.hm-cta h2 { font-family: var(--hm-font-serif); font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 12px; }
.hm-cta p { color: rgba(255,255,255,0.82); font-size: 14.8px; margin: 0 0 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hm-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-media { order: -1; }
  .hm-hero-badge { position: static; margin-top: 14px; display: inline-flex; }
  .hm-form-grid { grid-template-columns: 1fr; }
  .hm-faq-grid { grid-template-columns: 1fr; }
  .hm-testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hm-page { font-size: 15px; }
  .hm-section { padding: 46px 0; }
  .hm-steps-grid { grid-template-columns: 1fr; }
  .hm-card-grid { grid-template-columns: 1fr; }
  .hm-category-grid { grid-template-columns: 1fr; }
  .hm-stat-row { gap: 22px; }
  .hm-hero { padding: 52px 0 44px; }
  .hm-hero-actions { flex-direction: column; align-items: stretch; }
  .hm-hero-actions .hm-btn { width: 100%; }
  .hm-section-head { flex-direction: column; align-items: flex-start; }
}
