/**
 * Konstruksi Pro Theme - Custom Styles
 */

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Header Scroll Effect */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animation Classes */
.service-card,
.why-us-item,
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animated,
.why-us-item.animated,
.portfolio-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* Portfolio Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #1a365d;
    color: #fff;
}

.filter-btn.active {
    background: #1a365d;
    color: #fff;
}

/* Form Styles */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.2);
}

/* Button Hover Effects */
.btn-primary,
.btn-secondary,
.btn-wa,
.btn-phone {
    transition: all 0.3s ease;
}

/* Portfolio Overlay */
.portfolio-overlay {
    backdrop-filter: blur(5px);
}

/* Service Card Hover */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Contact Method Hover */
.contact-method {
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(10px);
}

/* Footer Social Icons */
.footer-social a {
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #d69e2e;
    transform: translateY(-3px);
}

/* Floating WA Button Pulse */
.floating-wa a {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

/* FAQ Styles */
.faq-question:hover {
    background: #f7fafc;
}

/* Loading State for Form */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.form-success {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.form-error {
    background: #fed7d7;
    color: #742a2a;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

/* WordPress Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* WordPress Gallery */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
    margin-top: 0.5em;
}

/* Responsive Video Embed */
.wp-video,
.wp-video-shortcode,
embed,
iframe,
object,
video {
    max-width: 100%;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation a {
    color: #1a365d;
    font-weight: 600;
}

.post-navigation a:hover {
    color: #d69e2e;
}

/* Comments */
.comments-area {
    margin-top: 60px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 30px;
    background: #f7fafc;
    border-radius: 15px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 14px;
    color: #666;
}

.comment-content {
    color: #333;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: #d69e2e;
    font-weight: 600;
}

/* Widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d69e2e;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.widget ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #d69e2e;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    font-size: 15px;
}

.widget_search button {
    padding: 12px 20px;
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget_search button:hover {
    background: #d69e2e;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #f7fafc;
    color: #1a365d;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #1a365d;
    color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: #f7fafc;
    margin-bottom: 40px;
}

.breadcrumbs a {
    color: #666;
}

.breadcrumbs a:hover {
    color: #d69e2e;
}

.breadcrumbs .current {
    color: #1a365d;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .floating-wa,
    .hero-buttons,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    .page-break {
        page-break-before: always;
    }
}
