/* ==========================================================================
   Premiere Hospitality & Safety Training — Design System
   PHSTraining.com · Edition 2026
   ========================================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ----- Tokens ----- */
:root {
  --navy:        #0E1B33;
  --navy-dark:   #081224;
  --navy-soft:   #1A2440;
  --gold:        #B89968;
  --gold-light:  #D4B888;
  --gold-dark:   #8E7142;
  --cream:       #F5EFE3;
  --cream-warm:  #FAF5EA;
  --paper:       #FFFFFF;
  --ink:         #1A2440;
  --ink-muted:   #5A6276;
  --ink-light:   #8B92A4;
  --border:      rgba(184, 153, 104, 0.25);
  --border-dark: rgba(255, 255, 255, 0.12);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(14, 27, 51, 0.06);
  --shadow-md: 0 8px 32px rgba(14, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 27, 51, 0.18);

  --radius:    4px;
  --radius-lg: 8px;

  --container:  1200px;
  --container-narrow: 880px;
}

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
em { font-style: italic; color: var(--gold-dark); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-light); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-muted); max-width: 640px; }
.lede.on-dark { color: rgba(245, 239, 227, 0.78); }

/* ----- Layout ----- */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.container.narrow { max-width: var(--container-narrow); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all .25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--cream); border: 1px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-arrow::after { content: '→'; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 239, 227, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.nav-brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--navy);
}
.nav-brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .78rem;
  font-weight: 600; color: var(--gold-dark); letter-spacing: 0;
}
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--navy-soft);
  position: relative; padding: .4rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }
.nav-cta { padding: .65rem 1.25rem; font-size: 0.78rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--navy); transition: all .25s ease; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column; gap: 0;
    background: var(--cream-warm);
    padding: 2rem 0; border-top: 1px solid var(--border);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 1rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
}

/* ----- Hero ----- */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; width: 80px; height: 80px;
  border: 1px solid var(--gold); opacity: .35;
}
.hero::before { top: 2rem; left: 2rem; border-right: 0; border-bottom: 0; }
.hero::after  { bottom: 2rem; right: 2rem; border-left: 0; border-top: 0; }
.hero h1 { color: var(--cream-warm); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero .lede { margin-bottom: 2.5rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero divider line */
.hero-divider {
  width: 60px; height: 2px; background: var(--gold);
  margin-bottom: 2rem;
}

/* ----- Stats Bar ----- */
.stats {
  background: var(--navy);
  color: var(--cream);
  padding: 0;
  border-top: 1px solid var(--gold);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold-light);
  line-height: 1; margin-bottom: .6rem;
  font-weight: 500;
}
.stat-label {
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.7);
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-dark); }
}

/* ----- Section heading block ----- */
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head.on-dark h2 { color: var(--cream-warm); }

/* ----- Cards ----- */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--cream-warm);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  font-family: var(--serif); font-size: 1.4rem;
}
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--ink-muted); }
.card a.read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--gold-dark); letter-spacing: .04em;
}
.card a.read-more:hover { color: var(--navy); }

/* ----- Tier cards ----- */
.tier-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tier-color, var(--gold));
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tier-card.bronze { --tier-color: #B97A4A; }
.tier-card.silver { --tier-color: #A8A8A8; }
.tier-card.gold   { --tier-color: #D4B260; }
.tier-tag {
  font-size: 0.72rem; letter-spacing: .22em;
  color: var(--tier-color); font-weight: 700;
  text-transform: uppercase; margin-bottom: .5rem;
}
.tier-card h3 {
  font-size: 2.5rem; line-height: 1; margin-bottom: 1rem;
  color: var(--navy);
}
.tier-hours {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600;
  color: var(--navy); margin-bottom: .25rem;
}
.tier-aud {
  font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.tier-card p { font-style: italic; color: var(--ink-muted); margin: 0; }
.tier-list { list-style: none; margin-top: 1rem; }
.tier-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .6rem;
  font-size: 0.92rem; color: var(--ink);
}
.tier-list li::before {
  content: '◆'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: .6rem; line-height: 1.6;
}

/* ----- Two-column layout ----- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.two-col .visual {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 360px;
}
.two-col .visual::before {
  content: ''; position: absolute; inset: 1rem;
  border: 1px solid var(--gold); opacity: .4;
  border-radius: var(--radius-lg);
}
.two-col .visual blockquote {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic;
  line-height: 1.4; color: var(--cream-warm);
  position: relative; z-index: 1;
}
.two-col .visual cite {
  display: block; margin-top: 2rem;
  font-family: var(--sans); font-size: 0.8rem; font-style: normal;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
}

/* ----- Bg variants ----- */
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-warm  { background: var(--cream-warm); }
.bg-navy  { background: var(--navy); color: var(--cream); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--cream-warm); }

/* ----- CTA section ----- */
.cta-block {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: ''; position: absolute; inset: 1.25rem;
  border: 1px solid var(--gold); opacity: .35;
  pointer-events: none;
}
.cta-block h2 { color: var(--cream-warm); margin-bottom: 1rem; }
.cta-block p  { color: rgba(245, 239, 227, 0.78); max-width: 540px; margin: 0 auto 2rem; }

/* ----- Footer ----- */
footer {
  background: var(--navy-dark);
  color: rgba(245, 239, 227, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .nav-brand { color: var(--cream-warm); margin-bottom: 1rem; }
.footer-brand p { color: rgba(245, 239, 227, 0.65); max-width: 320px; }
footer h5 {
  font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.25rem; font-weight: 600;
}
footer ul { list-style: none; }
footer li { margin-bottom: .65rem; }
footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: rgba(245, 239, 227, 0.45);
}

/* ----- Forms ----- */
.form-grid { display: grid; gap: 1.25rem; }
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid .row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--navy); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 1rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 153, 104, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ----- Track tabs (Hospitality vs Safety) ----- */
.track-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 880px) { .track-grid { grid-template-columns: 1fr; } }
.track-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex; flex-direction: column;
  transition: all .25s ease;
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.track-card .track-label {
  display: inline-block;
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold-dark); margin-bottom: 1rem;
}
.track-card h3 { margin-bottom: 1rem; }
.track-card ul { list-style: none; margin: 1.25rem 0; }
.track-card li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem;
  font-size: 0.95rem;
}
.track-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}
.track-card .read-more { margin-top: auto; padding-top: 1rem; }

/* ----- Logo strip / trust ----- */
.trust {
  padding: 3rem 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust .label {
  text-align: center;
  font-size: .76rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.trust-strip span {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--navy); opacity: 0.7;
}

/* ----- Page hero (smaller, for inner pages) ----- */
.page-hero {
  background: var(--navy); color: var(--cream);
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  position: relative;
}
.page-hero h1 { color: var(--cream-warm); }
.page-hero .lede { margin-top: 1.25rem; }

/* ----- Utility ----- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ----- Animations (lightweight, accessibility-respectful) ----- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }
}
