/* ============================================================
   Homepage — Beit Austria
   Sections: hero, slider, intro, areas (faq lives in assets/css/faq.css)
============================================================ */

.hp { display: block; }

/* ─── Section 1: Hero ─────────────────────────────────── */
.hp-hero {
  position: relative;
  background: white;
  color: var(--cs-color-white);
  height: 685px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hp-hero__video {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hp-hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hp-hero__inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 190px;
  padding-inline-start: 100px;
  padding-inline-end: 0;
  display: flex;
  justify-content: flex-start;
}

.hp-hero__title-box {
  background: var(--cs-color-white);
  color: var(--cs-color-text);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 3px solid var(--cs-color-line);
}

/* .hp-hero__title — no type styles here; the global h1 rule owns all of it
   (GLD Vina · 500 · 50px / 55px · letter-spacing 0 · width 700). */

/* ─── Section 2: Slider ───────────────────────────────── */
/* Moved to assets/css/slider.css (shared by template-parts/slider.php). */

/* ─── Section 3: Intro ────────────────────────────────── */
.hp-intro {
  background: var(--cs-color-cream);
  padding-top: 100px;

}

.hp-intro__inner {
  max-width: 1030px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-lg);
}

.hp-intro__dots {
  display: inline-flex;
  gap: 0.5rem;
}
.hp-intro__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2589CC;
}

.hp-intro__desc {
  font-family: var(--cs-font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
  font-variation-settings: var(--cs-vina-lead);   /* GLD Vina · weight 500 · width 450 */
}
.hp-intro__desc > :first-child { margin-top: 0; }
.hp-intro__desc > :last-child { margin-bottom: 0; }
.hp-intro__desc br { display: none; }

.hp-intro__cta { align-self: center; }

/* ─── Section 4: Areas of activity ────────────────────── */
.hp-areas {
  background: var(--cs-color-cream);
  padding-block: clamp(3rem, 8vw, 5rem);
  border-bottom: 3px solid black;
}

.hp-areas__inner {
  max-width: 1250px;
  display: flex;
  flex-direction: column;
  gap: var(--cs-space-lg);
}

.hp-areas__header {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--cs-space-sm);
}

.hp-areas__title { margin: 0; }

.hp-areas__desc {
  text-align: start;
  margin: 0;
  max-width: 52ch;
  font-size: var(--cs-fs-small);
}

.hp-areas__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.hp-areas__image {
  position: relative;
  overflow: hidden;
  order: 2;
}

.hp-areas__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--cs-transition);
    border: 3px solid black;

}

/* Crossfade step: image dips to transparent while the new src loads in. */
.hp-areas__img.is-fading { opacity: 0; }

/* Per-card image: desktop uses the single shared hover image instead,
   so these are only shown in the mobile layout. */
.hp-areas__item-img { display: none; }

.hp-areas__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--cs-color-white);
  border-radius: var(--cs-radius-sm);
  order: 1;
}

.hp-areas__item {
    position: relative;
    transition: background var(--cs-transition);
    border: 3px solid black;
    border-bottom: unset;
    border-inline-end: unset;
    background-color: #FCF1EB;
}

.hp-areas__item-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--cs-space-md);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

/* Card text keeps its own colour on hover/focus — opt out of the global red link hover. */
.hp-areas__item-link:hover,
.hp-areas__item-link:focus-visible {
    color: inherit;
}

.hp-areas__item:last-child {
  border-bottom: 3px solid black;
}

.hp-areas__item:hover,
.hp-areas__item:focus-within,
.hp-areas__item.is-active {
  background-color: white;
  outline: none;
}

.hp-areas__item:hover .hp-areas__item-icon,
.hp-areas__item:focus-within .hp-areas__item-icon,
.hp-areas__item.is-active .hp-areas__item-icon {
  background-color: var(--cs-color-primary);
}


.hp-areas__item:hover .hp-areas__item-icon svg path,
.hp-areas__item:focus-within .hp-areas__item-icon svg path,
.hp-areas__item.is-active .hp-areas__item-icon svg path {
  fill: black;
}

