/* ============================================
   INDALO HIGHER EDUCATION
   Dark authoritative consultancy aesthetic
   ============================================ */

/* ─── Fonts loaded via <link> tags in HTML ─── */

/* ─── Variables ─── */
:root {
  --navy: #0c1a2e;
  --navy-mid: #14253f;
  --navy-light: #1c3254;
  --navy-wash: #0f1e33;
  --teal: #1f7a7a;
  --teal-light: #2a9e9e;
  --teal-muted: #1a6060;
  --teal-pale: #e6f2f2;
  --warm-white: #faf8f5;
  --cream: #f3f0ea;
  --sand: #e0dbd2;
  --text-dark: #1a1a1a;
  --text-mid: #4a4f56;
  --text-light: #7a7f86;
  --gold: #c4a240;
  --rule: #ddd8d0;
  --rule-light: #eae6df;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-mid);
  background: var(--white);
  line-height: 1.7;
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; max-width: 62ch; }

a { color: var(--teal); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--teal-light); }

strong { font-weight: 600; color: var(--navy); }

img { max-width: 100%; display: block; }

/* ─── Layout containers ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ─── Section label ─── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--teal);
}

.section-label--light {
  color: var(--teal-light);
}

.section-label--light::before {
  background: var(--teal-light);
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.3rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.8rem 0;
  box-shadow: 0 1px 30px rgba(12, 26, 46, 0.08);
}

/* On dark hero pages, header starts transparent */
.site-header--dark .nav-logo,
.site-header--dark .site-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header--dark.scrolled .nav-logo,
.site-header--dark.scrolled .site-nav a {
  color: var(--text-mid);
}

.site-header--dark.scrolled .nav-logo {
  color: var(--navy);
}

/* On light pages, header has bg from start */
.site-header--light {
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule-light);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
}

.nav-logo svg {
  height: 36px;
  width: auto;
}

.nav-logo .logo-light {
  display: block;
}

.nav-logo .logo-dark {
  display: none;
}

.site-header.scrolled .nav-logo .logo-light {
  display: none;
}

.site-header.scrolled .nav-logo .logo-dark {
  display: block;
}

/* On light-header pages, always show dark logo */
.site-header--light .nav-logo .logo-light {
  display: none;
}

.site-header--light .nav-logo .logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.25s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.site-nav a.nav-cta {
  color: var(--white);
  background: var(--teal);
  padding: 0.5rem 1.2rem;
  border-bottom: none;
  border-radius: 2px;
  transition: background 0.25s;
}

.site-nav a.nav-cta:hover {
  background: var(--teal-light);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }
.site-header--dark .nav-toggle span { background: white; }
.site-header--dark.scrolled .nav-toggle span { background: var(--navy); }

/* ============================================
   HERO — Full viewport, dark overlay
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 7rem;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient overlay — works with or without photo */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(31, 122, 122, 0.2) 0%, transparent 60%),
    linear-gradient(160deg, rgba(12, 26, 46, 0.7) 0%, rgba(20, 37, 63, 0.6) 40%, rgba(28, 50, 84, 0.5) 100%);
  z-index: 1;
}

/* Subtle geometric texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.hero h1 {
  color: var(--warm-white);
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 400;
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 2rem;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--warm-white);
}

.hero-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Watermark in hero */
.hero-watermark {
  position: absolute;
  bottom: -60px;
  right: 5%;
  width: 340px;
  height: 340px;
  opacity: 0.15;
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   PAGE HERO — Inner pages
   ============================================ */

.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(31, 122, 122, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, rgba(12, 26, 46, 0.75) 0%, rgba(20, 37, 63, 0.65) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--warm-white);
  margin-bottom: 0.6rem;
}

.page-hero .subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
}

/* ============================================
   SECTIONS — White content areas
   ============================================ */

.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
}

.section--navy h2,
.section--navy h3 {
  color: var(--warm-white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.65);
}

.section--navy .section-label {
  color: var(--teal-light);
}

.section--navy .section-label::before {
  background: var(--teal-light);
}

/* ============================================
   STAT BLOCKS
   ============================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: 2.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(12, 26, 46, 0.08);
  border-color: var(--sand);
}

.service-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.service-card .card-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card .card-link:hover {
  color: var(--teal-light);
}

/* ============================================
   CAPABILITY LIST (advisory/initiatives pages)
   ============================================ */

.capability-list {
  margin-top: 2rem;
}

.capability {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.capability:first-child {
  padding-top: 0;
}

.capability:last-child {
  border-bottom: none;
}

.capability h3 {
  color: var(--teal-muted);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.capability p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   ENGAGEMENT LIST (experience page)
   ============================================ */

.engagement-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.engagement-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.engagement-list li:last-child { border-bottom: none; }

.engagement-list .via {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  white-space: nowrap;
}

/* ============================================
   INSTITUTIONS GRID
   ============================================ */

.institutions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 2rem;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.institutions li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1rem;
}

.institutions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.4;
}

/* ============================================
   ABOUT / FOUNDER
   ============================================ */

.founder-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.founder-photo {
  aspect-ratio: 3/4;
  background: var(--cream);
  border: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.82rem;
  font-style: italic;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-intro {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: none;
}

.credentials {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.credential {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 500;
}

.credential strong {
  color: var(--teal);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-block h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-line {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact-line a {
  font-weight: 500;
}

.contact-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--solid {
  background: var(--teal);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--white);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--warm-white);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--warm-white);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  width: 40px;
  height: 1.5px;
  background: var(--teal);
  margin: 2rem 0;
  opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy);
  padding: 3.5rem 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner a:hover {
  color: var(--teal-light);
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .container, .container--narrow {
    padding: 0 1.5rem;
  }

  .header-inner {
    padding: 0 1.5rem;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-header--dark .site-nav {
    background: var(--navy-mid);
  }

  .site-header--dark .site-nav a {
    color: rgba(255,255,255,0.8);
  }

  .hero {
    min-height: 85vh;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .page-hero {
    padding: 6.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .service-card {
    padding: 2rem;
  }

  .hero-watermark {
    width: 200px;
    height: 200px;
    right: -20px;
    bottom: -30px;
  }
}
