:root {
  --primary-50: #fffce7;
  --primary-100: #fff5b4;
  --secondary-100: #bee0cd;
  --secondary-300: #0b4825;
  --grey-white: #ffffff;
  --grey-100: #bfbfbf;
  --grey-500: #737373;
  --grey-700: #404040;
  --grey-900: #1a1a1a;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--grey-white);
  color: var(--grey-900);
}

img {
  display: block;
  max-width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Hero ---------- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 46vh;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-watermark {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0 20px;
}

.hero-watermark-top {
  top: 20px;
}

.hero-watermark-bottom {
  bottom: 20px;
}

/* ---------- Info panel ---------- */

.info-panel {
  position: relative;
  z-index: 2;
  margin-top: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 120px;
  width: 100%;
  padding: 32px 24px;
  background: var(--primary-50);
}

.info-panel-top,
.info-panel-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 24px;
  width: 100%;
}

.brand-logo {
  width: 130px;
  height: auto;
}

.intro-text p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-500);
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.offer-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.offer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-900);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-700);
  max-width: 100%;
}

.tag-primary {
  background: var(--primary-100);
}

.tag-secondary {
  background: var(--secondary-100);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--grey-100);
}

.badges img {
  width: auto;
  mix-blend-mode: darken;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 240px;
  padding: 20px;
  border-left: 1px solid var(--grey-100);
}

.contact-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-300);
  text-decoration: none;
  white-space: nowrap;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--primary-100);
  border-radius: 123px;
  transition: filter 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  filter: brightness(0.95);
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .info-panel {
    padding: 40px;
  }

  .hero-watermark {
    padding: 0 32px;
  }

  .hero-watermark-top {
    top: 32px;
  }

  .hero-watermark-bottom {
    bottom: 32px;
  }
}

/* ---------- Desktop: side-by-side layout ---------- */

@media (min-width: 900px) {
  .page {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  .hero {
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
  }

  .info-panel {
    position: relative;
    z-index: auto;
    margin-top: 0;
    flex: 0 0 clamp(340px, 34vw, 480px);
    max-width: 480px;
    height: 100%;
    overflow-y: auto;
  }

  .brand-logo {
    width: 153px;
  }
}

@media (min-width: 1400px) {
  .info-panel {
    flex-basis: clamp(400px, 30vw, 560px);
    max-width: 560px;
  }
}

/* ---------- Entrance animations ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-photo,
  .hero-watermark,
  .brand-logo,
  .intro-text p,
  .offer-title,
  .tag,
  .badges img,
  .contact-link,
  .social-link {
    opacity: 0;
    animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-photo {
    animation-delay: 0s;
  }

  .hero-watermark-top {
    animation-delay: 0.15s;
  }

  .hero-watermark-bottom {
    animation-delay: 0.25s;
  }

  .brand-logo {
    animation-delay: 0.1s;
  }

  .contact-link:nth-child(1) { animation-delay: 0.16s; }
  .contact-link:nth-child(2) { animation-delay: 0.2s; }
  .contact-link:nth-child(3) { animation-delay: 0.24s; }

  .social-link {
    animation-delay: 0.28s;
  }

  .intro-text p:nth-child(1) {
    animation-delay: 0.34s;
  }

  .intro-text p:nth-child(2) {
    animation-delay: 0.4s;
  }

  .offer-title {
    animation-delay: 0.46s;
  }

  .tag-list .tag:nth-child(1) { animation-delay: 0.52s; }
  .tag-list .tag:nth-child(2) { animation-delay: 0.56s; }
  .tag-list .tag:nth-child(3) { animation-delay: 0.6s; }
  .tag-list .tag:nth-child(4) { animation-delay: 0.64s; }
  .tag-list .tag:nth-child(5) { animation-delay: 0.68s; }
  .tag-list .tag:nth-child(6) { animation-delay: 0.72s; }
  .tag-list .tag:nth-child(7) { animation-delay: 0.76s; }
  .tag-list .tag:nth-child(8) { animation-delay: 0.8s; }
  .tag-list .tag:nth-child(9) { animation-delay: 0.84s; }

  .badges img:nth-child(1) { animation-delay: 0.88s; }
  .badges img:nth-child(2) { animation-delay: 0.92s; }
  .badges img:nth-child(3) { animation-delay: 0.96s; }
}
