/*
  Palette: tropical “grove” reference (grass, palms, cyan sky) +
  Bitcoin orange CTAs + hacker green accents.
*/
:root {
  --background: hsl(88 28% 96%);
  --foreground: hsl(155 22% 14%);
  --primary: hsl(155 32% 18%);
  --primary-foreground: hsl(88 40% 98%);
  --card: hsl(86 35% 99%);
  --muted: hsl(150 12% 36%);
  --muted-bg: hsl(88 22% 91%);
  --border: hsl(88 16% 86%);
  --sky: hsl(199 85% 42%);
  --btc-orange: hsl(28 100% 52%);
  --btc-orange-hover: hsl(22 100% 46%);
  --btc-orange-soft: hsl(32 100% 94%);
  --hacker: hsl(152 82% 36%);
  --hacker-hover: hsl(152 90% 28%);
  --hacker-soft: hsl(152 55% 93%);
  --accent: var(--sky);
  --link: var(--hacker);
  --link-hover: var(--btc-orange-hover);
  --shadow: 0 20px 55px hsl(155 40% 12% / 0.1);
  --radius: 12px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Sansita", Georgia, serif;
  --vibe-image: url("images/grove-vibe.png");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--hacker);
  color: var(--primary-foreground);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:hover {
  color: var(--primary-foreground);
  background: var(--hacker-hover);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(88 28% 97% / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 hsl(152 70% 42% / 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  flex-shrink: 0;
  display: block;
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand-logo--footer {
  height: 2.1rem;
}

.brand:focus-visible {
  outline: 2px solid var(--hacker);
  outline-offset: 4px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: var(--foreground);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--foreground);
}

.nav-list a:hover {
  color: var(--btc-orange-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.btn-primary {
  background: var(--btc-orange);
  color: hsl(155 35% 11%);
  box-shadow: 0 2px 0 hsl(22 100% 38% / 0.35);
}

.btn-primary:hover {
  background: var(--btc-orange-hover);
  color: hsl(155 35% 11%);
}

.btn-outline {
  background: hsl(0 0% 100% / 0.55);
  border: 2px solid var(--hacker);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--hacker-hover);
  color: var(--hacker-hover);
  background: var(--hacker-soft);
}

.btn:focus-visible {
  outline: 2px solid var(--hacker);
  outline-offset: 3px;
}

.btn-primary:focus-visible {
  outline-color: var(--btc-orange-hover);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--vibe-image);
  background-size: cover;
  background-position: center 42%;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      118deg,
      hsl(88 45% 97% / 0.97) 0%,
      hsl(90 32% 96% / 0.9) 38%,
      hsl(195 55% 97% / 0.82) 100%
    ),
    radial-gradient(
      70% 60% at 78% 12%,
      hsl(28 100% 70% / 0.14),
      transparent 58%
    ),
    radial-gradient(
      55% 50% at 12% 88%,
      hsl(152 90% 45% / 0.1),
      transparent 55%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr minmax(0, 1.05fr);
}

.hero-copy {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid hsl(152 40% 78% / 0.7);
  box-shadow:
    var(--shadow),
    0 0 0 2px hsl(28 100% 55% / 0.35),
    0 0 0 1px hsl(0 0% 100% / 0.55) inset;
  background: var(--muted-bg);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 682;
  max-height: min(460px, 58vh);
  object-fit: cover;
  object-position: center 35%;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hacker-hover);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--btc-orange);
  vertical-align: 0.05em;
  box-shadow: 0 0 0 2px hsl(28 100% 55% / 0.35);
}

.title-accent {
  background: linear-gradient(
    105deg,
    var(--btc-orange) 0%,
    hsl(22 100% 44%) 40%,
    var(--hacker) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: linear-gradient(
    180deg,
    hsl(160 22% 93%) 0%,
    hsl(88 24% 92%) 100%
  );
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  padding-left: 0.65rem;
  border-left: 4px solid var(--hacker);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
}

.join-intro {
  max-width: 46rem;
}

.section-actions {
  margin-top: 2rem;
}

.prose {
  margin: 0;
  font-size: 1.05rem;
}

.prose + .prose {
  margin-top: 1rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btc-orange), var(--hacker));
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Join flow */
.join-flow {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  counter-reset: joinstep;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.join-step {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.25rem 1.35rem 3.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.join-step::before {
  counter-increment: joinstep;
  content: counter(joinstep);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary-foreground);
  background: linear-gradient(145deg, var(--btc-orange), var(--hacker));
  border-radius: 999px;
  line-height: 1;
}

.join-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.join-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.join-panel {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid hsl(152 40% 78% / 0.85);
  background: linear-gradient(
    165deg,
    hsl(88 35% 97%) 0%,
    hsl(160 25% 95%) 100%
  );
  box-shadow: var(--shadow);
}

.join-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-join-now {
  min-width: 11rem;
  justify-content: center;
}

/* Membership cards (legacy layout, unused) */
.card-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.price-card-desc {
  margin: 0 0 1rem;
  color: var(--muted);
}

.price-card-featured {
  border-color: hsl(152 55% 72% / 0.85);
  box-shadow:
    var(--shadow),
    0 0 0 2px hsl(28 100% 55% / 0.22);
}

.pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--hacker);
  color: var(--primary-foreground);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Events */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--btc-orange);
  box-shadow: 0 1px 0 hsl(152 70% 42% / 0.08);
}

.event-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.event-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Visit */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr 1.1fr;
}

.visit-split {
  align-items: stretch;
}

.visit-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.photo-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--muted-bg);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-frame--wide img {
  aspect-ratio: 1024 / 682;
  max-height: min(340px, 48vw);
  object-fit: cover;
  object-position: center 45%;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background:
    linear-gradient(90deg, var(--btc-orange), var(--hacker)) 0 0 / 100% 3px
      no-repeat,
    linear-gradient(
      185deg,
      hsl(88 26% 92%) 0%,
      hsl(160 18% 90%) 100%
    );
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--foreground);
}

.footer-links a:hover {
  color: var(--btc-orange-hover);
}

.copyright {
  margin: 2rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    max-height: min(360px, 52vh);
    object-position: center 30%;
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .photo-frame--wide img {
    max-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    background-position: center 50%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: min(320px, calc(100vw - 2.5rem));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}
