/**
 * Amir Putra Service - Landing Page
 * Custom CSS on top of Bootstrap 5
 * Theme: Automotive - dark blue, black, red accent
 * Mobile-first, performant
 */

:root {
    --aps-blue: #0a1628;
    --aps-blue-dark: #061020;
    --aps-blue-mid: #0d2137;
    --aps-black: #0d0d0d;
    --aps-red: #c41e3a;
    --aps-red-hover: #a01830;
    --aps-red-soft: rgba(196, 30, 58, 0.12);
    --aps-gray-100: #f0f2f5;
    --aps-gray-200: #e4e7eb;
    --aps-gray-500: #6b7280;
    --aps-gray-700: #374151;
    --aps-white: #ffffff;
    --aps-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --aps-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --aps-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --aps-radius: 12px;
    --aps-radius-lg: 16px;
    --aps-transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--aps-font);
    color: var(--aps-gray-700);
    background-color: var(--aps-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Header / Navbar (sticky) ---- */
.aps-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, var(--aps-blue) 0%, var(--aps-blue-dark) 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: background var(--aps-transition), box-shadow var(--aps-transition);
}

.aps-header.scrolled {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(8px);
}

.navbar.aps-header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.aps-brand {
    color: var(--aps-white);
}

.aps-brand-accent {
    color: var(--aps-red);
}

.navbar.aps-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: color var(--aps-transition), background var(--aps-transition);
}

.navbar.aps-header .nav-link:hover {
    color: var(--aps-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.aps-cta-nav {
    background: var(--aps-red) !important;
    color: var(--aps-white) !important;
    padding: 0.5rem 1rem !important;
}

.aps-cta-nav:hover {
    background: var(--aps-red-hover) !important;
    color: var(--aps-white) !important;
}

.aps-toggler {
    color: var(--aps-white);
}

.aps-toggler:focus {
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.4);
}

/* ---- Hero ---- */
.aps-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--aps-blue) 0%, var(--aps-blue-mid) 50%, var(--aps-blue-dark) 100%);
    color: var(--aps-white);
    overflow: hidden;
}

.aps-hero-bg {
    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");
    opacity: 0.6;
}

.aps-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--aps-white);
}

.aps-hero-lead {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1rem;
    max-width: 560px;
}

.aps-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.aps-hero-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
}

.aps-hero-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aps-red);
}

.aps-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.aps-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--aps-white);
}

.aps-hero-badges-top {
    margin-bottom: 1rem;
}

.aps-hero-badges-top .aps-badge {
    margin-right: 0.5rem;
}

.aps-hero-cta .btn {
    display: inline-flex;
    align-items: center;
}

.aps-hero-visual {
    width: 100%;
    max-width: 380px;
    height: 280px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(196, 30, 58, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--aps-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.min-vh-75 {
    min-height: 75vh;
}

@media (min-width: 992px) {
    .aps-hero {
        min-height: 90vh;
    }
}

/* ---- Buttons ---- */
.btn-aps {
    background: var(--aps-red);
    color: var(--aps-white) !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    transition: background var(--aps-transition), transform 0.2s ease;
}

.btn-aps:hover {
    background: var(--aps-red-hover);
    color: var(--aps-white) !important;
    transform: translateY(-1px);
}

.btn-aps-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* ---- Sections ---- */
.aps-section {
    padding: 4rem 0;
}

.aps-section-alt {
    background-color: var(--aps-gray-100);
}

.aps-section-header {
    margin-bottom: 2.5rem;
}

.aps-h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--aps-blue-dark);
    margin-bottom: 0.5rem;
}

.aps-h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--aps-blue-dark);
    margin-bottom: 0.5rem;
}

.aps-lead {
    color: var(--aps-gray-500);
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Cards (Layanan) ---- */
.aps-card {
    background: var(--aps-white);
    border-radius: var(--aps-radius);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--aps-gray-200);
    transition: box-shadow var(--aps-transition), border-color var(--aps-transition), transform var(--aps-transition);
}

