/* ============================================================
   PT ADIDAYA CIPTA SENTOSA
   Layout: mirip WordPress asli
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h2 { font-size: 26px; font-weight: 700; color: #222; margin-bottom: 24px; }
h4 { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 6px; }
p  { font-size: 14px; color: #555; line-height: 1.7; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }

/* ============================================================
   NAVBAR — always dark, fixed
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  height: 64px;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 64px; /* offset navbar height */
  width: 100%;
  text-align: center;
}
.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  line-height: 1.1;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text h2 { margin-bottom: 12px; }
.about-text p  { margin-bottom: 14px; }
.about-divider {
  width: 40px;
  height: 3px;
  background: #C8291C;
  margin: 16px 0;
}
.about-text h4 { margin-top: 16px; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.about-img-wrap img { width: 100%; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: #f8f8f8; }
.services-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.services-img-wrap img { width: 100%; }
.services-content h2 { margin-bottom: 10px; }
.services-content > p { margin-bottom: 24px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.service-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.service-icon-wrap {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}
.service-item h4 { font-size: 13px; margin-bottom: 2px; }
.service-item p  { font-size: 12px; color: #777; }

/* ============================================================
   ASPHALT PLANT
   ============================================================ */
.asphalt { background: #fff; }
.asphalt h2 { margin-bottom: 8px; }
.asphalt h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #C8291C;
  margin-top: 8px;
  margin-bottom: 24px;
}
.asphalt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.asphalt-card {
  cursor: pointer;
  overflow: hidden;
}
.asphalt-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.asphalt-card:hover img { transform: scale(1.04); }
.asphalt-card p {
  padding: 8px 0 0;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: #f8f8f8; }
.projects h2 { margin-bottom: 8px; }
.projects h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #C8291C;
  margin-top: 8px;
  margin-bottom: 28px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  cursor: pointer;
  overflow: hidden;
  background: #fff;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.04); }
.project-card p {
  padding: 8px 10px 10px;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

/* ============================================================
   PARTNER
   ============================================================ */
.partner { background: #fff; }
.partner h2 { margin-bottom: 8px; }
.partner h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #C8291C;
  margin-top: 8px;
  margin-bottom: 32px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.partner-logo {
  flex: 1;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1a1a1a; padding: 48px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: flex-start; }
.footer-logo-img { height: 80px; width: auto; object-fit: contain; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 6px; }
.footer-bottom { padding: 20px 24px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.25); font-size: 12px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-content {
  max-width: 90vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}
#lb-img { max-width: 90vw; max-height: 78vh; object-fit: contain; width: auto; height: auto; }
.lb-caption {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 12px 0 0; gap: 16px;
}
#lb-caption-text { color: rgba(255,255,255,0.7); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
#lb-counter      { color: rgba(255,255,255,0.3); font-size: 13px; white-space: nowrap; }
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 40px; height: 40px; font-size: 18px;
  cursor: pointer; transition: border-color 0.2s; z-index: 10;
}
.lb-close:hover { border-color: #C8291C; color: #C8291C; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 36px; width: 52px; height: 72px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: #C8291C; }
.lb-nav-row { display: none; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; }
  .services-inner { grid-template-columns: 1fr; }
  .services-img-wrap { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  /* Navbar */
  .logo-img { height: 38px; }
  .hamburger { display: flex; }
  #navbar { background: #1a1a1a !important; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .nav-links.open {
    max-height: 500px;
    padding: 24px 20px;
  }
  .nav-links li   { width: 100%; }
  .nav-links a    { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; }

  /* Hero */
  .hero { height: 100vh; height: 100dvh; min-height: 400px; }
  .hero-content { padding-top: 64px; }
  .hero-title   { font-size: clamp(36px, 10vw, 60px); }

  /* Sections */
  .section { padding: 40px 0; }
  .services-grid  { grid-template-columns: 1fr; }
  .asphalt-grid   { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }
  .partners-row   { gap: 32px; }

  /* Lightbox mobile */
  .lb-prev, .lb-next { display: none !important; }
  .lb-nav-row {
    display: flex !important;
    gap: 16px; margin-top: 16px; justify-content: center;
  }
  .lb-nav-row button {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; width: 56px; height: 56px; font-size: 28px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .lb-content { max-width: 96vw; }
  #lb-img     { max-width: 96vw; max-height: 60vh; }
  .lb-caption { flex-direction: column; gap: 4px; }
}