/* hero.css */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--color-dark-text);
  /* Override section padding since hero is full height */
  padding-block: 0;
}

/* BACKGROUND MEDIA */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg-desktop {
  display: none;
  width: 100%;
  height: 100%;
}

.hero__bg-mobile {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  .hero__bg-desktop {
    display: block;
  }
  .hero__bg-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-desktop {
    display: block;
  }
  .hero__bg-mobile {
    display: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Dark elegant overlay that ensures text readability but keeps photo visible */
  background: linear-gradient(180deg, rgba(29, 26, 23, 0.65) 0%, rgba(29, 26, 23, 0.86) 35%, rgba(29, 26, 23, 0.9) 65%, rgba(29, 26, 23, 0.97) 100%);
}

@media (min-width: 1024px) {
  .hero__overlay {
    background: linear-gradient(180deg, rgba(29, 26, 23, 0.55) 0%, rgba(29, 26, 23, 0.73) 40%, rgba(29, 26, 23, 0.85) 70%, rgba(29, 26, 23, 0.93) 100%);
  }
}

/* HEADER */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-block: 16px;
}

@media (min-width: 1024px) {
  .header {
    position: relative;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding-block: 20px;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, rgba(29, 26, 23, 0.55) 0%, rgba(29, 26, 23, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .header::before {
    display: none;
  }
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .header__container {
    justify-content: space-between;
  }
}

.header__logo {
  display: block;
  flex-shrink: 0;
}

.header__logo img {
  width: 150px;
  height: auto;
}

@media (min-width: 390px) {
  .header__logo img {
    width: 170px;
  }
}

@media (min-width: 1024px) {
  .header__logo img {
    width: 210px;
  }
}

.header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
  }
}

/* HERO CONTENT */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(96px, 14vh, 120px); /* Space for header, responsive to guarantee CTA visibility */
  padding-bottom: 24px;
}

@media (min-width: 1024px) {
  .hero__content {
    padding-top: 60px; /* Reduced because header is now a separate relative component */
  }
}

.hero__pre-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero__divider-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-dark-accent);
  opacity: 0.5;
}

.hero__divider-icon {
  color: var(--color-dark-accent);
  display: flex;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 11vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-dark-text);
  margin-bottom: 16px;
  max-width: 900px;
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(4.6rem, 6vw, 5.75rem);
    letter-spacing: -0.02em;
  }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 4vw, 17px);
  line-height: 1.5;
  color: var(--color-dark-text);
  margin-bottom: clamp(20px, 4vh, 32px);
  max-width: 800px;
  padding-inline: 10px;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 900px; /* Increased to keep sentence on one line on desktop */
  }
}

.hero__br {
  display: block;
  content: "";
  margin-top: 8px;
}

@media (min-width: 768px) {
  .hero__br {
    display: inline;
    margin-top: 0;
  }
  .hero__br::before {
    content: " ";
  }
}

.hero__mobile-break {
  display: block;
}

@media (min-width: 768px) {
  .hero__mobile-break {
    display: none;
  }
}

.hero__btn {
  width: 100%;
  max-width: 400px;
}

@media (min-width: 768px) {
  .hero__btn {
    width: auto;
    min-width: 440px;
  }
}

/* TRUST AREA */
.hero__trust {
  padding-bottom: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 0;
  position: relative;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  position: relative;
}

/* Separators for mobile (3 cols x 2 rows) */
.trust-item:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(200, 170, 125, 0.2); /* very subtle divider */
}

.trust-icon {
  width: 30px;
  height: 30px;
  color: var(--color-dark-accent);
  margin-bottom: 12px;
  stroke-width: 1.2px;
}

.trust-item p {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  color: var(--color-dark-text);
  opacity: 0.9;
}

@media (min-width: 390px) {
  .trust-item p {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .hero__trust {
    padding-bottom: 48px;
  }
  
  .trust-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }
  
  .trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(200, 170, 125, 0.2);
  }
  
  .trust-item:nth-child(3n)::after {
    display: block; /* Reset the hiding from mobile media query */
  }

  .trust-item p {
    font-size: 13px;
  }
}

/* CAROUSEL */
.hero__carousel {
  width: 100%;
  padding-bottom: 32px;
  position: relative;
}

.carousel__wrapper {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
}

.carousel__track-container {
  overflow-x: auto;
  width: 100%;
  display: flex;
  gap: 16px;
  user-select: none;
  scrollbar-width: none;
}
.carousel__track-container::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .carousel__track-container {
    display: block;
    gap: 0;
    overflow-x: visible;
  }
}

.carousel__track {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  min-width: 100%;
}

@media (min-width: 1024px) {
  .carousel__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    animation: none;
    transform: none !important;
  }
  .carousel__track--duplicate {
    display: none !important;
  }
}

.carousel__slide {
  width: 85vw;
  max-width: 380px;
  flex: none;
  opacity: 1;
}

@media (min-width: 1024px) {
  .carousel__slide {
    width: auto;
    max-width: none;
  }
}



.carousel__slide-inner {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 1024px) {
  .carousel__slide-inner {
    padding-bottom: 65%;
  }
}

.carousel__slide-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* REDUCED MOTION SUPPORT (Hero Marquee) */
@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    animation: none !important;
  }
  .carousel__track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .carousel__slide {
    scroll-snap-align: center;
  }
  .carousel__track--duplicate {
    display: none !important;
  }
}
