/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f5f2ec;
  color: #2c2c2c;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TOKENS ── */
:root {
  --navy:    #0a1628;
  --blue:    #0d2244;
  --mid:     #1a3a6e;
  --accent:  #e8a020;
  --gold:    #f0b830;
  --light:   #f5f2ec;
  --white:   #ffffff;
  --text:    #2c2c2c;
  --muted:   #6b7280;
  --border:  rgba(10,22,40,0.1);
  --nav-h:   90px; /* ✅ bumped from 80px to fit larger logo */
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: #ffffff;
  backdrop-filter: none;
  display: flex; align-items: center;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(10,22,40,0.1);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(10,22,40,0.10); }

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  flex-shrink: 0; margin-right: 2.5rem;
}
.nav-logo img { height: 77px; width: auto; object-fit: contain; } /* ✅ 25% larger: 61.6 × 1.25 = 77px */

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--navy); font-size: 1.15rem; font-weight: 700;
  line-height: 1.1; display: none;
}

.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  list-style: none; flex: 1;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: 2px;
  transition: all 0.2s; white-space: nowrap;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--accent); border-radius: 1px;
}

.nav-cta {
  margin-left: auto; flex-shrink: 0;
  background: var(--accent); color: var(--navy) !important;
  padding: 0.5rem 1.3rem; border-radius: 2px;
  font-weight: 700 !important; font-size: 0.84rem !important;
  letter-spacing: 0.06em; text-transform: uppercase !important;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  margin-left: auto; padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 190; overflow-y: auto;
  padding: 2rem 5vw;
  flex-direction: column; gap: 0.3rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .m-cta {
  margin-top: 1.5rem; background: var(--accent); color: var(--navy);
  text-align: center; border-radius: 2px; padding: 1rem;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; border: none;
}

/* ═══════════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════════ */
.page-wrap { padding-top: var(--nav-h); }

/* ═══════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════ */
.section { padding: 96px 5vw; }
.section--dark  { background: var(--navy); }
.section--mid   { background: var(--blue); }
.section--white { background: var(--white); }
.section--light { background: var(--light); }

/* ✅ FIX: prevent any child grid from bleeding outside #wsc on mobile */
#wsc {
  overflow: hidden;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--accent); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section-tag::before {
  content: ''; display: block; width: 28px; height: 2px; background: var(--accent);
}
.section-tag--light { color: var(--gold); }
.section-tag--light::before { background: var(--gold); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 900; line-height: 1.15; color: var(--navy);
  margin-bottom: 0.9rem;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.78;
  font-weight: 300; max-width: 620px;
}
.section-sub--light { color: rgba(255,255,255,0.65); }

.divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}

/* ═══════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 55%, #0e2a52 100%);
  padding: 80px 5vw 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(232,160,32,0.07) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900; color: var(--white); line-height: 1.08;
  margin-bottom: 1.2rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 580px; }
.page-hero .section-tag { margin-bottom: 1.2rem; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.8rem; border-radius: 2px;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.35); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.arrow-link {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: all 0.2s;
}
.arrow-link:hover { color: var(--navy); border-color: var(--navy); }

/* ═══════════════════════════════════════════════
   STATS ROW
   ═══════════════════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 2.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 900; color: var(--gold); line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* ═══════════════════════════════════════════════
   ADVANTAGES GRID
   ═══════════════════════════════════════════════ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.adv-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 2rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  transition: all 0.3s;
}
.adv-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(232,160,32,0.25); }
.adv-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.15rem; }
.adv-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--white); margin-bottom: 0.5rem;
}
.adv-text p { font-size: 0.87rem; color: rgba(255,255,255,0.58); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   TEAM CARDS
   ═══════════════════════════════════════════════ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card-v {
  background: var(--white); border-radius: 6px;
  border: 1px solid var(--border); overflow: hidden;
  transition: all 0.32s;
}
.team-card-v:hover { transform: translateY(-6px); box-shadow: 0 16px 45px rgba(10,22,40,0.12); border-color: rgba(232,160,32,0.35); }
.team-photo-wrap {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background: #d0cfc8;
}
.team-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s;
}
.team-card-v:hover .team-photo-wrap img { transform: scale(1.05); }
.team-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(165deg, var(--navy) 0%, var(--blue) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem;
}
.team-photo-placeholder .initials {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900;
  color: var(--gold); opacity: 0.85;
}
.team-photo-placeholder .ph-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.team-photo-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.8rem;
}
.team-card-body { padding: 1.1rem 1.2rem 1.4rem; }
.team-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.2rem;
}
.team-role {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}
.team-card-body p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* Horizontal team card */
.team-card-h {
  display: flex; gap: 2rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.8rem;
  transition: all 0.3s;
}
.team-card-h:hover { border-color: rgba(232,160,32,0.35); box-shadow: 0 8px 32px rgba(10,22,40,0.09); }
.team-card-h .team-photo-wrap { width: 110px; flex-shrink: 0; border-radius: 6px; }
.team-card-h .team-card-body { padding: 0; }

