/* ============================================================
   ParkieVault V2 — css/pages/home.css
   Home page layout, title, intro, action/community sections
   Overrides and page-specific rules only.
   All shared components → base/nav/cards/buttons/panels/ticker
   ============================================================ */

/* ── Design tokens aligned with join-member.css ── */
:root {
  --home-gold:          #c9a84c;
  --home-gold-text:     #e8c97a;
  --home-gold-border:   rgba(201, 168, 76, 0.25);
  --home-gold-glow:     rgba(201, 168, 76, 0.12);
  --home-surface:       rgba(255, 255, 255, 0.045);
  --home-surface-hover: rgba(255, 255, 255, 0.075);
  --home-border:        rgba(255, 255, 255, 0.08);
  --home-text-primary:  #f0ece4;
  --home-text-muted:    rgba(240,236,228,.85);
  --home-text-dim:      rgba(240, 236, 228, 0.85);
  --home-radius-card:   18px;
  --home-container-max: 900px;
}

/* ── Nav action buttons (right side) ── */
.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-right: 4px;
}

@media (max-width: 600px) {
  .pub-nav-actions {
    display: none;
  }
}

/* ========================= HOME BACKGROUND ========================= */

body {
  background: transparent;
}

/* Full-viewport artist photo */
.bg-img {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../images/bg2.png') center center / contain no-repeat;;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  transition: opacity 0.8s ease;
}

.home-active .bg-img { opacity: 0.55; }

/* Gradient overlay that darkens the bg */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.30) 40%,
    rgba(0,0,0,0.70) 100%
  );
}

/* ══════════════════════════════════════════
   HOME PAGE ROOT
   ══════════════════════════════════════════ */

#homePage {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  animation: fadeUp var(--t-slow) var(--ease-snap) both;
}

.home-centre-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════
   TITLE SECTION
   ══════════════════════════════════════════ */

.home-title-section {
  width: 100%;
  text-align: center;
  padding: 96px 40px 24px;
  animation: fadeUp var(--t-slow) 0.05s var(--ease-snap) both;
}

.home-main-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9.5vw, 112px);
  letter-spacing: 10px;
  line-height: 1;
  color: #fff;
  margin: 0;

  text-shadow:
    0 0 10px  rgba(255,255,255,0.60),
    0 0 30px  rgba(255,255,255,0.40),
    0 0 60px  rgba(168,120,255,0.35),
    0 0 120px rgba(168,120,255,0.20);
  animation: titleGlowPulse 4s ease-in-out infinite;
}

.home-tagline {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  margin: 14px 0 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.home-tagline-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,0.46);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════ */

.home-intro-section {
  width: 100%;
  max-width: 1100px;
  padding: 52px 40px 0;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp var(--t-slow) 0.10s var(--ease-snap) both;
}

.home-intro-section p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--home-text-muted);
  max-width: 680px;
  margin: 0 auto 18px;
  letter-spacing: 0.01em;
}
.home-intro-section p:last-child { margin-bottom: 0; }

.home-intro-section em {
  font-style: italic;
  color: var(--home-text-primary);
}

/* ══════════════════════════════════════════
   SHARED SECTION EYEBROW LABEL
   Matches join-member's .jm-eyebrow style
   ══════════════════════════════════════════ */

.home-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-gold);
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   QUICK ACCESS SECTION
   ══════════════════════════════════════════ */

.home-action-section {
  width: 100%;
  max-width: var(--home-container-max);
  padding: 60px 40px 0;
  animation: fadeUp var(--t-slow) 0.18s var(--ease-snap) both;
}

/* ── Action cards: glassmorphism aligned with jm-glass-card ── */
.action-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-card);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: var(--home-gold-border);
  background: var(--home-surface-hover);
  transform: translateY(-2px);
  outline: none;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--home-gold-text);
  letter-spacing: 0.01em;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--home-text-muted);
  line-height: 1.65;
}

.card-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--home-gold-text);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ══════════════════════════════════════════
   COMMUNITY SECTION
   ══════════════════════════════════════════ */

.home-community-section {
  width: 100%;
  max-width: var(--home-container-max);
  padding: 32px 40px 64px;
  animation: fadeUp var(--t-slow) 0.28s var(--ease-snap) both;
}

/* ── 1-card grid, centred ── */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}


/* ── Community card: glassmorphism base ── */
.community-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-card);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.community-card:not(.community-card--muted):hover {
  border-color: var(--home-gold-border);
  background: var(--home-surface-hover);
}

.community-card.clickable {
  cursor: pointer;
}

.community-card.clickable:hover,
.community-card.clickable:focus-visible {
  border-color: var(--home-gold-border);
  background: var(--home-surface-hover);
  transform: translateY(-2px);
  outline: none;
}

/* ── Comm icon ── */
.comm-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}

/* ── Comm title ── */
.comm-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--home-gold-text);
  letter-spacing: 0.01em;
  margin: 0;
}

.comm-title--muted {
  color: var(--home-text-dim);
}

/* ── Comm body ── */
.comm-body {
  font-size: 0.84rem;
  color: var(--home-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ── Comm arrow (clickable link text) ── */
.comm-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--home-gold-text);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.comm-arrow--muted {
  color: var(--home-text-dim);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ── Muted / Coming Soon card state ── */
.community-card--muted {
  opacity: 0.5;
  border-style: dashed;
  cursor: default;
}

/* ══════════════════════════════════════════
   FOOTER OVERRIDE
   ══════════════════════════════════════════ */

#homePage .site-footer {
  max-width: var(--home-container-max);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════ */

@media (max-width: 1050px) {
  .home-title-section,
  .home-intro-section {
    padding-left: 32px;
    padding-right: 32px;
  }
}


@media (max-width: 760px) {
  .home-title-section {
    padding: 80px 24px 16px;
  }

  .home-main-title {
    font-size: clamp(52px, 14vw, 80px);
    letter-spacing: 6px;
  }

  .home-tagline      { font-size: 14px; }
  .home-tagline-sub  { font-size: 13px; }

  .home-intro-section {
    padding: 36px 24px 0;
  }
  .home-intro-section p {
    font-size: 14px;
    line-height: 1.8;
  }

  .home-action-section,
  .home-community-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-action-section    { padding-top: 44px; }
  .home-community-section { padding-bottom: 40px; }

  .home-section-eyebrow { margin-bottom: 16px; }
}

@media (max-width: 560px) {
  /* Community grid: single column on mobile */
  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-grid > .community-card:nth-child(4),
  .community-grid > .community-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .home-title-section { padding-top: 72px; }

  .home-main-title {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .home-action-section,
  .home-community-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