/* Left arrow that appears on hover / active (Figma "Variant2") */
.hp-areas__item-arrow {
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--cs-transition);
}

.hp-areas__item-arrow svg {
  display: block;
  width: 59px;
  height: 27px;
}
/* LTR (German): the hover arrow points the opposite way. */
html[dir="ltr"] .hp-areas__item-arrow svg { transform: scaleX(-1); }

.hp-areas__item:hover .hp-areas__item-arrow,
.hp-areas__item:focus-within .hp-areas__item-arrow,
.hp-areas__item.is-active .hp-areas__item-arrow {
  opacity: 1;
}

.hp-areas__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: start;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hp-areas__item-title {
  margin: 0;
  /* type styles from the global h3 rule */
}

.hp-areas__item-desc {
  margin: 0;
  font-size: var(--cs-fs-small);
  line-height: 1.5;
  max-width: 35ch;
}

.hp-areas__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-inline-end: 3px solid black;
  padding: 30px 20px;
}

.hp-areas__item-icon svg {
  display: block;
  width: 56px;
  height: 56px;
}

/* ============================================================
   Mobile (≤768px) — matches the Figma mobile homepage
============================================================ */
@media (max-width: 768px) {

  /* ─── Section 1: Hero ───────────────────────────────── */
  .hp-hero {
    height: 600px;
    align-items: flex-end;
  }
  .hp-hero__inner {
    padding-top: 0;
    padding-bottom: 0;
    padding-inline: 22px;
    justify-content: flex-start;   /* box hugs the right (RTL start) */
  }
  .hp-hero__title-box {
    max-width: 263px;
    padding: 30px;
    border-bottom: 0;
  }
  .hp-hero__title {
    font-size: 30px;
    line-height: 1.2;
  }

  /* ─── Section 3: Intro ──────────────────────────────── */
  /* 100px gap between the slider and the intro. */
  .hp-intro {
    padding-top: 100px;
  }
  .hp-intro__desc {
    font-size: 18px;
  }

  /* ─── Section 4: Areas of activity ──────────────────── */
  .hp-areas__inner { gap: var(--cs-space-md); }
  .hp-areas__title { font-size: 28px; }
  .hp-areas__desc  { font-size: 18px; max-width: none; }

  /* Stack everything in one column. Each card carries its own image
     directly beneath it — no hover/active swap on mobile. */
  .hp-areas__layout {
    display: flex;
    flex-direction: column;
  }
  .hp-areas__list { display: flex; flex-direction: column; }

  .hp-areas__item { border: 3px solid black; }

  /* The shared hover image is desktop-only. */
  .hp-areas__image { display: none; }

  /* Each card's own image, shown right below its text/icon row. */
  .hp-areas__item-img {
    display: block;
    width: 100%;
    height: 291px;
    object-fit: cover;
    border-top: 3px solid black;
  }

  /* No active/hover highlight on mobile — every card is equal. */
  .hp-areas__item.is-active { background-color: #FCF1EB; }

  /* Collapse the doubled borders where stacked cards meet. */
  .hp-areas__item:not(:first-child) { margin-top: -3px; }

  /* Card: text on the right, icon box on the left. */
  .hp-areas__item-link {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .hp-areas__item-text {
    order: 1;
    flex: 1 1 auto;
    padding: 15px;
  }
  .hp-areas__item-icon {
    order: 1;
    flex: 0 0 68px;
    width: 68px;
    padding: 0;
    border-inline-start: 0;
    border-inline-end: 3px solid black;   /* divider faces the text */
  }
  .hp-areas__item-icon svg { width: 40px; height: 40px; }

  .hp-areas__item-title { font-size: 20px; }
  .hp-areas__item-desc  { font-size: 18px; max-width: none; }

  .hp-areas__img { height: 100%; }

  .hp-areas__item-arrow { display: none; }
}
