/* ============================================
   PT. Vertech Karya Persada — Main Stylesheet
   ============================================ */

:root {
  --primary:      #1B3A6B;
  --primary-alt:  #1F4E79;
  --accent:       #2D7A56;
  --accent-light: #3A9E6E;
  --dark:         #0F2447;
  --light:        #F4F6FA;
  --text:         #1C1C1E;
  --gray-100:     #F5F7FA;
  --gray-200:     #E8ECF0;
  --gray-400:     #B0BAC5;
  --gray-500:     #7A8795;
  --gray-700:     #4A5568;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(27,58,107,.08);
  --shadow-md:    0 4px 20px rgba(27,58,107,.12);
  --shadow-lg:    0 8px 40px rgba(27,58,107,.16);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   all .3s ease;
  --nav-height:   72px;
  --navbar-bg-opacity: .92;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: .5rem 0 1rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 640px;
}
.section-desc.centered { margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-alt);
  border-color: var(--primary-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.transparent {
  background: rgba(255, 255, 255, var(--navbar-bg-opacity));
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 36, 71, .08);
}
.navbar.solid {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 36, 71, .14);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.logo-box {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: rgb(8, 8, 8);
  letter-spacing: -.05em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-size: 1.25rem;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: #111111;
  letter-spacing: .08em;
  line-height: 1;
}
.logo-sub {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(122, 187, 187, 0.75);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  color: rgba(17, 17, 17, 0.9);
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(27,58,107,.08);
}
.nav-link.btn-nav-contact {
  background: var(--accent);
  color: var(--white);
  padding: .5rem 1.25rem;
  margin-left: .5rem;
}
.nav-link.btn-nav-contact:hover {
  background: var(--accent-light);
}
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .7;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-width: 180px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  color: rgba(17,17,17,.85);
  font-size: .875rem;
  transition: var(--transition);
}
.dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(27,58,107,.07);
  padding-left: 1.25rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #111111;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--dark);
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.1); color: white; }
.mobile-menu .mobile-group-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: .75rem 1rem .25rem;
}
.mobile-menu .mobile-sub a { padding-left: 2rem; font-size: .875rem; }

/* ---- PAGE HERO BANNER ---- */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--primary-alt) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  padding: .2rem .75rem;
  background: var(--light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.card-text { font-size: .9rem; color: var(--gray-700); line-height: 1.6; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* ---- GRID LAYOUTS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* ---- BADGES / TAGS ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .875rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-primary { background: rgba(27,58,107,.1); color: var(--primary); }
.badge-accent  { background: rgba(45,122,86,.1);  color: var(--accent); }

/* ---- SECTION DIVIDERS ---- */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider.centered { margin: 1rem auto 1.5rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  opacity: .75;
}
.footer-brand .logo-img {
  width: 50px;
  height: 50px;
}
.footer-brand .logo-name {
  color: rgba(255, 255, 255, .96);
}
.footer-brand .logo-sub {
  color: rgba(122, 187, 187, .92);
}
.footer-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  padding: .3rem 0;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  margin-bottom: .875rem;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item .icon {
  width: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: white; }
.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
}
.social-link.social-linkedin:hover {
  background: #0a66c2;
  color: #fff;
}
.social-link.social-instagram:hover {
  background: linear-gradient(135deg, #fd5949 0%, #d6249f 50%, #285aeb 100%);
  color: #fff;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ---- TOAST / ALERT ---- */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error   { border-left: 4px solid #e53e3e; }

/* ---- FLOATING ACTION BUTTONS ---- */
.fab {
  position: fixed;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 1200;
  box-shadow: 0 10px 24px rgba(15, 36, 71, .2);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 36, 71, .28);
}
.fab-wa {
  left: 22px;
  background: #25D366;
  color: #ffffff;
}
.fab-wa svg {
  width: 30px;
  height: 30px;
  display: block;
}
.fab-scroll {
  right: 22px;
  background: rgba(27, 58, 107, .78);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}
.fab-scroll.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- LOADING ---- */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .fab {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    bottom: 16px;
  }
  .fab-wa svg {
    width: 26px;
    height: 26px;
  }
  .fab-wa { left: 14px; }
  .fab-scroll { right: 14px; }
}

/* ---- MISC ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 2rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}
.empty-state svg { margin: 0 auto 1rem; opacity: .3; }
