/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER ===== */
.header {
  background: #f3f5f6;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 52px;            
  width: auto;
  display: block;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  gap: 32px;                 
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li a {
  text-decoration: none;
  color: #2d2d2d;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease,
  transform 0.25s ease;
  display: inline-block; /* WAJIB agar transform bekerja */
}


.menu li a:hover {
  color: #ff0000;
  transform: scale(1.12) translateY(-2px);
}

.menu li a.active {
  color: #4f74c8;       
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.78)
    ),
    url('../img/home/home1.jpg') no-repeat center center / cover;

  padding: 90px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 720px; /* biar teks panjang */
}

.hero-sub {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ff0000;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 900;
  color: #1f2a44;
  margin-bottom: 30px;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  max-width: 680px;

  text-align: justify;       /* INI KUNCI */
  text-justify: inter-word;  /* spasi kata rapi */

  margin-bottom: 40px;
}

.hero-btn {
  display: flex;
  gap: 20px;
}

/* BUTTONS */
.btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary {
  background: #4f74c8;
  color: #ffffff;
}

.btn-primary:hover {
  background: #c13f3f;
  color: #ffffff;
}

.btn-secondary {
  background: #4f74c8;
  color: #232323;
}

.btn-secondary:hover {
  background: #e3b862;
}

/* HERO IMAGE */
.hero-img {
  flex: 1;
  text-align: right;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 50px 0;
  background: #f4f6f8;
}

.stats-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

/* LEFT GOLD BOX */
.stats-left {
  background: #ff7272;
  color: #001442;
  padding: 60px 50px;
  border-radius: 6px;

  min-height: 520px;
}

.stats-left .stats-sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.stats-left h2 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 800;
}

.stats-left p {
  font-size: 15px;
  line-height: 1.9;
  color: #2a2a2a;

  text-align: justify;        /* rata kiri–kanan */
  text-justify: inter-word;   /* spasi kata rapi */
}

/* RIGHT GRID */
.stats-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.stat-card {
  transition: 0.4s ease;
  background: #ffffff;
  border: 1px solid #eee;
  padding: 40px 30px;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stat-card h3 {
  font-size: 40px;
  color: #1f2a44;
  margin-bottom: 10px;
  font-weight: 800;
}

.stat-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}


/* ===== GRID UTILITY ===== */
.grid {
  display: grid;
  gap: 20px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 50px 0;
  background: #ffffff;
  text-align: left;
}

.section-sub {
  display: block;
  font-size: 20px;     
  font-weight: 700;
  color: #1f2a44;      
  margin-bottom: -5px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #1f2a44;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 25px;
  font-weight: 700;
  color: #1f2a44;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

/* ===== COMMITMENT SECTION ===== */
.commitment-section {
  width: 100%;
}

.commitment-wrap {
  display: flex;
  min-height: 520px;
}

/* LEFT */
.commitment-left {
  flex: 1;
  position: relative;
  background: url('../img/home/home8.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 80px;
}

.commitment-left .overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 40, 70, 0.85);
}

.commitment-left .content {
  position: relative;
  max-width: 520px;
}

.commitment-left .sub {
  color: #ff7272;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.commitment-left h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.commitment-left p {
  line-height: 1.8;
  margin-bottom: 30px;
}

/* RIGHT */
.commitment-right {
  flex: 1;
  background: 
    linear-gradient(rgba(214, 76, 76, 0.9), rgba(214, 76, 76, 0.9)),
    url('../img/home/home9.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 80px;
  color: #000f32;
}

.commitment-right .content {
  max-width: 480px;
}

.commitment-right h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.commitment-right p {
  line-height: 1.8;
  margin-bottom: 30px;
}

/* FEATURES */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2a44;
}

/* Simple icon style (pakai font-awesome kalau ada) */
.features .icon {
  width: 24px;
  height: 24px;
  background: #1f2a44;
  border-radius: 50%;
  display: inline-block;
}

/* ===== MOTTO SECTION ===== */
.motto-section {
  padding: 100px 0;
  background: #f4f6f8;
}

.motto-header {
  text-align: center;
  margin-bottom: 60px;
}

.motto-sub {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #1f2a44;
  margin-bottom: 3px;
}

.motto-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1f2a44;
}

/* ===== CONTENT ===== */
.motto-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  gap: 60px;
}

/* ===== IMAGE ===== */
.motto-image {
  grid-column: 2;
  justify-self: center;
  position: relative;
}

.motto-image img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 520px;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== OVERLAY NAME ===== */
.motto-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  padding-left: 20px;
  color: #fff;
  text-align: left;
}

.motto-overlay h3 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.motto-overlay span {
  font-size: 14px;
}

/* ===== TEXT ===== */
.motto-text {
  grid-column: 3;
  max-width: 600px;
} 

.motto-text p {
  text-align: justify;
  font-size: 16px;
  font-weight: 500;
  margin-top: -150px;
  line-height: 2;          /* ⬅️ JARAK ANTAR KALIMAT */
  letter-spacing: 0.02em;  /* ⬅️ SPASI ANTAR HURUF */

  color: #333;
}

/* ===== BUTTON ===== */
.motto-btn {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 10px;
}

