/* ==========================================================================
   Ashesi University Theme — 严格对齐 ashesi.edu.gh 真实设计
   2026-10-13 v1

   真实设计系统 (从 ashesi.edu.gh 提取):
   - 主色: Ashesi Red  #a93c40 (h2 标题, button hover)
   - 辅色: 深酒红       #800120 (button default, icon-bg)
   - 背景: white + warm white #f2f2f2 (card bg)
   - 字体: Cormorant (衬线大标题) + Poppins (正文)
   - 风格: 学院派精致, hero 红渐变 + 衬线大标题, 0 圆角卡片, 3 柱 + 眼睛 logo
   ========================================================================== */

:root {
  --ash-primary:        #a93c40;
  --ash-primary-dark:   #800120;
  --ash-accent:         #993300;
  --ash-bg:             #FFFFFF;
  --ash-bg-alt:         #f2f2f2;
  --ash-bg-dark:        #231f20;
  --ash-ink:            #231f20;
  --ash-muted:          #3f3b34;
  --ash-border:         rgba(35, 31, 32, .07);
  --ash-red-deep:       #8c3034;
  --ash-gold:           #c9a961;

  --ash-font-heading:   "Cormorant", "Cormorant Garamond", Garamond, Georgia, "PingFang SC", "Source Han Serif SC", serif;
  --ash-font-body:      "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --ash-s-xxs: .25rem; --ash-s-xs: .5rem;  --ash-s-s:  1rem;
  --ash-s-m:  1.5rem; --ash-s-l:  2rem;   --ash-s-xl: 2.5rem;
  --ash-s-xxl: 3rem;  --ash-s-xxxl: 4rem;  --ash-s-xxxxl: 5rem;

  --ash-radius:         2px;
  --ash-radius-pill:    999px;
  --ash-t:              200ms ease;
  --ash-container:      1280px;
}

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

body {
  margin: 0;
  font-family: var(--ash-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ash-ink);
  background: var(--ash-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ash-primary); text-decoration: none; transition: color var(--ash-t); }
a:hover { color: var(--ash-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--ash-s-s);
  font-family: var(--ash-font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ash-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; color: var(--ash-ink); }
p { margin: 0 0 var(--ash-s-s); }

.container { max-width: var(--ash-container); margin: 0 auto; padding: 0 var(--ash-s-m); }
.section { padding: var(--ash-s-xxxl) 0; }
.section--alt { background: var(--ash-bg-alt); }

.section__head { margin-bottom: var(--ash-s-xl); max-width: 720px; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ash-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--ash-s-s);
}
.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--ash-primary);
  margin-right: var(--ash-s-s);
  vertical-align: middle;
}
.section__head h2 { margin-bottom: var(--ash-s-s); }
.section__head p { font-size: 1.05rem; color: var(--ash-muted); margin: 0; }

/* ===== Site Header (Ashesi 真实: 白色 utility + 白色 main) ===== */
.site-header {
  background: var(--ash-bg);
  position: relative;
  z-index: 10;
}
.site-header__utility {
  background: var(--ash-bg-alt);
  border-bottom: 1px solid var(--ash-border);
}
.site-header__utility-inner {
  max-width: var(--ash-container);
  margin: 0 auto;
  padding: var(--ash-s-xs) var(--ash-s-m);
  display: flex;
  justify-content: flex-end;
  gap: var(--ash-s-m);
  font-size: 0.8rem;
}
.site-header__utility a { color: var(--ash-muted); }
.site-header__utility a:hover { color: var(--ash-primary); }

.site-header__main {
  border-bottom: 1px solid var(--ash-border);
}
.site-header__main-inner {
  max-width: var(--ash-container);
  margin: 0 auto;
  padding: var(--ash-s-s) var(--ash-s-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ash-s-m);
}
.site-brand { display: flex; align-items: center; gap: var(--ash-s-s); }
.site-brand__mark { display: flex; align-items: center; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1; }
.site-brand__name {
  font-family: var(--ash-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ash-primary);
}
.site-brand__sub {
  font-size: 0.7rem;
  color: var(--ash-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.site-header__nav {
  display: flex;
  gap: var(--ash-s-l);
  align-items: center;
}
.site-header__nav-item {
  color: var(--ash-ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--ash-s-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--ash-t);
}
.site-header__nav-item:hover {
  color: var(--ash-primary);
  border-bottom-color: var(--ash-primary);
}

.site-header__action-apply {
  background: var(--ash-primary-dark);
  color: var(--ash-bg);
  padding: var(--ash-s-xs) var(--ash-s-m);
  border-radius: var(--ash-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--ash-t);
}
.site-header__action-apply:hover {
  background: var(--ash-primary);
  color: var(--ash-bg);
}

/* ===== Hero (68vh 红渐变 + 衬线大标题) ===== */
.home-hero {
  position: relative;
  height: 68vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ash-primary) 0%, var(--ash-primary-dark) 100%);
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 169, 97, .15) 0%, transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.0) 100%);
  z-index: 1;
}
.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--ash-container);
  margin: 0 auto;
  padding: var(--ash-s-xxxl) var(--ash-s-m);
  color: var(--ash-bg);
}
.home-hero__eyebrow {
  display: inline-block;
  font-family: var(--ash-font-heading);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: var(--ash-s-xxs) var(--ash-s-s);
  background: rgba(255, 255, 255, .12);
  color: var(--ash-bg);
  border-left: 2px solid var(--ash-gold);
  margin-bottom: var(--ash-s-m);
}
.home-hero__title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  color: var(--ash-bg);
  margin: 0 0 var(--ash-s-m);
  max-width: 14ch;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.home-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin-bottom: var(--ash-s-l);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* ===== Buttons (Ashesi 真实: 2px 直角为主) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ash-s-xs);
  padding: var(--ash-s-s) var(--ash-s-l);
  border-radius: var(--ash-radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ash-t);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--ash-primary-dark); color: var(--ash-bg); }
