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

:root {
  --navy:   #002244;
  --ink:    #001a36;
  --gold:   #6DA76A;
  --gold-lt:#8dc48a;
  --white:  #ffffff;
  --off:    #f7f6f3;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --max:    1140px;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  /* prevent horizontal scroll on mobile */
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ─── Layout helpers ──────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-narrow { max-width: 720px; }

/* ─── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* solid fallback for browsers without backdrop-filter (Firefox < 103) */
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  height: 64px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-links {
  list-style: none;
  display: -webkit-flex;
  display: flex;
  gap: 32px;
  -webkit-align-items: center;
          align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
  /* minimum touch target */
  display: inline-block;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  min-height: 44px;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
          align-items: center;
}
.nav-links a.nav-cta:hover { background: var(--gold-lt); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  /* meet 44px touch target */
  width: 44px;
  height: 44px;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  -webkit-appearance: none;
          appearance: none;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  background: -webkit-linear-gradient(315deg, var(--navy) 0%, #1e3a5f 60%, #2c5282 100%);
  background:         linear-gradient(135deg, var(--navy) 0%, #1e3a5f 60%, #2c5282 100%);
  color: var(--white);
  padding: 80px 24px 72px;
}
.hero-inner {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: -webkit-flex;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  -webkit-align-items: center;
          align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s, color 0.2s;
          transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  /* minimum touch target */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-lt); }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-secondary:hover { border-color: var(--white); }
.btn-full { width: 100%; }

/* override secondary in light sections */
.section .btn-secondary {
  border-color: var(--border);
  color: var(--navy);
}
.section .btn-secondary:hover { border-color: var(--navy); }

.hero-stats {
  display: -webkit-flex;
  display: flex;
  gap: 32px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.stat { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-image-wrap {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
          justify-content: center;
}
.hero-photo {
  width: 320px;
  height: 380px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  /* prevent layout shift while loading */
  background: rgba(255,255,255,0.08);
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--off); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ─── ABOUT ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  -webkit-align-items: start;
          align-items: start;
}
.about-body p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about-body p strong { color: var(--navy); }

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.expertise-card {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 12px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  /* prevent text overflow in small grid cells */
  min-width: 0;
}
.expertise-icon { font-size: 1.4rem; -webkit-flex-shrink: 0; flex-shrink: 0; }

/* ─── SPEAKING ────────────────────────────────────────────────── */
.topics-grid {
  display: grid;
  /* min() prevents overflow on very narrow screens */
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  -webkit-transition: box-shadow 0.2s, -webkit-transform 0.2s;
          transition: box-shadow 0.2s, transform 0.2s;
  /* prevent text overflow */
  min-width: 0;
}
/* hover effect only on devices that support it (not touch) */
@media (hover: hover) {
  .topic-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
  }
}
.topic-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.topic-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.topic-card p { font-size: 0.875rem; color: var(--muted); }
.speaking-cta {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

/* ─── LEADERSHIP ──────────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.leadership-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  min-width: 0;
}
.leadership-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
}
.role-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.leadership-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.leadership-card p { font-size: 0.875rem; color: var(--muted); }

/* ─── NEWS ────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-width: 0;
}
.news-meta {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
  -webkit-align-items: center;
          align-items: center;
  margin-bottom: 12px;
}
.news-pub {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.news-date { font-size: 0.8rem; color: var(--muted); }
.news-headline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}
.news-headline a:hover { color: var(--gold); }
.news-desc { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.news-pub-tedx { color: #e62b1e; }
.news-watch-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 16px;
  background: #e62b1e;
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 44px;
  -webkit-transition: background 0.2s;
          transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.news-watch-btn:hover { background: #c0221a; }

/* ─── CONTACT ─────────────────────────────────────────────────── */
.contact-form {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  /* 16px prevents iOS Safari auto-zoom on focus */
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 14px;
  outline: none;
  -webkit-transition: border-color 0.2s;
          transition: border-color 0.2s;
  width: 100%;
  /* remove default styling on iOS/Safari */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
/* restore select arrow after removing appearance */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
}
.footer-inner {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}
.footer-links {
  display: -webkit-flex;
  display: flex;
  gap: 24px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
  /* minimum touch target */
  padding: 4px 0;
  display: inline-block;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; }

/* ─── SUBSTACK ────────────────────────────────────────────────── */
.substack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.substack-card {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  background: var(--off);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-transition: box-shadow 0.2s, -webkit-transform 0.2s;
          transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
  color: var(--ink);
}
@media (hover: hover) {
  .substack-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
  }
}
.substack-date {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.substack-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.substack-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  -webkit-flex: 1;
          flex: 1;
  margin-bottom: 16px;
}
.substack-read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}
.substack-cta { margin-top: 8px; }

/* ─── RESPONSIVE: tablet (≤ 900px) ───────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
            justify-content: center;
    -webkit-order: -1;
            order: -1;
  }
  .hero-photo { width: 180px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── RESPONSIVE: mobile (≤ 640px) ───────────────────────────── */
@media (max-width: 640px) {
  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    -webkit-flex-direction: column;
            flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    /* drop shadow so it floats above content */
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.nav-cta {
    margin-top: 8px;
    width: 100%;
    -webkit-justify-content: center;
            justify-content: center;
  }
  .nav-links.open { display: -webkit-flex; display: flex; }
  .nav-toggle { display: -webkit-flex; display: flex; }

  .hero { padding: 48px 24px 56px; }
  .hero-stats { gap: 20px; }
  .hero-actions { -webkit-flex-direction: column; flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 56px 20px; }

  .expertise-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }

  .speaking-cta { -webkit-flex-direction: column; flex-direction: column; }
  .speaking-cta .btn { width: 100%; }

  .footer-inner { -webkit-flex-direction: column; flex-direction: column; text-align: center; }
  .footer-links { -webkit-justify-content: center; justify-content: center; }
}

/* ─── RESPONSIVE: very small (≤ 375px) ───────────────────────── */
@media (max-width: 375px) {
  .hero-photo { width: 140px; height: 170px; }
  .stat-num { font-size: 1.4rem; }
  .hero-stats { gap: 16px; }
}
