/* ==========================================================================
   Cambridge Hotel Medan — theme refresh
   Dimuat SETELAH style-starter.css. Mengganti warna merah template dengan
   emas sesuai logo, tipografi serif elegan, dan detail visual yang lebih halus.
   ========================================================================== */

:root {
    --primary-color: #8c6a3b;          /* emas gelap: kontras AA dengan teks putih */
    --primary-dark: #6f5230;
    --gold-soft: #c9a46a;
    --gold-tint: #f4ede2;
    --font-color: #5b5650;
    --bg-color: #ffffff;
    --heading-color: #1d1a16;
    --bg-grey: #f3efe8;
    --bg-lightgrey: #faf7f2;
    --border-color-light: #ece6dc;
    --box-shadow: 0 18px 40px -18px rgba(60, 45, 20, .22);
    --layer: rgb(0 0 0 / 30%);
    --layer-2: rgb(0 0 0 / 45%);
    --footer-bg: #15120e;
    --footer-bglight: #1d1914;
    --btn-text: #ffffff;
    --border-radius: 14px;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
    --primary-color: #c9a46a;
    --primary-dark: #dcbb86;
    --gold-tint: #2a241b;
    --font-color: #b9b2a6;
    --bg-color: #121110;
    --heading-color: #f3efe8;
    --bg-grey: #0d0c0b;
    --bg-lightgrey: #191714;
    --border-color-light: rgba(255, 255, 255, .1);
    --box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --footer-bg: #0b0a09;
    --footer-bglight: #151310;
    --btn-text: #1a140b;
}

body {
    color: var(--font-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-soft); color: #1a140b; }

/* ---------- Tipografi ---------- */
h3.title-style,
.slide .content h3,
h4.inner-text-title,
.w3l-homeblock3 a.blog-desc,
.facility-card h4,
.w3l-index4 .clients-slider .source {
    font-family: var(--font-serif);
    letter-spacing: -.01em;
}

h3.title-style { font-weight: 600; font-size: 42px; line-height: 1.2; }
@media (max-width: 991px) { h3.title-style { font-size: 36px; } }
@media (max-width: 568px) { h3.title-style { font-size: 30px; } }

h5.small-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--primary-color);
}
h5.small-title::before,
.text-center h5.small-title::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.section-intro { max-width: 640px; margin: 14px auto 0; font-size: 16px; line-height: 1.8; }

/* ---------- Tombol ---------- */
.btn-style {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--btn-text);
    border-radius: 999px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    padding: 13px 30px;
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-style:hover,
.btn-style:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--btn-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(140, 106, 59, .8);
}
.btn-style:focus-visible,
a:focus-visible,
button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* ---------- Header ---------- */
header#site-header {
    border-bottom: 1px solid var(--border-color-light);
}
header.nav-fixed { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .18); }
.navbar .navbar-brand .brand-text {
    /* Logo sudah memuat nama hotel → teks disembunyikan secara visual (tetap terbaca mesin pencari) */
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.navbar-expand-lg .navbar-nav .nav-link {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--heading-color);
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-item { margin: 0 4px; }
    .navbar-expand-lg .navbar-nav .nav-link { padding: 8px 14px !important; }
    .navbar-expand-lg .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 14px; right: 14px; bottom: 2px;
        height: 1px;
        background: var(--primary-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
    }
    .navbar-expand-lg .navbar-nav .nav-link:hover::after,
    .navbar-expand-lg .navbar-nav .nav-link.active::after { transform: scaleX(1); }
}
.navbar-expand-lg .navbar-nav .nav-link.active,
.navbar-expand-lg .navbar-nav .nav-link:hover,
.nav-fixed .navbar-expand-lg .navbar-nav .nav-link.active,
.nav-fixed .navbar-expand-lg .navbar-nav .nav-link:hover { color: var(--primary-color) !important; }
/* Logo PNG transparan berteks gelap → dibuat putih di mode gelap agar tetap terbaca */
[data-theme="dark"] .navbar .navbar-brand img { filter: brightness(0) invert(1); opacity: .92; }
.navbar-toggler { background: var(--primary-color) !important; border-radius: 10px !important; }

