/* ================================================================
   MANDELARIS SFOT EDUCATION · Design System
   Academic · Surgical · Precise · Premium · Clean · Credible
   ================================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Surface */
  --white:        #FFFFFF;
  --paper:        #F7F5F1;        /* warm off-white for alternating sections */
  --paper-mid:    #EFEDE8;

  /* Text */
  --charcoal:     #1C2B38;        /* primary headings */
  --charcoal-mid: #3A5060;        /* body copy */
  --charcoal-dim: #8A9EAE;        /* captions, labels */

  /* Accent · surgical teal */
  --teal:         #1A8874;
  --teal-light:   #1FA68E;
  --teal-dark:    #136B5C;
  --teal-pale:    rgba(26,136,116,0.07);
  --teal-border:  rgba(26,136,116,0.22);

  /* Premium accent · muted gold */
  --gold:         #A8895A;
  --gold-light:   #C4A876;
  --gold-pale:    rgba(168,137,90,0.10);
  --gold-border:  rgba(168,137,90,0.28);

  /* Structure */
  --hairline:     rgba(28,43,56,0.10);
  --hairline-mid: rgba(28,43,56,0.06);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max:          1240px;
  --gutter:       56px;
  --section:      128px;
}

/* ── BASE ──────────────────────────────────────────────────────── */
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); background: var(--white); color: var(--charcoal); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }

/* ── TYPE SCALE ────────────────────────────────────────────────── */

/* Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--charcoal-dim);
}
.eyebrow--teal  { color: var(--teal-light); }
.eyebrow--gold  { color: var(--gold); }
.eyebrow--white { color: rgba(255,255,255,0.55); }

/* Display */
.display {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

h2 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--charcoal);
}

.lead {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal-mid);
}

p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal-mid);
}

/* ── LAYOUT ────────────────────────────────────────────────────── */
.container   { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section     { padding: var(--section) 0; }
.section--sm { padding: 80px 0; }

/* ── NAVIGATION ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav__logo em { color: var(--teal); font-style: normal; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--charcoal-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--charcoal); }

.nav__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal) !important;
  border: 1px solid var(--teal-border);
  padding: 9px 20px;
  transition: all 0.2s !important;
}
.nav__cta:hover { background: var(--teal-pale) !important; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  min-width: 192px;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--teal   { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-light); }

.btn--outline { background: transparent; color: var(--charcoal); border: 1px solid var(--hairline); }
.btn--outline:hover { border-color: var(--charcoal-mid); }

.btn--text-link { background: transparent; color: var(--teal); border: none; padding: 0; min-width: 0; letter-spacing: 2px; margin-top: 16px; align-self: flex-start; justify-content: flex-start; }
.btn--text-link:hover { background: transparent; opacity: 0.75; }
.btn--outline-teal { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.btn--outline-teal:hover { background: var(--teal-pale); }

/* ── DETAIL BAR (course pages) ─────────────────────────────────── */
.detail-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 56px 0;
}

.detail-bar__item {
  padding: 28px 32px;
  border-right: 1px solid var(--hairline);
}
.detail-bar__item:last-child { border-right: none; }

.detail-bar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.detail-bar__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
}

/* ── CURRICULUM LIST (course pages) ────────────────────────────── */
.curriculum { list-style: none; }

.curriculum li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-mid);
  font-size: 15px;
  color: var(--charcoal-mid);
  line-height: 1.6;
}

.curriculum li::before {
  content: '·';
  color: var(--teal);
  font-size: 12px;
  flex-shrink: 0;
}

/* ── FACULTY BIO BLOCK (course pages) ──────────────────────────── */
.faculty-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}

.faculty-block__photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
}

.faculty-block__photo-ph {
  width: 160px;
  height: 200px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-dim);
  font-size: 12px;
}

.faculty-block__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.faculty-block__creds {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.faculty-block p {
  font-size: 15px;
  color: var(--charcoal-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── REGISTRATION BLOCK (course pages) ─────────────────────────── */
.reg-block {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 52px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.reg-block__heading h3 { margin-bottom: 12px; }
.reg-block__heading p  { color: var(--charcoal-mid); }

.reg-block__details { }

.reg-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.reg-item:first-child { border-top: 1px solid var(--hairline); }

.reg-item__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal-dim);
  min-width: 90px;
}

.reg-item__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}

.reg-item__value a { color: var(--teal); }
.reg-item__value a:hover { text-decoration: underline; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 44px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 18px;
}

.footer__col p, .footer__col a {
  font-size: 14px;
  line-height: 2.2;
  display: block;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }
.footer__col .eyebrow { margin-bottom: 20px; }

.footer__bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 36px; --section: 96px; }
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .display { font-size: 68px; }
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; --section: 72px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .display { font-size: 52px; }
  .detail-bar { grid-template-columns: 1fr 1fr; }
  .reg-block { grid-template-columns: 1fr; padding: 36px; }
  .faculty-block { grid-template-columns: 1fr; }
}
