/*
Theme Name: PT Satyajaya Energy Dhina Theme
Theme URI: https://www.saedhina.id
Author: PT Satyajaya Energy Dhina
Author URI: https://www.saedhina.id
Description: Custom WordPress Theme for PT Satyajaya Energy Dhina (saedhina.id)
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sja-theme
*/

/* ============================
   CSS Variables & Reset
   ============================ */

:root {
    --primary-color: #e67e22;
    --secondary-color: #f39c12;
    --accent-color: #2c3e50;
    --text-color: #1F2933;
    --text-muted: #616E7C;
    --bg-color: #ffffff;
    --bg-soft: #F5F7F8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ============================
   Layout
   ============================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* ============================
   Header
   ============================ */

.site-header {
    background-color: var(--primary-color);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
}

.site-header h1 a {
    color: #ffffff;
    text-decoration: none;
}

.site-header h1 a:hover {
    color: var(--accent-color);
}

.site-header .tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    color: #ffffff;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.main-navigation a {
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* ============================
   Breadcrumb
   ============================ */

.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================
   Hero Section
   ============================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #ffffff;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   Buttons
   ============================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #e6951a;
    border-color: #e6951a;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: #ffffff;
}

/* ============================
   Services Section
   ============================ */

.services-section {
    padding: 4rem 0;
    background-color: var(--bg-soft);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ============================
   Stats Section
   ============================ */

.stats-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #ffffff;
}

/* ============================
   Projects Section
   ============================ */

.projects-section {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image img,
.project-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content,
.project-card-content {
    padding: 1.5rem;
}

.project-content h3,
.project-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-content h3 a,
.project-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.project-link,
.read-more {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-block;
    margin-top: 0.5rem;
}

.project-location {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ============================
   CTA Section
   ============================ */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   Forms & Contact
   ============================ */

.page-content form,
.contact-form {
    max-width: 600px;
}

.page-content input[type="text"],
.page-content input[type="email"],
.page-content input[type="tel"],
.page-content textarea,
.page-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.page-content input:focus,
.page-content textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(25, 149, 173, 0.1);
}

.page-content textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================
   Footer
   ============================ */

.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom .publisher-id {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.6);
}

/* ============================
   WhatsApp Floating Button
   ============================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* ============================
   Adsense Wrapper
   ============================ */

.adsense-wrapper {
    margin: 2rem 0;
    text-align: center;
}

/* ============================
   Post Navigation
   ============================ */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ============================
   Pagination
   ============================ */

.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* ============================
   404 Page
   ============================ */

.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-title {
    font-size: 8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================
   Single Project
   ============================ */

.single-project .project-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-project .project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.single-project .project-content {
    max-width: 800px;
}

/* ============================
   Post Meta
   ============================ */

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-categories a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 4rem 1rem;
    }

    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

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

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .error-title {
        font-size: 5rem;
    }
}
