/* ===========================
   RISE for Collaboration
   style.css
   Aesthetic: Cool Mediterranean editorial — deep Yale blue, airy sky tones
   =========================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand palette */
  --frozen-water: #bee9e8;
  --pacific-blue:  #62b6cb;
  --yale-blue:     #1b4965;
  --pale-sky:      #cae9ff;
  --fresh-sky:     #5fa8d3;

  /* Gold accent — for keywords, highlights, numbers */
  --gold:          #C9974A;
  --gold-lt:       #F0DFC0;

  /* Semantic roles */
  --bg:            #EEF7FF;   /* pale-sky tinted white — gentle base */
  --bg-alt:        #D8F0EF;   /* frozen-water lightened               */
  --ink:           #0E2A3E;   /* deep ink, darker than yale-blue      */
  --ink-light:     #4A7291;   /* muted mid-blue for body copy         */
  --white:         #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w: 1100px;
  --radius: 6px;
  --radius-lg: 14px;
  --transition: 0.25s ease;

  --shadow-sm: 0 2px 8px rgba(27,73,101,0.09);
  --shadow-md: 0 6px 24px rgba(27,73,101,0.13);
  --shadow-lg: 0 16px 48px rgba(27,73,101,0.18);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fresh-sky); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 90px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--yale-blue);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--yale-blue);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--pacific-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--yale-blue);
  color: var(--yale-blue);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--yale-blue);
  color: var(--white);
  opacity: 1;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,247,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,73,101,0.1);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--yale-blue);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.nav-logo em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--pacific-blue); opacity: 1; }

.nav-cta {
  background: var(--yale-blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--pacific-blue) !important; color: var(--white) !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--yale-blue);
  padding: 6rem 0 4rem;
}

/* Diagonal decorative lines */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-lines span {
  position: absolute;
  display: block;
  width: 1px;
  height: 200%;
  background: rgba(202,233,255,0.06);
  transform-origin: top;
}
.hero-bg-lines span:nth-child(1) { left: 20%; transform: rotate(15deg); }
.hero-bg-lines span:nth-child(2) { left: 45%; transform: rotate(15deg); }
.hero-bg-lines span:nth-child(3) { left: 65%; transform: rotate(15deg); }
.hero-bg-lines span:nth-child(4) { left: 80%; transform: rotate(15deg); }

/* Pacific blue glow, top right */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(98,182,203,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Frozen water glow, bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(190,233,232,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pale-sky);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--pale-sky);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.8rem;
}
/* "Innovation." in gold italic */
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(202,233,255,0.72);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ===== LOGO STRIP ===== */
.logo-strip {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(202,233,255,0.12);
}

.logo-strip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(202,233,255,0.38);
  margin-bottom: 1.2rem;
}

.logos {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.logo-placeholder {
  background: rgba(202,233,255,0.06);
  border: 1px dashed rgba(202,233,255,0.22);
  border-radius: var(--radius);
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  transition: background var(--transition);
}
.logo-placeholder:hover { background: rgba(202,233,255,0.12); }
.logo-placeholder span {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(202,233,255,0.48);
  line-height: 1.4;
}
.logo-placeholder small { font-size: 0.6rem; display: block; opacity: 0.7; }

/* When you replace placeholders with real logos */
.logo-img {
  width: 120px;
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.65);
  transition: opacity var(--transition);
}
.logo-img:hover { filter: brightness(0) invert(1) opacity(1); }

/* ===== PROGRAM SECTION ===== */
.program { background: var(--bg); }

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.program-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--yale-blue);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.program-text p {
  color: var(--ink-light);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}
/* Keywords and org names in gold */
.program-text p strong { color: var(--gold); font-weight: 700; }
/* Programme/initiative names in pacific blue */
.program-text p em    { color: var(--pacific-blue); font-style: normal; font-weight: 500; }

.program-highlight {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid rgba(27,73,101,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--frozen-water);
}

.highlight-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--yale-blue);
  margin-bottom: 0.35rem;
}
.highlight-card p { font-size: 0.9rem; color: var(--ink-light); margin: 0; }

/* ===== PHASES ===== */
.phases { background: var(--yale-blue); }

.phases .section-label { color: var(--gold); }
.phases .section-title { color: var(--white); }
.phases .section-sub   { color: rgba(202,233,255,0.62); }

.phases-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}

.phase-card {
  background: rgba(202,233,255,0.06);
  border: 1px solid rgba(202,233,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), border-color var(--transition);
}
.phase-card:hover {
  background: rgba(202,233,255,0.11);
  border-color: rgba(98,182,203,0.35);
}

.phase-card--accent {
  background: rgba(201,151,74,0.12);
  border-color: rgba(201,151,74,0.28);
}
.phase-card--accent:hover {
  background: rgba(201,151,74,0.20);
  border-color: rgba(201,151,74,0.45);
}

.phase-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 1.5rem;
  color: rgba(202,233,255,0.22);
  margin-top: 3rem;
}

.phase-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--pacific-blue);
  line-height: 1;
  margin-bottom: 1rem;
}
.phase-card--accent .phase-number { color: var(--gold); }

.phase-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.phase-content p { font-size: 0.92rem; color: rgba(202,233,255,0.65); line-height: 1.7; }

.output-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  background: rgba(201,151,74,0.15);
  border: 1px solid rgba(201,151,74,0.3);
  color: var(--gold-lt);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== COHORT STATS ===== */
.cohort { background: var(--bg-alt); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,73,101,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card--highlight {
  background: var(--yale-blue);
  border-color: var(--yale-blue);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
}
.stat-unit {
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.6;
}

.stat-label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--yale-blue);
  margin-bottom: 0.4rem;
}
.stat-card--highlight .stat-label { color: var(--pale-sky); }

.stat-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.5;
}
.stat-card--highlight .stat-desc { color: rgba(202,233,255,0.52); }

/* ===== FOUNDER ===== */
.founder { background: var(--bg); }

.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: center;
}

.founder-photo-wrap { position: relative; }

.founder-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Frozen-water swatch behind photo */
.founder-photo-wrap::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  background: var(--frozen-water);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.founder-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 2px dashed var(--pacific-blue);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
}
.founder-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pacific-blue);
}
.founder-photo-placeholder small {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-family: var(--font-body);
}

.founder-bio h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--yale-blue);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.founder-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

.founder-bio p {
  color: var(--ink-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(202,233,255,0.68);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(202,233,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.footer-logo em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  font-family: var(--font-body);
  color: rgba(202,233,255,0.32);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(202,233,255,0.38);
  line-height: 1.6;
  max-width: 240px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(202,233,255,0.42);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(202,233,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--frozen-water); opacity: 1; }

.footer-email-plain {
  font-size: 0.82rem;
  color: rgba(202,233,255,0.28);
  user-select: all;
}

.footer-bottom { text-align: center; }
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(202,233,255,0.26);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 0.5rem;
}
.footer-copy { opacity: 0.5 !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag    { animation: fadeUp 0.6s ease both; }
.hero-title  { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub    { animation: fadeUp 0.6s 0.2s ease both; }
.btn-primary { animation: fadeUp 0.6s 0.3s ease both; }
.logo-strip  { animation: fadeUp 0.6s 0.4s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .program-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .phases-grid        { grid-template-columns: 1fr; }
  .phase-connector    { display: none; }
  .stats-grid         { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .founder-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .founder-photo-wrap { max-width: 300px; margin: 0 auto; }
  .footer-top         { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links  { display: none; }
  .section    { padding: 60px 0; }
  .hero       { min-height: auto; padding: 7rem 0 3rem; }
  .footer-links { grid-template-columns: 1fr; }
}