/* === Style Dasar Citramaya === */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background:#fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #009688;
}

/* Footer */
.site-footer {
    background: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* Section */
section {
    padding: 30px 0;
}

/* Hero section (untuk index.php) */
.hero {
    background: url('/images/hero-bg.webp') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

@media (max-width: 768px) {
  .hero {
    background: url('/images/hero-bg-small.webp') center/cover no-repeat;
    padding: 80px 15px;
  }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
}

/* Tombol umum */
.btn {
    display: inline-block;
    background: #009688;
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #00796b;
}

.text-center {
    text-align: center;
}
.mt-2 {
    margin-top: 30px;
}

/* About Preview */
.about-preview {
    background: #f7f7f7;
    text-align: center;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Articles Preview */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.articles-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.article-item h3 {
    font-size: 1.2rem;   /* ukuran standar yang tidak terlalu besar */
    font-weight: 600;
    margin: 15px 0;
    line-height: 1.4;
}

.articles-item:hover {
    transform: translateY(-5px);
}

.articles-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* Projects Preview */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: all 0.3s;
}

.project-item:hover img {
    filter: brightness(0.7);
}

.project-info {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 100%;
    padding: 15px;
}

.btn.small {
    padding: 6px 14px;
    font-size: 0.9rem;
}

/* CTA Contact */
.cta-contact {
    background: linear-gradient(120deg, #00796b, #009688);
    color: white;
    padding: 80px 20px;
    border-radius: 10px;
    margin: 60px auto;
}

/* Hero Banner (About Page) */
.page-hero {
    background: linear-gradient(120deg, #009688, #00695c);
    color: white;
    padding: 100px 20px;
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;        /* Rata kanan-kiri */
    text-justify: inter-word;   /* Spasi antar kata lebih rapi */
}

/* Untuk paragraf di dalam about-text */
.about-text p {
    margin-bottom: 15px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .about-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .about-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}


.about-image img {
    width: 100%;
    height:auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .about-image {
        text-align: center;
        margin-bottom: 20px;
    }

    .about-image img {
        width:100%;  /* agak kecil dari 100% supaya tidak mentok */
        height:auto;
        border-radius: 8px;
    }
}


/* Values Section */
.values-section {
    background: #f7f7f7;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

/* ======= Services Page ======= */
.services-hero {
    background: linear-gradient(120deg, #00796b, #009688);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.services-hero p {
    font-size: 1.1rem;
    color: #f0f0f0;
}

.services-list {
    background: #f9f9f9;
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.service-item h3 {
    margin: 20px 0 10px;
    font-size: 1.3rem;
    color: #00796b;
}

.service-item p {
    font-size: 0.95rem;
    padding: 0 20px 20px;
    line-height: 1.6;
    color: #555;
}

.service-item .read-more {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 18px;
    background-color: #00796b;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.service-item .read-more:hover {
    background-color: #004d40;
}

/* ======= CTA Section ======= */
.cta-contact {
    background: #00796b;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-radius: 12px;
}

.cta-contact h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-contact p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.cta-contact .btn {
    padding: 12px 25px;
    background: #fff;
    color: #00796b;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.cta-contact .btn:hover {
    background: #004d40;
    color: #fff;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.2rem;
    }
}

/* ======= Service Detail Page ======= */
.service-detail-hero {
    padding: 80px 20px;
    background: linear-gradient(120deg, #00796b, #009688);
    color: white;
    text-align: center;
}

.service-detail-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-detail-hero p {
    font-size: 1.1rem;
    color: #f0f0f0;
}

.service-content {
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-content .main-service-img {
    width: 100%;           /* gambar menyesuaikan lebar container */
    min-height:600px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: justify;        /* rata kanan-kiri */
    text-justify: inter-word;   /* spasi kata lebih rapi */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .service-content {
        padding: 20px 15px;
    }

    .service-content .main-service-img {
        width:100%;
        min-height: 200px;  /* sesuaikan tinggi gambar di mobile */
    }

    .service-text {
        font-size: 0.95rem; /* teks sedikit lebih kecil agar nyaman dibaca */
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 15px 10px;
    }

    .service-content .main-service-img {
        min-height: 100px;  /* tinggi gambar lebih kecil untuk HP */
    }

    .service-text {
        font-size: 0.9rem;
    }
}


/* Jika ingin menambahkan gambar tambahan di editor */
.additional-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.additional-images .additional-img {
    width: calc(33.333% - 10px);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .additional-images .additional-img {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .service-detail-hero h1 {
        font-size: 2rem;
    }

    .additional-images .additional-img {
        width: 100%;
    }
}

/* ======= CTA Section ======= */
.cta-contact {
    background: #00796b;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-top: 60px;
}

.cta-contact h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-contact p {
    font-size: 1rem;
    margin-bottom: 25px;
}

.cta-contact .btn {
    padding: 12px 25px;
    background: #fff;
    color: #00796b;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.cta-contact .btn:hover {
    background: #004d40;
    color: #fff;
}


/* Projects Page */
.projects-hero {
    background: linear-gradient(120deg, #00695c, #009688);
    color: white;
    padding: 100px 20px;
}

.projects-list {
    background: #f7f7f7;
    padding: 60px 0;
}

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

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #fff;
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: white;
}

.project-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Project Detail Page */
.project-detail-hero {
    background: linear-gradient(120deg, #00796b, #26a69a);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.project-detail {
    padding: 60px 0;
    background: #fff;
}

.detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.detail-image {
    flex: 1 1 45%;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.detail-info {
    flex: 1 1 50%;
}

.detail-info h2, .detail-info h3 {
    color: #222;
    margin-top: 20px;
}

.detail-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.detail-info ul {
    list-style: disc;
    margin-left: 20px;
    color: #555;
}

/* Gallery Section */
.gallery-section {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.back-btn {
    text-align: center;
    margin-top: 50px;
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(120deg, #00796b, #009688);
    color: white;
    padding: 100px 20px;
}

.contact-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 20px;
    color: #222;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.contact-info ul li {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.contact-info i {
    color: #00796b;
    margin-right: 10px;
}

.contact-info a {
    color: #00796b;
    text-decoration: none;
}

.contact-social {
    margin-top: 20px;
}

.contact-social a {
    display: inline-block;
    margin-right: 10px;
    background: #00796b;
    color: #fff;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: 0.3s;
}

.contact-social a:hover {
    background: #009688;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00796b;
    outline: none;
}

/* Map */
.map-container iframe {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 30px;
}

.map-section {
    padding: 40px 20px;
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* batas lebar di desktop */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Buat iframe responsif */
.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 1024px) {
    .map-container iframe {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

/* Layar kecil (HP kecil) */
@media (max-width: 480px) {
    .map-container {
        border-radius: 6px;
    }

    .map-container iframe {
        height: 300px;
    }
}



/* Articles Page */
.articles-hero {
    background: linear-gradient(120deg, #004d40, #009688);
    color: white;
    padding: 100px 20px;
}

.articles-list {
    padding: 60px 20px;
    background: #fafafa;
}

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

.article-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 0.9rem;
    color: #999;
}

.article-content h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #222;
}

.article-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #00796b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Article Detail Page */
.article-detail-hero {
    background: linear-gradient(120deg, #00796b, #26a69a);
    color: white;
    padding: 100px 20px;
}

.article-detail {
    padding: 60px 20px;
    background: #fff;
}

.article-main {
    max-width: 850px;
    margin: 0 auto;
}

.article-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.article-content h3 {
    margin-top: 25px;
    color: #222;
}

.article-content ul {
    margin: 15px 0 15px 25px;
    list-style: disc;
}

.article-content p {
    margin-bottom: 18px;
}

.article-date {
    color: rgba(255,255,255,0.85);
    margin-top: 10px;
}

.back-btn {
    margin-top: 50px;
}

/* tombol wa cta */
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-color: #00796b;
  color: #fff;
}
.btn-primary:hover {
  background-color: #00695c;
}
.btn-wa {
  background-color: #25D366;
  color: #fff;
}
.btn-wa:hover {
  background-color: #1ebe5d;
}
.btn-wa img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/*tombol wa*/

.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 999;
    transition: transform 0.2s ease, background-color 0.3s ease;
  }
  .floating-wa:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
  }
  .floating-wa img {
    width: 50px;
    height: 50px;
  }

  /* Responsif (untuk mobile) */
  @media (max-width: 768px) {
    .floating-wa {
      width: 40px;
      height: 40px;
      bottom: 15px;
      right: 15px;
    }
    .floating-wa img {
      width: 35px;
      height: 35px;
    }
  }

  /* Animasi pulse opsional */
  @keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  }
  .floating-wa {
    animation: wa-pulse 2s infinite;
  }