/* ============================================
   MAIN STYLESHEET - OPTIMIZED FOR NEXT.JS
   ============================================ */

/* CSS Variables for easy customization */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8f9fa;
    --navbar-height: 80px;
    --transition-default: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: #1f2937;
    line-height: 1.6;
}

/* CATATAN PERFORMANCE: font DM Sans dipindah ke <link> di <head> HTML
   (bukan @import lagi di sini) supaya tidak render-blocking.
   Lihat index.php / product.php / product-detail.php */

.navbar {
    background: #ffffff;
    border-bottom: 1.5px solid #e8edf5;
    padding: 0.75rem 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 2px 20px rgba(15, 52, 120, 0.07);
    border-bottom-color: #dde4f0;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-frame {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f1e3c;
    letter-spacing: -0.3px;
}

.brand-slogan {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: #1a56db;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 1px;
}

.navbar-nav {
    gap: 0.15rem;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5a7a;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.05px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    right: 50%;
    height: 2px;
    border-radius: 2px;
    background: #1a56db;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.navbar-nav .nav-link:hover {
    color: #1a56db;
    background: #f0f5ff;
}

.navbar-nav .nav-link:hover::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: #1a56db;
    font-weight: 600;
    background: #eff4ff;
}

.navbar-nav .nav-link.active::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

.navbar-nav .nav-link.nav-cta {
    background: transparent;
    color: #4b5a7a !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    border: none;
    box-shadow: none;
    margin-left: 0;
}

.navbar-nav .nav-link.nav-cta:hover {
    background: #f0f5ff !important;
    color: #1a56db !important;
    transform: none;
    box-shadow: none;
}

.navbar-nav .nav-link.nav-cta:hover::before {
    left: 22%;
    right: 22%;
    opacity: 1;
}

.navbar-toggler {
    border: 1.5px solid #dde4f0;
    background: transparent;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
    outline: none;
}

.navbar-toggler:hover {
    background: #f0f5ff;
    border-color: #b8c8f0;
}

.toggler-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #4b5a7a;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #ffffff;
        border-radius: 12px;
        border: 1.5px solid #e8edf5;
        box-shadow: 0 8px 30px rgba(15, 52, 120, 0.1);
    }

    .navbar-nav {
        gap: 0.15rem;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-link.nav-cta {
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .brand-logo { height: 44px; }
    .brand-name { font-size: 1.05rem; }
    .brand-slogan { font-size: 0.58rem; }
}

@media (max-width: 576px) {
    .brand-logo { height: 38px; }
    .brand-name { font-size: 0.92rem; }
    .brand-slogan { font-size: 0.52rem; letter-spacing: 0.5px; }
    .brand-wrapper { gap: 9px; }
}

/* ============================================================
   HERO + SERVICES — Modern Corporate / Clean & Natural
   Palet: putih & abu-abu terang, aksen navy + amber (safety-tone)
   ============================================================ */

:root{
  /* base */
  --hs-white:        #FFFFFF;
  --hs-bg-soft:       #F4F6F8;
  --hs-bg-soft-2:     #EDEFF2;
  --hs-line:          #E2E6EA;

  /* corporate ink */
  --hs-navy:          #16273E;
  --hs-navy-2:        #23415F;
  --hs-steel:         #4A6280;

  /* text */
  --hs-text:          #1E2733;
  --hs-text-muted:    #647084;

  /* industry accents */
  --hs-accent-it:          #2E6F9E;   /* teknologi - biru */
  --hs-accent-material:    #8A6A3D;   /* bahan bangunan - cokelat/tanah */
  --hs-accent-shipping:    #2F8F6F;   /* pengiriman - hijau natural */
  --hs-accent-maintenance: #5B5F97;   /* maintenance - ungu abu */
  --hs-accent-safety:      #E0912E;   /* safety - amber/hi-vis */

  --hs-radius:        16px;
  --hs-radius-sm:     10px;
  --hs-shadow:        0 20px 45px -20px rgba(22, 39, 62, 0.22);
  --hs-shadow-sm:     0 10px 25px -12px rgba(22, 39, 62, 0.18);

  --hs-font-display:  'Plus Jakarta Sans', sans-serif;
  --hs-font-body:     'Inter', sans-serif;
  --hs-font-mono:     'IBM Plex Mono', monospace;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-slider{
  position: relative;
  background: var(--hs-bg-soft);
}

.heroSwiper{
  width: 100%;
  height: auto;      /* dulu: 640px fixed */
  position: relative;
}

.heroSwiper .swiper-slide{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slide-media{
  position: absolute;
  inset: 0;
}

.slide-media-fallback{
  background: linear-gradient(135deg, var(--hs-navy) 0%, var(--hs-navy-2) 100%);
}

.slide-fg-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);   /* tanpa zoom tambahan sama sekali */
}

.swiper-slide-active .slide-fg-img{
  animation: hsKenBurns 8s ease-out forwards;
}

@keyframes hsKenBurns{
  from{ transform: scale(1.015); }
  to{ transform: scale(1); }
}

/* Teks kembali di ATAS foto, di-center, dengan kartu kaca
   di belakangnya supaya tetap terbaca tanpa menutupi foto. */
.slide-content{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.slide-panel{
  max-width: 680px;
  width: 100%;
  text-align: center;
  padding: 0;
  /* tanpa background/blur/border — teks langsung di atas foto */
}

.slide-title{
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.35);
}

.slide-subtitle{
  font-family: var(--hs-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 100%;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.3);
}

@keyframes hsFadeUp{
  from{ opacity: 0; transform: translateY(24px); }
  to{ opacity: 1; transform: translateY(0); }
}

.slide-eyebrow, .slide-title, .slide-subtitle{ opacity: 0; }

.swiper-slide-active .slide-eyebrow{ animation: hsFadeUp 0.7s ease forwards; animation-delay: 0.15s; }
.swiper-slide-active .slide-title{ animation: hsFadeUp 0.75s ease forwards; animation-delay: 0.3s; }
.swiper-slide-active .slide-subtitle{ animation: hsFadeUp 0.75s ease forwards; animation-delay: 0.45s; }

.slide-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hs-font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hs-accent-safety);
  background: rgba(224, 145, 46, 0.10);
  border: 1px solid rgba(224, 145, 46, 0.30);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* Frame navigasi: kotak transparan dengan rasio sama dengan foto,
   supaya panah & titik selalu center di atas foto, bukan ikut
   turun ke area teks di bawahnya. */
