/* =================================================================== */
/*  RESPONSIVE LAYOUT GUIDE - Styles by device size / orientation      */
/* =================================================================== */

/* 1) Base styles (mobile-first) -------------------------------------------------- */
/* These rules apply to *all devices* by default (unless overridden).            */
/* Example: body { margin:0; font-family:… }                                   */
/* Use for layout, typography, colors common to all screen sizes.               */

/* 2) Breakpoint for smaller desktops/tablets (max-width: 900px) ---------------- */
/* Example: @media (max-width: 900px) { ... }                                   */
/* Used when screen width is *900px or narrower*.                             */
/* Typical changes: navigation switches to hamburger, hero height reduced,       */
/* grid layouts collapse, text sizes adjusted.                                   */

/* 3) Mobile-only tweaks (max-width: 700px) ------------------------------------- */
/* Example: @media (max-width: 700px) { ... }                                   */
/* Further adjustments for small screens: extra padding, font-size reductions,   */
/* background positioning, etc.                                                 */

/* 4) Orientation or other feature queries ------------------------------------ */
/* Example: @media (orientation: landscape) { ... }                             */
/* Use when you want different behaviour in portrait vs landscape, or if you     */
/* detect high DPI, hover support, pointer type, etc.                            */

/* 5) Desktop/large screens (min-width) ---------------------------------------- */
/* If you choose desktop-first approach you may use @media (min-width: …).      */
/* But with mobile-first base styles, you often only need narrow max-width      */
/* queries instead.                                                             */

/* Notes:                                                                   */
/* - Place the most general (mobile/base) rules at the top.                     */
/* - Then place narrower breakpoints below (overriding earlier styles).         */
/* - Use flexbox/grid for adaptable layout rather than fixed widths.            */
/* - Use padding, margin, font sizes in responsive units (%, rem, vh) where      */
/*   applicable so scaling is more natural.                                    */

/* Reference:                                                               */
/* - MDN “Media query fundamentals”                                         */  /*  [oai_citation:0‡MDN Web Docs](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout/Media_queries?utm_source=chatgpt.com) */
/* - CSS-Tricks “Guide to media queries”                                     */  /*  [oai_citation:1‡css-tricks.com](https://css-tricks.com/a-complete-guide-to-css-media-queries/?utm_source=chatgpt.com) */

/* =================================================================== */
/*  END OF GUIDE                                                            */
/* =================================================================== */
:root {
  --slate: #1f2937;
  --slate-2: #111827;
  --green: #16a34a;
  --amber: #f59e0b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #0b1220;
  --alt: #0f172a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
          env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--slate-2), var(--slate));
}
a {
  color: #c7f9cc;
  text-decoration: none;
}
/* Floating logo overlays both nav and hero */
.floating-logo {
  position: absolute; /* stays visible as you scroll; switch to 'absolute' if you want it only over the hero */
  top: 14px;
  left: 24px;
  z-index: 2001; /* higher than .nav (1000) so it sits on top */
  display: block;
}

.floating-logo img {
  height: 110px; /* make it as large as you like */
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  pointer-events: auto; /* keep it clickable; set to none if you don't want clicks */
}

/* Give the nav some left breathing room so the logo doesn't overlap menu links */
.nav .nav-wrap {
  padding-left: 100px; /* adjust to match your logo size */
}

/* Ensure hero text clears the overlay a bit */
.hero-content {
  padding-top: 10px; /* adjust if needed so text doesn't sit under the logo */
}
.hero-content p {
  color: #fff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
}

/* Scale down on smaller screens */
@media (max-width: 900px) {
  .floating-logo img {
    height: 92px;
  }
  .nav .nav-wrap {
    padding-left: 100px;
  }
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav {
  position: absolute; /* instead of sticky */
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 0; /* ensures even top/bottom spacing */
  border-bottom: none;
  z-index: 1000;
}
.nav-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-wrap nav {
  display: flex;
  gap: 20px;
  align-items: center; /* ✅ THIS fixes the misalignment */
}
/* Make the logo stick left */
.nav-wrap .brand {
  margin-right: auto;
}
.nav-overlay {
  padding: 10px 0;
}
.nav-overlay nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.brand img {
  height: 92px;
}
.nav a {
  color: var(--slate) !important;
}
.nav .btn-green {
  color: #ffffff !important;  /* force white text */
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-green {
  background: var(--green);
  color: #ffffff !important;
}
.nav .btn-green {
  color: #ffffff !important;  /* force white text */
}
.btn-amber {
  background: var(--amber);
  color: #231a00;
}
.btn-outline {
  border-color: #2b3344;
  color: #dbeafe;
}
.hero {
  background: radial-gradient(
    1200px 400px at 20% -10%,
    rgba(22, 163, 74, 0.15),
    transparent
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
h1 {
  font-size: 36px;
  margin: 0.6em 0;
}
.lead {
  font-size: 16px;
  color: #eaf2ff;
  max-width: 42ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 16px 0 6px;
}
.ticks {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #cfd8e3;
}
.mock video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #1c2434;
  background: #060a12;
}
.mock img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #1c2434;
  background: #060a12;
}
/* --- Custom Video Overlay Controls --- */
.video-hero .video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1c2434;
  background: #060a12;
}

.video-hero video {
  display: block;
  width: 100%;
  height: auto;
}

/* Center play button (big) */
.v-centerplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 36px;
  line-height: 88px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(2px);
  display: none; /* shown when video is paused */
}
/* Full background hero with overlay */
.hero-image {
  position: relative;
  height: 70vh;
  background: url("assets/hero11.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0; /* make sure there's NO space above */
  padding: 0; /* remove inherited padding */
}

.hero-overlay {
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.7) 100%
  ); */
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  padding-top: 6cm; /* pushes text down, not the image */
  padding-left: 40px;
  padding-right: 20px;
  padding-bottom: 40px;
}
/* Stronger text shadow for readability on bright sand */
.hero-content h1,
.hero-content p,
.hero-content .btn {
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .funding .fund-grid {
    grid-template-columns: 1fr;
  }

  @media (max-width: 700px) {
    .hero-image {
      height: 55vh;
      background-position: center top;
    }
  }
}

