/* ============================================================
   GLOBAL VARIABLES & RESET
============================================================ */
:root {
  --accent: #0f5132;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #f8fafc;
  --radius: 14px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  color: #0f172a;
}

/* ============================================================
   CONTAINERS
============================================================ */
.wrapper,
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap {
  padding-left: 24px;
  padding-right: 24px;
}

.container {
  max-width: 1100px;
}

/* ============================================================
   LOGO
============================================================ */
.logo-sm {
  height: 48px;
  width: auto;
  display: block;
}

/* ============================================================
   FOOTER (PREMIUM STYLE)
============================================================ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 50px;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact h4,
.footer-links h4 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.footer-contact p,
.footer-links a {
  margin: 6px 0;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ececec;
  margin-top: 30px;
  padding-top: 15px;
  color: #6b7280;
  font-size: 13px;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.wa-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.wa-floating img {
  width: 36px;
  height: 36px;
}

.wa-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .wa-floating {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 15px;
  }
  .wa-floating img {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   SERVICES PAGE — HERO IMAGE
============================================================ */
.service-hero-img {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.service-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.service-hero-img .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}

.service-hero-img .hero-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 760px;
}

/* Mobile hero */
@media (max-width: 768px) {
  .service-hero-img {
    height: 300px;
  }
  .service-hero-img h1 {
    font-size: 30px;
  }
  .service-hero-img p {
    font-size: 15px;
  }
}

/* ============================================================
   SERVICES PAGE — DESKTOP SECTOR LAYOUT
============================================================ */
.sector-block {
  padding: 70px 0;
}

.sector-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.sector-photo img {
  width: 500px;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.sector-text {
  flex: 1;
  max-width: 480px;
}

.sector-text h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sector-text p {
  font-size: 17px;
  line-height: 1.6;
}

.sector-photo img:hover {
  transform: scale(1.03);
  transition: 0.3s ease;
}

.reverse {
  flex-direction: row-reverse;
}

/* ============================================================
   SERVICES PAGE — MOBILE CLEAN VERSION (TITLE → PHOTO → DESC)
============================================================ */
@media (max-width: 768px) {

  .sector-block {
    padding: 32px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
  }

  .sector-flex {
    flex-direction: column !important;
    gap: 16px;
    padding: 0 12px;
  }

  .sector-text h2 {
    font-size: 22px;
    margin: 0;
    padding: 0 10px;
  }

  .sector-photo img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 16/9;
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
  }

  .sector-text p {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 360px;
    margin: 6px auto 0;
    padding: 0 12px;
  }

  .sector-block:last-child {
    border-bottom: none;
  }

  .sector-photo img:hover {
    transform: none;
  }
}


/* ============================================================
   FAQ HERO — MATCH STYLE SERVICES (LEFT, CLEAN, ELEGANT)
============================================================ */
.faq-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: left;
}

.faq-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.15;
}

.faq-hero p {
  font-size: 18px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.55;
}

/* Mobile */
@media (max-width: 768px) {
  .faq-hero {
    padding: 30px 20px 10px;
  }

  .faq-hero h1 {
    font-size: 28px;
  }

  .faq-hero p {
    font-size: 16px;
  }
}

/* ============================================================
   FAQ SECTION (ACCORDION)
============================================================ */
.faq-section {
  padding: 0 20px 40px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ CARD */
.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.faq-item.active {
  border-color: #0E6B4F;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* QUESTION (BUTTON) */
.faq-question {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #0f172a;
  text-align: left;
}

/* ICON + / - */
.faq-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* FIX: FAQ answer tidak kepotong */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition: all 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px !important;  /* cukup untuk jawaban panjang */
    opacity: 1;
    padding: 10px 20px 18px !important;
}

}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #475569;
  text-align: left;
}