.hero-nav-frame{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  pointer-events: none;
  z-index: 5;
}

.hero-nav-frame > *{ pointer-events: auto; }

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: var(--hs-white);
  border-radius: 50%;
  box-shadow: var(--hs-shadow-sm);
  color: var(--hs-navy);
}
.heroSwiper .swiper-button-prev{ left: 16px; }
.heroSwiper .swiper-button-next{ right: 16px; }

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after{
  font-size: 16px;
  font-weight: 700;
}

.heroSwiper .swiper-pagination{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
}

.heroSwiper .swiper-pagination-bullet{
  background: var(--hs-white);
  opacity: 0.6;
}

.heroSwiper .swiper-pagination-bullet-active{
  opacity: 1;
  background: var(--hs-accent-safety);
}

/* Di layar lebar, aspect-ratio 16:9 dari LEBAR PENUH bikin hero
   jadi raksasa (misal 1920px lebar → 1080px tinggi). Batasi
   tingginya di sini supaya hero tetap proporsional & tidak
   mendominasi seluruh layar. */
@media (min-width: 1400px){
  .heroSwiper .swiper-slide{
    aspect-ratio: auto;
    height: 560px;
  }
}

/* ============================================================
   SERVICES / PROJECTS SECTION
   ============================================================ */
.services-section{
  background: var(--hs-white);
  padding-top: 70px !important;
  padding-bottom: 90px !important;
}

.section-heading{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow{
  display: inline-block;
  font-family: var(--hs-font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hs-steel);
  margin-bottom: 14px;
}

.section-title{
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--hs-navy);
  margin-bottom: 14px;
}

.section-title span{
  color: #8a4f00; /* kontras lebih tinggi di atas latar terang */
}

