@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #dc3545;
  --accent-dark: #dc3545;
  --dark: #2f2f2f;
  --text: #555;
  --header-height: 80px;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.responsive-wrapper {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header-outer {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #f5d5d9;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-navigation a {
  position: relative;
  color: #666;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.header-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.header-navigation a:hover,
.header-navigation a.active {
  color: #222;
}

.header-navigation a:hover::after,
.header-navigation a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: #1a1a1a;
}

@media (max-width: 799px) {
  .menu-toggle {
    display: block;
  }

  .header-navigation {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 230px;
    background: #fff;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .header-navigation.mobile-open {
    display: flex;
  }

  .header-navigation a {
    font-size: 0.95rem;
    color: #1a1a1a;
  }
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V50' fill='none' stroke='%23f6eced' stroke-width='1.5'/%3E%3Cpath d='M28 100V66l28-16' fill='none' stroke='%23f6eced' stroke-width='1.5'/%3E%3C/svg%3E");
  padding-bottom: 24px;
}

.hero .carousel-item {
  min-height: 430px;
}

.hero-slide {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 24px 0 56px; /* ruang bawah untuk titik indikator */
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.hero-title strong {
  display: block;
  font-weight: 500;
}

.hero-subtext {
  max-width: 420px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #999;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
}

.btn-green {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.btn-green:hover {
  background: #b02a37;
  color: #fff;
}

.hero-img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 350px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-left: auto;
    margin-right: 24px;
    background: #fff;
    border-radius: 16px;
}

/* dot indicators */
.hero .carousel-indicators {
  bottom: 14px;
  margin: 0;
  gap: 10px;
}

.hero .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
  text-indent: -999px;
}

.hero .carousel-indicators .active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* =========================
   ABOUT
========================= */
.about {
  background: #f7f7f7;
  padding: 80px 0;
}

.about-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  margin: 0 0 2rem;
  padding-bottom: 8px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  height: 3px;
  background: var(--accent);
}

.about-text {
  font-size: 0.8rem;
  line-height: 2.1;
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-dark-sm {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.btn-dark-sm:hover {
  background: #000;
  color: #fff;
}

/* =========================
   SERVICES
========================= */
.services {
  background: #fff;
  padding: 50px 0;
}

.services-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 300;
  color: #222;
  margin: 0 0 3.5rem;
}

.services-title strong {
  font-weight: 700;
}

.service-item {
  padding: 0 1rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--accent-dark);
  transition: transform 0.25s ease;
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.service-item:hover .service-icon {
  transform: translateY(-4px);
}

.service-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.75rem;
}

.service-text {
  max-width: 260px;
  margin: 0 auto 1.5rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #777;
}

.btn-outline-green {
  display: inline-block;
  min-width: 110px;
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-green:hover {
  background: var(--accent);
  color: #fff;
}

/* =========================
   LATEST NEWS
========================= */
.news {
  background: #dc3545;
    padding: 30px 0;
    border-top: 1px solid #f5d5d9;
    border-bottom: 1px solid #f5d5d9;
    --accent-deep: #dc3545
}

.news-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.news-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.news-title {
  font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
}

.news-subtitle {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

.news-slider {
  position: relative;
  padding: 0 56px;
}

.news-viewport {
  overflow: hidden;
  padding: 8px 0 40px;
}

.news-track {
  --per-view: 3;
  display: flex;
  transition: transform 0.45s ease;
}

.news-slide {
  flex: 0 0 calc(100% / var(--per-view));
  padding: 0 10px;
}

.news-card {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f1e3e4;
}

.news-content {
  position: relative;
  padding: 0 0 22px;
  background: #fff;
  transition: background 0.3s ease;
}

.news-head {
  position: relative;
  margin: -34px 14px 14px 0;
  padding: 10px 14px 10px 22px;
  background: #fff;
  border-radius: 3px 0 0 0;
  transition: background 0.3s ease;
}

.news-date {
  display: block;
  font-size: 0.65rem;
  color: #aaa;
  transition: color 0.3s ease;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0;
  transition: color 0.3s ease;
}

.news-card-text {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #666;
  margin: 0 22px 1rem;
  transition: color 0.3s ease;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  margin-left: 22px;
  border-radius: 13px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.news-arrow:hover {
  background: var(--accent);
  color: #fff;
}

.news-prev { left: 0; }
.news-next { right: 0; }

.news-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: -10px;
}

.news-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfcfcf;
  cursor: pointer;
}

.news-dots button.active {
  background: #111;
}

.news-all {
  text-align: center;
  margin-top: 2.5rem;
}

.news-all a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

.news-all a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .news-track { --per-view: 2; }
}

@media (max-width: 575px) {
  .news-track { --per-view: 1; }
  .news-slider { padding: 0 44px; }
}

@media (max-width: 767px) {
  .news {
    padding: 56px 0;
  }

  .services {
    padding: 56px 0;
  }

  .hero-slide {
    padding: 40px 0;
    text-align: center;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img {
    margin: 24px auto 0;
  }

  .about {
    padding: 48px 0;
  }
}

/* anchor tidak tertutup header yang menempel */
section[id],
footer[id] {
  scroll-margin-top: 80px;
}

/* =========================
   NEWS POPUP
========================= */
body.modal-open {
  overflow: hidden;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal[hidden] {
  display: none;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-modal.is-open .news-modal-backdrop {
  opacity: 1;
}

.news-modal.is-open .news-modal-dialog {
  opacity: 1;
  transform: none;
}

.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #dc3545;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.news-modal-close:hover {
  background: #dc3545;
  color: #fff;
}

.news-modal-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f1e3e4;
  border-radius: 14px 14px 0 0;
}

.news-modal-body {
  padding: 26px 30px 32px;
}

.news-modal-date {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: #999;
}

.news-modal-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc3545;
}

.news-modal-content p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #555;
}

.news-modal-content p:last-child {
  margin-bottom: 0;
}

.news-btn,
.news-card-title {
  cursor: pointer;
}

@media (max-width: 575px) {
  .news-modal-body {
    padding: 20px 20px 26px;
  }
}

img { max-width: 100%; height: auto; }

@media (max-width: 799px) {
  .header-logo { flex: 1 1 0%; min-width: 0; display: block; }
  .header-logo img { max-width: 100%; height: auto; max-height: 44px; }
  .menu-toggle { flex: 0 0 auto; white-space: nowrap; margin-left: 12px; }
}