/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #162032;
  --yellow:     #fae271;
  --yellow-dim: #e8cc55;
  --green:      #a2cf8e;
  --green-dim:  #87ba70;
  --white:      #ffffff;
  --off-white:  #f8f7f2;
  --muted:      #6b7a8d;
  --border:     #e2e8f0;
  --border-dark:#2a3a4d;
  --font-title: Georgia, 'Times New Roman', serif;
  --font-body:  'Raleway', sans-serif;
  --max-w: 1120px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(var(--max-w), 100% - 2 * 1.5rem);
  margin-inline: auto;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 2.5rem;
}
.section-label.light { color: var(--yellow); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250,226,113,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(250,226,113,0.06);
}
.btn-coffee {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: 2px;
}
.btn-coffee:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250,226,113,0.4);
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#header.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 0.1rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.logo { height: 66px; width: auto; }
.logo-link { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--yellow); background: rgba(250,226,113,0.07); }
.nav-links li:last-child a {
  color: var(--navy);
  background: var(--yellow);
  padding: 0.45rem 1rem;
}
.nav-links li:last-child a:hover {
  background: var(--yellow-dim);
  color: var(--navy);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10001; /* Ensure hamburger stays above the full-screen menu */
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) 2.5rem 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0e2240 50%, #112b50 100%);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,226,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,226,113,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162,207,142,0.18) 0%, rgba(250,226,113,0.10) 40%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-content {
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s var(--ease) forwards;
}
.hero-headline {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: normal;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s var(--ease) forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--yellow);
}
.hero-sub {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s var(--ease) forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s 1.2s var(--ease) forwards;
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(250,226,113,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services {
  padding: 6rem 2.5rem;
  background: var(--white);
}
.service-block {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}
.service-block.reverse {
  grid-template-columns: 100px 1fr auto;
}
.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: flex-start;
  padding-top: 0.5rem;
}
.service-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
}
.service-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.service-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.service-title em {
  font-style: italic;
  color: var(--green-dim);
}
.service-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.service-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.service-highlights li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  padding-left: 1.25rem;
  position: relative;
}
.service-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-dim);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--green-dim);
  border-bottom: 1.5px solid var(--green-dim);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.service-link:hover {
  gap: 0.75rem;
  color: var(--green);
  border-bottom-color: var(--green);
}
.service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
}
.service-icon:hover { transform: scale(1.05) rotate(3deg); }
.wp-icon {
  background: rgba(250,226,113,0.14);
  color: #8a7200;
}
.android-icon {
  background: rgba(162,207,142,0.16);
  color: #3d7a2a;
}
.ios-icon {
  background: rgba(162,207,142,0.10);
  color: #2d6040;
}
.service-icon svg { width: 70px; height: 70px; }
.divider {
  height: 1px;
  background: var(--border);
  margin-inline: -2.5rem;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact {
  background: var(--navy);
  padding: 8rem 2.5rem;
  color: var(--white);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: normal;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.contact-title em {
  font-style: italic;
  color: var(--yellow);
}
.contact-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 2rem;
}
.contact-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1.5px solid var(--yellow);
  padding-bottom: 3px;
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--yellow); }
.contact-donate p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.contact-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
}
.contact-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.2s;
}
.contact-card-row:last-child { border-bottom: none; }
.contact-card-row:hover { background: rgba(250,226,113,0.04); }
.contact-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.contact-card-row a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.contact-card-row a:hover { color: var(--yellow); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: #080f18;
  padding: 3rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo { height: 40px; width: auto; opacity: 0.75; }
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}
.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.footer-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--yellow); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .service-meta { flex-direction: row; align-items: center; }
  .service-tag  { writing-mode: horizontal-tb; transform: none; }
  .service-icon-wrap { justify-content: flex-start; }
  .service-icon { width: 100px; height: 100px; }
  .service-icon svg { width: 44px; height: 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 680px) {
  .nav-inner { padding-inline: 1.5rem; }
  .hamburger { display: flex; }
  
  .nav-links {
    /* This forces the menu to be a full-screen overlay independent of the header scroll */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d1b2a; /* Use your solid navy variable */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    
    /* Animation and Visibility */
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    pointer-events: none;
    z-index: 9999; 
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-links li { 
    width: 100%; 
    text-align: center; 
    list-style: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 500;
  }

  /* Keep the Contact button style distinct even on mobile */
  .nav-links li:last-child a {
    background: var(--yellow);
    color: var(--navy) !important;
    display: inline-block;
    width: auto;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    margin-top: 1rem;
  }

  .hero { padding-inline: 1.5rem; }
  .services { padding-inline: 1.5rem; }
  .contact { padding-inline: 1.5rem; }
  .footer  { padding-inline: 1.5rem; }
  .divider { margin-inline: -1.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-scroll-hint { display: none; }
}