/* ==========================================================================
   GTAGivers — landing page styles
   Fonts loaded via Google Fonts (Montserrat 700/800, Open Sans 400/600);
   fallback stacks keep the page readable offline.
   ========================================================================== */

:root {
  --bg: #070707;
  --surface: #101210;
  --accent: #00b285;
  --accent-hover: #00906c;
  --deep-green: #066805;
  --text: #eaeaea;
  --muted: #9aa39d;
  --btn-text: #04110d;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-text);
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 6px;
  transition: background-color .2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--btn-text);
}

.btn-sm {
  padding: 8px 20px;
  font-size: .875rem;
}

.btn-lg {
  padding: 16px 42px;
  font-size: 1.125rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(7, 7, 7, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 178, 133, .25);
}

.topbar-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  background: url('../assets/hero-bg.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 7, 7, .55), rgba(7, 7, 7, .92));
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 760px;
}

.hero-logo {
  max-width: 440px;
  width: 100%;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #ffffff;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 620px;
}

/* ---------- About ---------- */

.about {
  background: var(--bg);
  padding: 96px 24px;
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.about-inner p + p {
  margin-top: 18px;
}

/* ---------- History / timeline ---------- */

.history {
  background: var(--surface);
  padding: 96px 24px;
}

.history-inner {
  max-width: 760px;
  margin: 0 auto;
}

.history-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.timeline {
  list-style: none;
  padding: 0 0 0 32px;
  position: relative;
}

/* vertical accent line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* node dot on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  margin-left: -5px; /* center 12px dot on the 2px line at x=0 */
  transform: translateX(1px);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline-year {
  display: inline-block;
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.timeline-year:empty {
  display: none;
}

.timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg);
  padding: 96px 24px;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(0, 178, 133, .18);
  border-radius: 8px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform .2s;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item[open] summary {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 178, 133, .25);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  padding: 14px 20px 18px;
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Join ---------- */

.join {
  position: relative;
  text-align: center;
  padding: 110px 24px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 178, 133, .12), transparent 70%),
    var(--bg);
}

.join h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.join p {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text);
}

/* ---------- Footer ---------- */

.footer {
  padding: 36px 24px;
  border-top: 1px solid rgba(0, 178, 133, .18);
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: .875rem;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
}

.footer a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .about,
  .history,
  .faq {
    padding: 64px 20px;
  }

  .hero {
    padding: 72px 18px;
  }

  .join {
    padding: 80px 20px;
  }

  .faq-item summary {
    padding: 14px 44px 14px 16px;
  }

  .faq-item p {
    padding: 12px 16px 16px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -24px;
  }
}