/* Custom Styles for PERADA GROUP Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&amp;display=swap');

:root {
    --primary: #0A2540;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system_ui, sans-serif;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.nav-scrolled {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Ken Burns Effect for Hero */
.hero-moving-bg {
    animation: kenburns 25s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes kenburns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    50% {
        transform: scale(1.12) translate(-1%, -2%);
    }
    100% {
        transform: scale(1.05) translate(1%, 2%);
    }
}

/* Navbar */
.navbar-inner {
    padding: 0.625rem 1.25rem;
}

@media (min-width: 768px) {
    .navbar-inner {
        padding: 0.75rem 1.5rem;
    }
}

.navbar-menu {
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .navbar-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 1rem;
    }

    .brand-logo-link {
        grid-column: 1;
    }

    .navbar-menu {
        grid-column: 2;
        justify-self: center;
    }

    .navbar-end {
        grid-column: 3;
        justify-self: end;
    }

    .navbar-toggle {
        grid-column: 3;
        justify-self: end;
    }
}

@media (min-width: 1024px) {
    .navbar-menu {
        gap: 1.25rem;
    }
}

.navbar-end {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .navbar-end {
        gap: 1rem;
    }
}

.navbar-cta {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .navbar-cta {
        padding: 0.5rem 1.25rem;
    }
}

.navbar-toggle {
    width: 2.25rem;
    height: 2.25rem;
}

/* Brand & entity logos */
.brand-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.25s ease;
}

.brand-logo-link:hover {
    opacity: 0.85;
}

img.brand-logo {
    height: 2.5rem; /* 40px — mobile */
    width: auto;
    max-width: none;
    aspect-ratio: 849 / 322;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.entity-card-header {
    margin-bottom: 1.25rem;
}

.entity-logo-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0.875rem;
}

img.entity-logo {
    height: 2.5rem; /* 40px — mobile */
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    object-position: left top;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.entity-name {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.entity-name--perkasa {
    color: #2563eb;
}

.entity-name--perdana {
    color: #059669;
}

.entity-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A2540;
    line-height: 1.3;
}

.entity-section-header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    img.entity-logo {
        height: 3rem; /* 48px — desktop */
        max-width: 11rem;
    }

    .entity-title {
        font-size: 1.25rem;
    }
}

.entity-logo-wrap:hover img.entity-logo,
.group:hover img.entity-logo {
    transform: scale(1.04);
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.25s ease;
}

.footer-logo-link:hover {
    opacity: 1;
}

img.footer-logo {
    height: 5rem;
    width: auto;
    max-width: 22rem;
    aspect-ratio: 849 / 322;
    object-fit: contain;
    display: block;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    opacity: 1;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.footer-logo-link:hover .footer-logo {
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}

/* Additional responsive improvements */
@media (max-width: 768px) {
    .hero-moving-bg {
        animation-duration: 20s;
    }

    img.footer-logo {
        height: 4rem;
        max-width: 18rem;
        padding: 0.375rem 0.625rem;
        border-radius: 0.625rem;
    }
}

@media (min-width: 768px) {
    img.brand-logo {
        height: 3rem; /* 48px — desktop */
        max-width: none;
    }

    img.footer-logo {
        height: 6.5rem;
        max-width: 28rem;
        padding: 0.625rem 1rem;
        border-radius: 0.875rem;
    }
}

/* Online toast notification */
.online-toast {
    position: fixed;
    top: 5rem;
    left: 50%;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1.125rem;
    background: #0A2540;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
    transform: translateX(-50%) translateY(-1.5rem);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                visibility 0.35s ease;
    pointer-events: none;
}

.online-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.online-toast i {
    color: #4ade80;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .online-toast {
        top: 4.5rem;
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }
}

/* Sticky CTA bar */
.sticky-cta {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                visibility 0.35s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sticky-cta.is-dismissed {
    display: none;
}

.wa-float {
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s ease;
}

.wa-float.wa-float--raised {
    bottom: 5.5rem;
}

@media (min-width: 640px) {
    .wa-float.wa-float--raised {
        bottom: 5rem;
    }
}

/* Mobile experience */
@media (max-width: 767px) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .navbar-toggle {
        width: 2.75rem;
        height: 2.75rem;
    }

    .mobile-menu-link {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
        font-size: 0.9375rem;
    }

    .mobile-menu-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        font-size: 0.9375rem;
    }

    .client-logo-card {
        min-height: 5.5rem;
    }

    .footer-link {
        display: inline-flex;
        align-items: center;
        min-height: 2.25rem;
        padding-top: 0.125rem;
        padding-bottom: 0.125rem;
    }

    .btn-tap {
        min-height: 3rem;
    }
}

