/* === CSS Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === Custom Properties === */
:root {
    /* Navy blue from logo */
    --navy-900: #0D1740;
    --navy-700: #1B2A6B;
    --navy-600: #243380;
    --navy-500: #2D3F99;
    --navy-100: #E8EAF6;

    /* Red from logo */
    --red-900: #7A1518;
    --red-700: #A01D21;
    --red-600: #C62828;
    --red-500: #D32F2F;
    --red-100: #FFEBEE;

    /* Accent - derived from logo blend */
    --accent-500: #4A5CC7;
    --accent-400: #6272D9;
    --accent-300: #8B9AE8;
    --accent-100: #E8EAF6;

    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 300ms ease;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-gold {
    background: var(--red-600);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--red-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy-700);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* === Section Titles === */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red-600);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}
.section-title-light {
    color: var(--white);
}
.section-title-light::after {
    background: var(--red-500);
}

/* === Sections === */
.section {
    padding: 5rem 0;
}
.section-light {
    background: var(--gray-50);
}
.section-cream {
    background: var(--accent-100);
}
.section-dark {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: var(--white);
}

/* === Grid === */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-3 {
    grid-template-columns: 1fr;
}
.grid-4 {
    grid-template-columns: 1fr;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: var(--navy-700);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo-img {
    height: 40px;
    width: auto;
}

.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
}
.navbar-menu.active {
    display: flex;
    right: 0;
}

.navbar-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 0;
    transition: var(--transition);
    display: block;
    font-size: 1.1rem;
}
.navbar-link:hover,
.navbar-link.active {
    color: var(--red-500);
}

.navbar-cta {
    display: none;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(198, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 40, 40, 0.08) 0%, transparent 50%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 2px solid rgba(198, 40, 40, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    color: var(--red-500);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}
.hero-badge i {
    color: var(--red-500);
}

/* Hero OJK Logo */
.hero-ojk {
    margin: 2rem auto 2.5rem;
    text-align: center;
}
.hero-ojk a {
    display: inline-block;
    transition: var(--transition);
}
.hero-ojk a:hover {
    transform: scale(1.05);
}
.hero-ojk img {
    height: 80px;
    width: auto;
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}
.hero-ojk-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* === Keunggulan Cards === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--navy-700);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* === Service Cards === */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card-top {
    height: 5px;
    background: linear-gradient(90deg, var(--red-700), var(--red-500));
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
}

.service-card-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
    text-align: center;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.service-card-list {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-card-list li {
    padding: 0.375rem 0;
    color: var(--gray-800);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-card-list li i {
    color: var(--red-600);
    font-size: 0.75rem;
}

.service-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--navy-100);
    color: var(--navy-700);
    font-weight: 600;
    transition: var(--transition);
}
.service-card-cta:hover {
    background: var(--navy-700);
    color: var(--white);
}

/* === Steps (Cara Kerja) === */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red-600);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--red-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--red-500);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 250px;
    margin: 0 auto;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-800);
    line-height: 1.8;
}

.ojk-badge {
    background: var(--white);
    border: 2px solid var(--navy-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ojk-badge-header {
    background: var(--navy-700);
    color: var(--white);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.ojk-badge-body {
    padding: 1.25rem;
    text-align: center;
}

.ojk-license {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 0.25rem;
}

.ojk-date {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.about-address {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.about-address h4 {
    color: var(--navy-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-address p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* === Testimonials === */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--red-500);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    gap: 0.125rem;
}

.testimonial-quote {
    color: var(--accent-300);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.testimonial-text {
    color: var(--gray-800);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.9375rem;
}
.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.8125rem;
}

/* === CTA Section === */
.section-cta {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(198, 40, 40, 0.15);
    border-radius: 50%;
}
.section-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(198, 40, 40, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phone {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}
.cta-phone a {
    color: var(--red-500);
    font-weight: 600;
}
.cta-phone a:hover {
    text-decoration: underline;
}

/* === Footer === */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 36px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav a {
    display: block;
    padding: 0.375rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}
.footer-nav a:hover {
    color: var(--red-500);
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    align-items: flex-start;
}
.footer-contact li i {
    color: var(--red-500);
    margin-top: 0.25rem;
    min-width: 16px;
}
.footer-contact a {
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--red-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
}
.footer-bottom p + p {
    margin-top: 0.25rem;
}

/* === Floating WhatsApp === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: var(--white);
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.whatsapp-float i {
    font-size: 1.5rem;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* === Scroll Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile menu overlay === */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.nav-overlay.active {
    display: block;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        gap: 0.25rem;
    }

    .navbar-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9375rem;
    }

    .navbar-cta {
        display: inline-flex;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 0;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 380px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    .whatsapp-float-label {
        display: none;
    }
}
