/* =========================================================
   Birnbaum Haus & Garten – Coming Soon Landing
   Recreated to match the onepager reference (2752x1536).
   ========================================================= */

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/outfit-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/outfit-v15-latin-600.woff2') format('woff2');
}

/* outfit-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/outfit-v15-latin-800.woff2') format('woff2');
}


:root {
  --color-sky:        #22B8D9;
  --color-mint:       #C9E5B8;
  --color-mint-soft:  #D7EBC8;
  --color-sun:        #F2B62C;
  --color-ink:        #14181B;

  --max-width: 1280px;

  /* Original uses one chunky rounded face for all bold text.
     Baloo 2 800 matches the original's chunkiness + rounded terminals. */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-mint);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   HEADER (cyan strip — ~13% of total height)
   ========================================================= */
.site-header {
  background: var(--color-sky);
  padding: clamp(14px, 2vw, 26px) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.brand { display: inline-flex; align-items: center; transition: transform 0.2s ease; }
.brand:hover { transform: scale(1.03); }

.brand__logo {
  /* Original logo is ~18% of body width. */
  height: clamp(40px, 5.5vw, 72px);
  width: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  background: transparent;
}

/* =========================================================
   HERO (mint body)
   Flex column so the content stays vertically centered on tall
   viewports instead of sticking to the top.
   ========================================================= */
.hero {
  flex: 1;
  position: relative;
  background: var(--color-mint);
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 48px) clamp(60px, 7vw, 110px);
  overflow: hidden;
  /* Center content both ways; on short viewports the padding
     still keeps a sensible inset. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  /* Text takes 55% so the title "Coming soon!" can fit on one line
     matching the original onepager. */
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ---- TEXT BLOCK ---- */
.hero__content {
  max-width: 720px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

/* Original: eyebrow cap-height ≈ 80px, title cap-height ≈ 240px → ratio 0.33 */
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 clamp(6px, 0.6vw, 12px);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* Original title: cap-height ≈ 240px in 1536-tall canvas (15.6% of total).
   In our ~900px viewport, scaled proportionally = 140px cap height.
   For Fredoka 700, cap height ≈ 0.72 × font-size → font-size ≈ 195px.
   But that's too wide for the column. We cap at 7rem (112px) which gives
   a cap height of ~80px (12% of body) — practical and proportional. */
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  /* In the original, title spans ~57% of the body width. We cap at 7rem
     so it fits the column at desktop without overflow. */
  font-size: clamp(3.6rem, 8.5vw, 7rem);
  line-height: 0.98;
  margin: 0 0 clamp(20px, 2vw, 32px);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}

.hero__bang {
  display: inline-block;
  color: var(--color-ink);
  animation: wiggle 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* Original: lede cap-height ≈ 50px, title cap-height ≈ 240px → ratio 0.21 */
.hero__lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  line-height: 1.3;
  margin: 0 0 clamp(22px, 2.2vw, 32px);
  color: var(--color-ink);
  max-width: 560px;
}

/* ---- CONTACT ---- */
.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.5vw, 10px);
}

.contact__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  line-height: 1.25;
  margin: 0;
  color: var(--color-ink);
}

.contact__line--strong { margin-top: clamp(6px, 0.6vw, 10px); }

.contact__email {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
  margin: 0 0 clamp(6px, 0.6vw, 12px);
  color: var(--color-ink);
  border-bottom: clamp(3px, 0.25vw, 4px) solid var(--color-ink);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact__email:hover {
  color: var(--color-sky);
  border-color: var(--color-sky);
  transform: translateY(-1px);
}

.contact__people {
  list-style: none;
  margin: clamp(4px, 0.4vw, 8px) 0 0;
  padding: 0;
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  flex-wrap: wrap;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.person__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  color: var(--color-ink);
}

.person__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  color: var(--color-ink);
  position: relative;
  align-self: flex-start;
}
.person__phone::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: var(--color-sky);
  transition: width 0.25s ease;
}
.person__phone:hover { color: var(--color-sky); }
.person__phone:hover::after { width: 100%; }

/* =========================================================
   ILLUSTRATION
   ========================================================= */
.hero__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(400px, 40vw, 560px);
  animation: fadeIn 1.1s ease-out 0.3s both;
}

.art {
  position: relative;
  filter: drop-shadow(0 12px 20px rgba(20, 24, 27, 0.15));
  object-fit: contain;
  max-width: 100%;
}

.art--klaus {
  height: clamp(360px, 36vw, 500px);
  width: auto;
  z-index: 1;
  margin-right: -32px;
  animation: bob 4s ease-in-out infinite;
}

.art--louisa {
  height: clamp(400px, 40vw, 560px);
  width: auto;
  z-index: 2;
  margin-bottom: -40px;
  animation: bob 4s ease-in-out infinite 0.5s;
}

/* speed lines removed — none at all */

/* =========================================================
   SINGLE CONFETTI (bottom-left, mostly inside the footer with a
   small portion straggling up into the mint).
   The original onepager (2752×1536) has the cluster at:
     x = 0..800      (~30% of page width)
     y = 1127..1535  (~26% of page height)
   The mint/footer border sits at y=1327, so the cluster extends
   200px above the border and 1px from the page bottom — i.e. it's
   mostly in the yellow footer with ~20% of the petals in the mint.

   confetti.png is 593x170 with the visible petals spanning y=34..169
   (the top 20% of the image is empty). At a width of ~520px the
   image is ~150px tall, the visible cluster ~120px tall, and we
   position it so the cluster top sits ~25px above the footer top.
   ========================================================= */
.confetti {
  position: absolute;
  width: clamp(360px, 36vw, 520px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  opacity: 0.95;
}

.confetti--footer-left {
  /* "On the ground" — sitting on the bottom-left of the footer,
     sticking to the left edge. The confetti image's natural padding
     means the visible petals stay inside the footer. */
  left: 0;
  bottom: 0;
  filter: drop-shadow(0 2px 4px rgba(20, 24, 27, 0.15));
}

/* =========================================================
   FOOTER (yellow strip — ~14% of total height)
   ========================================================= */
.site-footer {
  background: var(--color-sun);
  padding: clamp(28px, 3.5vw, 44px) 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  /* Don't clip the confetti that extends beyond the bottom of the footer. */
  overflow: visible;
}

.site-footer__url {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  color: var(--color-ink);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  /* Above the confetti (z-index 5) so the URL is always clickable. */
  position: relative;
  z-index: 10;
}
.site-footer__url:hover {
  background: rgba(20, 24, 27, 0.08);
  transform: translateY(-1px);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-6deg); }
  40%      { transform: rotate(6deg); }
  60%      { transform: rotate(-3deg); }
  80%      { transform: rotate(3deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero { padding: 32px 20px 56px; }
  .hero__container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero__content { max-width: 100%; }
  .hero__title { white-space: normal; font-size: clamp(3.4rem, 12vw, 5.5rem); }
  .hero__art {
    order: 2;
    min-height: 360px;
    margin-top: 8px;
  }
  .art--klaus  { height: 320px; margin-right: -16px; }
  .art--louisa { height: 360px; }
  .contact__people { gap: 20px; }
  .confetti { width: clamp(180px, 22vw, 300px); }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .brand__logo { height: 44px; }
  .hero { padding: 24px 16px 40px; }
  .hero__art { min-height: 280px; }
  .art--klaus  { height: 230px; }
  .art--louisa { height: 260px; }
  .contact__people { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