/* ---------- Hero slider ---------- */
.slide .bg-layer {
    background: linear-gradient(90deg, rgba(12, 9, 5, .78) 0%, rgba(12, 9, 5, .45) 45%, rgba(12, 9, 5, .05) 80%);
}
.slide .content {
    background: transparent;
    padding: 0 0 0 4px;
    max-width: 640px;
}
.slide .content h6 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.slide .content h6::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.slide .content h3 {
    color: #fff;
    text-transform: none;
    font-weight: 600;
    font-size: 58px;
    line-height: 1.12;
    margin-bottom: 8px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.slide .content .btn-style { margin-top: 28px !important; }
.slide .content .btn-style:hover { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
@media (max-width: 991px) { .slide .content h3 { font-size: 44px; } }
@media (max-width: 568px) {
    .slide .content h3 { font-size: 32px; line-height: 1.2; }
    .slide .bg-layer { background: linear-gradient(0deg, rgba(12, 9, 5, .85) 0%, rgba(12, 9, 5, .35) 60%, rgba(12, 9, 5, .1) 100%); }
}
.buttons button {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
    transition: background .3s, color .3s, border-color .3s;
}
.buttons button:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #1a140b; }

/* ---------- Kartu kamar ---------- */
.w3l-homeblock3 { background: var(--bg-lightgrey); }
.w3l-homeblock3 .top-pic1,
.w3l-homeblock3 .top-pic2,
.w3l-homeblock3 .top-pic3 {
    min-height: 440px;
    padding: 28px;
    background-size: cover !important;
    background-position: center !important;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.w3l-homeblock3 .top-pic1::before,
.w3l-homeblock3 .top-pic2::before,
.w3l-homeblock3 .top-pic3::before {
    background: linear-gradient(180deg, rgba(10, 8, 5, 0) 35%, rgba(10, 8, 5, .82) 100%);
    transition: opacity .4s var(--ease);
}
.w3l-homeblock3 .top-pic1:hover,
.w3l-homeblock3 .top-pic2:hover,
.w3l-homeblock3 .top-pic3:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -20px rgba(40, 30, 10, .45); }
.w3l-homeblock3 .card-body { padding: 0; }
.w3l-homeblock3 span.meta-value {
    display: inline-block;
    background: var(--gold-soft);
    color: #1a140b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.w3l-homeblock3 a.blog-desc { font-size: 26px; font-weight: 600; line-height: 1.25; }
.w3l-homeblock3 a.blog-desc:hover { color: var(--gold-soft); }
.w3l-homeblock3 .btn-style-primary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .7) !important;
    color: #fff !important;
    padding: 10px 22px;
}
.w3l-homeblock3 .btn-style-primary:hover { background: var(--gold-soft) !important; border-color: var(--gold-soft) !important; color: #1a140b !important; box-shadow: none; }

/* ---------- Fasilitas ---------- */
.w3l-facilities { background: var(--bg-color); }
.facility-card {
    height: 100%;
    padding: 34px 28px;
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--box-shadow); border-color: transparent; }
.facility-icon {
    width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-tint);
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 22px;
    transition: background .35s var(--ease), color .35s var(--ease);
}
.facility-card:hover .facility-icon { background: var(--primary-color); color: var(--btn-text); }
.facility-card h4 { font-size: 21px; font-weight: 600; color: var(--heading-color); margin-bottom: 10px; }
.facility-card p { font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- Testimoni ---------- */
.w3l-index4::before { background: linear-gradient(180deg, rgba(14, 11, 7, .78), rgba(14, 11, 7, .88)); }
.w3l-index4 .clients-slider li img {
    width: 92px; height: 92px; object-fit: cover;
    border: 3px solid var(--gold-soft);
    padding: 3px;
    background: transparent;
}
.w3l-index4 .clients-slider .quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.7;
    margin-top: 1rem;
}
.w3l-index4 .clients-slider .quote q { quotes: "\201C" "\201D"; font-family: inherit; }
.w3l-index4 .clients-slider .quote q::before { color: var(--gold-soft); font-size: 1.6em; line-height: 0; vertical-align: -.25em; margin-right: 4px; }
.w3l-index4 .clients-slider .quote q::after { color: var(--gold-soft); }
.w3l-index4 .clients-slider .source { font-size: 20px; font-weight: 600; color: var(--gold-soft); }
/* Tinggi otomatis mengikuti testimoni terpanjang (tidak terpotong) */
.w3l-index4 .mask { height: auto; overflow: hidden; }
.w3l-index4 .clients-slider ul { display: grid; }
.w3l-index4 .clients-slider li { grid-area: 1 / 1; position: relative; top: 0 !important; height: auto; }
@media (max-width: 568px) { .w3l-index4 .clients-slider .quote { font-size: 17px; } }

