@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    width: 46px;
    height: 46px;
    background: #1e40ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0f2edc;
}

/* Hero Section */
.hero {
    height: 70vh;
    /* This adds a subtle white tint and a blue fade at the bottom */
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0.6) 100%, rgba(255,255,255,0) 50%, rgba(0, 86, 179, 0.6) 100%),
        url('../images/layanan-image.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #1a1a1a;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 50%,
        #ffffff 100%
    );
    pointer-events: none;
}

/* Optional overlay if your image is too bright for text */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2); 
}

/* Layanan Section */
.layanan {
    min-height: 100vh;
    padding: 20px 20px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Container */
.layanan .layanan-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.layanan .layanan-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-align: center;
}

.layanan .layanan-header p {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 50px;
    line-height: 1.6;
    text-align: center;
}

/* Header */
.layanan-container .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 120px;
}

.layanan-container .section-header .section-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #1e40ff;
    white-space: nowrap;
}

.layanan-container .section-header .section-line {
    flex: 1;
    height: 2px;
    background-color: #1e40ff;
}

/* Layanan Item (Column) */
.layanan .layanan-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
    margin-bottom: 30px; /* Spasi antar layanan */
    border: 1px solid #e5e7eb;
}

/* Hover effect */
.layanan .layanan-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Title of each service */
.layanan .layanan-item h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Description text */
.layanan .layanan-item p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
}

.fasilitas {
    background: #fff;
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

.fasilitas-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
}

/* Header */
.fasilitas-container .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.fasilitas-container .section-header .section-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #1e40ff;
    white-space: nowrap;
}

.fasilitas-container .section-header .section-line {
    flex: 1;
    height: 2px;
    background-color: #1e40ff;
}

/* Grid */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.fasilitas-card {
    padding: 40px 30px;
    border: 1px solid transparent; /* penting */
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.fasilitas-card:hover {
    border-color: #0f2edc;
    box-shadow: 0 10px 30px rgba(15, 46, 220, 0.15);
    transform: translateY(-4px);
}

.icon-wrap {
    height: 50px;               /* semua icon punya area sama */
    display: flex;
    align-items: center;
    justify-content: center; /* kiri, bisa ganti center */
    margin-bottom: 40px;
    gap: 10px;
}

.fasilitas-card img {
    width: 80px;
    height: auto;
}

.fasilitas-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.fasilitas-card h3 span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
}

.fasilitas-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: auto;
}

.cta-fastcargo {
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

.cta-fastcargo .container {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* Image */
.cta-image img {
    width: 500px;
    border-radius: 12px;
    object-fit: cover;
}

/* Content */
.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Button */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #1e40ff;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #0f2edc;
    transform: translateY(-2px);
}

.footer {
  background: #ffffff;
  padding: 60px 40px 20px 40px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 80px;
}

.logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-col .logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.footer-col h4 {
  color: #0057ff;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
}

.footer-col p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

/* LOGO */
.logo {
  width: 180px;
}

.socials {
    display: flex;
    gap: 14px;
}

.socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1e40ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socials a:hover {
    background: #0f2edc;
    transform: translateY(-3px);
}

.bottom {
    margin-top: 40px;
    padding-top: 20px;          /* jarak dari garis */
    text-align: center;
    font-size: 14px;
    color: #888;
    border-top: 1px solid #e5e5e5;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Slide left & right */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.9s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s ease;
}

.reveal-left.show,
.reveal-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Footer */
.footer {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE STYLES (Add to bottom of layanan.css)
   ================================================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    /* Layanan Section */
    .layanan .layanan-container {
        padding: 0 30px;
    }

    /* Facilities Grid: 3 columns for tablet */
    .fasilitas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .fasilitas-card {
        border-right: 1px solid #e5e7eb; /* Keep borders for grid look */
    }

    /* CTA Section */
    .cta-wrapper {
        gap: 30px;
    }
    
    .cta-image img {
        width: 100%; /* Scale image to fit half screen */
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .logo img {
        height: auto;
    }

    /* 2. Hero Section */
    .hero {
        height: 50vh;
    }

    /* 3. Layanan Items */
    .layanan .layanan-header h1 {
        font-size: 28px;
    }

    .layanan-container .section-header {
        margin-top: 60px; /* Reduced space */
    }

    .layanan .layanan-item {
        padding: 25px 20px;
        text-align: justify; /* Better readability on small screens */
    }

    /* 4. Fasilitas Grid (Single Column) */
    .fasilitas {
        padding: 40px 0;
    }

    .fasilitas-container {
        padding: 0 20px;
    }

    .fasilitas-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }

    .fasilitas-card {
        padding: 30px 20px;
        border: 1px solid #e5e7eb; /* Full border for vertical list */
    }

    .icon-wrap {
        margin-bottom: 20px;
    }

    /* 5. CTA Section (Stacking) */
    .cta-fastcargo {
        padding: 60px 0;
    }

    .cta-wrapper {
        grid-template-columns: 1fr; /* Stack image and text */
        text-align: center;
    }

    .cta-image img {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        margin: 0 auto 25px auto;
    }

    /* 6. Footer (Stacked) */
    .footer {
        padding: 40px 20px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .logo-col {
        grid-column: span 1;
        align-items: center;
    }

    .socials {
        justify-content: center;
    }
}