/* =====================================================================
   PT. Catur Prima Tehnik - Oil & Gas CMS
   Public Site Stylesheet
   ===================================================================== */

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #f26522;
    --secondary-dark: #d95316;
    --secondary-light: #ff8540;
    --light-bg: #f4f6f8;
}

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #2a2a2a;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.text-primary-color { color: var(--primary-color) !important; }
.bg-light-gray { background-color: var(--light-bg) !important; }

/* Orange gradient text effect (untuk logo-style headings) */
.text-orange-gradient {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Navbar ===== */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: padding 0.3s, box-shadow 0.3s, background 0.3s;
    border-bottom: 3px solid var(--secondary-color);
}
.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background-color: rgba(255,255,255,0.97);
}
.navbar-custom .navbar-brand {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}
.navbar-custom .navbar-brand span {
    color: var(--secondary-color);
}
.navbar-custom .navbar-brand img {
    display: inline-block;
    vertical-align: middle;
}
.navbar-custom .navbar-brand .brand-logo-text img {
    margin-right: 4px;
}
.navbar-custom .nav-link {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 8px;
    transition: color 0.3s;
    position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--secondary-color);
}
/* Orange underline animation on nav links */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 70%;
}
.navbar-custom .nav-link.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
}
.navbar-custom .dropdown-item {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
    transition: all 0.2s;
}
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background-color: var(--secondary-color);
    color: #fff;
}
.navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
    /* Bootstrap 5 default uses click; this enables hover on desktop */
    display: block;
}
@media (max-width: 991px) {
    /* On mobile, show dropdown inline (no hover) */
    .navbar-custom .nav-item.dropdown:hover > .dropdown-menu { display: none; }
    .navbar-custom .dropdown-menu {
        box-shadow: none;
        border: 1px solid #eee;
        margin-left: 16px;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
}
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slider-container .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    pointer-events: none;
}
.hero-slider-container .slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.hero-slider-container .slide-img-bg,
.hero-slider-container .slide-overlay {
    position: absolute;
    inset: 0;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 1.1rem;
}
.slider-arrow:hover { background: rgba(0,0,0,0.6); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Sound toggle (untuk YouTube slide) */
.slider-sound {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 0.95rem;
}
.slider-sound:hover { background: var(--secondary-color, #f26522); }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.slider-dot.active {
    background: var(--secondary-color, #f26522);
    border-color: var(--secondary-color, #f26522);
    width: 32px;
    border-radius: 6px;
}
@media (max-width: 767px) {
    .hero-slider { min-height: 500px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    .hero-slider-container .slide h1 { font-size: 2rem !important; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-badge {
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(242, 101, 34, 0.15);
    border-left: 3px solid var(--secondary-color);
    border-radius: 3px;
}

.btn-custom {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #fff;
    padding: 13px 32px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
.btn-custom:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(242, 101, 34, 0.6);
}

.btn-lg-custom {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    padding: 11px 30px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
.btn-lg-custom:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== Industries strip — gradient orange to black ===== */
.industries-strip {
    color: #fff;
    padding: 18px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
    border-bottom: 3px solid var(--secondary-color);
}
.industries-strip .fs-3 {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ===== Section ===== */
.section-padding { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ===== Cards — premium orange+black hover ===== */
.service-card, .product-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
    border-top: 1px solid #eee;
}
.service-card:hover, .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12), 0 0 0 1px var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}
.service-icon {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(242,101,34,0.1), rgba(242,101,34,0.05));
    border-radius: 50%;
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #fff;
    transform: scale(1.1);
}
.card-vision { border-top: 4px solid var(--primary-color) !important; }
.card-mission { border-top: 4px solid var(--secondary-color) !important; }
.about-content { line-height: 1.8; color: #444; }

/* ===== Process ===== */
.process-step .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #1a1a1a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}
.process-step:hover .icon-box {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(242, 101, 34, 0.4);
}

/* ===== Footer ===== */
footer {
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light), var(--secondary-color));
}
footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover { color: var(--secondary-color); }
.footer-links-list li a { color: #ccc; }
.footer-links-list li a:hover { color: var(--secondary-color); }
.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 5px;
    width: 16px;
    text-align: center;
}
.contact-info a { color: #ccc; }
.contact-info a:hover { color: var(--secondary-color); }
.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.social-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== Floating Admin Button ===== */
.admin-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1a1a1a);
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
}
.admin-fab:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #fff !important;
    border-color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.5rem; }
    .section-padding { padding: 56px 0; }
    .navbar-custom .nav-link::after { display: none; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .hero-badge { font-size: 0.7rem; padding: 4px 10px; }
    .btn-custom, .btn-lg-custom { padding: 10px 22px; font-size: 0.8rem; }
}

/* =====================================================================
   NAVBAR STYLE VARIANTS — 6 model tampilan navbar
   Class .navbar-style-XXX ditambahkan ke <nav> via PHP dari setting navbar_style
   ===================================================================== */

/* ===== 1. CLASSIC (default) — underline animation ===== */
/* (sudah didefinisikan di .navbar-custom .nav-link::after di atas) */

/* ===== 2. PILL — solid pill buttons ===== */
.navbar-style-pill .nav-link {
    background: transparent;
    border-radius: 20px;
    padding: 8px 18px !important;
    margin: 0 3px;
    color: #333 !important;
    transition: all 0.3s;
}
.navbar-style-pill .nav-link:hover,
.navbar-style-pill .nav-link.active {
    background: var(--secondary-color);
    color: #fff !important;
}
.navbar-style-pill .nav-link::after { display: none; }
.navbar-style-pill .dropdown-menu .dropdown-item:hover { border-radius: 20px; }

/* ===== 3. GLOSSY — glossy gradient buttons ===== */
.navbar-style-glossy {
    background: linear-gradient(180deg, #1a1a1a, #0a0a0a) !important;
    border-bottom: 3px solid var(--secondary-color);
}
.navbar-style-glossy .navbar-brand,
.navbar-style-glossy .navbar-brand span { color: #fff; }
.navbar-style-glossy .navbar-brand .logo-text-main { color: #fff !important; }
.navbar-style-glossy .nav-link {
    background: linear-gradient(180deg, rgba(255,133,64,0.9), rgba(242,101,34,0.9));
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    margin: 0 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.navbar-style-glossy .nav-link:hover,
.navbar-style-glossy .nav-link.active {
    background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
    color: var(--secondary-color) !important;
}
.navbar-style-glossy .nav-link::after { display: none; }
.navbar-style-glossy .dropdown-menu {
    background: #1a1a1a;
    border: 1px solid #333;
}
.navbar-style-glossy .dropdown-item { color: #ccc; }
.navbar-style-glossy .dropdown-item:hover { background: var(--secondary-color); color: #fff; }
.navbar-style-glossy .navbar-toggler { color: #fff; border-color: rgba(255,255,255,0.3); }
.navbar-style-glossy .navbar-toggler-icon { filter: invert(1); }

/* ===== 4. FOLDER TAB — trapezoidal tab style ===== */
.navbar-style-folder { padding-bottom: 0 !important; }
.navbar-style-folder .navbar-nav { padding-bottom: 0; }
.navbar-style-folder .nav-link {
    background: #e9ecef;
    color: #555 !important;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    padding: 10px 24px !important;
    margin: 0 2px;
    border-radius: 0;
    position: relative;
    z-index: 1;
}
.navbar-style-folder .nav-link:hover,
.navbar-style-folder .nav-link.active {
    background: var(--primary-color);
    color: #fff !important;
    z-index: 2;
}
.navbar-style-folder .nav-link::after { display: none; }
.navbar-style-folder .nav-item.dropdown .dropdown-toggle::after { margin-left: 4px; }
.navbar-style-folder .dropdown-menu {
    border-radius: 0 0 6px 6px;
    border-top: 3px solid var(--secondary-color);
}

/* ===== 5. ICON GRID — icon + text stacked ===== */
.navbar-style-icon_grid .nav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px !important;
    margin: 0 2px;
    border-radius: 6px;
    font-size: 0.7rem !important;
    color: #333 !important;
    border-right: 1px solid #eee;
}
.navbar-style-icon_grid .nav-link i,
.navbar-style-icon_grid .nav-link > i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}
.navbar-style-icon_grid .nav-link:hover,
.navbar-style-icon_grid .nav-link.active {
    background: var(--primary-color);
    color: #fff !important;
}
.navbar-style-icon_grid .nav-link:hover i { color: #fff; }
.navbar-style-icon_grid .nav-link::after { display: none; }
.navbar-style-icon_grid .nav-link.dropdown-toggle::after { display: none; }

/* ===== 6. BLOCK — minimalist with bottom border ===== */
.navbar-style-block .nav-link {
    color: #333 !important;
    padding: 12px 18px !important;
    margin: 0;
    border-radius: 0;
    position: relative;
}
.navbar-style-block .nav-link:hover,
.navbar-style-block .nav-link.active {
    background: var(--primary-color);
    color: #fff !important;
}
.navbar-style-block .nav-link::after { display: none; }
.navbar-style-block .navbar-nav {
    border-right: 1px solid #eee;
}
.navbar-style-block .nav-item {
    border-left: 1px solid #eee;
}
.navbar-style-block .dropdown-menu {
    border-radius: 0;
    border-top: 3px solid var(--secondary-color);
}
