/* ============================================================
   HOME.CSS - Homepage Section Styles
   Tapak Baduy - Open Trip
============================================================ */

/* ============================================================
   SECTION 1: HERO
============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: saturate(0.9) brightness(1);
    transform: scale(1.02);
    transform-origin: center top;
    animation: heroZoom 12s ease-out forwards;
    display: block;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--navbar-h) + 3rem);
    padding-bottom: var(--space-2xl);
    width: 100%;
    line-height: 1.65;
}

.hero-left { max-width: 560px; }

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s var(--ease-out) forwards;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.7s 0.5s var(--ease-out) forwards;
    text-shadow: 0 2px 18px rgba(0,0,0,0.6), 0 4px 36px rgba(0,0,0,0.35);
}

.hero-title-script {
    display: block;
    font-style: italic;
    color: #a8d060;
    font-family: var(--font-script);
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.hero-desc {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.65);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.7s 0.7s var(--ease-out) forwards;
}

.hero-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.7s 0.9s var(--ease-out) forwards;
}

.hero-badge { display: flex; align-items: center; gap: 0.5rem; }

.hero-badge i {
    color: var(--color-gold-light);
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.hero-badge span {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0,0,0,0.65);
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.7s 1.1s var(--ease-out) forwards;
    border-radius: 50px;
    font-size: 0.95rem;
}

.hero-scroll { display: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.4; }
}

/* ============================================================
   SECTION 2: TRIPS
============================================================ */

.trips-section {
    background: #ffffff;
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: 0;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: var(--space-md);
}

.trip-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--duration-mid) var(--ease-out),
                box-shadow var(--duration-mid) var(--ease-out);
    border: 1px solid var(--color-gray-200);
}

.trip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.trip-card.featured { border: 2px solid var(--color-moss); }

.trip-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
}

.trip-badge.popular    { background: var(--color-gold);   color: var(--color-forest); }
.trip-badge.bestseller { background: var(--color-moss);   color: var(--color-white);  }
.trip-badge.private    { background: var(--color-forest); color: var(--color-white);  }

.trip-img-wrap {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c4a1e 0%, #1a3a0a 100%);
    position: relative;
}

.trip-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
    display: block;
    position: relative; z-index: 1;
}

.trip-card:hover .trip-img-wrap img { transform: scale(1.06); }

.trip-body { padding: 1.1rem 1.25rem 1.25rem; }

.trip-name {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 0.5rem; line-height: 1.3;
}

.trip-route, .trip-date {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; color: var(--color-gray-600);
    margin-bottom: 0.3rem;
}

.trip-route i, .trip-date i { color: var(--color-moss); width: 14px; flex-shrink: 0; }

.trip-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem; padding-top: 0.85rem;
    border-top: 1px solid var(--color-gray-200);
    gap: 0.5rem;
}

.trip-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px; }
.price-label { font-size: 0.72rem; font-weight: 600; color: var(--color-gray-600); }
.price-amount { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--color-forest); }
.price-per { font-size: 0.7rem; color: var(--color-gray-400); }

.btn-detail {
    background: var(--color-forest); color: var(--color-white);
    font-size: 0.8rem; font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    white-space: nowrap; flex-shrink: 0;
    transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn-detail:hover { background: var(--color-moss); transform: scale(1.02); }

.trips-more {
    margin-top: var(--space-sm);
    padding-bottom: var(--space-md);
}

/* ============================================================
   SECTION 3: WHY
============================================================ */

.why-section {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
}

.why-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../img/banner/cta-bg.jpg');
    background-size: cover; background-position: center;
    filter: brightness(0.45) saturate(0.8);
    z-index: 0;
}

.why-section::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20,40,10,0.75) 0%, rgba(44,74,30,0.6) 100%);
    z-index: 1; pointer-events: none;
}

