/*
Theme Name: RahmatTataUdara
Theme URI: https://acrahmat.com/
Author: (Nama Anda atau Nama Perusahaan Anda)
Author URI: https://acrahmat.com/
Description: Tema WordPress kustom untuk CV Rahmat Tata Udara. Profesional, bersih, dan responsif, dirancang untuk perusahaan jasa servis AC.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, responsive-layout
Text Domain: rahmattataudara
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Variables & Global Resets
2.0 Typography & Base Styles
3.0 Reusable Components (Container, Buttons)
4.0 Header & Navigation
5.0 Front Page Sections
    5.1 Hero Section
    5.2 Core Values Section
    5.3 Services Section
    5.4 Trust/Portfolio Section
    5.5 CTA Section
6.0 Standard Page & Post Styles
    6.1 Page: Layanan (Accordion)
    6.2 Page: Portofolio (Client Grid)
    6.3 Page: Kontak (Info Table)
7.0 Footer
8.0 Responsive Design (Media Queries)
--------------------------------------------------------------*/

/* 1.0 Variables & Global Resets
--------------------------------------------- */
:root {
    --primary-color: #0D47A1;
    --secondary-color: #42A5F5;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #f4f7fc; /* Warna abu-abu lebih sejuk */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2.0 Typography & Base Styles
--------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 3.0 Reusable Components (Container, Buttons)
--------------------------------------------- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* 4.0 Header & Navigation
--------------------------------------------- */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.navigation-wrapper {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.header-button {
    margin-left: 30px;
}

.header-button .btn {
    padding: 10px 20px;
    font-size: 0.9em;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 5.0 Front Page Sections
--------------------------------------------- */

/* 5.1 Hero Section */
.hero {
    background-image: linear-gradient(rgba(13, 71, 161, 0.75), rgba(13, 71, 161, 0.75)), url('https://acrahmat.com/wp-content/uploads/2025/11/Solusi-Terbaik-dan-Terpercaya-untuk-Tata-Udara-Anda.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.hero .btn {
    margin: 0 10px;
}

/* 5.2 Core Values Section */
#core-values {
    background-color: var(--light-gray);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.value-item {
    padding: 25px;
    text-align: center;
}
.value-item .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.value-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* 5.3 Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.2);
}
.service-item .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-item h3 {
    font-size: 1.4rem;
}

/* 5.4 Trust/Portfolio Section */
#trust {
    background-color: var(--light-gray);
}
.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.client-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}
.client-logos .logo-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #555;
    border: 1px solid #ddd;
}
.client-logos .logo-item img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.client-logos .logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 5.5 CTA Section */
#cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}
#cta h2, #cta p { color: #fff; }
#cta .cta-contact {
    margin-top: 30px;
    font-size: 1.4rem;
    font-weight: bold;
}
#cta .cta-contact a {
    color: #fff;
    margin: 0 15px;
}
#cta .cta-contact a:hover {
    color: var(--secondary-color);
}


/* 6.0 Standard Page & Post Styles
--------------------------------------------- */
.page-header {
    background-color: var(--light-gray);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.page-header .entry-title {
    margin-bottom: 0;
}

.site-main {
    padding: 60px 0;
}

.entry-content p, .entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
}
.entry-content ul {
    list-style-position: inside;
}

/* 6.1 Page: Layanan (Accordion) */
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-trigger:hover {
    background-color: var(--light-gray);
}
.accordion-trigger::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}
.accordion-trigger.active::after {
    transform: rotate(180deg);
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fafafa;
    padding: 0 20px;
}
.accordion-panel-content {
    padding: 20px 0;
}
.accordion-panel-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* 6.2 Page: Portofolio (Client Grid) */
.portfolio-category h3 {
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.client-list {
    list-style: none;
    column-count: 3;
    column-gap: 30px;
}
.client-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.client-list li::before {
    content: '\f00c'; /* check mark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 6.3 Page: Kontak (Info Table) */
.contact-info-list {
    list-style: none;
    margin-top: 30px;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info-list .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
    margin-top: 4px;
}

.legal-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}
.legal-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.legal-table td:first-child {
    font-weight: bold;
    width: 40%;
    background-color: var(--light-gray);
}

/* 7.0 Footer
--------------------------------------------- */
.site-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-widget h4 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
    font-size: 1.2rem;
}
.footer-widget p, .footer-widget ul, .footer-widget li {
    font-size: inherit;
}
.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul a {
    color: #e0e0e0;
}
.footer-widget ul a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a5daa;
    font-size: 0.9rem;
}

/* 8.0 Responsive Design (Media Queries)
--------------------------------------------- */
@media (max-width: 992px) {
    .header-button { display: none; } /* Sembunyikan tombol header di tablet */
    .trust-content { grid-template-columns: 1fr; }
    .trust-content .trust-text { margin-bottom: 40px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }

    .menu-toggle { display: block; }
    
    .navigation-wrapper {
        order: 3;
        width: 100%;
    }

    .main-navigation {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation li { margin: 0; text-align: center; }
    .main-navigation a { display: block; padding: 15px; border-bottom: 1px solid #f0f0f0; }
    .main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { width: 0; }
    .header-container { flex-wrap: wrap; }
    .site-branding { flex-grow: 1; }
    
    .contact-grid, .tentang-grid { grid-template-columns: 1fr; }
    .client-list { column-count: 2; }
}

@media (max-width: 480px) {
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero .btn { display: block; margin: 10px auto; }
    .client-list { column-count: 1; }
}

/* 6.4 Blog Styles (Index & Single)
--------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.2);
}

.blog-card-image a {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-title-card {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.entry-title-card a {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}
.post-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.entry-summary {
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more-link {
    font-weight: bold;
    color: var(--secondary-color);
}
.read-more-link:hover {
    color: var(--primary-color);
}

/* Single Post Styles */
.single-post-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}
.single-post-meta span {
    margin-right: 20px;
}
.single-post-meta i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.featured-image-single {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image-single img {
    width: 100%;
    height: auto;
}