/* ==========================================================
   EXPERIENCE - BAGIAN 1/9: SECTION & KARTU
   Dipecah dari css/experience.css. Urutan load = urutan angka (kaskade)
   ========================================================== */

/* =========================================================
   TANÉA GUESTHOUSE — EXPERIENCE
   CLEAN CONSOLIDATED STYLESHEET
   ========================================================= */

/* =========================
   1. EXPERIENCE SECTION
   ========================= */
.experience {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 155px 6% 90px;
    background: transparent;
    color: #80664E;
}

.experience-container {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Decorative botanical ornament behind the section header */
.experience-container::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -165px;
    z-index: 0;
    width: 380px;
    height: 350px;
    background: url("../../../assets/ornaments/ornament-11.png") center / contain no-repeat;
    opacity: 0.32;
    pointer-events: none;
}

.experience-header {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 42px;
    text-align: center;
}

.experience-eyebrow {
    display: none;
}

.experience-header h2 {
    width: 100%;
    margin: 0;

    color: #80664e;
    font-family: "Quicksand", sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    font-style: normal;

    line-height: 1.12;
    letter-spacing: 0.30em;
    text-align: center;
    text-transform: none;
    white-space: normal;

    opacity: 0.60;
}

.experience-header > p {
    width: 100%;
    max-width: 860px;
    margin: 20px auto 0;
    color: #303426;
    font-family: var(--font-sans, "DM Sans", sans-serif);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.85;
    letter-spacing: normal;
    text-align: center;
    opacity: 1;
}

/* =========================
   2. EXPERIENCE CARDS
   ========================= */
.experience-items {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 2.2vw, 30px);
}

.experience-item {
    position: relative;
    display: block;
    min-width: 0;
    align-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.experience-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 0.82;
    overflow: hidden;
    border-radius: 10px;
    background: #d8d1bd;
}

.experience-item-image img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.experience-item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(20, 25, 18, 0.78) 0%,
        rgba(20, 25, 18, 0.32) 38%,
        rgba(20, 25, 18, 0.02) 75%
    );
    opacity: 0.32;
    pointer-events: none;
    transition: opacity 400ms ease, background 400ms ease;
}

.experience-item:hover .experience-item-image img {
    transform: scale(1.045);
}

.experience-item:hover .experience-item-image::after,
.experience-item:focus-visible .experience-item-image::after {
    background: linear-gradient(
        to top,
        rgba(20, 25, 18, 0.92) 0%,
        rgba(20, 25, 18, 0.52) 48%,
        rgba(20, 25, 18, 0.12) 100%
    );
    opacity: 1;
}

.experience-card-number,
.experience-item-number,
.experience-index {
    display: none !important;
}

.experience-card-arrow {
    display: none !important;
}

.experience-item-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.experience-item-content h3,
.experience-item-title {
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
    transform: translateY(12px);
    transition: transform 350ms ease;
}

.experience-item-content p {
    display: none;
}

.experience-item:hover .experience-item-content h3,
.experience-item:focus-visible .experience-item-content h3 {
    transform: translateY(0);
}

.experience-card-link {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 0;
    color: #f1e9d2;
    font-family: var(--font-sans, "DM Sans", sans-serif);
    font-size: 0;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: none;
    opacity: 0;
    transform: translateY(8px);
    animation: experienceViewMoreFade 700ms ease 300ms forwards;
    pointer-events: none;
}

.experience-card-link::after {
    content: "VIEW MORE";
    font-size: 11px;
}

.experience-card-link span {
    display: none !important;
}

.experience-item:hover .experience-card-link,
.experience-item:focus-visible .experience-card-link {
    color: #fff;
}

@keyframes experienceViewMoreFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.experience-item:focus-visible,
.experience-detail-close:focus-visible,
.experience-detail-contact:focus-visible {
    outline: 2px solid #77764f;
    outline-offset: 5px;
}

