/* Public home page (index.html). */

.home {
  display: flex;
  flex-direction: column;
}

/* Hero */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 112px var(--space-5);
  background: #0f172a url("/assets/brand/hero-forest.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(139, 13, 37, 0.5) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.16;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #6ee7b7;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.home-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: home-pulse 2.4s infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.home-hero__accent {
  color: #6ee7b7;
}

.home-hero__text {
  max-width: 672px;
  margin: 0 auto 32px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.home-hero__btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(139, 13, 37, 0.8);
}

.home-hero__btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}

.home-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.home-hero__checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
}

.home-hero__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-hero__check-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: #34d399;
}

/* Sections */

.home-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px var(--space-5);
}

/* Capabilities (kept from the previous home page). */

.home-features {
  padding-bottom: 0;
}

.home-features__head {
  margin-bottom: 56px;
  text-align: center;
}

.home-features__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-features__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-card {
  --card-accent: var(--color-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-card--success { --card-accent: var(--color-success); }
.home-card--amber { --card-accent: var(--color-warning); }

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px -30px rgba(15, 23, 42, 0.45);
}

.home-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  color: #fff;
  background: linear-gradient(135deg, var(--card-accent) 0%, #0f172a 100%);
}

.home-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.18;
}

.home-card__glyph {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
}

.home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-5);
}

.home-card__eyebrow {
  margin-bottom: 8px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.home-card__text {
  flex: 1;
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.home-card__link:hover {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: #fff;
  text-decoration: none;
}

.home-card__arrow {
  flex: none;
  width: 14px;
  height: 14px;
}

/* Directions (from the prototype). */

.home-directions__head {
  margin-bottom: 56px;
  text-align: center;
}

.home-directions__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-directions__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.home-directions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-direction {
  --direction-accent: var(--color-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-direction--clubs { --direction-accent: var(--color-primary); }
.home-direction--parks { --direction-accent: var(--color-success); }
.home-direction--schools { --direction-accent: #1d4ed8; }
.home-direction--corporate { --direction-accent: var(--color-warning); }

.home-direction:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px -30px rgba(15, 23, 42, 0.45);
}

.home-direction__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  background: #0f172a url("/assets/brand/hero-forest.jpg") center / cover no-repeat;
  color: #fff;
}

.home-direction__media::before {
  content: "";
  position: absolute;
  inset: 0;
}

.home-direction--clubs .home-direction__media::before {
  background: linear-gradient(135deg, rgba(139, 13, 37, 0.82), rgba(15, 23, 42, 0.62));
}

.home-direction--parks .home-direction__media::before {
  background: linear-gradient(135deg, rgba(15, 130, 89, 0.82), rgba(15, 23, 42, 0.62));
}

.home-direction--schools .home-direction__media::before {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.82), rgba(15, 23, 42, 0.62));
}

.home-direction--corporate .home-direction__media::before {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.82), rgba(15, 23, 42, 0.62));
}

.home-direction__glyph {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
}

.home-direction__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-5);
}

.home-direction__eyebrow {
  margin-bottom: 8px;
  color: var(--direction-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-direction__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.home-direction__text {
  flex: 1;
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-direction__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-2);
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.home-direction__link:hover {
  border-color: var(--direction-accent);
  background: var(--direction-accent);
  color: #fff;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 1024px) {
  .home-directions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 80px var(--space-4);
  }

  .home-hero__break {
    display: none;
  }

  .home-section {
    padding: 56px var(--space-4);
  }

  .home-features__head,
  .home-directions__head {
    margin-bottom: 32px;
  }

  .home-directions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__badge-dot {
    animation: none;
  }

  .home-card,
  .home-direction {
    transition: none;
  }
}
