/* Homepage-only styles */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3d5a80 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(184,146,46,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero h1 strong {
  color: var(--gold-light);
  font-weight: bold;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.hero-meta span::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--gold);
}

.hero-meta span:first-child::before { content: none; margin: 0; }

.about {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

.about-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
}

.about-card p { margin-bottom: 0.75rem; color: var(--muted); }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text); }

.about-card .legacy-link {
  font-size: 0.85rem;
  word-break: break-all;
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--warm);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.section-title {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.section-title h2 {
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-title .line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

.featured {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .featured { grid-template-columns: auto 1fr; }
}

.featured-img {
  background: var(--warm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 160px;
}

.featured-img img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  width: 120px;
}

.featured-img .caption {
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.4;
}

.featured-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.featured-body h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.featured-body p { color: var(--muted); font-style: italic; }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .portal-grid { grid-template-columns: 1fr 1fr; }
}

.portal-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.portal-card-img {
  overflow: hidden;
  background: var(--warm);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.portal-card-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.portal-card:hover .portal-card-img img { transform: scale(1.04); }

.portal-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-card-body h3 { font-size: 1.15rem; font-weight: normal; }
.portal-card-body h3 a { color: var(--navy); }
.portal-card-body h3 a:hover { color: var(--gold); }
.portal-card-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.portal-card-body .arrow { font-size: 0.85rem; color: var(--gold); font-weight: bold; margin-top: 0.5rem; }

.portal-card-wide { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .portal-card-wide {
    display: grid;
    grid-template-columns: 200px 1fr;
  }
  .portal-card-wide .portal-card-img {
    aspect-ratio: unset;
    min-height: 200px;
  }
}

/* Homepage footer uses site-footer + extra spacing */
.site-footer.home-footer {
  margin-top: 1rem;
  padding-top: 3rem;
}

.site-footer.home-footer .footer-angels img {
  max-width: 340px;
}