.section-desc{
  font-family: var(--hs-font-body);
  color: var(--hs-text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.project-title{
  font-family: var(--hs-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hs-navy);
  margin-bottom: 10px;
}

.project-desc{
  font-family: var(--hs-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hs-text-muted);
  margin-bottom: 16px;
}

.project-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hs-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hs-navy-2);
  /* Diposisikan absolut supaya bisa "melayang" di tengah card saat
     deskripsi masih tersembunyi, lalu turun ke bawah saat di-hover.
     Referensi posisi: .project-card (position: relative). */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-link{
  top: calc(100% - 30px);
}

.project-link i{
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.project-card:hover .project-link i{
  transform: translateX(3px);
}

.btn-icon-circle{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hs-navy);
  color: var(--hs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.btn-show-more-projects.expanded .btn-icon-circle{
  transform: rotate(180deg);
  background: var(--hs-accent-safety);
}

/* ============================================================
   PROJECT CARD (dipakai di grid #projects-grid)
   ============================================================ */
.project-card {
    position: relative;
    z-index: 1;
    height: 100%;
    margin-top: 95px;
    padding: 2.25rem 1.5rem 44px; /* extra bottom padding = ruang aman untuk .project-link absolut */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: none;
    border-bottom: 5px solid #2c5d85;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(12, 36, 97, 0.14);
    cursor: pointer;
    overflow: visible;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(12, 36, 97, 0.2);
}

.project-card-num {
    display: none; /* tidak dipakai di desain final */
}

.project-icon {
    width: auto;
    height: 64px;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-icon i {
    font-size: 2.6rem;
    line-height: 1;
    color: #2c5d85;
}

.project-icon.icon-accent i {
    color: #2fae6e;
}

.project-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: none;
    border-radius: 0;
}

.project-card:hover .project-icon {
    transform: translateY(-4px) scale(1.1);
}

/* Animasi teks muncul saat card di-hover — lihat penjelasan di chat */
.project-card h4,
.project-card .project-desc,
.project-card small.text-primary {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                color 0.25s ease;
    will-change: transform, opacity;
}

.project-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.6rem;
    transform: translateY(6px);
    opacity: 0.85;
}

.project-card .project-desc {
    font-size: 13px;
    color: #7c8aa0;
    line-height: 1.6;
    margin-bottom: 0;
    transform: translateY(10px);
    opacity: 0;
    transition-delay: 0.05s;
}

.project-card small.text-primary {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #2c5d85;
    transform: translateY(10px);
    opacity: 0;
    transition-delay: 0.1s;
}

.project-card:hover h4 {
    color: #2c5d85;
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-desc,
.project-card:hover small.text-primary {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   ABOUT SECTION - MODERN 2 KOLOM (Tentang Kami, antara Produk & Testimoni)
   ============================================================ */
.about-modern-section {
    background: var(--hs-bg-soft);
}

.about-modern-desc {
    font-family: var(--hs-font-body);
    color: var(--hs-text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-modern-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hs-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--hs-navy-2);
    margin-top: 8px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.about-modern-cta:hover {
    gap: 12px;
    color: var(--hs-accent-safety);
}

.about-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-modern-card {
    background: var(--hs-white);
    border-radius: var(--hs-radius);
    padding: 26px 22px;
    box-shadow: var(--hs-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-modern-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hs-shadow);
}

.about-modern-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--hs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: rgba(22, 39, 62, 0.08);
    color: var(--hs-navy);
}

/* Variasi warna ikon mengikuti sistem accent per-industri yang sudah ada */
.about-modern-card.accent-shipping .about-modern-icon { background: rgba(47, 143, 111, 0.12); color: var(--hs-accent-shipping); }
.about-modern-card.accent-safety .about-modern-icon   { background: rgba(224, 145, 46, 0.14);  color: var(--hs-accent-safety); }
.about-modern-card.accent-it .about-modern-icon        { background: rgba(46, 111, 158, 0.12);  color: var(--hs-accent-it); }

.about-modern-title {
    font-family: var(--hs-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--hs-navy);
    margin-bottom: 6px;
}

.about-modern-text {
    font-family: var(--hs-font-body);
    font-size: 0.82rem;
    color: var(--hs-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .about-modern-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .about-modern-card { padding: 18px 14px; }
}

.projects-stats-bar {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    overflow: hidden;
    max-width: 560px;
    margin: 3rem auto 0;
}

.projects-stat-item {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    border-right: 1px solid #e2eaf5;
}

.projects-stat-item:last-child {
    border-right: none;
}

.projects-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.projects-stat-label {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
}

.btn-show-more-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5d85 100%);
    color: #ffffff;
    border: none;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(44, 93, 133, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    min-width: 220px;
    z-index: 1;
    margin-top: 32px;
}

.btn-show-more-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 0;
}

.btn-show-more-projects:hover::before {
    left: 150%;
}

.btn-show-more-projects:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 30px rgba(44, 93, 133, 0.45);
    background: linear-gradient(135deg, #2c5d85 0%, #1e3a5f 100%);
}

.btn-show-more-projects:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 4px 15px rgba(44, 93, 133, 0.3);
}

.btn-show-more-projects .btn-main-text {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-show-more-projects .btn-label {
    font-size: 15px;
    font-weight: 600;
}

.btn-show-more-projects .btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.btn-show-more-projects:hover .btn-icon-circle {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-show-more-projects .btn-arrow-icon {
    font-size: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-show-more-projects.active .btn-arrow-icon {
    transform: rotate(180deg);
}

.btn-show-more-projects.active {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
}

.btn-show-more-projects.active:hover {
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.45);
}

.btn-hint-text {
    margin-top: 14px;
    font-size: 13px;
    color: #475569; /* tingkatkan kontras */
    font-weight: 500;
    transition: all 0.4s ease;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.btn-hint-text.hidden {
    opacity: 0;
    transform: translateY(-8px);
    margin-top: 0;
    height: 0;
    overflow: hidden;
}

.btn-hint-text i {
    color: #2c5d85;
}

#projects-grid {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

#projects .text-center.mt-5 {
    position: relative;
    z-index: 2;
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
    clear: both;
}

.products-section {
    background-color: #ffffff;
}

.section-subtitle {
    font-size: 1rem;
    color: #888;
}

.empty-products {
    text-align: center;
    padding: 60px 20px;
}

.empty-products i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.category-title i {
    font-size: 1rem;
    color: #2f9e5c;
}

.category-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 999px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: #1e3a5c;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 58, 92, 0.25);
    transition: background 0.2s ease;
}

.btn-view-all:hover {
    color: #ffffff;
    background: #16293f;
}

.btn-view-all .icon-circle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.7rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-view-all:hover .icon-circle {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Wrapper <a> baru supaya seluruh kartu produk bisa diklik (sebelumnya
   hanya tombol "Lihat Detail" kecil di overlay yang bisa diklik) */
.product-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.product-card-link:hover { color: inherit; text-decoration: none; }

/* Kartu "Lihat X Produk Lainnya" di ujung rak — khusus mobile,
   disembunyikan di desktop karena desktop tetap pakai grid biasa */
.col-shelf-more { display: none; }

.product-card-modern {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-image-modern {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f2f3f5;
    overflow: hidden;
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.06);
}

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card-modern:hover .product-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-hover-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-hover-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    background: #1e3a5c;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, gap 0.2s ease;
}

.product-hover-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.65rem;
    transition: background 0.2s ease;
}

.product-hover-link:hover {
    color: #fff;
    background: #16293f;
    gap: 14px;
}

.product-hover-link:hover i {
    background: rgba(255, 255, 255, 0.3);
}

.product-body-modern {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title-modern {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.product-price-modern {
    display: none;
}

.footer { 
    background: #f5f5f5;
    color: #333333; 
    font-family: 'Inter', sans-serif; 
}

.footer .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.footer-main { 
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-only {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.footer-logo-only img {
    width: 270%;
    height: 270%;
    object-fit: contain;
    position: relative;
    top: -50px;
    left: -30px;
}

.footer-company-col {
    text-align: center;
    position: relative;
    top: 0px;
    left: -20px;
}

.footer-company-name {
    font-size: 1.2rem; 
    font-weight: 800; 
    color: #1a1a1a; 
    margin-bottom: 0.3rem; 
}

.footer-company-tag { 
    font-size: 0.7rem; 
    color: #4b5563; /* kontras lebih tinggi */
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 0.8rem;
}

.footer-company-desc { 
    font-size: 0.8rem; 
    color: #555555; 
    line-height: 1.5; 
    margin: 0 auto;
    max-width: 100%;
}

.footer-col-title { 
    font-size: 1rem; 
    font-weight: 700; 
    color: #1a1a1a; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 40px; 
    height: 2px; 
    background: #cc2222; 
    border-radius: 2px; 
}

.footer-nav-links { 
    list-style: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; 
}

.footer-nav-links li a { 
    font-size: 0.8rem; 
    color: #cc2222; 
    text-decoration: none; 
    display: inline-block;
}

.footer-nav-links li a:hover { 
    color: #991111; 
}

.footer-contact-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.7rem; 
    align-items: center;
}

.footer-contact-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-item i {
    width: 18px;
    color: #cc2222;
}

.footer-contact-item span,
.footer-contact-item a {
    color: #555555;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #cc2222;
}

.footer-form-desc { 
    font-size: 0.8rem; 
    color: #666666; 
    margin-bottom: 0.8rem; 
    text-align: center;
}

.footer-form { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}

.footer-form input, 
.footer-form textarea { 
    width: 100%; 
    padding: 0.6rem 0.8rem; 
    background: #ffffff; 
    border: 1px solid #dddddd; 
    border-radius: 8px; 
    color: #333333; 
    font-size: 0.8rem; 
    outline: none; 
}

.footer-form input::placeholder, 
.footer-form textarea::placeholder { 
    color: #aaaaaa; 
}

.footer-form textarea { 
    resize: none; 
}

.footer-form button { 
    background: #cc2222; 
    border: 1px solid #aa1111; 
    padding: 0.6rem; 
    border-radius: 8px; 
    color: #fff; 
    font-weight: 600; 
    font-size: 0.8rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    width: 100%;
}

.footer-form button:hover { 
    background: #aa1111; 
}

.footer-security { 
    display: flex; 
    gap: 1rem; 
    margin-top: 0.8rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-security span { 
    font-size: 0.7rem; 
    color: #4b5563; /* kontras lebih tinggi */
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

.footer-bottom-full {
    background: #e0e0e0;
    width: 100%;
    margin-top: 1rem;
}

.footer-bottom-inner {
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.footer-copy { 
    font-size: 0.7rem; 
    color: #666666; 
    text-align: center;
}

.footer-copy span { 
    color: #1a1a1a; 
    font-weight: 600; 
}

.footer-cert-badges { 
    display: flex; 
    gap: 8px; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-cert { 
    background: #dddddd; 
    border: 1px solid #bbbbbb; 
    border-radius: 6px; 
    padding: 3px 8px; 
    font-size: 0.6rem; 
    font-weight: 600; 
    color: #333333; 
}

.footer-bottom-links { 
    display: flex; 
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-links a { 
    font-size: 0.7rem; 
    color: #666666; 
    text-decoration: none; 
}

.footer-bottom-links a:hover { 
    color: #cc2222; 
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    padding: 12px 15px;
    color: white;
    border-bottom: none;
}

.toast-body {
    padding: 15px;
    color: #374151;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.next-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.next-image-container span {
    position: unset !important;
}

.next-image-container img {
    object-fit: cover !important;
    position: relative !important;
    height: auto !important;
}

.image-blur {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.image-loaded {
    filter: blur(0);
}

@media print {
    .navbar,
    .hero-slider,
    .footer-form,
    .social-links {
        display: none;
    }
    
    body {
        color: black;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.form-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    margin-right: 8px;
}

#submitMessageBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.realisasi-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.realisasi-carousel-wrapper {
    position: relative;
    min-height: 420px;
    padding-bottom: 60px;
}

.realisasi-slide-new {
    display: none;
    animation: rFadeIn 0.45s ease;
}

.realisasi-slide-new.active {
    display: block;
}

@keyframes rFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.realisasi-slide-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2433;
    margin-bottom: 4px;
}

.realisasi-slide-main-title span {
    color: #e53e3e;
}

.realisasi-project-subtitle {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 0.03em;
}

.realisasi-content-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 20px;
}

.realisasi-logo-col {
    flex: 0 0 160px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.realisasi-client-logo {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.realisasi-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
}

.realisasi-logo-placeholder i {
    font-size: 2.5rem;
}

.realisasi-images-col {
    flex: 1;
}

.realisasi-grid-dynamic {
    display: grid;
    gap: 10px;
    width: 100%;
}

.realisasi-grid-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.realisasi-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.realisasi-grid-item:hover img {
    transform: scale(1.04);
}

.realisasi-grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 340px;
}
.realisasi-grid-1 .item-main { grid-row: 1; }

.realisasi-grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px;
}

.realisasi-grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 160px 160px;
}
.realisasi-grid-3 .item-main { grid-row: 1 / 3; }

.realisasi-grid-4 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 160px 160px;
}
.realisasi-grid-4 .item-main { grid-row: 1 / 3; }

.realisasi-grid-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 160px 160px;
}
.realisasi-grid-5 .item-main { grid-row: 1 / 3; }

.realisasi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 160px 160px;
}
.realisasi-grid-6 .item-main { grid-column: 1 / 3; }

.realisasi-grid-7 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 160px 160px;
}
.realisasi-grid-7 .item-main { grid-column: 1 / 3; grid-row: 1 / 3; }

.realisasi-grid-8 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 160px 160px;
}
.realisasi-grid-8 .item-main { grid-column: 1 / 3; grid-row: 1 / 3; }

.realisasi-no-image {
    height: 320px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
}

.realisasi-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    color: #1a2433;
    font-size: 1rem;
}

.realisasi-chevron:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #0d6efd;
    color: #0d6efd;
}

