/*
Theme Name: Fajar Raya Kencana
Theme URI: https://fajarrayakencana.com
Author: FRK Team
Author URI: https://fajarrayakencana.com
Description: Theme profesional untuk PT Fajar Raya Kencana, perusahaan kontraktor HVAC dan MEP. Dilengkapi dengan Customizer untuk semua section, Custom Post Type Portfolio, dan custom page templates. Mobile-friendly dan translation-ready.
Version: 1.0.0
License: GPL v2 or later
Text Domain: fajar-raya-kencana
Domain Path: /languages
*/

/* WordPress Core Alignment */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }

/* Skip Link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999999; background: #0f1c2e; color: #fff; padding: 10px 20px; text-decoration: none; font-size: 14px; }
.skip-link:focus { left: 20px; top: 10px; }

/* Mobile Menu Styles */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-panel ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-panel ul li a {
    display: block;
    padding: 15px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-menu-panel ul li a:hover,
.mobile-menu-panel ul li.current-menu-item > a {
    color: #0f1c2e;
    background: #f9fafb;
}

.mobile-menu-panel ul li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s ease;
}

.mobile-menu-panel ul li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.mobile-menu-panel ul li ul.sub-menu {
    display: none;
    background: #f9fafb;
}

.mobile-menu-panel ul li.open > ul.sub-menu {
    display: block;
}

.mobile-menu-panel ul li ul.sub-menu li a {
    padding-left: 40px;
    font-size: 14px;
    color: #6b7280;
}

/* WordPress admin bar compensation */
.admin-bar .mobile-menu-panel {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .mobile-menu-panel {
        top: 46px;
    }
}

/* Hero slider dots */
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: #fdb813;
    width: 30px;
    border-radius: 5px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .mobile-menu-overlay,
    .mobile-menu-panel,
    .mobile-menu-toggle {
        display: none !important;
    }
}
