/* ==================== HOMEPAGE SECTIONS ==================== */

/* ========== COMMON SECTION STYLES ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

.section-wide {
  width: 100%;
  padding: var(--space-lg) var(--space-sm);
}

/* ========== PRE-HERO SECTION ========== */
.pre-hero {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  background: var(--color-background);
}

.pre-hero-part1 {
  font-size: var(--font-prehero-part1);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}

.pre-hero-part2 {
  font-size: var(--font-prehero-part2);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}

.pre-hero-part3 {
  font-size: var(--font-prehero-part3);
  font-weight: 100;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-primary-text);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: var(--color-background);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  border-radius: 0;
  background: var(--color-border-light);
}

.carousel-container {
  position: relative;
  width: 100%;
  padding-top: 50%; /* 2:1 aspect ratio */
}

@media (max-width: 768px) {
  .carousel-container {
    padding-top: 66.67%; /* 3:2 aspect ratio on mobile */
  }
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Placeholder styling for slides without images */
.carousel-slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border-light);
  color: var(--color-medium-gray);
  font-size: var(--font-hero-blurb-headline);
  text-align: center;
  padding: var(--space-md);
}

/* Carousel Navigation Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* Hero Content */
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.hero-intro {
  font-size: var(--font-hero-intro);
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-blurbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.hero-blurb {
  text-align: center;
  padding: var(--space-md);
}

.hero-blurb-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blurb-icon img,
.hero-blurb-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Icon placeholder (when no icon provided) */
.hero-blurb-icon-placeholder {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-medium-gray);
  font-size: 0.75rem;
}

.hero-blurb-headline {
  font-size: var(--font-hero-blurb-headline);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-text);
}

.hero-blurb-desc {
  font-size: var(--font-hero-blurb-desc);
  font-weight: 200;
  opacity: 0.8;
  line-height: 1.6;
  color: var(--color-primary-text);
}

/* ========== SHORT POST SECTION ========== */
.short-post-section {
  background: var(--color-background);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.short-post {
  max-width: 600px;
  margin: 0 auto;
}

.short-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-border-light);
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-radius: 4px;
}

.short-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image placeholder */
.short-post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-border-light);
  color: var(--color-medium-gray);
  font-size: var(--font-hero-blurb-headline);
  text-align: center;
  padding: var(--space-md);
}

.short-post-caption {
  font-size: var(--font-shortpost-caption);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-text);
}

.short-post-attribution {
  font-size: var(--font-shortpost-attribution);
  font-weight: 300;
  opacity: 0.7;
  color: var(--color-primary-text);
}

/* ========== ABOUT/CTA SECTION ========== */
.about-cta-section {
  background: var(--color-background);
  text-align: center;
}

.about-blurb {
  font-size: var(--font-about-blurb);
  font-weight: 400;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary-text);
}

.cta-title {
  font-size: var(--font-cta-title);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: var(--font-cta-button);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-background);
  background: var(--color-primary-text);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid var(--color-primary-text);
}

.cta-button:hover,
.cta-button:focus {
  background: var(--color-background);
  color: var(--color-primary-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Alternative: Side-by-side on larger screens */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
  }
}

/* ========== PARTING MESSAGE SECTION ========== */
.parting-section {
  background: var(--color-background);
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-xl) var(--space-sm);
}

.parting-line1 {
  font-size: var(--font-parting-line1);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}

.parting-line2 {
  font-size: var(--font-parting-line2);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  color: var(--color-primary-text);
}

.parting-line3 {
  font-size: var(--font-parting-line3);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--color-primary-text);
  max-width: 700px;
  margin: 0 auto;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
  .section {
    padding: var(--space-md) var(--space-sm);
  }

  .pre-hero {
    padding: var(--space-lg) var(--space-sm);
  }

  .parting-section {
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-blurbs {
    gap: var(--space-md);
  }
}
