/* css/pages/home.css — Homepage-specific styles */

/* ── Page Setup ── */
.page-home {
  background-color: var(--color-brand-soft);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-brand-soft);
  padding-top: 60px; /* nav height */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196, 168, 130, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: var(--space-10);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-primary);
  background-color: rgba(140, 106, 90, 0.1);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__headline {
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  max-width: 560px;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Features Section ── */
.features {
  background-color: var(--color-surface);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.features__title {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

/* ── Quote Section ── */
.quote-section {
  background-color: var(--color-brand-soft);
  text-align: center;
}

.quote-section__text {
  font-size: clamp(var(--text-md), 3vw, var(--text-xl));
  font-style: italic;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  max-width: 700px;
  margin-inline: auto;
  line-height: var(--line-height-loose);
}

/* ── CTA Band ── */
.cta-band {
  background-color: var(--color-brand-primary);
  text-align: center;
}

.cta-band__headline {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}

.cta-band__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}

.cta-band .btn-primary {
  background-color: var(--color-text-inverse);
  color: var(--color-brand-primary);
  border-color: var(--color-text-inverse);
}

.cta-band .btn-primary:hover {
  background-color: var(--color-surface-raised);
  border-color: var(--color-surface-raised);
}

/* ── Auth-Aware Nav Elements ──────────────────────────────────────────────────
   #nav-dashboard-link and #nav-overlay-dashboard-link are hidden by default
   and shown by home.js applyAuthNav() when a session is restored.
   They adopt the same visual style as .nav__login / .nav-overlay__link.
   ──────────────────────────────────────────────────────────────────────────── */
#nav-dashboard-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  min-height: 44px;
  display: none; /* hidden by default; home.js sets inline-flex on auth */
  align-items: center;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

#nav-dashboard-link:hover {
  background-color: rgba(140, 106, 90, 0.08);
}

#nav-dashboard-link:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ── Signup CTA Hard-Disable ──────────────────────────────────────────────────
   Registration is currently closed. These four elements are unconditionally
   hidden at the stylesheet level — no JS toggle, no API call, and no network
   failure can make them visible.

   TO RE-ENABLE when registration opens: remove this entire block. The toggle
   logic in js/pages/home.js (applyRegistrationStatus) and
   js/registrationStatus.js remains intact and resumes control automatically.
   ──────────────────────────────────────────────────────────────────────────── */
#nav-signup-link,
#signup-cta-group,
#cta-band-signup,
#nav-overlay-signup-link {
  display: none !important;
}
