/* ============================================================
   GTS MedOH — Shared Design System
   Matches the booking app palette. All pages import this file.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-dark:  #400F55;
  --purple-mid:   #6D1E90;
  --purple-light: #9B3DBF;
  --orange:       #E07800;
  --orange-light: #FF9800;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a4a6a;
  --text-light:   #9fb3c6;
  --bg-light:     #f8f5fb;
  --bg-white:     #ffffff;
  --accent:       #e8d5f5;
  --border:       #ede4f5;
  --nav-h:        68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; line-height: 1.3; }
p  { font-size: 1rem; line-height: 1.7; color: var(--text-mid); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ── Section labels ─────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.label-purple { color: var(--purple-mid); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; border: none;
  font-size: .97rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--orange); color: #fff; }
.btn-purple    { background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid)); color: #fff; }
.btn-white     { background: #fff; color: var(--purple-dark); }
.btn-outline   { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-purple {
  background: transparent; color: var(--purple-mid);
  border: 2px solid var(--border);
}
.btn-outline-purple:hover { border-color: var(--purple-mid); background: var(--bg-light); }

.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: 0 10px 36px rgba(64,15,85,.1); transform: translateY(-3px); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--accent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ── NAV ─────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(64,15,85,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
#site-nav .nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,rgba(255,255,255,.15),rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-brand-text { font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: -.2px; }
.nav-brand-sub  { font-size: .62rem; color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: .5px; display: block; margin-top: -3px; }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.78); font-size: .875rem; font-weight: 500;
  padding: 6px 12px; border-radius: 7px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-book {
  background: var(--orange); color: #fff !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 700 !important;
  font-size: .875rem; text-decoration: none;
  transition: background .15s !important;
}
.nav-book:hover { background: var(--orange-light) !important; transform: none !important; box-shadow: none !important; }

.nav-org-login {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.85) !important;
  padding: 9px 18px; border-radius: 8px; font-weight: 600 !important;
  font-size: .875rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .15s, border-color .15s !important;
}
.nav-org-login:hover { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.35) !important; transform: none !important; box-shadow: none !important; }

.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
#mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(40,5,60,.97);
  backdrop-filter: blur(16px);
  padding: 20px 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 199;
}
#mobile-menu.open { display: block; }
#mobile-menu ul { list-style: none; }
#mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,.07); }
#mobile-menu ul a {
  display: block; padding: 14px 0;
  color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
#mobile-menu ul a:hover { color: #fff; }
.mobile-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-ctas a { text-align: center; padding: 14px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.mobile-ctas .mc-book { background: var(--orange); color: #fff; }
.mobile-ctas .mc-portal { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer {
  background: #1a0928;
  color: rgba(255,255,255,.55);
  padding: 60px 0 32px;
  font-size: .85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 12px; line-height: 1.7; max-width: 280px; font-size: .83rem; }
.footer-col h4 {
  color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .83rem; transition: color .15s; }
.footer-col ul a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── Page top offset ─────────────────────────────────────── */
/* ── Orange accent strip ─────────────────────────────────────── */
.accent-strip {
  background: var(--orange);
  padding: 12px 0; text-align: center;
}
.accent-strip p {
  color: #fff; font-size: .88rem; font-weight: 600; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.accent-strip a { color: #fff; font-weight: 800; text-decoration: underline; }

.page-top { padding-top: var(--nav-h); }

/* ── Page hero band (non-home pages) ────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  padding: 72px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1.5px solid var(--border); margin: 0; }

/* ── Tag / badge ─────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: var(--bg-light); color: var(--purple-mid);
}
.tag-orange { background: #fff4e6; color: var(--orange); }

/* ── Grid utilities ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Steps ───────────────────────────────────────────────── */
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  color: #fff; font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  flex-shrink: 0;
}

/* ── Band / CTA band ─────────────────────────────────────── */
.band-purple {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  padding: 80px 0; text-align: center;
}
.band-purple h2, .band-purple p { color: #fff; }
.band-purple p { opacity: .78; margin: 12px auto 32px; max-width: 520px; }

.band-light { background: var(--bg-light); padding: 80px 0; }

/* ── Portal tiles ────────────────────────────────────────── */
.portal-tile {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 28px 24px;
  text-align: center;
  transition: background .2s, transform .2s;
  text-decoration: none;
  display: block;
}
.portal-tile:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.portal-tile .pt-icon { font-size: 2rem; margin-bottom: 12px; }
.portal-tile .pt-label { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 6px; display: block; }
.portal-tile .pt-desc  { color: rgba(255,255,255,.6); font-size: .8rem; }

/* ── Scroll reveal (lightweight, CSS-driven) ─────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Course card image banner ────────────────────────────── */
.card-img {
  width: calc(100% + 64px);          /* bleeds to card edge */
  margin: -32px -32px 20px -32px;    /* negative of card padding */
  height: 160px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--accent);         /* fallback if img missing */
  flex-shrink: 0;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

/* ── Accordion (resources/FAQ) ───────────────────────────── */
.accordion-item { border-bottom: 1.5px solid var(--border); }
.accordion-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; text-align: left;
  font-size: 1rem; font-weight: 600; color: var(--text-dark);
  gap: 16px;
}
.accordion-btn .acc-icon { flex-shrink: 0; transition: transform .3s; color: var(--purple-mid); font-size: 1.3rem; line-height: 1; }
.accordion-btn.open .acc-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 0 18px; }
.accordion-body.open { display: block; }
.accordion-body p { color: var(--text-mid); }

/* ── Contact form ────────────────────────────────────────── */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-size: .95rem; font-family: inherit; color: var(--text-dark);
  background: #fff; transition: border-color .15s;
  outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--purple-mid);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ── Ken Burns (hero image) ──────────────────────────────── */
@keyframes ken-burns {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.08) translate(-1.5%, 1.2%); }
}
.kb-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  animation: ken-burns 9s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .kb-image { animation: none; transform: scale(1.04) translate(-.8%, .6%); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
  .band-purple, .band-light { padding: 60px 0; }
}