.realisasi-prev { left: -24px; }
.realisasi-next { right: -24px; }

.realisasi-dots-new {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px; /* spacing sentuh */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
}

.realisasi-dots-new .rdot {
    width: 18px;              /* touch target lebih besar */
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #94a3b8;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.realisasi-dots-new .rdot.active {
    background: #0d6efd;
    border-color: #0d6efd;
    transform: scale(1.08);
}

.realisasi-counter {
    position: absolute;
    bottom: 14px;
    right: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.realisasi-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.realisasi-lightbox.active {
    display: flex;
    opacity: 1;
}

.realisasi-lightbox-img-wrap {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rLightboxZoomIn 0.25s ease;
}

@keyframes rLightboxZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.realisasi-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    -webkit-user-select: none;
    user-select: none;
}

.realisasi-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.realisasi-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.realisasi-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.realisasi-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.realisasi-lightbox-prev { left: 24px; }
.realisasi-lightbox-next { right: 24px; }

.realisasi-lightbox-counter {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

/* ============================================================
   RESPONSIVE — digabung jadi satu tempat, mobile-first override,
   tidak ada lagi breakpoint yang sama diulang di banyak tempat
   ============================================================ */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .project-card,
  .project-icon,
  .project-card h4,
  .project-card p,
  .project-card small.text-primary,
  .btn-show-more-projects,
  .project-link i{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .slide-eyebrow,
  .slide-title,
  .slide-subtitle,
  .slide-fg-img{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 1400px){
  .heroSwiper .swiper-slide{
    aspect-ratio: auto;
    height: 560px;
  }
}

@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .product-image {
        height: 240px;
    }
    .product-image-modern {
        height: 280px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #ffffff;
        border-radius: 12px;
        border: 1.5px solid #e8edf5;
        box-shadow: 0 8px 30px rgba(15, 52, 120, 0.1);
    }
    .navbar-nav {
        gap: 0.15rem;
        align-items: stretch;
    }
    .navbar-nav .nav-link {
        text-align: left;
        padding: 0.75rem 1rem;
    }
    .navbar-nav .nav-link.nav-cta {
        text-align: left;
        margin-left: 0;
    }
    .realisasi-content-row {
        flex-direction: column;
    }
    .realisasi-logo-col {
        flex: none;
        width: 100%;
        min-height: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
    }
    .realisasi-client-logo {
        max-height: 80px;
    }
    .realisasi-chevron {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    .realisasi-prev { left: -12px; }
    .realisasi-next { right: -12px; }
    .realisasi-grid-4,
    .realisasi-grid-5,
    .realisasi-grid-6,
    .realisasi-grid-7,
    .realisasi-grid-8 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 120px 120px;
    }
    .realisasi-grid-7 .item-main,
    .realisasi-grid-8 .item-main {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .footer-logo-col {
        grid-column: span 2;
    }
    .footer-company-col {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .footer-main { 
        display: grid; 
        grid-template-columns: auto 1fr 0.8fr 1fr 1.1fr; 
        gap: 1.5rem; 
        padding: 2.5rem 0;
        align-items: start;
    }
    .footer-logo-col {
        justify-content: flex-start;
    }
    .footer-logo-only {
        width: 100px;
        height: 100px;
        margin: 0;
    }
    .footer-logo-only img {
        left: -150px;
        top: -50px;
    }
    .footer-company-col {
        text-align: left;
        margin-left: -20px;
        left: -60px;
    }
    .footer-company-desc {
        max-width: 250px;
    }
    .footer-col-title {
        text-align: left;
    }
    .footer-col-title::after {
        left: 0;
        transform: none;
    }
    .footer-nav-links {
        align-items: flex-start;
    }
    .footer-contact-list {
        align-items: flex-start;
    }
    .footer-contact-item {
        justify-content: flex-start;
    }
    .footer-security {
        justify-content: flex-start;
    }
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 992px) and (max-width: 1023px) {
    .footer-main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    .footer-logo-col {
        grid-column: span 2;
        text-align: center;
    }
    .footer-company-col {
        grid-column: span 2;
        text-align: center;
    }
    .footer-col-title {
        text-align: center;
    }
    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-nav-links,
    .footer-contact-list {
        align-items: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
    .footer-form-desc {
        text-align: center;
    }
    .footer-security {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1.2fr 1.5fr 1.2fr 1.8fr 2fr;
        gap: 2rem;
        align-items: start;
        text-align: left;
    }
    .footer-logo-col,
    .footer-company-col,
    .footer-nav-col,
    .footer-contact-col,
    .footer-form-col {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        display: block;
    }
    .footer-logo-only {
        width: 90px;
        height: 90px;
        margin: 0;
    }
    .footer-company-col {
        margin-left: 0;
    }
    .footer-company-desc {
        max-width: 100%;
        margin: 0;
        text-align: left;
    }
    .footer-col-title {
        text-align: left;
        padding-bottom: 0.5rem;
    }
    .footer-col-title::after {
        left: 0;
        transform: none;
        margin-left: 0;
    }
    .footer-nav-links {
        align-items: flex-start;
        gap: 0.6rem;
    }
    .footer-nav-links li a {
        display: inline-block;
    }
    .footer-contact-list {
        align-items: flex-start;
        gap: 0.7rem;
    }
    .footer-contact-item {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .footer-form-desc {
        text-align: left;
    }
    .footer-form {
        width: 100%;
    }
    .footer-security {
        justify-content: flex-start;
    }
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    .brand-logo { height: 44px; }
    .brand-name { font-size: 1.05rem; }
    .brand-slogan { font-size: 0.58rem; }
    .navbar {
        --logo-width: 50px;
        --logo-height: 50px;
    }
    .logo-wrapper span {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .product-image {
        height: 200px;
    }
    .project-card {
        margin-top: 70px;
        padding: 2rem 1.25rem 1.5rem;
    }
    .project-icon {
        height: 52px;
    }
    .project-icon i {
        font-size: 2.1rem;
    }
    .project-icon img {
        width: 46px;
        height: 46px;
    }
    .footer {
        --footer-logo-width: 50px;
        --footer-logo-height: 50px;
        text-align: center;
    }
    .footer-logo-wrapper {
        justify-content: center;
    }
    .footer-logo-only img {
        left: -60px;
        top: -50px;
    }
    .footer-company-col {
        left: 1px;
        top: 0px;
    }
    .toast-notification {
        min-width: 280px;
        left: 20px;
        right: 20px;
    }
    #projects::before {
        height: 200px;
    }
    #projects .text-center.mt-5 {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
    }
    .btn-show-more-projects {
        padding: 14px 24px;
        font-size: 14px;
        gap: 12px;
        min-width: auto;
        width: 100%;
        max-width: 360px;
    }
    .btn-show-more-projects .btn-icon-circle {
        width: 34px;
        height: 34px;
    }
    .btn-show-more-projects .btn-arrow-icon {
        font-size: 14px;
    }
    .btn-hint-text {
        font-size: 12px;
    }
    .category-header {
        align-items: flex-start;
    }
    .product-title-modern {
        font-size: 0.9rem;
    }
    .product-image-modern {
        height: 240px;
    }
}

@media (max-width: 767px) {
    /* --- FIX: teks hero di mobile terpotong/ketumpuk & terlalu besar --- */
    .heroSwiper .swiper-slide{
        aspect-ratio: 3 / 4;      /* dulu 16/9 → foto jadi pendek, teks numpuk padat */
        min-height: 420px;
    }
    .slide-content{
        align-items: flex-end;    /* teks di area bawah foto, bukan menimpa tengah */
        padding: 20px 18px 44px;
    }
    .slide-panel{
        max-width: 100%;
    }
    .slide-title{
        font-size: clamp(1.35rem, 6vw, 1.75rem);  /* dulu bisa sampai 3.2rem, kegedean di layar sempit */
        line-height: 1.28;
        margin-bottom: 8px;
        word-break: break-word;
    }
    .slide-subtitle{
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .slide-eyebrow{
        font-size: 10.5px;
        padding: 5px 11px;
        margin-bottom: 12px;
    }
    .hero-nav-frame{
        aspect-ratio: 3 / 4;
    }
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev{
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 576px) {
    .brand-logo { height: 38px; }
    .brand-name { font-size: 0.92rem; }
    .brand-slogan { font-size: 0.52rem; letter-spacing: 0.5px; }
    .brand-wrapper { gap: 9px; }
    .product-image { height: 180px; }
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .realisasi-slide-main-title { font-size: 1.2rem; }
    .realisasi-grid-dynamic {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: 400px 110px !important;
    }
    .realisasi-grid-dynamic .item-main {
        grid-column: 1 / 3 !important;
        grid-row: 1 / 2 !important;
    }
    .realisasi-carousel-wrapper { padding-bottom: 70px; }
    .realisasi-lightbox-close {
        top: 12px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .realisasi-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .realisasi-lightbox-prev { left: 10px; }
    .realisasi-lightbox-next { right: 10px; }
    /* Hero: layar sangat sempit — kecilkan lagi sedikit & rapatkan padding */
    .slide-title{
        font-size: clamp(1.2rem, 7vw, 1.5rem);
    }
    .slide-content{
        padding: 16px 14px 36px;
    }
}

@media (max-width: 400px) {
    .btn-show-more-projects .btn-main-text {
        flex-direction: column;
        gap: 6px;
    }
}

/* ============================================================
   HILANGKAN NAVIGASI FOOTER & SEARCH DI DESKTOP
   ============================================================ */

/* Desktop: Sembunyikan navigasi footer dan search */
@media screen and (min-width: 769px) {
    /* Navigasi footer */
    .footer-bottom-nav,
    .footer-bottom-inner .footer-bottom-nav,
    .footer .footer-bottom-nav,
    .footer-bottom-inner a:not(.footer-copy a):not(.footer-bottom-links a) {
        display: none !important;
    }

    /* Search button */
    .mobile-search-btn,
    .search-trigger,
    .nav-search-btn,
    .search-icon {
        display: none !important;
    }

    /* Jika search berupa input */
    .navbar .search-input,
    .navbar .search-box {
        display: none !important;
    }
}

/* Mobile: Tampilkan navigasi footer */
@media screen and (max-width: 768px) {
    .footer-bottom-nav {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 14px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #E7EFFA;
    }

    .footer-bottom-nav a {
        color: var(--ma-text-muted, #6B85A3);
        text-decoration: none;
        font-size: 0.7rem;
    }

    .footer-bottom-nav a:hover {
        color: var(--ma-ocean-2, #2563EB);
    }
}

/* ============================================================
   Testimoni
   ============================================================ */

.testimonials-section { padding: 70px 0 90px; background: #fafbfc; overflow: hidden; }

    .testi-badge-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
    .testi-badge-row .line { flex: 1; max-width: 220px; height: 1px; background: #e2e8f0; }
    .testi-badge {
        background: #1d4ed8; color: #ffffff; font-size: .78rem; font-weight: 700; /* kontras AA */
        padding: 7px 20px; border-radius: 999px; white-space: nowrap;
    }

    .testi-heading {
        text-align: center; font-size: 2.1rem; font-weight: 800; color: #0f172a;
        margin-bottom: 46px; letter-spacing: -.01em;
    }

    .testi-viewport { position: relative; overflow: hidden; margin: 0 -8px; }
    .testi-viewport::before, .testi-viewport::after {
        content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none;
    }
    .testi-viewport::before { left: 0; background: linear-gradient(90deg, #fafbfc 15%, transparent); }
    .testi-viewport::after  { right: 0; background: linear-gradient(270deg, #fafbfc 15%, transparent); }

    .testi-track {
        display: flex; align-items: flex-start; gap: 24px;
        transition: transform .5s cubic-bezier(.22,.9,.32,1);
        padding: 10px 0 50px;
        will-change: transform;
    }

    .testi-card {
        flex: 0 0 320px; background: #fff; border-radius: 18px;
        box-shadow: 0 10px 30px rgba(15,23,42,.06); border: 1px solid #f1f5f9;
        padding: 32px 26px 46px; text-align: center; position: relative;
        opacity: .35; filter: blur(1px); transform: scale(.93);
        transition: opacity .5s, filter .5s, transform .5s;
    }
    .testi-card.is-active { opacity: 1; filter: blur(0); transform: scale(1); }

    .testi-text {
        color: #334155; font-size: .95rem; line-height: 1.75; margin-bottom: 20px; min-height: 92px;
    }

    .testi-person { display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
    .testi-name { font-weight: 800; color: #3b82f6; font-size: .92rem; }
    .testi-role { color: #94a3b8; font-size: .85rem; }

    .testi-avatar-wrap {
        position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
        width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
        border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15,23,42,.12);
    }
    .testi-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .testi-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
    .testi-arrow {
        width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
        background: #6366f1; color: #fff; font-size: 1rem;
        display: flex; align-items: center; justify-content: center;
        transition: background .2s, transform .15s;
    }
    .testi-arrow:hover:not(:disabled) { background: #4f46e5; }
    .testi-arrow:disabled { opacity: .35; cursor: default; }
    .testi-arrow.pulse { animation: testiPulse .35s ease; }
    @keyframes testiPulse { 0% { transform: scale(1); } 50% { transform: scale(.8); } 100% { transform: scale(1); } }

    @media (max-width: 992px) {
        .testi-card { flex: 0 0 280px; }
        .testi-viewport::before, .testi-viewport::after { width: 40px; }
    }
    @media (max-width: 576px) {
        .testi-heading { font-size: 1.5rem; }
        .testi-card { flex: 0 0 78vw; padding: 26px 20px 42px; }
    }
    .testi-avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 2.1rem;
    }

/* Floating WhatsApp Button */
.floating-whatsapp{
    position: fixed;
    right: 20px;
    bottom: 95px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    z-index: 1200;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.floating-whatsapp:hover{
    color: #ffffff;
    background: #1ebe5b;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}
.floating-whatsapp:focus-visible{
    outline: 3px solid rgba(37,211,102,0.35);
    outline-offset: 3px;
}

@media (max-width: 767px){
    .floating-whatsapp{
        width: 54px;
        height: 54px;
        font-size: 27px;
        right: 14px;
        bottom: 88px;
    }
}

/* Performance guard untuk perangkat touch/mobile:
   kurangi efek hover/animasi berat agar compositing lebih ringan */
@media (hover: none), (pointer: coarse) {
    .project-card:hover,
    .product-card-modern:hover,
    .realisasi-grid-item:hover img,
    .btn-show-more-projects:hover,
    .floating-whatsapp:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }

    .product-card-modern:hover .product-image-modern img {
        transform: none !important;
    }

    /* Overlay hover tidak reliable di touch device (nyangkut kebuka/ketutup).
       Sembunyikan overlay-nya; judul produk sudah tampil di .product-body-modern
       di bawah gambar, jadi tetap informatif tanpa overlay. */
    .product-hover-overlay {
        display: none !important;
    }

    .project-card,
    .product-card-modern,
    .realisasi-grid-item img,
    .btn-show-more-projects,
    .floating-whatsapp {
        transition-duration: 0.12s !important;
    }

    .swiper-slide-active .slide-fg-img {
        animation-duration: 4.5s !important;
    }

    /* Konten card "Layanan Kami" (judul, deskripsi, link) didesain reveal-on-hover
       di desktop. Di touch device hover tidak reliable, jadi tampilkan permanen
       dan kembalikan .project-link ke posisi normal (bukan absolute melayang). */
    .project-card h4,
    .project-card .project-desc,
    .project-card small.text-primary {
        opacity: 1 !important;
        transform: none !important;
    }

    .project-link {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: inline-flex;
        margin-top: 14px;
    }
}

.is-hidden {
    display: none;
}