/* ---------- Galeri ---------- */
.w3l-blog-block-5 { background: var(--bg-lightgrey); }
.w3l-blog-block-5 .row > div { margin-bottom: 24px; }
.w3l-blog-block-5 .grids5-info a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4 / 3;
    background: var(--bg-grey);
}
.w3l-blog-block-5 .grids5-info img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 0;
    transition: transform .8s var(--ease);
}
.w3l-blog-block-5 .grids5-info a::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 26px; color: #fff;
    background: rgba(20, 15, 8, .45);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.w3l-blog-block-5 .grids5-info a:hover img { transform: scale(1.07); }
.w3l-blog-block-5 .grids5-info a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 8, 5, .93);
    padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
    position: absolute;
    width: 48px; height: 48px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff; font-size: 18px; cursor: pointer;
    transition: background .3s, color .3s;
}
.lightbox button:hover { background: var(--gold-soft); color: #1a140b; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .12em; }
@media (max-width: 568px) { .lightbox { padding: 70px 10px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; } }
body.lb-open { overflow: hidden; }

/* ---------- Banner halaman dalam (About / Contact) ---------- */
.inner-banner { background-position: center !important; }
.inner-banner::before { background: linear-gradient(90deg, rgba(12, 9, 5, .82), rgba(12, 9, 5, .35)); }
h4.inner-text-title { font-size: 52px; font-weight: 600; color: #fff; }
.breadcrumbs-custom-path li, .breadcrumbs-custom-path li a { letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.breadcrumbs-custom-path li a:hover { color: var(--gold-soft); }
@media (max-width: 568px) { h4.inner-text-title { font-size: 36px; } }

/* ---------- About ---------- */
.w3l-about-2 p { font-size: 16px; line-height: 1.9; }
.w3l-about-2 .about-2-secs-right { position: relative; }
.w3l-about-2 .about-2-secs-right img { position: relative; z-index: 1; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
@media (min-width: 992px) {
    .w3l-about-2 .about-2-secs-right::before {
        content: "";
        position: absolute;
        top: -18px; right: -6px; bottom: 18px; left: 30px;
        border: 1px solid var(--gold-soft);
        border-radius: var(--border-radius);
    }
}

/* ---------- Contact ---------- */
.contact-address {
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    box-shadow: none;
    transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.contact-address:hover { box-shadow: var(--box-shadow); transform: translateY(-3px); }
.contact-icon i {
    width: 54px; height: 54px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold-tint);
    color: var(--primary-color) !important;
    font-size: 20px !important;
}
.contact-icon a:hover { color: var(--primary-color); }
.w3layouts-contact-fm .form-control {
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    background: var(--bg-lightgrey);
    padding: 14px 18px;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.w3layouts-contact-fm .form-control:focus {
    border-color: var(--gold-soft);
    background: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(201, 164, 106, .18);
}
.form-status { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.form-status.ok { background: #eef8f1; border-color: #bfe3cc; color: #1f6b3d; }
.form-status.err { background: #fdf0ee; border-color: #f2c7c0; color: #8f2c1f; }
.map-contact iframe { filter: var(--iframe-filter) sepia(.15); }

/* ---------- Footer ---------- */
.w3l-footer { background: var(--footer-bg); border-top: 3px solid var(--primary-color); }
.w3l-footer .sub-one-left h6,
.w3l-footer .sub-two-right h6 { font-family: var(--font-serif); letter-spacing: .04em; text-transform: none; font-size: 22px; }
.w3l-footer .sub-one-left h6::after,
.w3l-footer .sub-two-right h6::after { background: var(--gold-soft) !important; }
.w3l-footer ul.social li a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    transition: background .3s, border-color .3s, color .3s;
}
.w3l-footer ul.social li a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #1a140b !important; }
.w3l-footer .column2 span { color: var(--gold-soft) !important; flex-shrink: 0; margin: 3px 0 0; }
.w3l-footer .column2 > div,
.w3l-footer .column2 p.contact-para { display: flex; gap: 12px; align-items: flex-start; }
.w3l-footer .column2 a, .w3l-footer .column2 p { font-size: 15px; min-width: 0; }
.w3l-footer .column2 a:hover,
.w3l-footer .sub-two-right ul li a:hover { color: var(--gold-soft) !important; }
.copyright-footer { border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Tombol kembali ke atas ---------- */
#movetop { background: var(--primary-color); color: var(--btn-text); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
#movetop:hover { background: var(--primary-dark); }

/* ---------- Animasi muncul saat scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .slide.current .content { transition: none; }
}
