/* promo.css — gaya khusus halaman promo */
:root {
  --promo-ink: #243b35;
  --promo-muted: #718079;
  --promo-green: #496d5d;
  --promo-gold: #c4a56b;
  --promo-paper: #f7f8f5;
  --promo-white: #ffffff;
  --promo-radius: 20px;
  --promo-shadow: 0 12px 34px rgba(32, 56, 46, .09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--promo-paper);
  color: var(--promo-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.promo-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 32px;
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 650px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--promo-green);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .19em;
}

.section-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--promo-muted);
  font-size: .98rem;
  line-height: 1.65;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.promo-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--promo-white);
  border: 1px solid rgba(51, 83, 68, .09);
  border-radius: var(--promo-radius);
  box-shadow: var(--promo-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(32, 56, 46, .13);
}

/* Rasio foto 4:3 */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ede8;
  isolation: isolate;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.22, .7, .2, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(18, 31, 26, .3));
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #294238;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  transition: background .2s ease, transform .2s ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow:focus-visible,
.carousel-dot:focus-visible,
.promo-link:focus-visible {
  outline: 3px solid var(--promo-gold);
  outline-offset: 3px;
}

.carousel-arrow.prev { left: 13px; }
.carousel-arrow.next { right: 13px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.carousel-dot.is-active {
  width: 22px;
  background: #fff;
}

.photo-count {
  position: absolute;
  right: 15px;
  bottom: 13px;
  z-index: 3;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.promo-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 25px 24px;
}

.promo-label {
  margin-bottom: 10px;
  color: #8c754b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.promo-content h2 {
  margin: 0;
  color: var(--promo-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.promo-content > p {
  margin: 12px 0 19px;
  color: var(--promo-muted);
  font-size: .91rem;
  line-height: 1.65;
}

.promo-meta {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #edf0ec;
  border-bottom: 1px solid #edf0ec;
  color: #61736a;
  font-size: .76rem;
}

.meta-icon {
  margin-right: 5px;
  color: var(--promo-gold);
}

.availability {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4f1e9;
  color: #897348;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  color: var(--promo-green);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.promo-link span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #dce5dd;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.promo-link:hover span {
  color: #fff;
  background: var(--promo-green);
  transform: translate(2px, -2px);
}

.section-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5eae4;
  color: var(--promo-muted);
  font-size: .8rem;
  line-height: 1.6;
}

.section-footer p { margin: 0; }
.section-footer a {
  color: var(--promo-green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .promo-section {
    width: min(100% - 28px, 560px);
    padding-top: 44px;
  }
  .promo-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { margin-bottom: 26px; }
  .promo-content { padding: 21px 21px 23px; }
}

@media (max-width: 420px) {
  .promo-section { width: calc(100% - 22px); }
  .carousel-arrow { width: 33px; height: 33px; }
  .promo-meta { align-items: flex-start; flex-direction: column; }
}

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