/*
Theme Name: Golden Eagle Child
Theme URI: https://www.golden-eagle-coffee.at
Description: Individuelles Divi Child Theme für Golden Eagle Coffee.
Author: Golden Eagle Coffee
Template: Divi
Version: 1.0.0
Text Domain: golden-eagle-child
*/

:root {
  --ge-ink: #1b1612;
  --ge-muted: #71675f;
  --ge-cream: #f5efe7;
  --ge-paper: #fbf8f4;
  --ge-line: rgba(27, 22, 18, 0.14);
  --ge-gold: #b88954;
  --ge-max: 1440px;
  --ge-radius: 28px;
  --ge-shadow: 0 24px 70px rgba(27, 22, 18, 0.12);
}

body {
  color: var(--ge-ink);
  background: var(--ge-paper);
}

.ge-coffee-hero,
.ge-coffee-hero * {
  box-sizing: border-box;
}

.ge-coffee-hero {
  position: relative;
  min-height: 300vh;
  background:
    radial-gradient(circle at 18% 22%, rgba(184, 137, 84, 0.20), transparent 28%),
    linear-gradient(180deg, #fbf8f4 0%, #f1e7dc 100%);
  color: var(--ge-ink);
  overflow: clip;
}

.ge-coffee-hero__stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: min(var(--ge-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 64px;
}

.ge-coffee-hero__visual {
  position: relative;
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
}

.ge-coffee-hero__halo {
  position: absolute;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.55);
  transform: scale(var(--ge-halo-scale, 0.92));
  transition: transform 180ms linear;
}

.ge-coffee-hero__bean {
  position: absolute;
  width: clamp(190px, 22vw, 360px);
  aspect-ratio: 0.72;
  border-radius: 48% 52% 48% 52% / 58% 46% 54% 42%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,0.24), transparent 18%),
    radial-gradient(circle at 66% 78%, rgba(0,0,0,0.24), transparent 35%),
    linear-gradient(135deg, #8a5a31 0%, #5b351d 52%, #342015 100%);
  box-shadow: 0 42px 90px rgba(45, 25, 14, 0.30);
  transform: translate3d(var(--ge-bean-x, 0), var(--ge-bean-y, 0), 0)
             rotate(var(--ge-bean-rotate, -16deg))
             scale(var(--ge-bean-scale, 1));
  transition: transform 180ms linear;
}

.ge-coffee-hero__bean::after {
  content: "";
  position: absolute;
  inset: 10% 46% 10% 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.05));
  transform: rotate(8deg);
  filter: blur(0.2px);
}

.ge-coffee-hero__card {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--ge-radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--ge-shadow);
}

.ge-coffee-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7f5b36;
}

.ge-coffee-hero__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.ge-coffee-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.ge-coffee-hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--ge-muted);
}

.ge-coffee-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ge-ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.ge-button:hover {
  transform: translateY(-2px);
}

.ge-button--dark {
  background: var(--ge-ink);
  color: #fff;
}

.ge-button--light {
  background: rgba(255,255,255,0.48);
  color: var(--ge-ink);
}

.ge-coffee-hero__story {
  position: relative;
  z-index: 3;
}

.ge-story-step {
  display: none;
  animation: geFade 320ms ease both;
}

.ge-story-step.is-active {
  display: block;
}

.ge-story-step__number {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7f5b36;
}

.ge-story-step h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.ge-story-step p {
  max-width: 540px;
  margin: 20px 0 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ge-muted);
}

.ge-story-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.ge-story-progress span {
  height: 3px;
  border-radius: 999px;
  background: rgba(27, 22, 18, 0.16);
  overflow: hidden;
}

.ge-story-progress span::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: var(--ge-ink);
  transition: width 240ms ease;
}

.ge-story-progress span.is-active::after,
.ge-story-progress span.is-complete::after {
  width: 100%;
}

.ge-brew-finder {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--ge-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
}

.ge-brew-finder__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.ge-brew-finder__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ge-brew-finder button {
  appearance: none;
  border: 1px solid var(--ge-line);
  border-radius: 999px;
  background: var(--ge-paper);
  color: var(--ge-ink);
  padding: 11px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ge-brew-finder button:hover,
.ge-brew-finder button.is-selected {
  background: var(--ge-ink);
  color: #fff;
  border-color: var(--ge-ink);
}

.ge-brew-finder__result {
  margin-top: 16px;
  min-height: 52px;
  color: var(--ge-muted);
  line-height: 1.55;
}

.ge-brew-finder__result strong {
  color: var(--ge-ink);
}

.ge-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27,22,18,0.6);
}

@keyframes geFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .ge-coffee-hero {
    min-height: auto;
  }

  .ge-coffee-hero__stage {
    position: relative;
    grid-template-columns: 1fr;
    width: min(100% - 28px, 760px);
    min-height: auto;
    padding: 36px 0 72px;
  }

  .ge-coffee-hero__visual {
    min-height: 520px;
  }

  .ge-coffee-hero__story {
    padding-bottom: 10px;
  }

  .ge-story-step {
    display: block;
    padding: 28px 0;
    border-top: 1px solid var(--ge-line);
  }

  .ge-story-progress,
  .ge-scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ge-coffee-hero__bean,
  .ge-coffee-hero__halo,
  .ge-story-step,
  .ge-button {
    animation: none !important;
    transition: none !important;
  }
}
