/* ================= HEADER ================= */

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  background: linear-gradient(90deg, #D08F6A, #9FB7AA, #D08F6A);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Fallback */
  -webkit-text-fill-color: var(--color-text-muted);
  /* Initial state: not gradient */
}

.nav a:hover {
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
  to {
    background-position: 200% center;
  }
}

/* ================= BURGER & MOBILE MENU ================= */

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.burger span {
  width: 100%;
  height: 2px;
  background-color: var(--brand-peach);
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.burger:hover span {
  background-color: var(--brand-sage);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu__close svg path {
  stroke: var(--brand-peach);
  transition: stroke 0.3s ease;
}

.mobile-menu__close:hover svg path {
  stroke: var(--brand-peach);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--brand-peach);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--brand-peach);
}

.mobile-menu__btn {
  font-family: var(--font-ui);
  margin-top: 20px;
  width: auto;
  min-width: 200px;
}

/* ================= HERO ================= */

section {
  position: relative;
  z-index: 1;
  /* Ensure sections sit above the ambient background */
}

.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 100px;
  width: 100%;
}

.hero__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  align-self: stretch;
  border-radius: 5px;
}

.hero__image img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 5px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hero__image:hover img {
  transform: scale(1.1);
  /* Zoom in */
}

.hero__content {
  position: relative;
}

.hero__subtitle {
  font-family: var(--font-ui);
  color: var(--color-accent);
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 12px;
}

.hero__content h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero__content h1 .indent-italic {
  display: inline-block;
  margin-left: 80px;
  font-style: italic;
  font-weight: 400;
}

.hero__title-accent {
  color: var(--brand-peach);
}

.hero__title-muted {
  color: var(--color-text-muted);
}

.hero__list {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__list li {
  position: relative;
  padding-left: 32px;
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Custom star bullet */
.hero__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0L9.79611 6.20389L16 8L9.79611 9.79611L8 16L6.20389 9.79611L0 8L6.20389 6.20389L8 0Z' fill='%23C69C84'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.hero__decoration {
  position: absolute;
  top: -105px;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__decoration svg {
  position: relative;
  right: -10px;
  top: -10px;
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1920px) {
  .hero__content h1 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  .hero__decoration {
    top: -55px;
    right: 15px;
  }
}

@media (max-width: 1440px) {
  .hero__decoration {
    display: none;
  }
}

@media (max-width: 1280px) {
  .hero {
    padding: 40px 0;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
  }

  .hero__content h1 .indent-italic {
    margin-left: 50px;
  }

  .hero__subtitle {
    font-size: 17px;
    line-height: 26px;
  }

  .hero__list {
    margin-bottom: 36px;
  }

  .hero__list li {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .header .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero__image {
    order: -1;
    align-self: auto;
    aspect-ratio: 1200 / 800;
  }

  .hero__image img {
    position: static;
    width: 100%;
    height: auto;
  }

  .hero__content h1 {
    font-size: 36px;
  }

  .hero__content h1 .indent-italic {
    margin-left: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    /* Allow content to dictate height */
    padding: 40px 0;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* 2. Order: Content top, Image bottom */
  .hero__content {
    order: 1;
    /* First visual element */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__image {
    order: 2;
    /* Second visual element */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: none;
    /* Simplify on mobile if needed, or keep */
  }

  /* Typography & Layout adjustments */
  .hero__subtitle {
    justify-content: center;
    font-size: 18px;
    margin-bottom: 24px;
  }

  .hero__content h1 {
    font-size: 32px;
    /* Smaller font for mobile */
    margin-bottom: 32px;
    line-height: 1.3;
    /* Slightly tighter line height */
  }

  .hero__content h1 br {
    display: none;
    /* Hide breaks to prevent double spacing with block spans */
  }

  .hero__content h1 span {
    display: block;
    /* Force stacking */
  }

  .hero__content h1 .indent-italic {
    margin-left: 0;
  }

  .hero__list {
    align-items: center;
    margin-bottom: 40px;
  }

  .hero__list li {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    /* Align bullet with first line */
    justify-content: center;
    text-align: left;
    /* Text itself aligns left relative to bullet */
    gap: 12px;
    max-width: 320px;
    /* Prevent lines from being too wide */
  }

  .hero__list li::before {
    position: static;
    /* Flow with text */
    flex-shrink: 0;
    /* Prevent bullet shrinking */
    margin-top: 4px;
    /* Optical alignment with line-height */
  }

  /* Button */
  .btn-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}