.why-section .container { position: relative; z-index: 2; max-width: 1100px; }
.why-section .section-eyebrow { color: var(--color-gold-light); }
.why-section .section-title { color: var(--color-white); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.why-section .section-divider { background: linear-gradient(90deg, var(--color-gold), rgba(255,255,255,0.4)); }

.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }

.why-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    position: relative;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: all var(--duration-mid) var(--ease-out);
}

.why-card:last-child { border-right: none; }
.why-card::before { display: none; }
.why-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); }

.why-icon {
    width: 56px; height: 56px;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    transition: transform var(--duration-mid) var(--ease-spring);
}

.why-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.why-card:hover .why-icon { transform: scale(1.1); }
.why-icon i { font-size: 2rem; color: var(--color-white); }
.why-card h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--color-white); margin-bottom: 0.4rem; }
.why-card p { font-size: 0.75rem; color: rgba(255,255,255,0.72); line-height: 1.55; }

/* ============================================================
   SECTION 4: HIGHLIGHTS
============================================================ */

.highlights-section {
    position: relative;
    padding-top: var(--space-md);
    padding-bottom: var(--space-2xl);
    overflow: hidden;
}

.highlights-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../img/banner/highlights-bg.jpg');
    background-size: cover; background-position: center;
    z-index: 0;
}

.highlights-section .container { position: relative; z-index: 1; }
.highlights-section .section-eyebrow { color: var(--color-moss); }
.highlights-section .section-title { color: var(--color-forest); text-shadow: none; }
.highlights-section .section-divider { background: linear-gradient(90deg, var(--color-gold), var(--color-moss)); }

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    width: 100%;
    padding: 0 2rem;
}

.highlight-card {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.highlight-img {
    width: 100%; height: 100%;
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #3d6628 0%, #2c4a1e 60%, #1a3010 100%);
}

.highlight-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); display: block; }

.highlight-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,25,5,0.9) 0%, rgba(10,25,5,0.15) 50%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem 0.9rem;
    z-index: 2;
    transition: background var(--duration-mid);
}

.highlight-overlay i { display: none; }

.highlight-card .highlight-label {
    font-family: var(--font-display);
    font-size: 0.85rem; font-weight: 700;
    color: var(--color-white); line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.highlight-card .highlight-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0);
    margin-top: 3px; line-height: 1.3;
    transition: color var(--duration-mid), transform var(--duration-mid);
    transform: translateY(4px);
    display: block;
}

.highlight-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--color-gold);
    z-index: 3;
    transition: width 0.45s var(--ease-out);
}

.highlight-card:hover::after { width: 100%; }
.highlight-card:hover .highlight-img img { transform: scale(1.08); }
.highlight-card:hover .highlight-overlay { background: linear-gradient(to top, rgba(30,60,15,0.95) 0%, rgba(30,60,15,0.3) 55%, transparent 75%); }
.highlight-card:hover .highlight-sub { color: rgba(255,255,255,0.8); transform: translateY(0); }
.highlight-card > p, .highlight-card > span { display: none; }

/* ============================================================
   SECTION 5: SABA BUDAYA + PACKING
============================================================ */

.info-section {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0;
}

.info-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../img/banner/cta-bg.jpg');
    background-size: cover; background-position: center;
    filter: brightness(0.35) saturate(0.75);
    z-index: 0;
}

.info-section::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(10,20,5,0.35);
    z-index: 1; pointer-events: none;
}

.info-section .container {
    position: relative; z-index: 2;
    padding-left: 10rem; padding-right: 10rem;
    max-width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative; z-index: 2;
}

.info-grid::after {
    content: '';
    position: absolute;
    top: 10%; bottom: 10%; left: 50%;
    width: 1px;
    background: rgba(255,255,255,0.2);
    transform: translateX(-50%);
}

.info-card {
    background: transparent;
    border: none; border-radius: 0;
    padding: 0 2.5rem;
    position: relative; overflow: visible;
}

