/* ===== EGIL — Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:         #FDFAF7;
  --blue:       #88AEDD;
  --blue-dark:  #4A6EB5;
  --blue-light: #DBE9F8;
  --gold:       #E8873A;
  --gold-light: #FDEBD8;
  --gold-dark:  #C96E22;
  --text:       #1C1C1C;
  --text-mid:   #5A5752;
  --text-light: #9A948E;
  --white:      #FFFFFF;
  --card:       #EEF4FC;
  --border:     #D8E4F0;
  --shadow:     0 4px 24px rgba(74,110,181,.12);
  --radius:     14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== HERO FLYER ===== */
/*
  Two-element sine-wave trick:
  - Wrapper animates X with linear timing  →  constant horizontal speed
  - Image animates Y with ease-in-out + alternate  →  smooth sine-like glide
  Combined they trace a true sinusoidal path.
  Rotation follows the vertical direction for a natural body tilt.
*/
@keyframes fly-x {
  from { transform: translateX(-140px); }
  to   { transform: translateX(calc(100vw + 140px)); }
}

@keyframes fly-y {
  0%   { transform: translateY(-30px) rotate(-5deg); }
  100% { transform: translateY(30px)  rotate(5deg); }
}

.hero-flyer-wrap {
  position: fixed;
  top: 120px;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  animation: fly-x 12s linear infinite;
  transition: opacity 0.3s;
}

.hero-flyer-wrap.eagle-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-flyer {
  display: block;
  height: 92px;
  width: auto;
  animation: fly-y 3.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 20px rgba(56,189,248,.22));
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  padding: 0 5%;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.logo-badge {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

img.eagle-logo {
  width: 110px;
  height: auto;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  line-height: 1.1;
}

.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: var(--text-mid);
  display: block;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  background: var(--gold-light);
}

.nav-links .btn-nav {
  background: var(--gold);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}

.nav-links .btn-nav:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all .25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding: 96px 5% 80px;
  text-align: center;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--gold-light); font-style: italic; }

/* Animated word */
.hero-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}

.hero-word {
  display: inline-block;
  color: #FDEBD8;
  font-style: italic;
}

@keyframes wordExit {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-110%); opacity: 0; }
}

@keyframes wordEnter {
  0%   { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.hero-word.word-exit  { animation: wordExit  0.38s cubic-bezier(.4,0,.2,1) forwards; }
.hero-word.word-enter { animation: wordEnter 0.42s cubic-bezier(.4,0,.2,1) forwards; }

/* Hero buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-outline {
  background: #fff;
  color: var(--text);
  border: 2px solid #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .2s, color .2s, transform .2s;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-2px);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Small hero variant */
.hero-sm {
  padding: 72px 5% 60px;
  background: var(--blue);
}

.hero-sm h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 14px;
}

.hero-sm p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover { background: var(--gold-dark); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}

.btn-outline:hover { background: var(--gold-light); }

.btn-white {
  background: #fff;
  color: var(--gold-dark);
}

/* ===== SECTION WRAPPERS ===== */
section { padding: 72px 5%; }

.container {
  max-width: 1100px;
  margin: auto;
}

.section-label {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
}

/* ===== WHO WE ARE ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.who-visual {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--gold-light) 100%);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.who-visual .big-icon {
  filter: drop-shadow(0 8px 24px rgba(56,189,248,.2));
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 50px;
}

/* ===== PROGRAMS ===== */
.programs-bg { background: var(--white); }

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.program-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow .25s, transform .25s;
}

.program-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.program-card.blue::before  { background: var(--blue); }
.program-card.gold::before  { background: var(--gold); }

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.program-card.blue .program-icon { background: var(--blue-light); }
.program-card.gold .program-icon { background: var(--gold-light); }

.program-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.program-card p { color: var(--text-mid); font-size: .97rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #3A5A9A 100%);
  padding: 48px 5%;
}

.stats-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { color: #fff; }

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  font-weight: 500;
}

/* ===== GET INVOLVED ===== */
.involve-bg { background: linear-gradient(160deg, #f0f9ff 0%, var(--bg) 70%); }

.involve-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.involve-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: box-shadow .25s, transform .25s;
}

.involve-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.involve-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.involve-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.involve-card p { color: var(--text-mid); font-size: .9rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 36px 5%;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-badge { width: 40px; height: 40px; }

.footer-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

footer p { font-size: 13.5px; }

footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== ABOUT PAGE ===== */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.origin-visual {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--blue-light) 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-list { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
  color: var(--text-mid);
}

.detail-list li::before {
  content: '›';
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 700;
}

/* ===== MEET US PAGE ===== */
.team-intro {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
  color: var(--text-mid);
  font-size: 1.07rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 28px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}

.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.avatar {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 18px;
}
.av-blue    { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.av-gold    { background: linear-gradient(135deg, #FBBF24, #D97706); }
.av-teal    { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
.av-purple  { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.av-rose    { background: linear-gradient(135deg, #FB7185, #E11D48); }
.av-green   { background: linear-gradient(135deg, #4ADE80, #15803D); }
.av-orange  { background: linear-gradient(135deg, #FB923C, #C2410C); }

.team-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}

.team-card .role {
  font-size: .92rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.35;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  letter-spacing: .3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: .97rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-stack { display: flex; flex-direction: column; gap: 18px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1.05rem;
  border-radius: 10px;
  margin-top: 4px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.info-block h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-mid);
  font-size: .95rem;
}

.info-item:last-child { margin-bottom: 0; }

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-dark);
}

.info-item a { color: var(--blue-dark); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

/* tel:/mailto: links only do something if the visitor's device has a
   default calling/mail app registered — always true on mobile, often not
   on desktop. The copy button is the desktop fallback: no app needed,
   just grabs the value so it can be pasted into whatever they use. */
.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: none;
  background: none;
  color: var(--text-mid);
  cursor: pointer;
  border-radius: 5px;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--blue-dark); background: var(--blue-light); }
.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.copy-btn.copied::after { content: "Copied!"; opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1.5px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 4px;
  }

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

  .nav-links a { width: 100%; text-align: left; padding: 11px 14px; }

  .hamburger { display: flex; }

  nav { position: sticky; }

  .who-grid,
  .origin-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .who-visual,
  .origin-visual { height: 220px; }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .involve-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

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

  .form-card { padding: 28px 20px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  section { padding: 52px 5%; }
}
