/* ============================================
   HCI — Hermitage Career Institute
   Palette: deep navy, healthcare teal, warm white, soft gold
   Type: Fraunces (display) + Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300&family=Inter:wght@300;400;500;600&display=swap');

/* --- TOKENS --- */
:root {
  --navy:      #0D1E35;
  --teal:      #1A8C7A;
  --teal-lt:   #E8F5F2;
  --gold:      #C89B3C;
  --warm-white:#F7F5F0;
  --mid-grey:  #6B7280;
  --border:    #DDD8CE;
  --text:      #1C2B3A;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --max-w: 1160px;
  --radius: 4px;
  --transition: 0.22s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section--teal  { background: var(--teal); color: #fff; }
.section--navy  { background: var(--navy); color: #fff; }
.section--warm  { background: var(--warm-white); }
.section--teal-lt { background: var(--teal-lt); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section--teal .eyebrow,
.section--navy .eyebrow { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.18; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--primary:hover { background: #147a69; border-color: #147a69; }
.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: #b08830; }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
}
.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav__links a.active { color: var(--gold); }
.nav__cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius);
}
.nav__cta:hover { background: #147a69 !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.32;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 5rem 1.5rem;
  margin: 0 auto 0 calc((100vw - var(--max-w)) / 2 + 1.5rem);
}
.hero__content .eyebrow { color: var(--gold); }
.hero__content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero__content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- TRUST BANNER (home) --- */
.trust-banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.trust-banner__text {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
}
.trust-banner__text strong {
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
}

/* --- INTRO --- */
.intro { text-align: center; }
.intro__inner { max-width: 700px; margin: 0 auto; }
.intro__img {
  margin: 3rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro__img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
  text-align: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
}
.img-placeholder svg { opacity: 0.4; }

/* --- FEATURE CARDS --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--teal);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.card h4 { margin-bottom: 0.5rem; font-family: var(--ff-body); font-weight: 600; }
.card p { font-size: 0.9rem; color: var(--mid-grey); }

/* --- PROGRAMME STRIP --- */
.programme-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.programme-strip__img {
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

/* --- PAGE HEADER --- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 640px; }

/* --- TWO-COL LAYOUT --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }
.col-img {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.col-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- KEY FACTS TABLE --- */
.key-facts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}
.key-facts table { width: 100%; border-collapse: collapse; }
.key-facts td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.key-facts tr:last-child td { border-bottom: none; }
.key-facts td:first-child {
  font-weight: 600;
  color: var(--navy);
  background: var(--warm-white);
  width: 38%;
}

/* --- ENTRY BOX --- */
.entry-box {
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  background: var(--teal-lt);
  margin: 2rem 0;
}
.entry-box h3 { margin-bottom: 1.25rem; color: var(--navy); }
.entry-box ul { padding-left: 0; }
.entry-box li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(26,140,122,0.15);
  font-size: 0.93rem;
}
.entry-box li:last-child { border-bottom: none; }
.entry-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.entry-box li strong { color: var(--navy); }

/* --- SKILLS GRID --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.skill-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--teal);
}
.skill-tile h4 { font-family: var(--ff-body); font-weight: 600; margin-bottom: 0.4rem; color: var(--navy); }
.skill-tile p  { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }

/* --- COMPLIANCE PANEL --- */
.compliance-panel {
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  background: #fff;
  margin: 2rem 0;
}
.compliance-panel h3 { color: var(--navy); margin-bottom: 1rem; }
.compliance-panel p  { font-size: 0.93rem; }
.compliance-panel a  { color: var(--teal); text-decoration: underline; }

/* --- STEPS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin: 3rem 0;
}
.steps::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--teal);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.step__num {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
}
.step h4 { font-family: var(--ff-body); font-weight: 600; margin-bottom: 0.5rem; color: var(--navy); }
.step p  { font-size: 0.88rem; color: var(--mid-grey); }

/* --- DOWNLOADS --- */
.downloads { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: var(--transition);
  font-weight: 500;
}
.download-btn:hover { border-color: var(--teal); background: var(--teal-lt); }
.download-btn svg { color: var(--teal); flex-shrink: 0; }
.download-btn span { font-size: 0.8rem; color: var(--mid-grey); margin-left: auto; }

/* --- CONTACT FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.93rem;
  color: var(--text);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,140,122,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.radio-group { display: flex; gap: 1.5rem; margin-top: 0.4rem; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.contact-info { }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.93rem;
}
.contact-detail svg { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.map-placeholder {
  height: 240px;
  background: var(--teal-lt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.85rem;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand .nav__logo { font-size: 1.25rem; margin-bottom: 1rem; display: block; }
.footer__brand p { font-size: 0.88rem; line-height: 1.65; }
.footer h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  transition: var(--transition);
}
.footer ul a:hover { color: #fff; }
.footer__baseline {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { color: var(--mid-grey); max-width: 520px; margin: 0 auto; }
.section--navy .cta-section p { color: rgba(255,255,255,0.7); }
.cta-section .btn-group { justify-content: center; }

/* --- AGENT BAND --- */
.agent-band {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  border: 1px solid var(--border);
  margin: 3rem 0;
}
.agent-band h3 { font-family: var(--ff-body); font-weight: 600; margin-bottom: 0.5rem; }
.agent-band p  { font-size: 0.93rem; color: var(--mid-grey); margin: 0; }

/* --- SECTION HEADINGS --- */
.section-heading { margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0.75rem; }
.section-heading p  { color: var(--mid-grey); max-width: 600px; }
.section-heading--center { text-align: center; }
.section-heading--center p { margin: 0 auto; }

/* --- PLACEMENT BAND --- */
.placement-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}
.placement-band h3 { color: #fff; margin-bottom: 0.75rem; }
.placement-band p  { color: rgba(255,255,255,0.78); font-size: 0.93rem; }
.placement-band .hours {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
.placement-band .hours span { display: block; font-family: var(--ff-body); font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* --- OUTCOMES --- */
.outcomes-list { margin-top: 1.25rem; }
.outcomes-list li {
  padding: 0.65rem 0 0.65rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.outcomes-list li:last-child { border-bottom: none; }
.outcomes-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.outcomes-list li strong { color: var(--navy); }

/* --- INFO CARDS (visa/insurance) --- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.info-card h4 { font-family: var(--ff-body); font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.info-card p  { font-size: 0.9rem; color: var(--mid-grey); margin: 0; }
.info-card a  { color: var(--teal); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .programme-strip { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .placement-band { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .agent-band { flex-direction: column; gap: 1.5rem; }
  .hero__content { margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  h1 { font-size: 2rem; }
  .hero { min-height: 70vh; }
}