.info-card.info-adat { padding-left: 0; padding-right: 2.5rem; }
.info-card.info-packing { padding-left: 2.5rem; padding-right: 0; }

.info-card-label {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--color-gold-light);
    background: transparent; border: none; padding: 0;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.25rem; line-height: 1.25;
}

.adat-list { display: flex; flex-direction: column; gap: 0.6rem; }
.adat-list li { display: flex; align-items: flex-start; gap: 0.65rem; }
.adat-list i { color: var(--color-gold-light); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.adat-list span { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

.adat-badge { position: absolute; top: 0; left: -2rem; opacity: 0.12; pointer-events: none; }
.adat-badge img { width: 120px; }

.packing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem; margin-bottom: 1rem;
}

.packing-item {
    text-align: center; padding: 0.6rem 0.3rem;
    background: transparent; border: none;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.packing-item:last-child { border-right: none; }

.packing-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.4rem;
}
.packing-icon i { color: var(--color-white); font-size: 1.4rem; }
.packing-item span { font-size: 0.68rem; color: rgba(255,255,255,0.8); line-height: 1.3; display: block; }

.packing-tip {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--color-gold);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
}
.packing-tip i { color: var(--color-forest); font-size: 0.85rem; flex-shrink: 0; }
.packing-tip span { font-size: 0.8rem; color: var(--color-forest); font-weight: 600; line-height: 1.4; }

/* ============================================================
   SECTION 6: TESTIMONIAL — AUTO SLIDING CAROUSEL
============================================================ */

.testimonial-section {
    background: var(--color-cream);
    padding: var(--space-xl) 0;
}

.testimonial-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
}

/* ---- Carousel kiri ---- */
.testimonial-carousel {
    position: relative;
    overflow: hidden; /* PENTING: harus di sini, bukan di track */
    border-radius: var(--radius-xl);
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s var(--ease-out);
    /* JANGAN overflow:hidden di sini */
}

.review-card {
    min-width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-quote i {
    font-size: 1.5rem;
    color: var(--color-gold);
    opacity: 0.8;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.75;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.reviewer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--color-cream-dark);
    background: var(--color-moss);
}

.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.reviewer-info { display: flex; flex-direction: column; gap: 1px; }
.reviewer-info strong { font-size: 0.875rem; font-weight: 700; color: var(--color-forest); }
.reviewer-info span   { font-size: 0.7rem; color: var(--color-gray-400); }
.stars i { color: var(--color-gold); font-size: 0.7rem; }

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-left: 0.25rem;
}

.carousel-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-forest);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.72rem;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--color-forest);
    border-color: var(--color-forest);
    color: var(--color-white);
}

.testimonial-dots {
    display: flex; gap: 0.35rem; align-items: center;
}

.testimonial-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-gray-200);
    cursor: pointer;
    transition: all var(--duration-mid);
    display: block;
}

.testimonial-dots span.active {
    background: var(--color-gold);
    width: 20px;
    border-radius: 4px;
}

/* ---- Foto galeri kanan: 1 besar + 2 kecil ---- */
.testimonial-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 155px 155px;
    gap: 0.5rem;
}

.tphoto {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #2c4a1e, #1a3a0a);
}

.tphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-mid) var(--ease-out);
}

.tphoto:hover img { transform: scale(1.04); }

/* Foto besar — span 2 baris di kolom kiri */
.tphoto-main {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
}

/* 2 foto kecil — kolom kanan */
.tphoto-sm {
    grid-column: 2;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .highlights-grid { grid-template-columns: repeat(3, 1fr); }
    .info-section .container { padding-left: 3rem; padding-right: 3rem; }
}

@media (max-width: 900px) {
    .trips-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .testimonial-layout { grid-template-columns: 1fr; }
    .info-section .container { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 768px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
    .highlight-card { aspect-ratio: 4/3; }
}

@media (max-width: 700px) {
    .trips-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .packing-grid { grid-template-columns: repeat(3, 1fr); }
}