/* ===== PROJECT SECTION ===== */
.project-section {
  padding: 80px 0 0;
  background: #fff;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.project-sub {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ff0000;
  letter-spacing: 2px;
  margin-bottom: -5px;
}

.project-title h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1f2a44;
  margin: 0;
}

/* Button 
.btn-project {
  background: #d4a857;
  color: #1f2a44;
  padding: 14px 30px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.3s;
}*/

.btn-project:hover {
  background: #c39a45;
}

/* ===== GRID FOTO TANPA JARAK ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.project-item {
  position: relative;
  overflow: hidden;
  height: 360px;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay text */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
}

.project-overlay h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px;
}

.project-overlay span {
  font-size: 14px;
}

.project-overlay span:hover,
.project-overlay h4:hover,
.project-overlay p:hover {
  color: #ff0000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .project-title h2 {
    font-size: 32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer-section {
  background: #1f2a44;
  color: #ffffff;
  padding: 80px 0 0;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 🔥 3 kolom */
  gap: 60px;
  align-items: flex-start;
}

/* LEFT */
.footer-left h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-left p {
  font-size: 15px;
  line-height: 1.8;
  color: #ffffff;
  max-width: 500px;
}

.footer-left h3:hover,
.footer-left p:hover {
  color: #ff0000;
}

/* CENTER */
.footer-center {
  text-align: center;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-menu li a:hover {
  color: #ff0000;
}

/* RIGHT */
.footer-right {
  text-align: right;
}

.footer-right h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.footer-right ul li {
  font-size: 15px;
  margin-bottom: 5px;
}

.footer-right h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-right p {
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
  text-align: right;
  margin-left: auto;
}

.footer-right h3:hover,
.footer-right ul li:hover,
.footer-right h4:hover,
.footer-right p:hover {
  color: #ff0000;
}

/* PAKSA ALAMAT FOOTER DI TENGAH 
.footer-right p,
.footer-right .footer-address,
.footer-address {
  text-align: center !important;
  margin: 0 auto;
  max-width: 700px;
} */


/* BOTTOM */
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 14px;
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left p,
  .footer-right p {
    margin: 0 auto;
  }
}

/* ===== ANIMATION BASE ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub,
.hero-text h1,
.hero-text p,
.hero-btn {
  animation: fadeUp 0.9s ease forwards;
}

.hero-text h1 { animation-delay: .1s; }
.hero-text p  { animation-delay: .2s; }
.hero-btn     { animation-delay: .3s; }

/* ============================= */
/* ===== MOBILE & RESPONSIVE ==== */
/* ============================= */

/* ===== GLOBAL MOBILE FIX ===== */
@media (max-width: 768px) {

  /* HEADER */
  .header {
    padding: 14px 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .logo img {
    height: 42px;
  }

  /* HERO */
  .hero {
    padding: 60px 0;
  }

  .hero-wrap {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 15px;
    text-align: left;
  }

  .hero-btn {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* STATS */
  .stats-wrap {
    grid-template-columns: 1fr;
  }

  .stats-left {
    min-height: auto;
    padding: 40px 30px;
  }

  .stats-right {
    grid-template-columns: 1fr;
  }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* COMMITMENT */
  .commitment-wrap {
    flex-direction: column;
  }

  .commitment-left,
  .commitment-right {
    padding: 50px 30px;
  }

  /* MOTTO */
  .motto-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .motto-text {
    max-width: 100%;
  }

  .motto-text p {
    margin-top: 0;
    font-size: 15px;
    text-align: left;
  }

  /* PROJECT */
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

    .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-right p {
    text-align: center;   /* ⬅️ INI KUNCI */
    margin: 0 auto;
    max-width: 360px;     /* ⬅️ bikin terlihat benar-benar center */
  }
}

/* ============================= */
/* ===== MENU MOBILE RADITAF ==== */
/* ============================= */

#menu-toggle {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #1f2a44;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* MOBILE MENU */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .menu {
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

  .menu li {
    border-bottom: 1px solid #eee;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu li a {
    padding: 16px 24px;
    font-size: 15px;
    display: block;
    color: #1f2a44;
  }

  .menu li a:hover {
    background: #f4f6f8;
  }

  /* OPEN MENU */
  #menu-toggle:checked ~ .nav {
    max-height: 420px;
  }

  /* HAMBURGER ANIMATION */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
/* ================================= */
/* ===== FIX MOTTO MOBILE (FINAL) ==== */
/* ================================= */

@media (max-width: 768px) {

  /* MATIKAN GRID DESKTOP */
  .motto-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* FOTO */
  .motto-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .motto-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* HILANGKAN OVERLAY */
  .motto-overlay {
    position: static;
    transform: none;
    padding: 0;
    margin-top: 12px;
    text-align: center;
    color: #1f2a44;
  }

  .motto-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .motto-overlay span {
    font-size: 14px;
    color: #666;
  }

  /* TEXT */
  .motto-text {
    max-width: 100%;
    margin: 0;
  }

  .motto-text p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
    color: #333;
  }

  .motto-header h2 {
    margin-top: 0;
    margin-bottom: 10px;   /* ⬅️ rapat bawah */
    line-height: 1.15;     /* ⬅️ rapat baris */
  }

  /* BUTTON */
  .motto-btn {
    margin-top: 20px;
  }
}