/* 
 * Jaya Bangun - Main Stylesheet
 * SEO-friendly, mobile-responsive design
 */

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

a {
    color: #2d7d46;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #24613a;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1a5632;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

ul, ol {
    padding-left: 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ===== Layout & Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* ===== Header ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.2rem;
    line-height: 1.2;
}

.logo a {
    display: block;
    text-decoration: none;
    color: #1a5632;
}

.logo h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
}

.logo .tagline {
    font-size: 1.4rem;
    margin: 0;
    color: #666;
    font-weight: 400;
}

/* ===== Navigation ===== */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: block;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 4rem;
    height: 4rem;
    position: relative;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a5632;
    margin: 5px auto;
    transition: all 0.3s;
}

.menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 250px;
}

.menu.active {
    display: block;
}

.menu li {
    border-bottom: 1px solid #eee;
}

.menu li:last-child {
    border-bottom: none;
}

.menu a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.menu a:hover, .menu a:focus {
    background-color: #f5f5f5;
    color: #1a5632;
}

/* ===== Hero Section ===== */
.hero {
    background-color: #e6f3eb;
    padding: 6rem 0;
    text-align: center;
}

.hero .container {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: #1a5632;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #555;
}

.hero-cta {
    margin-top: 3rem;
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2d7d46;
    margin: 1.5rem auto 0;
}

.service-item {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1a5632;
}

.service-item p {
    color: #666;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

/* ===== About Section ===== */
.about {
    padding: 6rem 0;
    background-color: #f2f8f5;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    flex: 1 1 45%;
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #2d7d46;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.6rem;
    color: #666;
}

/* ===== Call to Action ===== */
.cta-section {
    padding: 6rem 0;
    background-color: #1a5632;
    color: #fff;
    text-align: center;
}

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

.cta-section p {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.testimonial {
    padding: 3rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial::before {
    content: '"';
    font-size: 8rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    line-height: 1;
    color: rgba(45, 125, 70, 0.1);
    font-family: Georgia, serif;
}

.client-name {
    font-weight: 700;
    color: #1a5632;
}

.client-info {
    color: #666;
    font-size: 1.4rem;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #133a22;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.widget h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.widget h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #2d7d46;
    margin-top: 1rem;
}

.widget p {
    color: rgba(255, 255, 255, 0.7);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.widget.contact-info ul {
    margin-top: 1.5rem;
}

.widget.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #2d7d46;
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #24613a;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #2d7d46;
    border: 2px solid #2d7d46;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #2d7d46;
    color: #fff;
    text-decoration: none;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

/* ===== WhatsApp CTA ===== */
.whatsapp-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-button:hover, .whatsapp-button:focus {
    background-color: #20bd5a;
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.whatsapp-button .text {
    font-weight: 600;
    font-size: 1.6rem;
}

/* ===== Page Specific Styles ===== */
.page-header {
    background-color: #e6f3eb;
    padding: 5rem 0;
    margin-bottom: 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
}

.page-header .breadcrumbs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumbs li {
    display: inline-block;
    font-size: 1.4rem;
    color: #666;
}

.page-header .breadcrumbs li:not(:last-child):after {
    content: "/";
    margin: 0 0.5rem;
    color: #ccc;
}

.page-header .breadcrumbs a {
    color: #2d7d46;
}

/* ===== Contact Form ===== */
.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    display: block;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #2d7d46;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 70, 0.25);
}

textarea.form-control {
    height: auto;
    min-height: 150px;
}

/* Form Validation and Message Styles */
.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.error-list li {
    margin-bottom: 5px;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    margin-right: 8px;
}

@media (max-width: 767px) {
    .whatsapp-float {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ===== Media Queries ===== */
@media (min-width: 576px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .menu {
        display: flex;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
    }
    
    .menu li {
        border-bottom: none;
        margin-left: 2rem;
    }
    
    .menu a {
        padding: 0.5rem 0;
    }
    
    .menu a:hover, .menu a:focus {
        background-color: transparent;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    body {
        font-size: 1.7rem;
    }
    
    .logo h1 {
        font-size: 3.2rem;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .hero p {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .hero {
        padding: 8rem 0;
    }
    
    .hero h1 {
        font-size: 4.8rem;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 4rem !important;
}

.mb-5 {
    margin-bottom: 5rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mt-3 {
    margin-top: 3rem !important;
}

.mt-4 {
    margin-top: 4rem !important;
}

.mt-5 {
    margin-top: 5rem !important;
}
