/* ============================================================
   ECOLOG — Global Styles
   ============================================================ */

/* ---- Variables ---- */
:root {
  --ecolog-green:  #195931;
  --ecolog-dark:   #000000;
  --ecolog-accent: #E8ED6B;
  --ecolog-white:  #ffffff;
  --ecolog-muted:  rgba(255,255,255,0.65);
  --max-width:     1440px;
  --section-px:    clamp(1.5rem, 5vw, 80px);
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  min-height: 100%;
  /* Radial gradient background — #195931 center → #000 edges, angled NE */
  background: radial-gradient(ellipse at 65% 30%, #195931 0%, #000000 80%);
  background-attachment: fixed;
}

body {
  font-family: 'Satoshi', 'Segoe UI', sans-serif;
  color: var(--ecolog-white);
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-x: hidden;
}

/* ---- Layout container ---- */
.container-ecolog {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.ecolog-nav {
  background: transparent;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Mobile menu has a subtle dark bg so content is readable */
.ecolog-nav .collapse.show,
.ecolog-nav .collapse.collapsing {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Flex row: logo left, all controls (social + donate + hamburger) right */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

.ecolog-nav .navbar-brand {
  flex-shrink: 0;
  text-decoration: none;
}

/* Social icon center group on desktop */
.navbar-social {
  /* kept for any legacy references */
}

.social-icon {
  opacity: 0.85;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
}
.social-icon:hover { opacity: 1; }

.btn-donate {
  background: var(--ecolog-accent);
  color: #000;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-donate:hover {
  background: #f5f96f;
  transform: translateY(-1px);
  color: #000;
}
.donate-arrow { font-size: 1rem; }

/* Hamburger button */
.navbar-toggler-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.navbar-toggler-btn:focus,
.navbar-toggler-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "headline globe"
    "subarea  globe";
  column-gap: 40px;
}

.hero-headline-wrap {
  grid-area: headline;
  padding-top: 15vh;
  align-self: end;
  position: relative;
  z-index: 1;
}

.hero-sub-area {
  grid-area: subarea;
  align-self: start;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 1.07;
  letter-spacing: 0px;
  color: var(--ecolog-white);
  margin: 0 0 1.5rem;
}

.hero-sub {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ecolog-muted);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

/* App store badges */
.store-badge {
  height: 48px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.badge-link { display: inline-block; }

.badge-googleplay .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 18px;
  color: var(--ecolog-white);
  text-decoration: none;
  height: 48px;
  font-family: 'Satoshi', sans-serif;
}
.badge-googleplay .badge-pill svg { flex-shrink: 0; }
.badge-googleplay .badge-pill span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.badge-googleplay .badge-pill small {
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}
.badge-googleplay .badge-pill span > *:last-child {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Globe — sits above text (z-index 2) and shifts left so trees overlap the headline */
.hero-globe {
  grid-area: globe;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -25px;
}

.globe-img {
  width: 100%;
  max-width: 580px;
  display: block;
}

/* ============================================================
   WHY ECOLOG
   ============================================================ */
.section-why {
  padding: 100px 0;
}

.section-label {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ecolog-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0px;
  color: var(--ecolog-white);
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 28px 22px 32px;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.why-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-card-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ecolog-white);
  margin: 0 0 0.6rem;
}

.why-card-text {
  font-size: 0.85rem;
  color: var(--ecolog-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FOR INDIVIDUALS / FOR BUSINESSES
   ============================================================ */
.section-audience {
  padding: 80px 0 100px;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 48px 44px;
  backdrop-filter: blur(6px);
}

.audience-card--businesses {
  background: rgba(232, 237, 107, 0.06);
  border-color: rgba(232, 237, 107, 0.25);
}

.audience-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ecolog-accent);
  background: rgba(232,237,107,0.12);
  border: 1px solid rgba(232,237,107,0.3);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 1.25rem;
}

.audience-title {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0px;
  color: var(--ecolog-white);
  margin: 0 0 1.75rem;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.audience-list li {
  font-size: 0.95rem;
  color: var(--ecolog-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.audience-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ecolog-accent);
  flex-shrink: 0;
}
.audience-list li:last-child { border-bottom: none; }

.btn-outline-accent {
  background: transparent;
  color: var(--ecolog-accent);
  border: 1.5px solid var(--ecolog-accent);
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline-accent:hover {
  background: var(--ecolog-accent);
  color: #000;
}

.btn-accent {
  background: var(--ecolog-accent);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-accent:hover {
  background: #f5f96f;
  transform: translateY(-1px);
  color: #000;
}

/* ============================================================
   EVENTS
   ============================================================ */
.section-events {
  padding: 80px 0 100px;
}

.events-title {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  letter-spacing: 0.02em;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-5px); }

.event-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.event-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.event-card:hover .event-photo { transform: scale(1.04); }

.event-info {
  padding: 20px 22px 24px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ecolog-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.event-name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ecolog-white);
  margin: 0 0 0.35rem;
}

.event-date {
  font-size: 0.82rem;
  color: var(--ecolog-muted);
  margin: 0;
}

/* ============================================================
   CTA BOTTOM
   ============================================================ */
.section-cta {
  padding: 100px 0 120px;
}

.cta-title {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0px;
  color: var(--ecolog-white);
  margin: 0 0 1rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--ecolog-muted);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ecolog-footer {
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
  backdrop-filter: blur(10px);
}

.footer-brand-name {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--ecolog-white);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--ecolog-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid .why-card:nth-child(4),
  .why-grid .why-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "headline"
      "globe"
      "subarea";
    text-align: center;
  }
  .hero-headline-wrap { padding-top: 0; align-self: auto; }
  .hero-globe { max-width: 420px; margin: -45px auto 0; }
  .hero-sub-area { padding-top: 1.5rem; text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-badges { justify-content: center; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid .why-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; width: 100%; }

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

  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid .event-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; width: 100%; }

}

@media (max-width: 768px) {
  .section-hero { padding-top: 100px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid .why-card:last-child { grid-column: span 2; max-width: none; }
  .audience-card { padding: 36px 28px; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid .event-card:last-child { grid-column: span 1; max-width: none; }
}

@media (max-width: 576px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid .why-card:last-child { grid-column: span 1; }
  .hero-headline { font-size: 2.4rem; }
  .events-title { font-size: 2.2rem; }
  .cta-title { font-size: 2rem; }

  /* Compact nav on small phones */
  .nav-right { gap: 10px; }
  .btn-donate { padding: 8px 14px; font-size: 0.78rem; }
}
