/* ═══════════════════════════════════════
   ECO NINJAS — SHARED STYLESHEET
   ═══════════════════════════════════════ */

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

:root {
  --blue-main:    #266BB2;
  --blue-dark:    #1a5490;
  --blue-light:   #5b9fd4;
  --blue-pale:    #e8f3fb;
  --green-deep:   #1a3d4f;
  --green-mid:    #1a4d2e;
  --green-bright: #2d7a4f;
  --green-light:  #4caf7d;
  --green-pale:   #e8f5ee;
  --white:        #ffffff;
  --text-dark:    #0d1f3c;
  --text-mid:     #3a4f6a;
  --text-light:   #6a7f99;
  --gold:         #c8a84b;
  --border:       rgba(38,107,178,0.15);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text-dark); overflow-x: hidden; }

/* ─── TOP BAR — white with pill text ─── */
.topbar { background: #c8e0f5; border-bottom: 1px solid rgba(38,107,178,0.15); padding: 8px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.topbar-pill { background: var(--blue-main); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }

/* ─── HEADER — white ─── */
header { position: relative; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
header.scrolled { box-shadow: 0 2px 24px rgba(38,107,178,0.12); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 51px; width: auto; display: block; }
.logo-text { display: none; }
.logo-sub { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--blue-main); display: block; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); text-decoration: none; padding: 8px 12px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
nav a:hover { color: var(--blue-main); background: var(--blue-pale); }
nav a.active { color: var(--blue-main); font-weight: 600; }
.nav-cta { background: var(--blue-main) !important; color: #fff !important; padding: 9px 18px !important; border-radius: 10px !important; font-weight: 700 !important; margin-left: 8px; }
.nav-cta:hover { background: var(--blue-dark) !important; color: #fff !important; }
.menu-toggle { display: none; flex-direction: column; gap: 7px; cursor: pointer; background: none; border: none; padding: 8px; position: relative; }
.menu-toggle span { display: block; width: 36px; height: 2.5px; background: var(--blue-main); border-radius: 2px; transition: all 0.3s; }
@keyframes hmPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.menu-toggle::before { display: none; }

/* ─── PAGE HERO — blue-main ─── */
.page-hero { background: var(--blue-main); padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(91,159,212,0.3) 0%, transparent 60%); pointer-events: none; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }
.page-hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 10px; margin-bottom: 20px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 620px; line-height: 1.7; }

/* ─── SECTIONS ─── */
section { padding: 96px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-main); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--text-dark); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-body { font-size: 1rem; line-height: 1.75; color: var(--text-mid); max-width: 600px; }
.section-header { margin-bottom: 56px; }

/* ─── BUTTONS ─── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-main); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 13px 26px; border-radius: 10px; text-decoration: none; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(38,107,178,0.35); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--blue-main); font-weight: 500; font-size: 0.9rem; padding: 13px 26px; border-radius: 10px; border: 1px solid rgba(38,107,178,0.4); text-decoration: none; transition: all 0.25s; cursor: pointer; }
.btn-secondary:hover { border-color: var(--blue-main); background: var(--blue-pale); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; font-weight: 600; font-size: 0.9rem; padding: 13px 26px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.7); text-decoration: none; transition: all 0.25s; cursor: pointer; }
.btn-white:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }

/* ─── CARDS ─── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; position: relative; overflow: hidden; transition: all 0.3s; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-main), var(--blue-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.card:hover { border-color: rgba(38,107,178,0.35); box-shadow: 0 12px 40px rgba(38,107,178,0.1); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }

/* ─── ACCREDITATIONS ─── */
.accred-strip { background: var(--white); padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.accred-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.accred-strip-label { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); margin-bottom: 32px; }
.accred-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.accred-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; transition: all 0.2s; opacity: 0.7; }
.accred-item:hover { opacity: 1; transform: translateY(-2px); }
.accred-item img { height: 44px; width: auto; object-fit: contain; filter: grayscale(40%); transition: filter 0.2s; }
.accred-item:hover img { filter: grayscale(0%); }
.accred-item span { font-size: 0.7rem; font-weight: 600; color: var(--text-light); text-align: center; letter-spacing: 0.04em; }

