/* Homepage Styles - Archivum Heritage */

/* Promo Banner - Heritage announcement style */
.promo-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d3632 100%);
  padding: var(--space-6) 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.promo-banner-label {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(253, 252, 249, 0.5);
}

.promo-banner-image img {
  height: 80px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-surface);
}

.promo-banner-text {
  flex: 1;
  min-width: 300px;
}

.promo-banner-title {
  font-family: var(--font-display);
  color: var(--color-surface);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.promo-banner-description {
  font-family: var(--font-body);
  color: rgba(253, 252, 249, 0.9);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.promo-banner-meta {
  font-family: var(--font-primary);
  color: rgba(253, 252, 249, 0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.promo-banner-cta .btn {
  background-color: var(--color-surface);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-surface);
}

.promo-banner-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .promo-banner-content {
    text-align: center;
    justify-content: center;
  }

  .promo-banner-text {
    text-align: center;
  }

  .promo-banner-title {
    font-size: var(--text-xl);
  }
}

/* Hero Section - Archive entrance */
.hero {
  padding: 7em 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

/* Featured background image with fade */
.hero-featured-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
}

.hero-featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-featured-bg.is-active {
  opacity: 1;
}

.hero-featured-bg-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  background: linear-gradient(to right, var(--color-background) 0%, var(--color-background) 20%, transparent 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5em !important;
  font-weight: normal !important;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero-title span {
  color: #8c6a4a !important;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin-left: auto;
  display: block;
  border: 8px solid var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .hero-featured-bg-container {
    width: 100%;
  }

  .hero-featured-bg.is-active {
    opacity: 0.3;
  }

  .hero-featured-bg-container::before {
    width: 100%;
    background: linear-gradient(to bottom, var(--color-background) 0%, transparent 30%, transparent 70%, var(--color-background) 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3.5em !important;
  }

  .hero-image {
    display: none;
  }

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5em !important;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }
}

/* About Section - Archive history */
.about-section {
  padding: var(--space-10) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-image {
  order: -1; /* Image on left */
}

.about-image img {
  width: 200px;
  height: auto;
  border: 8px solid var(--color-background);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.about-content h3 {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.about-content p {
  font-family: var(--font-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.about-author {
  font-style: italic;
  color: var(--color-text-muted);
}

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

  .about-image img {
    max-width: 180px;
    margin: 0 auto;
    display: block;
  }
}

/* Sponsors Section - Heritage supporters */
.sponsors-section {
  padding: var(--space-10) 0;
  background: var(--color-background);
}

.sponsors-section .section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.sponsors-section .section-header h2 {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.sponsors-section .section-header p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
}

.sponsors-logo {
  text-align: center;
}

.sponsors-logo img {
  max-width: 200px;
  margin: 0 auto var(--space-8);
}

.sponsors-cta {
  text-align: center;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.sponsors-cta a {
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

.sponsors-cta a:hover {
  color: var(--color-accent-dark);
}

/* Featured photos section */
.featured-photos {
  padding: var(--space-10) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.featured-photos .section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.featured-photos .section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
}

/* Statistics/counts - Archive metrics */
.archive-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  padding: var(--space-8) 0;
  text-align: center;
}

.archive-stat {
  padding: var(--space-4);
}

.archive-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.archive-stat-label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