.btn--primary:hover { background: var(--ash-primary); color: var(--ash-bg); }
.btn--ghost {
  background: transparent;
  color: var(--ash-primary);
  border: 1.5px solid var(--ash-primary);
}
.btn--ghost:hover {
  background: var(--ash-primary);
  color: var(--ash-bg);
}

/* ===== Stats Grid (6 核心数字) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ash-s-m);
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  display: block;
  background: var(--ash-bg);
  border-radius: var(--ash-radius);
  padding: var(--ash-s-l);
  text-align: left;
  transition: all var(--ash-t);
  border: 1px solid var(--ash-border);
  border-top: 3px solid var(--ash-primary);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(169, 60, 64, .08);
  border-top-color: var(--ash-primary-dark);
}
.stat-card__num {
  display: block;
  font-family: var(--ash-font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ash-primary);
  margin-bottom: var(--ash-s-s);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card h3 {
  font-size: 1.05rem;
  color: var(--ash-ink);
  margin-bottom: var(--ash-s-xs);
  font-family: var(--ash-font-body);
  font-weight: 600;
}
.stat-card h3 span {
  display: block;
  font-size: 0.85rem;
  color: var(--ash-primary);
  font-weight: 400;
  margin-top: 2px;
  font-family: var(--ash-font-body);
}
.stat-card p {
  font-size: 0.9rem;
  color: var(--ash-muted);
  margin: 0;
}

/* ===== Principles (荣誉守则 / 必修课程) ===== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ash-s-l);
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } }

.principle {
  text-align: left;
  padding: var(--ash-s-l);
  background: var(--ash-bg);
  border: 1px solid var(--ash-border);
  border-left: 4px solid var(--ash-primary);
}
.principle__mark {
  margin-bottom: var(--ash-s-m);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.principle h3 {
  font-size: 1.2rem;
  color: var(--ash-primary);
  margin-bottom: var(--ash-s-s);
  font-family: var(--ash-font-heading);
  font-weight: 700;
}
.principle h3::after {
  content: '';
  display: block;
  width: 12%;
  min-width: 32px;
  height: 2px;
  background: var(--ash-gold);
  margin-top: var(--ash-s-xs);
}
.principle p {
  font-size: 0.92rem;
  color: var(--ash-muted);
  margin: 0;
}

/* ===== Founder (Patrick Awuah 时间线) ===== */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ash-s-m);
}
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }

.founder-card {
  background: var(--ash-bg);
  border: 1px solid var(--ash-border);
  border-radius: var(--ash-radius);
  padding: var(--ash-s-l);
  position: relative;
}
.founder-card h3 {
  font-size: 1.15rem;
  color: var(--ash-primary);
  margin-bottom: var(--ash-s-s);
  font-family: var(--ash-font-heading);
  font-weight: 700;
  padding-bottom: var(--ash-s-xs);
  border-bottom: 1px solid var(--ash-border);
}
.founder-card p {
  font-size: 0.9rem;
  color: var(--ash-muted);
  margin: 0;
}

/* ===== CTA 申请 ===== */
.home-cta {
  background: var(--ash-primary);
  color: var(--ash-bg);
  padding: var(--ash-s-xxxxl) 0;
  text-align: center;
}
.home-cta h2 {
  color: var(--ash-bg);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--ash-s-s);
}
.home-cta p {
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto var(--ash-s-l);
  font-size: 1.05rem;
}
.home-cta__actions {
  display: flex;
  gap: var(--ash-s-s);
  justify-content: center;
  flex-wrap: wrap;
}
.home-cta .btn--primary {
  background: var(--ash-primary-dark);
  color: var(--ash-bg);
}
.home-cta .btn--primary:hover {
  background: var(--ash-gold);
  color: var(--ash-primary-dark);
}
.home-cta .btn--ghost {
  background: transparent;
  color: var(--ash-bg);
  border-color: var(--ash-bg);
}
.home-cta .btn--ghost:hover {
  background: var(--ash-bg);
  color: var(--ash-primary);
}

/* ===== Site Footer (深色 + 4 列) ===== */
.site-footer {
  background: var(--ash-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--ash-s-xxxxl) 0 var(--ash-s-m);
}
.site-footer__grid {
  max-width: var(--ash-container);
  margin: 0 auto;
  padding: 0 var(--ash-s-m);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--ash-s-l);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: var(--ash-bg);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--ash-s-s);
  letter-spacing: 0.04em;
  font-family: var(--ash-font-body);
}
.site-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--ash-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--ash-s-xs); }
.site-footer li a { font-size: 0.9rem; }

.site-footer__bottom {
  max-width: var(--ash-container);
  margin: var(--ash-s-l) auto 0;
  padding: var(--ash-s-m) var(--ash-s-m) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ash-s-s);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.site-footer__bottom a { color: rgba(255,255,255,0.6); }
.site-footer__bottom a:hover { color: var(--ash-gold); }
