/* =========================================================================
   Cleantoren — Brand override untuk landing (mengikuti warna & font BACKEND)
   Warna brand: #ff6c2f  |  Font: Inter (teks) + Plus Jakarta Sans (judul)
   File ini WAJIB dimuat paling akhir agar menimpa variable/custom_landing.
   ========================================================================= */
:root {
    /* Palet BIRU mengikuti logo Cleantoren (royal + azure + sky) */
    --brand: #1b5fd9;         /* royal blue (Clean) */
    --brand-deep: #1546b3;
    --brand-azure: #2aa0ee;   /* azure (toren) */
    --brand-sky: #8ed4f7;
    --brand-tint: #d8e6fd;
    --brand-soft: #eef4ff;
    --ink: #14213d;
    --ink-soft: #5b6b86;

    /* Petakan palet kliknclean -> brand Cleantoren (biru) */
    --main-primary: #14213d;
    --main-orange: #1b5fd9;

    --primary-100: #eef4ff;
    --primary-200: #d8e6fd;
    --primary-300: #b8d2fb;
    --primary-700: #1546b3;   /* aksen: nav aktif, hover, link */
    --primary-800: #123a94;
    --primary-900: #0f2f77;

    --semantic-warning-100: #eef4ff;
    --semantic-warning-200: #d8e6fd;
    --semantic-warning-600: #1b5fd9;
    --semantic-warning-700: #1546b3;
}

/* ---------- Font: samakan dengan backend ---------- */
*,
.custom_landing,
.nav-link,
.nav-drawer-menu,
.service-submenu {
    font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}

.landing-title,
h1, h2, h3, h4,
.hero-title,
.tutorial-section-title,
.download-subtitle,
.coverage-item-title,
.footer-item-title,
.btn-main,
.btn {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
    letter-spacing: -.01em;
}

body { color: var(--ink); }

/* ---------- Navbar ---------- */
.landing-navbar-menu.active,
.landing-navbar-menu:hover,
.nav-link:hover,
.nav-link.active,
.service-menu-dropdown .landing-navbar-menu.active { color: var(--brand-deep) !important; }

.landing-navbar-logo img { width: auto; height: 40px; }

/* Tombol di navbar (Login + Pesan) */
.landing-navbar-button { display: flex; align-items: center; gap: 10px; }

.nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 10px 20px; border-radius: 999px;
    font-weight: 700; font-size: 14.5px; text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif; transition: .15s; white-space: nowrap;
}
.nav-btn-primary { background: var(--brand); color: #fff !important; border: 1.5px solid var(--brand); }
.nav-btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff !important; text-decoration: none; }
.nav-btn-line { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line, #e7eaee); }
.nav-btn-line:hover { border-color: var(--brand); color: var(--brand-deep) !important; text-decoration: none; }

/* ---------- Tombol CTA (btn-dark diganti brand) ---------- */
.hero-section .btn-dark,
.download-section .btn-dark,
.btn-main.btn-dark,
a.btn-dark.btn-main {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}
.hero-section .btn-dark:hover,
.download-section .btn-dark:hover,
.btn-main.btn-dark:hover { background: var(--brand-deep) !important; border-color: var(--brand-deep) !important; }

.btn-outline-dark { border-color: var(--brand); color: var(--brand-deep); }
.btn-outline-dark:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Hero: overlay gradient brand di atas foto ---------- */
.hero-section {
    background-image:
        linear-gradient(105deg, rgba(15,29,63,.88) 0%, rgba(27,95,217,.72) 52%, rgba(42,160,238,.35) 100%),
        url('../img/services/toren/hero-toren.png') !important;
    background-position: center !important;
    background-size: cover !important;
}
@media (max-width: 767px) {
    .hero-section {
        background-image:
            linear-gradient(180deg, rgba(15,29,63,.9) 0%, rgba(27,95,217,.72) 100%),
            url('../img/services/toren/hero-toren.png') !important;
    }
}

/* ---------- Area / coverage aksen ---------- */
.coverage-service-item-icon { background: var(--brand-soft); }
.area-subtitle strong { color: var(--brand-deep); }

/* ---------- Tutorial ---------- */
.tutorial-number.selected,
.tutorial-explanation-title.selected { color: var(--brand-deep) !important; }
.tutorial-number.selected { background-color: var(--brand) !important; color: #fff !important; }
.stepper-btn.next-btn { background: var(--brand); color: #fff; }
.stepper-btn.next-btn:hover { background: var(--brand-deep); }

/* ---------- Download banner brand ---------- */
.download-section {
    background-image: linear-gradient(115deg, var(--brand) 0%, var(--brand-deep) 100%) !important;
}
.download-subtitle { color: #fff; }
.download-section .btn-dark { background: #fff !important; color: var(--brand-deep) !important; border-color:#fff !important; }
.download-section .btn-dark:hover { background: #ffece2 !important; color: var(--brand-deep) !important; }

/* ---------- FAQ ---------- */
.faq-question { color: var(--ink) !important; text-decoration: none !important; }
.faq-accordion-card { border-radius: 14px !important; }

/* ---------- Section "Tentang Kami" (baru) ---------- */
.about-section { padding: 72px 24px; background: var(--brand-soft); }
.about-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(34,40,46,.4); }
.about-eyebrow { color: var(--brand-deep); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.about-body { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-top: 14px; }
.about-points { list-style: none; padding: 0; margin: 22px 0 0; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.about-points li i { color: var(--brand); margin-top: 3px; }
@media (max-width: 860px){ .about-wrap { grid-template-columns: 1fr; gap: 28px; } .about-section{ padding: 48px 20px; } }

/* ---------- Section "Harga" (baru) ---------- */
.price-section { padding: 72px 24px; }
.price-wrap { max-width: 1080px; margin: 0 auto; }
.price-head { text-align: center; margin-bottom: 40px; }
.price-head p { color: var(--ink-soft); max-width: 620px; margin: 12px auto 0; font-size: 16px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.price-card { border: 1.5px solid var(--line, #e7eaee); border-radius: 18px; padding: 26px 22px; text-align: center; transition: .2s; background:#fff; }
.price-card:hover { border-color: var(--brand); box-shadow: 0 18px 40px -22px rgba(27,95,217,.45); transform: translateY(-4px); }
.price-card .cap { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 18px; color: var(--ink); }
.price-card .lit { color: var(--ink-soft); font-size: 13px; margin: 4px 0 16px; }
.price-card .amt { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 26px; color: var(--brand-deep); }
.price-card .per { color: var(--ink-soft); font-size: 12.5px; }
.price-card .pick { display:inline-flex; margin-top: 18px; padding: 10px 22px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; text-decoration: none; font-size: 14px; }
.price-card .pick:hover { background: var(--brand); color: #fff; }
@media (max-width: 860px){ .price-section{ padding: 48px 20px; } }

/* ---------- CTA Banner (gaya banner biru, tombol putih) ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 300px;
    display: flex;
    align-items: center;
}
.cta-band-inner {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; width: 100%;
    padding: 40px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-band-text { max-width: 620px; }
.cta-band-text h2 {
    color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800;
    font-size: 34px; line-height: 1.25; margin-bottom: 26px; letter-spacing: -.01em;
}
.cta-band-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #14707f !important; font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px;
    padding: 14px 30px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); transition: .15s;
}
.cta-band-btn:hover { transform: translateY(-2px); color: #0f5b66 !important; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.cta-band-image { flex: none; align-self: flex-end; }
.cta-band-image img { max-height: 300px; width: auto; display: block; }
/* ornamen lingkaran dekoratif */
.cta-ornament { position: absolute; border-radius: 50%; z-index: 1; }
.cta-ornament-1 { width: 180px; height: 180px; background: rgba(255,255,255,.14); top: -70px; left: -40px; }
.cta-ornament-2 { width: 320px; height: 320px; right: -80px; top: -40px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 8px, transparent 8px 16px);
    -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%); }
@media (max-width: 860px) {
    .cta-band-inner { flex-direction: column; text-align: center; padding: 36px 22px; }
    .cta-band-text h2 { font-size: 24px; }
    .cta-band-image img { max-height: 200px; }
}

/* ---------- Footer: grid Bootstrap melebar penuh & terpusat ---------- */
.footer-section .footer-content {
    display: block !important;      /* batalkan flex-row kliknclean agar .row grid normal */
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
.footer-section .footer-row { width: 100%; }
.footer-menu-list a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-menu-list a:hover { color: #fff; }

/* Cegah overflow horizontal global (safety net) */
html, body { overflow-x: hidden; max-width: 100%; }
.coverage-bg-ornament { max-width: 100%; }
/* Pros: bungkus item agar tidak meluber */
.pros-selling-point, .pros-selling-point-sm { flex-wrap: wrap; }

/* ---------- RESPONSIVE MOBILE (<= 767px) ---------- */
@media (max-width: 767px) {
    /* Navbar tetap putih + tombol pindah ke drawer (sudah diatur landing-navbar.css) */
    .landing-navbar-logo img { height: 34px; }
    /* Tombol Login/Pesan di navbar disembunyikan (ada di drawer) — .nav-btn tadi menimpanya */
    .nav-btn.landing-download-button { display: none !important; }
    /* Ornamen dekoratif coverage disembunyikan di mobile */
    .coverage-bg-ornament { display: none !important; }
    /* Pros: 2 kolom rapi & center */
    .pros-selling-point, .pros-selling-point-sm { justify-content: center; gap: 20px 12px; }
    .pros-selling-item { width: 45%; }

    /* Hero: tinggi menyesuaikan konten, teks rata kiri */
    .hero-section { height: auto !important; min-height: 88vh; padding: 100px 20px 56px !important; }
    .hero-content-title { width: 100% !important; height: auto !important; }
    .hero-title { font-size: 30px !important; line-height: 1.2 !important; }
    .hero-subtitle { font-size: 15px !important; }

    /* Area & judul-judul */
    .area-section, .coverage-section, .pros-section, .tutorial-section, .faq-section { padding-left: 20px !important; padding-right: 20px !important; }
    .coverage-title-section { text-align: left; }

    /* About */
    .about-wrap { grid-template-columns: 1fr !important; gap: 24px; }
    .about-section { padding: 44px 20px !important; }

    /* Harga */
    .price-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .price-card { padding: 18px 12px; }
    .price-card .amt { font-size: 21px; }

    /* CTA banner */
    .cta-band-inner { flex-direction: column; text-align: center; padding: 34px 20px; }
    .cta-band-text h2 { font-size: 22px; }

    /* Footer: rapikan jarak antar kolom saat menumpuk */
    .footer-section { padding: 44px 20px !important; }
    .footer-row > div { margin-bottom: 26px; }
    .footer-row > div:last-child { margin-bottom: 0; }

    /* FAB WhatsApp sedikit lebih kecil */
    a[aria-label="WhatsApp"] { width: 50px !important; height: 50px !important; right: 16px !important; bottom: 16px !important; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 26px !important; }
    .price-grid { grid-template-columns: 1fr !important; }
    .cta-band-text h2 { font-size: 20px; }
}

/* ---------- Login Popup (OTP WhatsApp) ---------- */
.ct-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
    align-items: center; justify-content: center; padding: 20px;
}
.ct-modal-overlay.open { display: flex; }
.ct-modal {
    position: relative; background: #fff; width: 100%; max-width: 430px;
    border-radius: 22px; padding: 30px 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
    font-family: "Inter", sans-serif; animation: ctPop .25s ease;
}
@keyframes ctPop { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ct-modal-close { position: absolute; top: 16px; right: 18px; border: 0; background: none; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; }
.ct-modal-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 25px; color: var(--ink); margin: 4px 0 8px; }
.ct-modal-sub { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
.ct-label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.ct-phone { display: flex; align-items: center; border: 1.6px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.ct-phone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.ct-phone-cc { padding: 14px 14px; background: #f8fafc; font-weight: 700; color: var(--ink); border-right: 1.6px solid #e2e8f0; white-space: nowrap; }
.ct-phone input { flex: 1; border: 0; outline: none; padding: 14px 14px; font-size: 15.5px; font-family: inherit; }
.ct-otp-input { width: 100%; text-align: center; letter-spacing: 16px; font-size: 30px; font-weight: 800; padding: 14px; border: 1.6px solid #e2e8f0; border-radius: 14px; outline: none; font-family: "Plus Jakarta Sans", sans-serif; }
.ct-otp-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.ct-btn-primary {
    width: 100%; margin-top: 18px; border: 0; border-radius: 14px; padding: 15px;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 15.5px;
    font-family: "Plus Jakarta Sans", sans-serif; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: .15s;
}
.ct-btn-primary:hover { background: var(--brand-deep); }
.ct-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.ct-secure { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: 14px; padding: 14px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.ct-secure b { color: var(--ink); }
.ct-msg { font-size: 13px; margin-top: 8px; min-height: 18px; }
.ct-msg.err { color: #dc2626; } .ct-msg.ok { color: #16a34a; }
.ct-resend { display: flex; justify-content: space-between; margin-top: 16px; }
.ct-resend button { border: 0; background: none; color: var(--brand-deep); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ct-admin-link { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid #eef2f7; padding-top: 16px; }
.ct-admin-link a { color: var(--brand-deep); font-weight: 700; }
.ct-tabs { display: flex; gap: 8px; background: #f1f5f9; border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.ct-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 10px 8px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; transition: .15s; font-family: "Plus Jakarta Sans", sans-serif; }
.ct-tab.active { background: #fff; color: var(--brand-deep); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }
.ct-input { width: 100%; padding: 13px 14px; border: 1.6px solid #e2e8f0; border-radius: 13px; font-size: 15px; font-family: inherit; outline: none; }
.ct-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
/* Badge logo bulat + tombol Google + divider (gaya "Welcome back") */
.ct-brand-badge { width: 64px; height: 64px; margin: 2px auto 14px; border-radius: 18px; background: var(--brand-soft); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--brand-tint); }
.ct-brand-badge img { max-width: 42px; max-height: 42px; }
.ct-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border: 1.6px solid #e2e8f0; border-radius: 13px; background: #fff; color: var(--ink) !important; font-weight: 700; font-size: 14.5px; text-decoration: none; font-family: "Plus Jakarta Sans", sans-serif; transition: .15s; }
.ct-google-btn:hover { border-color: var(--brand); background: #fafcff; text-decoration: none; color: var(--ink) !important; }
.ct-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #94a3b8; font-size: 12.5px; }
.ct-or::before, .ct-or::after { content: ""; flex: 1; height: 1px; background: #e8edf3; }
@media (max-width: 480px){ .ct-modal { padding: 24px 20px; } .ct-modal-title { font-size: 22px; } }

/* ---------- Anchor offset agar tidak ketutup navbar fixed ---------- */
section[id], div[id].scroll-anchor { scroll-margin-top: 96px; }