.aps-card:hover {
    box-shadow: var(--aps-shadow-lg);
    border-color: var(--aps-red);
    transform: translateY(-4px);
}

.aps-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--aps-red-soft);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}

.aps-icon-dinamo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z'/%3E%3C/svg%3E"); }
.aps-icon-radiator { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M20 14v-2h-2v2h-2v2h2v2h2v-2h2v-2h-2zm0-10V2h-2v2h-2v2h2v2h2V6h2V4h-2zM4 14v-2H2v2H0v2h2v2h2v-2h2v-2H4zm0-10V2H2v2H0v2h2v2h2V6h2V4H4z'/%3E%3C/svg%3E"); }
.aps-icon-flush  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E"); }
.aps-icon-coolant { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-5.33 4.55-8 8.48-8 11.8 0 4.98 3.8 8.2 8 8.2s8-3.22 8-8.2c0-3.32-2.67-7.25-8-11.8z'/%3E%3C/svg%3E"); }
.aps-icon-las { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M3.27 3L2 4.27l5 5V13h3.5L14 8.27 19.73 14 21 12.73 3.27 3zM13 10h-2v4.18l2 2V10zM9 18v-2h2v1.73l-2-2V18zm4 0v-.73l2 2V18h-2z'/%3E%3C/svg%3E"); }
.aps-icon-overheat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c41e3a' viewBox='0 0 24 24'%3E%3Cpath d='M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-8c0-.55.45-1 1-1s1 .45 1 1h-2zm0 6V9h2v2h-2z'/%3E%3C/svg%3E"); }

.aps-card-text {
    color: var(--aps-gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---- Layanan by masalah (problem → solution) ---- */
.aps-layanan-block {
    background: var(--aps-white);
    border: 1px solid var(--aps-gray-200);
    border-radius: var(--aps-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color var(--aps-transition), box-shadow var(--aps-transition);
}

.aps-layanan-block:hover {
    border-color: var(--aps-red);
    box-shadow: var(--aps-shadow);
}

.aps-layanan-block .aps-h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.aps-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--aps-gray-500);
}

.aps-bullet-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.aps-bullet-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--aps-red);
}

/* ---- CTA strip tengah ---- */
.aps-cta-strip {
    background: var(--aps-blue);
    color: var(--aps-white);
}

.aps-cta-strip-lead {
    font-size: 1.05rem;
    opacity: 0.95;
}

.aps-cta-strip .btn-aps {
    background: var(--aps-white);
    color: var(--aps-blue) !important;
}

.aps-cta-strip .btn-aps:hover {
    background: var(--aps-gray-100);
    color: var(--aps-blue-dark) !important;
}

/* ---- Trust list ---- */
.aps-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.aps-trust-list li {
    background: var(--aps-white);
    border: 1px solid var(--aps-gray-200);
    border-radius: var(--aps-radius);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--aps-gray-700);
}

.aps-trust-list li strong {
    color: var(--aps-blue-dark);
}

/* ---- Keunggulan ---- */
.aps-advantage {
    background: var(--aps-white);
    padding: 1.5rem;
    border-radius: var(--aps-radius);
    border: 1px solid var(--aps-gray-200);
    height: 100%;
    transition: border-color var(--aps-transition), box-shadow var(--aps-transition);
}

.aps-advantage:hover {
    border-color: var(--aps-blue-mid);
    box-shadow: var(--aps-shadow);
}

.aps-advantage-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--aps-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.aps-advantage p {
    font-size: 0.95rem;
    color: var(--aps-gray-500);
    margin-bottom: 0;
}

/* ---- Galeri ---- */
.aps-gallery-item {
    border-radius: var(--aps-radius);
    overflow: hidden;
    box-shadow: var(--aps-shadow);
    aspect-ratio: 4/3;
    background: var(--aps-gray-200);
}

.aps-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.aps-gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Testimoni ---- */
.aps-testimonial {
    background: var(--aps-white);
    padding: 1.5rem;
    border-radius: var(--aps-radius);
    border-left: 4px solid var(--aps-red);
    box-shadow: var(--aps-shadow);
    height: 100%;
    margin: 0;
}

.aps-testimonial-text {
    font-style: italic;
    color: var(--aps-gray-700);
    margin-bottom: 1rem;
}

.aps-testimonial-author {
    font-size: 0.9rem;
    color: var(--aps-gray-500);
}

/* ---- FAQ Accordion ---- */
.aps-accordion .accordion-item {
    border: 1px solid var(--aps-gray-200);
    border-radius: var(--aps-radius) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.aps-accordion .accordion-button {
    font-weight: 600;
    color: var(--aps-blue-dark);
    background: var(--aps-white);
}

.aps-accordion .accordion-button:not(.collapsed) {
    background: var(--aps-red-soft);
    color: var(--aps-red);
    box-shadow: none;
}

.aps-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.aps-accordion .accordion-body {
    color: var(--aps-gray-500);
    padding-top: 0;
}

/* ---- Area Layanan ---- */
.aps-area-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--aps-white);
    border-radius: var(--aps-radius);
    border: 1px solid var(--aps-gray-200);
}