/* ═══════════════════════════════════════════════
   PHOTO GRID
   ═══════════════════════════════════════════════ */
.photo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  /* ✅ FIX: prevent grid from overflowing section padding on mobile */
  width: 100%;
  box-sizing: border-box;
}
.photo-item { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.photo-item.tall { aspect-ratio: 3/4; grid-row: span 2; }
.photo-item.wide { aspect-ratio: 16/9; grid-column: span 2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-item:hover img { transform: scale(1.05); }

/* ═══════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.8rem; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 4px; flex-shrink: 0;
  background: var(--light); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-detail h5 {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem;
}
.contact-detail p { color: var(--navy); font-weight: 500; }

.form-wrap { background: var(--light); border-radius: 8px; padding: 2.5rem; }
.form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem;
}
.form-wrap > p { font-size: 0.87rem; color: var(--muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.78rem 1rem;
  border: 1.5px solid rgba(10,22,40,0.15);
  border-radius: 3px; font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem; color: var(--text); background: var(--white);
  transition: border-color 0.2s; outline: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; margin-top: 0.5rem;
  padding: 1rem; background: var(--navy); color: var(--white);
  border: none; border-radius: 3px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.2s;
}
.btn-submit:hover { background: var(--blue); transform: translateY(-1px); }
.btn-submit.sent { background: #1a6e3a; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 5vw 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 56px; margin-bottom: 1.1rem; background: #ffffff; border-radius: 4px; padding: 4px 10px; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.45); line-height: 1.72; max-width: 300px; }
.footer-col h5 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5); font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 34px; height: 34px; border-radius: 3px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 0.8rem; font-weight: 700;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — 1100px
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 900px  (tablets / large phones)
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Nav — hamburger fix */
  .nav { padding: 0 1rem; }
  .nav-logo img { height: 60px; } /* ✅ 25% larger: 48 × 1.25 = 60px */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; flex-shrink: 0; }

    /* ✅ ADD HERE — Journey/Timeline Section */
  #journey > div {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  /* Sections */
  .section { padding: 70px 5vw; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Photo grids */
  .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* WSC section */
  #wsc .stats-row { padding: 2rem 1.2rem; }
  #wsc .btn-row { flex-direction: column; align-items: center; }

  /* Collaborations */
  #collaborations { padding: 60px 1.2rem; }
  #collaborations .collab-img-wrap img { width: 100%; height: 160px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 640px  (phones)
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ✅ FIX: 2-col on small phones keeps photos readable */
  .photo-grid-3,
  .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-item.wide { grid-column: span 1; aspect-ratio: 4/3; }

  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 480px  (small phones)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* ✅ FIX: single column on very small phones — no overflow possible */
  .photo-grid-4 { grid-template-columns: 1fr; }

  #wsc .stats-row { padding: 1.5rem 1rem; }

  #collaborations { padding: 48px 1rem; }
  #collaborations .collab-img-wrap img { height: 140px; }
  #collaborations .collab-body { padding: 16px 18px 22px; }
}

/* ── FOUNDER CARD RESPONSIVE ── */
@media (max-width: 700px) {
  .founder-card { grid-template-columns: 1fr !important; }
  .founder-card .tm-photo { min-height: 220px !important; border-radius: 8px 8px 0 0; }
}
