/* =========================================================
   Homepage layout — Alles over Oostenrijk
   assets/css/aoo/pages/homepage.css
   ========================================================= */

/* =========================================================
   CSS custom properties (homepage-specifiek)
   ========================================================= */
:root {
  --hp-card-radius:       20px;
  --hp-card-gap:          10px;
  --hp-card-height:       520px;
  --hp-pill-bg:           #6b7c3d;
  --hp-hero-bg:           #e8e4dc;
  --hp-podcast-bg:        #fff;
  --hp-podcast-bg-hover:  #fef2f2;
  --hp-podcast-border:    #ed1c24;
  --hp-podcast-ring:      #e5e7eb;
  --hp-podcast-icon-bg:   #ed1c24;
  --hp-text-body:         #374151;
  --hp-text-caption:      #6b7280;
  --hp-text-heading:      #111827;
}

/* =========================================================
   Homecards (shortcode: [aoo_home_cards])
   ========================================================= */
.aoo-homecards {
  padding: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 1px 2px  rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.aoo-homecards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--hp-card-gap);
  height: var(--hp-card-height);
}

.aoo-homecards__left  { grid-row: 1 / span 3; }
.aoo-homecards__right { display: contents; }

/* =========================================================
   Homecard
   ========================================================= */
.aoo-homecard {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  border-radius: var(--hp-card-radius);
  overflow: hidden;
  text-decoration: none;
}

.aoo-homecard__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.aoo-homecard:hover .aoo-homecard__bg { transform: scale(1.06); }

.aoo-homecard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--contrast, #111));
  opacity: 0.9;
  pointer-events: none;
}

.aoo-homecard__content {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
  color: #fff;
}

.aoo-homecard__title {
  color: #fff !important;
  margin: 0;
  line-height: 1.2;
}

.aoo-homecard__pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hp-pill-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aoo-homecard:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* =========================================================
   Hero intro blok — full width achtergrond
   ========================================================= */
.aoo-hero {
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 2.5rem calc(50vw - 50% + 1.5rem);
  background: var(--hp-hero-bg);
  margin-bottom: 2rem;
}

/* H1 */
.aoo-hero__h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--hp-text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.aoo-hero__body {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
}

.aoo-hero__text {
  flex: 1 1 55%;
  min-width: 0;
}

.aoo-hero__text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--hp-text-body);
  margin: 0 0 0.9rem;
}

.aoo-hero__text p:last-child { margin-bottom: 0; }

/* Podcast — subtiel wit kaartje */
.aoo-hero__podcast-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--hp-podcast-bg);
  border: 1px solid var(--hp-podcast-ring);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 1.1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aoo-hero__podcast-box:hover {
  border-color: var(--hp-podcast-border);
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.08);
}

.aoo-hero__podcast-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--hp-podcast-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.aoo-hero__podcast-copy strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-text-heading);
  margin-bottom: 1px;
}

.aoo-hero__podcast-copy span {
  font-size: 0.78rem;
  color: var(--hp-text-caption);
}

/* Polaroids */
.aoo-hero__photos {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 4px;
}

.aoo-polaroid {
  position: relative;
  width: 130px;
  flex-shrink: 0;
  background: #fff;
  padding: 8px 8px 28px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.13),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.aoo-polaroid:nth-child(1) { transform: rotate(-2.5deg); margin-top: 8px; }
.aoo-polaroid:nth-child(2) { transform: rotate(1.8deg); }
.aoo-polaroid:nth-child(3) { transform: rotate(-1.2deg); margin-top: 14px; }

.aoo-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.aoo-polaroid__caption {
  position: absolute;
  inset: auto 0 5px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--hp-text-caption);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .aoo-homecards__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .aoo-homecards__left { grid-row: auto; }
  .aoo-homecard        { min-height: 220px; }
}

@media (max-width: 680px) {
  .aoo-hero__body      { flex-direction: column; }
  .aoo-hero__photos    { width: 100%; justify-content: center; padding-top: 0; }
  .aoo-polaroid        { width: 110px; }
}

@media (max-width: 400px) {
  .aoo-hero__photos { gap: 10px; }
  .aoo-polaroid     { width: 90px; }
}