.aps-area-list p + p {
    margin-top: 0.75rem;
}

/* ---- Kontak & Map ---- */
.aps-contact-card {
    background: var(--aps-blue);
    color: var(--aps-white);
    padding: 1.75rem;
    border-radius: var(--aps-radius-lg);
    height: 100%;
}

.aps-contact-card .aps-h3 {
    color: var(--aps-white);
    margin-bottom: 1rem;
}

.aps-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.aps-contact-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.aps-contact-list a {
    color: #93c5fd;
    text-decoration: none;
}

.aps-contact-list a:hover {
    text-decoration: underline;
}

.aps-map-wrap {
    border-radius: var(--aps-radius-lg);
    overflow: hidden;
    box-shadow: var(--aps-shadow);
    background: var(--aps-gray-100);
}

.aps-map-wrap iframe {
    display: block;
}

.aps-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 2rem;
    text-decoration: none;
    color: var(--aps-blue);
    font-weight: 600;
    transition: background var(--aps-transition), color var(--aps-transition);
}

.aps-map-link:hover {
    background: var(--aps-gray-200);
    color: var(--aps-red);
}

.aps-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.aps-map-icon {
    font-size: 2.5rem;
}

/* ---- Footer ---- */
.aps-footer {
    background: var(--aps-blue-dark);
    color: rgba(255, 255, 255, 0.85);
}

.aps-footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aps-white);
    margin-bottom: 0.75rem;
}

.aps-footer-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 320px;
}

.aps-footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aps-white);
    margin-bottom: 1rem;
}

.aps-footer-list,
.aps-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.aps-footer-list li,
.aps-footer-links li {
    margin-bottom: 0.5rem;
}

.aps-footer-list a,
.aps-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.aps-footer-list a:hover,
.aps-footer-links a:hover {
    color: var(--aps-red);
}

.aps-footer-cta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aps-footer-cta .btn-aps {
    background: var(--aps-red);
}

.aps-footer-cta .btn-aps:hover {
    background: var(--aps-red-hover);
}

.aps-footer-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.aps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Floating WhatsApp ---- */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform var(--aps-transition), box-shadow var(--aps-transition);
}

.wa-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
    flex-shrink: 0;
}

.wa-float-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    .wa-float {
        width: auto;
        height: auto;
        padding: 0.75rem 1.25rem;
        border-radius: 50px;
    }

    .wa-float-text {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding-left: 0.5rem;
        clip: auto;
        font-weight: 600;
        font-size: 0.95rem;
    }
}

/* ---- Animations (initial state for JS) ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.aps-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .aps-gallery-item:hover img {
        transform: none;
    }

    .aps-card:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
