/* ============================================================
   Homepage styles
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--space-section) * 0.5) var(--space-section);
  background-color: var(--color-bg-cream);
}

.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -150px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 180, 131, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: -190px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 182, 162, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

/* Branded photo-slot aspect ratios (mobile: native ratio so the stacked
   image has height; `object-fit: cover` keeps it undistorted). */
.hero__image.photo-slot { aspect-ratio: 547 / 365; }
.about-teaser__image.photo-slot { aspect-ratio: 582 / 416; }
.expect-preview__image.photo-slot { aspect-ratio: 600 / 336; }

/* Botanical watermark in the Areas of Focus section */
.focus-section { position: relative; overflow: hidden; }
.focus-section .brand-watermark {
  width: 360px;
  right: -90px;
  bottom: -110px;
}
.focus-section .container { position: relative; z-index: 1; }

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__title {
  font-size: var(--font-size-hero);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

.hero__image {
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__image svg {
  width: 100%;
  height: auto;
}

/* About teaser */
.about-teaser {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile: put the About Us text above its photo so the hero photo and the
   about-teaser photo don't stack directly against each other. */
@media (max-width: 767px) {
  .about-teaser__text {
    order: -1;
  }
}

.about-teaser__image {
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-teaser__image svg {
  width: 100%;
  height: auto;
}

.about-teaser__text h2 {
  margin-bottom: var(--space-md);
}

.about-teaser__text p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

/* Focus grid */
.focus-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (min-width: 640px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.focus-card {
  display: block;
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border-radius: var(--border-radius-2xl);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.focus-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-bg-warm);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.focus-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.focus-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Expect preview */
.expect-preview {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .expect-preview {
    grid-template-columns: 1fr 1fr;
  }
}

.expect-preview__text h2 {
  margin-bottom: var(--space-md);
}

.expect-preview__text p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

.expect-preview__image {
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.expect-preview__image svg {
  width: 100%;
  height: auto;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy-card {
  padding: var(--space-xl);
}

.philosophy-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.philosophy-card p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Desktop (two-column): keep the images at their native landscape ratios and
   vertically center them beside their text columns so the full illustration
   is always visible — no cover-cropping/zooming. */
@media (min-width: 768px) {
  .hero .container,
  .expect-preview {
    align-items: center;
  }
}