.v-centerplay.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Controls bar */
.v-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0) 0%,
    rgba(5, 8, 16, 0.8) 48%,
    rgba(5, 8, 16, 0.95) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
}

.v-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.v-btn {
  appearance: none;
  border: 1px solid #25324a;
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.v-btn:hover {
  border-color: #3a4b6b;
}
.v-btn:focus {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.v-progress {
  height: 10px;
  border-radius: 999px;
  background: #111a2a;
  border: 1px solid #24324a;
  position: relative;
  cursor: pointer;
}
.v-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #f59e0b);
  border-radius: 999px;
}

.v-time {
  font-variant-numeric: tabular-nums;
  color: #c7d2fe;
  font-size: 13px;
}

/* Auto-hide controls after idle, show on hover/touch */
.video-hero .video-wrap:hover .v-controls {
  opacity: 1;
}

/* Unmute hint */
.v-hint {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(6, 10, 18, 0.8);
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid #1a2234;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.v-hint.show {
  opacity: 1;
  transform: translateY(0);
}

/* Small screens */
@media (max-width: 600px) {
  .v-time {
    display: none;
  }
}
.section {
  padding: 70px 0;
}
.section.alt {
  background: linear-gradient(180deg, var(--alt), #0c1325);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid #1a2234;
  border-radius: 14px;
  padding: 18px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  background: var(--card);
  border: 1px solid #1a2234;
  border-radius: 12px;
  padding: 16px;
}
.funding .fund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.fund-card {
  background: var(--card);
  border: 1px solid #1a2234;
  border-radius: 14px;
  padding: 18px;
}
.fund-card form {
  display: flex;
  gap: 10px;
}
.fund-card input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a3144;
  background: #0a1220;
  color: #e5e7eb;
}
.budget-note {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 10px;
}
.timeline li {
  background: var(--card);
  border: 1px solid #1a2234;
  border-radius: 10px;
  padding: 12px;
}
.timeline span {
  color: #b9e0ff;
  font-weight: 700;
  margin-right: 8px;
}
.updates {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.updates li {
  margin-bottom: 8px;
}
.faq details {
  background: var(--card);
  border: 1px solid #1a2234;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.footer {
  border-top: 1px solid #0b1220;
  background: #0a0f1a;
  width: 100%;
  padding: 26px 0;
}
.footer-container {
  max-width: 1400px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap; /* allows wrapping */
  gap: 1rem;
} 
.foot-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.foot-logo {
  height: 36px;
}
/* --- Mobile Nav (Hamburger) --- */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle .hamburger::before {
  transform: translateY(-7px);
}
.nav-toggle .hamburger::after {
  transform: translateY(7px);
}

/* X state when open */
body.nav-open .nav-toggle .hamburger {
  transform: rotate(45deg);
}
body.nav-open .nav-toggle .hamburger::before {
  transform: rotate(90deg);
}
body.nav-open .nav-toggle .hamburger::after {
  opacity: 0;
}

/* Desktop nav stays as-is */
.primary-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Mobile layout */
@media (max-width: 900px) {
  .nav-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .nav-toggle {
    display: grid; /* show the button */
    z-index: 1001; /* above the sliding panel */
    margin-right: 6px;
  }
  .primary-nav {
    position: fixed;
    top: 56px; /* just below the overlay header */
    left: 12px;
    right: 12px;
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid #1a2234;
    border-radius: 12px;
    padding: 14px;
    display: grid; /* vertical links */
    gap: 10px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  /* Open state */
  body.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Make links big tap targets */
  .primary-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
  }
  .primary-nav a:hover {
    background: #0b1220;
  }

  /* Stretch CTA to full width for thumb reach */
  .primary-nav .btn-amber {
    text-align: center;
  }
  @media (max-width: 900px) {
    .hero-content {
      padding-top: 110px; /* keeps text below the nav & floating logo */
    }
  }
  /* Subtle dark gradient only behind hero text */
  /*
  .text-backdrop {
    position: relative;
    z-index: 2;
  }

  .text-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.45) 100%
    );
    z-index: -1; /* sits behind the text */
    pointer-events: none;
  }
  */
  .text-backdrop {
    padding: 24px 18px;
    border-radius: 14px;
  }
  @media (max-width: 900px) {
    .hero-content {
      padding-top: 110px; /* keeps text below the nav & floating logo */
    }
  }
}