/* Hero Static (subpages) */
.hero-static picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-static {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 580px);
    overflow: hidden;
    color: #fff;
    background-color: #0A2540;
}

.hero-static__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16 / 9;
}

.hero-static .hero-overlay,
.hero-static .hero-slideshow__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(10, 37, 64, 0.93) 0%,
        rgba(10, 37, 64, 0.8) 45%,
        rgba(10, 37, 64, 0.68) 100%
    );
}

.hero-static__content {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    text-align: center;
}

.hero-static__content h1 {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-static__content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgb(255 255 255 / 0.82);
    line-height: 1.6;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-static__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: #0A2540;
    background: #fff;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.hero-static__cta:hover {
    background: #eff6ff;
}

@media (max-width: 768px) {
    .hero-static {
        min-height: min(65vh, 460px);
    }

    .hero-static__content {
        padding: 2.5rem 1.25rem;
    }
}

/* FAQ accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #bfdbfe;
}

.faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgb(10 37 64 / 0.06);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0A2540;
    line-height: 1.45;
    user-select: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__question {
    flex: 1;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .faq-item__question {
        font-size: 1rem;
    }
}

.faq-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgb(10 37 64 / 0.05);
    color: #0A2540;
    transition: background-color 0.2s ease;
}

.faq-item[open] .faq-item__icon {
    background: #eff6ff;
}

.faq-item__chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.25rem 1.125rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.65;
    border-top: 1px solid #f3f4f6;
}

.faq-item__answer p {
    margin: 0;
    padding-top: 1rem;
}

.faq-item__answer strong {
    color: #0A2540;
    font-weight: 600;
}

.faq-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.faq-link:hover {
    color: #0A2540;
}

/* Language switcher */
.lang-switcher--desktop {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .navbar-end .lang-switcher--desktop {
        visibility: visible;
        opacity: 1;
    }
}

.lang-switcher__globe {
    font-size: 1rem;
    color: #0A2540;
    flex-shrink: 0;
}

.lang-switcher--desktop .lang-switcher__panel {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.3125rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(10 37 64 / 0.08);
}

.lang-switcher__panel {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(10 37 64 / 0.04);
}

.lang-switcher__btn {
    min-width: 2.25rem;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
    color: #0A2540;
    background: #fff;
}

.lang-switcher__btn--active {
    color: #fff;
    background: #0A2540;
    box-shadow: 0 1px 3px rgb(10 37 64 / 0.2);
}

.lang-switcher__btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.lang-switcher__sep {
    color: #cbd5e1;
    user-select: none;
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0 0.0625rem;
}

/* Mobile language switcher */
.mobile-menu__lang,
.lang-switcher--mobile {
    display: block;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

#mobile-menu:not(.hidden) .mobile-menu__lang {
    display: block;
}

.lang-switcher__mobile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0 0.125rem;
}

.lang-switcher__mobile-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0A2540;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lang-switcher__panel--mobile {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 0.375rem;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgb(10 37 64 / 0.06);
}

.lang-switcher__panel--mobile .lang-switcher__btn {
    flex: 1 1 0;
    min-height: 3rem;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.lang-switcher__panel--mobile .lang-switcher__sep {
    align-self: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Footer social links */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: rgb(255 255 255 / 0.08);
    color: rgb(255 255 255 / 0.75);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: rgb(255 255 255 / 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.footer-social-link .fa-whatsapp {
    color: #4ade80;
}

/* Legal pages */
.legal-page__content {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-page__updated {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.65);
    margin-top: 0.75rem;
}

.legal-page__section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-page__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-page__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.legal-page__section-body p {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
}

.legal-page__section-body p:last-child {
    margin-bottom: 0;
}

.legal-page__list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.75rem 0 0;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-page__list li + li {
    margin-top: 0.5rem;
}