/* ─── STATS BAR — green ─── */
.stats-bar { background: linear-gradient(135deg, #1e5068 0%, var(--green-deep) 100%); padding: 56px 0; }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--green-light); display: block; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ─── CTA BAND — green ─── */
.cta-band { background: linear-gradient(135deg, #1e5068 0%, var(--green-deep) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(76,175,125,0.18) 0%, transparent 60%); pointer-events: none; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; position: relative; }
.cta-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.cta-sub { font-size: 0.95rem; color: rgba(255,255,255,0.78); line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--green-light); color: #fff; box-shadow: 0 8px 24px rgba(76,175,125,0.35); }
.cta-band .btn-white { border-color: rgba(255,255,255,0.8); color: #fff; }
.cta-band .btn-white:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* ─── FOOTER — blue-main ─── */
footer { background: var(--blue-main); color: rgba(255,255,255,0.75); padding: 72px 0 36px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo img { height: 51px; width: auto; display: block; }
.footer-brand .logo-text { display: none; }
.footer-brand .logo-sub { color: #fff; margin-bottom: 16px; white-space: nowrap; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.footer-contact { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.8rem; transition: all 0.2s; }
.social-link:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }

/* ─── MOBILE NAV — blue-main ─── */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(9,30,58,0.55); z-index: 199; backdrop-filter: blur(3px); }
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; clip-path: inset(0 0 0 0);
  width: min(80vw, 320px);
  background: linear-gradient(160deg, #0d1f3c 0%, #1a3d4f 100%);
  z-index: 200;
  flex-direction: column;
  padding: 0;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  box-shadow: none;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); box-shadow: -8px 0 40px rgba(9,30,58,0.4); }
.mobile-nav-header { display: flex; align-items: center; justify-content: flex-end; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 8px; }
.mobile-nav-header img { height: 38px; width: auto; }
.mobile-nav a { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.82); text-decoration: none; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; transition: background 0.2s, color 0.2s; }
.mobile-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.mobile-nav a::after { content: "›"; font-size: 1.2rem; opacity: 0.4; }
.mobile-nav-cta { margin: 20px 24px 0; padding: 14px; background: var(--green-deep); color: #fff !important; border-radius: 10px; text-align: center; font-weight: 700 !important; font-size: 0.9rem !important; justify-content: center !important; }
.mobile-nav-cta::after { display: none !important; }
.mobile-nav-cta:hover { background: var(--green-bright) !important; }
.mobile-nav-footer { padding: 20px 24px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.mobile-nav-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0; transition: color 0.2s; }
.mobile-nav-close:hover { color: #fff; }

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 896px) {
  .topbar { display: none; }
  nav { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle::before {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid var(--blue-main);
    animation: hmPulse 2.2s ease-out infinite;
    pointer-events: none;
  }
  .nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 30px; min-height: 95px; }
  .logo-sub { display: block; font-size: 0.58rem; white-space: nowrap; overflow: visible; max-width: none; line-height: 1.3; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .logo { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
  .footer-brand .logo img { height: 44px; }
  .footer-brand .logo-sub { white-space: nowrap; font-size: 0.6rem; color: rgba(255,255,255,0.7); }
  .accred-logos { gap: 28px; }
  section { padding: 72px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 56px 0 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
  .cta-actions { flex-direction: column; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════
   SITE SEARCH
   ═══════════════════════════════════════ */
.search-btn {
  background: none;
  border: 1.5px solid rgba(38,107,178,0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--blue-pale); border-color: var(--blue-main); color: var(--blue-main); }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.55);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(3px);
}
.search-overlay.open { display: flex; }

.search-modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  margin: 0 20px;
  box-shadow: 0 24px 80px rgba(13,31,60,0.2);
  overflow: hidden;
  border: 2px solid var(--blue-main);
}

.search-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.search-bar svg { color: var(--text-light); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: none;
}
.search-input::placeholder { color: var(--text-light); }
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 4px;
  line-height: 1;
}
.search-close:hover { color: var(--text-dark); }

.search-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-result-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-pale); }
.search-result-title { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; }
.search-result-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; }
.search-result-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-main); margin-bottom: 4px; }
.search-empty { padding: 32px 20px; text-align: center; color: var(--text-light); font-size: 0.88rem; }
.search-footer { padding: 10px 20px; background: var(--blue-pale); font-size: 0.72rem; color: var(--text-light); text-align: center; }

/* ─── NAV SEARCH BAR ─── */
.nav-search-wrap { display: flex; justify-content: center; }
.nav-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--blue-pale); border: 1.5px solid rgba(38,107,178,0.25);
  border-radius: 10px; padding: 9px 16px; cursor: text;
  width: 100%; max-width: 340px; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-bar:hover { border-color: var(--blue-main); box-shadow: 0 0 0 3px rgba(38,107,178,0.08); }
.nav-search-bar svg { color: var(--text-light); flex-shrink: 0; }
.nav-search-placeholder { font-size: 0.85rem; color: var(--text-light); user-select: none; white-space: nowrap; }
.nav-search-shortcut { margin-left: auto; font-size: 0.68rem; color: var(--text-light); background: rgba(38,107,178,0.1); border-radius: 4px; padding: 2px 6px; font-weight: 600; white-space: nowrap; }
@media (max-width: 896px) { .nav-search-wrap { display: none; } }

/* ─── SCROLL HIDE / SHOW HEADER ─── */
.site-header-wrap { position: sticky; top: 0; z-index: 200; transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); }
.site-header-wrap.hide-nav { transform: translateY(-100%); }
.topbar { position: relative; z-index: 201; }
