/* Landing page styles (landing.php) */

.landing{
  padding-block: clamp(18px, 2.8vw, 42px);
}

.landing__hero{
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

/* Title + subtitle on one row (subtitle aligned to title center) */
.landing__copy{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.landing__title{
  margin: 0;
  font-size: clamp(42px, 5.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.7px;
}

.landing__sub{
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
}

/* Carousel wrap */
.landing__carouselWrap{
  width: 100%;
}

/* Stage */
.carousel-stage{
  position: relative;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: 0 15px 500px rgba(0,0,0,.22);
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 45px);
}

[data-theme="light"] .carousel-stage{
  background: rgba(0,0,0,.03);
  box-shadow: 0 18px 56px rgba(0,0,0,.18);
}

/* Keep arrows inside stage and aligned with info-cards width */
.carousel-viewport{
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 430px);
  display:flex;
  align-items:center;
  justify-content:center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  z-index: 300;
}

[data-theme="light"] .carousel-btn{
  border-color: rgba(0,0,0,.14);
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.70);
}

.carousel-btn svg{
  width: 22px;
  height: 22px;
}

.carousel-btn:hover{
  transform: translateY(-50%) scale(1.10);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

[data-theme="light"] .carousel-btn:hover{
  background: rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.20);
}

.carousel-btn--prev{ left: clamp(14px, 2vw, 22px); }
.carousel-btn--next{ right: clamp(14px, 2vw, 22px); }

/* Items */
.carousel-item{
  position: absolute;
  width: var(--card-w, 260px);
  height: var(--card-h, 340px);
  border-radius: 20px;
  overflow:hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .28s ease, filter .18s ease, box-shadow .18s ease;
}

[data-theme="light"] .carousel-item{
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.carousel-item::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  opacity: .60;
  pointer-events:none;
}

[data-theme="light"] .carousel-item::after{
  opacity: .52;
}

.carousel-item.is-hover{
  filter: saturate(1.05) contrast(1.02);
  box-shadow: 0 22px 54px rgba(0,0,0,.42);
}

[data-theme="light"] .carousel-item.is-hover{
  box-shadow: 0 22px 56px rgba(0,0,0,.28);
}

/* Title label on image */
.carousel-meta{
  position:absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display:flex;
  align-items:center;
  gap: 10px;
}

.carousel-title{
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.25px;
  font-size: 14px; /* a bit bigger for readability */
  color: rgba(255,255,255,.95);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.40);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

[data-theme="light"] .carousel-title{
  color: rgba(255,255,255,.95); /* stay white in light mode too */
}

/* Info cards */
.landing__info{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
}

.info-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 18px 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

[data-theme="light"] .info-card{
  background: rgba(255,255,255,.55);
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}

.info-card h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.info-card p{
  margin: 0;
  color: var(--muted);
}

/* Footer alignment tweaks (Landing only overrides) */
.site-footer .footer-brand,
.site-footer .footer-newsletter{
  display: grid;
  grid-template-rows: auto auto auto auto;
  row-gap: 10px;
  justify-items: center;
  text-align: center;
}

.site-footer .footer-desc,
.site-footer .footer-small{
  margin: 0;
}

.site-footer .footer-social{
  flex-wrap: nowrap; /* 1 row on desktop */
  align-items: center;
}

.site-footer .social,
.site-footer .newsletter-input,
.site-footer .newsletter-btn{
  height: 44px;
}

.site-footer .footer-privacy{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

[data-theme="light"] .site-footer .footer-privacy{
  color: rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 960px){
  .landing__copy{
    flex-direction: column;
    align-items: flex-start;
  }
  .landing__sub{
    max-width: 68ch;
  }
  .landing__info{
    grid-template-columns: 1fr;
  }
  .carousel-viewport{
    height: clamp(280px, 62vw, 420px);
  }
  .site-footer .footer-social{
    flex-wrap: wrap; /* 2 rows ok on mobile */
    justify-content: center;
  }
}