/* MOBILE */
@media (max-width: 768px) {
  .faq-question {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

/* batas sebelum di ubah */

/* ============================
   CONTACT — MOBILE FIRST
============================ */

.contact-mobile {
    padding: 30px 20px 60px;
    max-width: 520px;
    margin: 0 auto;
}

.contact-mobile h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.contact-sub {
    font-size: 15px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.45;
}

/* CARD STYLE */
.contact-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* CARD TITLES */
.contact-box h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.contact-box h3 {
    font-size: 15px;
    margin-top: 14px;
    font-weight: 600;
}

.contact-box p {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 4px 0;
}

/* MAP */
.contact-box iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 12px;
}

/* FORM */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* BUTTON */
.contact-form .btn-primary {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 10px;
}

/* Batas Sebelum Di Ubah */

/* ============================================
   FAQ — MOBILE FIRST
============================================ */

.faq-mobile {
    padding: 30px 20px 60px;
    max-width: 520px;
    margin: 0 auto;
}

.faq-mobile h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.faq-sub {
    font-size: 15px;
    color: #475569;
    margin-bottom: 22px;
    line-height: 1.45;
}

/* FAQ LIST */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CARD */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.faq-item.active {
    border-color: #0E6B4F;
}

/* QUESTION BUTTON */
.faq-q {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;

    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ICON */
.faq-icon {
    font-size: 20px;
    color: #0E6B4F;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ANSWER */
.faq-a {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 18px;
    transition: all 0.35s ease;
}

.faq-item.active .faq-a {
    max-height: 500px;
    opacity: 1;
    padding: 10px 18px 16px;
}

.faq-a p {
    font-size: 15px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   SERVICE PAGE — MOBILE ONLY
============================================================ */
@media (max-width: 768px) {

  .service-mobile {
      padding: 20px 20px 60px;
      max-width: 520px;
      margin: 0 auto;
  }

  /* HERO */
  .service-m-hero {
      text-align: left;
      margin-bottom: 30px;
  }

  .service-m-hero h1 {
      font-size: 26px;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 6px;
  }

  .service-m-hero p {
      font-size: 15px;
      color: #475569;
      line-height: 1.55;
  }

  /* BLOCK SEKTOR */
  .service-m-block {
      padding: 34px 0;
      text-align: center;
      border-bottom: 1px solid #e5e7eb;
  }

  .service-m-block:last-child {
      border-bottom: none;
  }

  /* JUDUL */
  .m-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 14px;
      color: #0f172a;
      line-height: 1.35;
  }

  /* FOTO */
  .m-photo img {
      width: 100%;
      max-width: 360px;
      aspect-ratio: 16/9;
      border-radius: 14px;
      object-fit: cover;
      display: block;
      margin: 0 auto 14px auto;
      box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }

  /* DESKRIPSI */
  .m-desc {
      font-size: 15.5px;
      color: #475569;
      line-height: 1.58;
      padding: 0 14px;
      max-width: 360px;
      margin: 0 auto;
  }
}

/*---------------------------*/

/* ============================================================
   FOOTER — MOBILE TWO-COLUMN (CONTACT LEFT + NAV RIGHT)
============================================================ */
@media (max-width: 768px) {

    .site-footer {
        padding: 35px 20px 25px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
    }

    /* BRAND */
    .footer-brand {
        margin-bottom: 24px;
    }

    .footer-brand .logo-sm {
        height: 42px;
        margin-bottom: 10px;
    }

    .footer-company {
        font-size: 14px;
        color: #475569;
        line-height: 1.55;
    }

    /* ==== TWO COLUMN GRID ==== */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;   /* kiri & kanan */
        gap: 18px;
        align-items: start;
    }

    /* LEFT COLUMN: CONTACT — tetap rata kiri */
    .footer-contact {
        text-align: left;
    }

    .footer-contact h4 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #0f172a;
    }

    .footer-contact p {
        font-size: 14px;
        margin: 4px 0;
        color: #475569;
        line-height: 1.45;
    }

    /* RIGHT COLUMN: NAVIGATION — RATA KANAN */
    .footer-links {
        text-align: right !important;
    }

    .footer-links h4 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #0f172a;
    }

    .footer-links a {
        display: block;
        margin: 5px 0;
        font-size: 14px;
        color: #475569;
        text-decoration: none;
    }

    .footer-links a:hover {
        color: var(--accent);
    }

    /* COPYRIGHT */
    .footer-bottom {
        text-align: center;
        margin-top: 28px;
        padding-top: 16px;
        border-top: 1px solid #e5e7eb;
    }

    .footer-bottom p {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.4;
    }
}
