/* ============================================
   RESET & DASAR
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #FBF8F6;
    color: #241F26;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --text-dark: #241F26;
    --text-muted: #6B6072;
    --rose-main: #C9707F;
    --rose-dark: #A8536A;
    --rose-soft: #F4E3E1;
    --gold: #B8912E;
    --gold-soft: #F6EDD3;
    --mauve: #8C6E97;
    --mauve-soft: #ECE4EF;
    --border-light: #ECE1DE;
    --white-card: #FFFFFF;
    --bg-page: #FBF8F6;
    --bg-blush: #FBF1EF;
    --bg-cream: #FAF5EE;
    --bg-dark: #1E1A22;
    --bg-dark-alt: #262029;

    /* Palet aksen — satu warna berbeda untuk tiap kartu Layanan & Galeri */
    --accent-1: #C9707F; /* rose */
    --accent-2: #C08A4E; /* amber */
    --accent-3: #6E8C7C; /* sage */
    --accent-4: #8C6E97; /* plum */
    --accent-5: #A8455A; /* wine */
    --accent-6: #B8912E; /* gold */
}

h1, h2, h3, h4, h5 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose-main);
    background: var(--rose-soft);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: inline-block;
}
.section-tag.gold {
    color: var(--gold);
    background: var(--gold-soft);
}
.section-tag.mauve {
    color: var(--mauve);
    background: var(--mauve-soft);
}

.section-header {
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}
.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.highlight {
    background: linear-gradient(135deg, #C9707F, #A8536A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose-main), var(--rose-dark));
    border-color: var(--rose-main);
    color: #ffffff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(201, 112, 127, 0.32);
}

.btn-outline {
    border-color: var(--border-light);
    color: var(--text-dark);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--rose-main);
    color: var(--rose-main);
}

/* ============================================
   NAVBAR — gaya rotikita-web: sticky, blur,
   underline animasi, tombol bahasa pill
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}
.logo i {
    color: var(--rose-main);
    font-size: 1.35rem;
}
.logo em {
    font-style: normal;
    color: var(--rose-main);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 4px 0;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose-main), var(--gold));
    transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover,
.nav-link.active {
    color: var(--rose-main);
}

.nav-link.lang {
    background: none;
    border: 1.5px solid var(--rose-main);
    color: var(--rose-main);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.nav-link.lang::after {
    display: none;
}
.nav-link.lang:hover {
    background: var(--rose-main);
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ============================================
   NAVBAR — DROPDOWN (Aktivitas & Artikel)
   Hover di desktop, tap/toggle di mobile
   ============================================ */

/* Wrapper li yang punya submenu */
.nav-menu .has-dropdown {
    position: relative;
}

/* Panah chevron kecil di sebelah label menu */
.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

/* Putar panah saat dropdown terbuka */
.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Panel dropdown */
.nav-menu .dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(38, 35, 41, 0.12);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1100;
}

/* Segitiga kecil (caret) di atas panel dropdown */
.nav-menu .dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent var(--border-light) transparent;
}
.nav-menu .dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

