@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: 60vh;
    /* 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/kontak-img.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); 
}

.kontak {
    padding: 80px 20px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.kontak-container {
    max-width: 1400px;
    margin: 0 auto;
}

.kontak-header {
    text-align: center;
    margin-bottom: 40px;
}

.kontak-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #0f172a;
}

/* Form */
.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #0f172a;
}

.form-header p {
    color: #64748b;
    margin-top: 10px;
}

.kontak-form {
    padding: 20px;
    border-radius: 16px;
}

.top-form, .bottom-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.kontak-form input,
.kontak-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #b7b9bc;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.kontak-form input:focus,
.kontak-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.kontak-form .send-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: #1e40ff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    background: none;

    text-decoration-line: underline;
    text-decoration-thickness: 2px; /* optional */
    text-underline-offset: 6px;     /* 👈 gap from text */
}

.kontak-form button:hover {
    color: #1e40af;
}

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

.hubungi-header {
    text-align: center;
    margin-bottom: 40px;
}

.hubungi-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hubungi-header p {
    color: #6b7280;
    font-size: 16px;
}

/* BOX */
.kantor-box, .gudang-box {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    margin-bottom: 50px;
    grid-template-columns: 1.5fr 1fr;

    border: 1px solid #d0d2d4; /* prevent jump */
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.kantor-box:hover, .gudang-box:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
}

/* MAP */
.hubungi-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
}

/* INFO */
.hubungi-info {
    padding: 40px;
}

.hubungi-info h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 22px;
}

.info-item .label {
    display: block;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 6px;
}

.info-item p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.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 from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* Slide from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

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

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

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .kantor-box, .gudang-box {
        grid-template-columns: 1fr; /* Stack map and info on tablet */
        margin: 0 20px 40px 20px;
    }

    .hubungi-map iframe {
        min-height: 350px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* 1. Hero Adjustments */
    .hero {
        height: 40vh; /* Shorter hero on mobile */
    }

    /* 2. Form Layout Fix */
    .top-form, .bottom-form {
        grid-template-columns: 1fr; /* Stack inputs vertically */
        gap: 0; /* Let form-group handle the margin */
    }

    .form-header h1 {
        font-size: 28px;
    }

    .kontak-container {
        padding: 0 10px;
    }

    /* 3. Office & Warehouse Info */
    .hubungi {
        padding: 60px 20px;
    }

    .hubungi-header h2 {
        font-size: 28px;
    }

    .hubungi-info {
        padding: 25px;
    }

    .hubungi-info h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* 4. Footer Responsiveness */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .socials {
        justify-content: center;
    }

    /* Reset animations slightly for mobile so they don't hide content too long */
    .reveal-left, .reveal-right {
        transform: translateY(20px); /* Slide up instead of sideways on mobile */
    }
}

/* Small Phone (max-width: 480px) */
@media (max-width: 480px) {
    .kontak-form {
        padding: 10px;
    }

    .kontak-form .send-btn {
        font-size: 16px;
    }
}