/* Tampilkan dropdown saat hover (desktop) atau class .open (mobile JS) */
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Item dalam dropdown */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.dropdown-link i {
    width: 16px;
    color: var(--rose-main);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.dropdown-link:hover {
    background: var(--rose-soft);
    color: var(--rose-main);
}
.dropdown-link:hover i {
    color: var(--rose-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 90px;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(30, 20, 24, 0.45) 0%, rgba(30, 20, 24, 0.72) 100%),
        url('../img/gallery-gel-polish.jpg') center / cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-inner h1 {
    color: #ffffff;
    font-size: 3.4rem;
    margin-bottom: 1.25rem;
}
.hero-inner .highlight {
    background: linear-gradient(135deg, #F3B4C0, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-inner p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
.hero .btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-trust {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.trust-chip i {
    color: var(--gold);
    font-size: 0.8rem;
}
.trust-chip:last-child i {
    color: #F3B4C0;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.hero-scroll i {
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   STATS / TRUST BAR
   ============================================ */
.stats {
    background: var(--bg-dark);
    padding: 44px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
}
.stats-grid .stat-item:nth-child(1) .stat-number { color: var(--rose-main); }
.stats-grid .stat-item:nth-child(2) .stat-number { color: #D99AA8; }
.stats-grid .stat-item:nth-child(3) .stat-number { color: var(--gold); }
.stats-grid .stat-item:nth-child(4) .stat-number { color: #A98CC9; }
.stat-label {
    font-size: 0.85rem;
    color: #B9B2BE;
    letter-spacing: 0.3px;
}

/* ============================================
   CARD GRID — dipakai oleh Galeri;
   tiap section punya warna latar sendiri
   ============================================ */
.gallery {
    background: var(--bg-blush);
    padding: 90px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    --card-accent: var(--rose-main);
    background: var(--white-card);
    border: 1px solid var(--border-light);
    border-top: 3px solid transparent;
    border-radius: 50px 15px 50px 15px;
    overflow: hidden;
    transition: border-radius 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}
.info-card:hover {
    border-radius: 15px 50px 15px 50px;
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(38, 35, 41, 0.1);
    border-top-color: var(--card-accent);
}

/* Setiap kartu (urutan 1–6) dapat warna aksen berbeda, berlaku
   otomatis untuk grid Layanan maupun grid Galeri */
.card-grid .info-card:nth-child(1) { --card-accent: var(--accent-1); }
.card-grid .info-card:nth-child(2) { --card-accent: var(--accent-2); }
.card-grid .info-card:nth-child(3) { --card-accent: var(--accent-3); }
.card-grid .info-card:nth-child(4) { --card-accent: var(--accent-4); }
.card-grid .info-card:nth-child(5) { --card-accent: var(--accent-5); }
.card-grid .info-card:nth-child(6) { --card-accent: var(--accent-6); }

.info-card-img {
    position: relative;
    width: 100%;
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: color-mix(in srgb, var(--card-accent) 16%, white);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    transition: clip-path 0.4s ease;
}
.info-card:hover .info-card-img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}
.info-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 16, 22, 0.28), transparent 55%);
}

.info-card-icon {
    position: absolute;
    left: 1.25rem;
    bottom: -20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--card-accent);
    font-size: 1.1rem;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(38, 35, 41, 0.14);
    z-index: 1;
}

.info-card-tag {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--card-accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    z-index: 1;
}

.info-card-body {
    padding: 2rem 1.5rem 1.75rem;
}
.info-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.info-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 1.1rem;
    color: var(--card-accent, var(--rose-main));
    font-weight: 600;
    font-size: 0.9rem;
}
.card-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.card-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-cream);
    padding: 90px 0;
}

.contact-header {
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
    text-align: center;
}
.contact-header h2 {
    font-size: 2.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item i {
    color: var(--rose-main);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    width: 24px;
    text-align: center;
}
.contact-item p {
    color: var(--text-muted);
}
.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rose-main);
    color: #fff;
    font-size: 1.1rem;
    transition: 0.2s ease;
}
.contact-social a:hover {
    background: var(--rose-dark);
    transform: scale(1.05);
}

.contact-map {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #fff;
}
.map-placeholder {
    width: 100%;
    height: 300px;
}
.map-rating {
    padding: 1rem 1.5rem;
    background: var(--white-card);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.map-rating span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}
.map-rating span:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark-alt);
    color: #C9C3CB;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #38313F;
}

.footer-brand .logo {
    color: #ffffff;
    font-size: 1.5rem;
}
.footer-brand .logo em {
    color: var(--gold);
}
.footer-brand p {
    margin-top: 0.8rem;
    opacity: 0.75;
}
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #C9C3CB;
    transition: 0.2s ease;
}
.footer-social a:hover {
    background: var(--rose-main);
    color: #fff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-links h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}
.footer-links a {
    display: block;
    color: #A29CA6;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-links a i {
    margin-right: 0.5rem;
    width: 18px;
}

.footer-bottom {
    background: #17141A;
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.88rem;
    color: #837D89;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero {
        min-height: 560px;
        padding: 110px 0 70px;
    }
    .hero-inner h1 {
        font-size: 2.8rem;
    }
    .hero-actions,
    .hero-trust {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        height: calc(100vh - 68px);
        overflow-y: auto;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    .nav-menu.active {
        transform: translateY(0);
    }

    /* ── Dropdown: tampilan mobile (expand inline, bukan absolute) ── */
    .nav-menu .has-dropdown {
        width: 100%;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .nav-menu .has-dropdown > .nav-link {
        /* Di mobile, klik/tap pada link utama trigger JS .open */
        pointer-events: auto;
    }
    /* Override posisi absolute → static agar tidak melayang di atas konten */
    .nav-menu .dropdown {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--rose-soft);
        width: 100%;
        padding: 0;
    }
    /* Saat class .open ditambahkan via JS */
    .has-dropdown.open > .dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 300px;
        padding: 6px 0;
        transform: none;
    }
    /* Sembunyikan caret pseudo-element di mobile */
    .nav-menu .dropdown::before,
    .nav-menu .dropdown::after {
        display: none;
    }
    /* Item dropdown di mobile: tengah, font sedikit lebih kecil */
    .dropdown-link {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-inner h1 {
        font-size: 2.4rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    .hero-inner h1 {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
    .btn {
        text-align: center;
    }
}