/* PMT Homepage — hero slider */
.hero-1.hero-1--slider {
    --pmt-header-offset: 110px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-1.hero-1--slider::before {
    display: none;
}

.hero-1 .hero-banner-slider,
.hero-1 .hero-banner-slider .swiper-wrapper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 620px;
}

.hero-1 .hero-banner-slider .swiper-slide {
    height: 100% !important;
}

.hero-1 .hero-slide {
    position: relative;
    height: 100%;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--pmt-header-offset) 0 clamp(120px, 18vh, 220px);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-1 .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-1 .hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0d266c;
}

.hero-1 .hero-video img.hero-video__media,
.hero-1 .hero-video video.hero-video__media {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-1 .hero-slide > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
}

.hero-1 .hero-content {
    max-width: 920px;
}

.hero-1 .hero-content h5 {
    margin-bottom: 18px;
}

.hero-1 .hero-content h1 {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(36px, 4.8vw, 72px);
    line-height: 1.08;
    padding-bottom: 36px;
    margin-bottom: 36px;
}

.hero-1 .hero-banner-prev,
.hero-1 .hero-banner-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    z-index: 5;
    transition: background 0.2s ease;
}

.hero-1 .hero-banner-prev::after,
.hero-1 .hero-banner-next::after {
    font-size: 18px;
    font-weight: 700;
}

.hero-1 .hero-banner-prev:hover,
.hero-1 .hero-banner-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-1 .hero-banner-prev {
    left: 24px;
}

.hero-1 .hero-banner-next {
    right: 24px;
}

@media (max-width: 1199px) {
    .hero-1.hero-1--slider {
        --pmt-header-offset: 100px;
    }

    .hero-1 .hero-banner-slider,
    .hero-1 .hero-banner-slider .swiper-wrapper,
    .hero-1 .hero-slide {
        min-height: 580px;
    }

    .hero-1 .hero-slide {
        padding-bottom: clamp(100px, 14vh, 180px);
    }
}

@media (max-width: 767px) {
    .hero-1.hero-1--slider {
        --pmt-header-offset: 92px;
    }

    .hero-1 .hero-banner-slider,
    .hero-1 .hero-banner-slider .swiper-wrapper,
    .hero-1 .hero-slide {
        min-height: 540px;
    }

    .hero-1 .hero-slide {
        padding-bottom: clamp(88px, 12vh, 140px);
    }

    .hero-1 .hero-content {
        text-align: center;
    }

    .hero-1 .hero-content h1 {
        font-size: clamp(30px, 8vw, 44px);
        padding-bottom: 28px;
        margin-bottom: 28px;
    }
}

/* PMT Homepage layout fixes — constrain media aspect ratios */

/* Homepage paragraph text — rata kanan kiri */
.pmt-home p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
}

.pmt-home .counter-box p,
.pmt-home .counter-text p,
.pmt-home .red-box p,
.pmt-home .team-content p,
.pmt-home .hero-content p,
.pmt-home .news-card-items .content p {
    text-align: inherit;
}

/* Request Quote — counter label beside the + sign */
.pmt-home .feature-quate-content .counter-text.pmt-counter-inline {
    display: flex;
    align-items: flex-end;
    gap: 12px 20px;
    flex-wrap: nowrap;
}

.pmt-home .feature-quate-content .counter-text.pmt-counter-inline h2 {
    margin: 0;
    flex: 0 0 auto;
    line-height: 0.9;
}

.pmt-home .feature-quate-content .counter-text.pmt-counter-inline p {
    margin: 0;
    margin-left: 0 !important;
    flex: 0 1 auto;
    max-width: 11rem;
    line-height: 1.35;
    padding-bottom: 0.55em;
    text-align: left;
}

@media (max-width: 767px) {
    .pmt-home .feature-quate-content .counter-text.pmt-counter-inline {
        flex-wrap: wrap;
        align-items: baseline;
    }

    .pmt-home .feature-quate-content .counter-text.pmt-counter-inline p {
        padding-bottom: 0;
        max-width: none;
    }
}

/* About — restore template symmetry (image offset + counter bleed) */
.about-wrapper > .row {
    align-items: center;
}

.about-section .about-wrapper,
.about-wrapper > .row > [class*="col-"] {
    overflow: visible;
}

.about-wrapper .about-image {
    max-width: 521px;
    margin-left: 120px;
    margin-right: auto;
    position: relative;
    overflow: visible;
    aspect-ratio: unset;
    max-height: none;
    border-radius: 0;
}

.about-wrapper .about-image img,
.about-wrapper .about-image video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 640px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.about-wrapper .about-image .counter-box {
    left: -65px;
    right: auto;
    bottom: 40px;
    min-width: 188px;
    max-width: none;
    padding: 40px;
    border-radius: 0;
    box-sizing: border-box;
}

.about-wrapper .about-image .counter-box h2 {
    font-size: clamp(72px, 8vw, 100px);
    line-height: 1;
    margin-bottom: 8px;
}

.about-wrapper .about-image .counter-box h2 sup {
    font-size: 0.6em;
    font-weight: 300;
}

.about-wrapper .about-image .counter-box p {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.45;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 1199px) {
    .about-wrapper .about-image {
        margin-left: 0;
        max-width: 100%;
    }

    .about-wrapper .about-image .counter-box {
        left: 0;
        bottom: 40px;
    }
}

@media (max-width: 767px) {
    .about-wrapper .about-image .counter-box {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        border-radius: 8px;
    }

    .about-wrapper .about-image {
        overflow: visible;
        max-height: none;
    }

    .about-wrapper .about-image .counter-box p {
        max-width: none;
    }
}

/* CEO quote — match template: both circles 190px, overlap -50px */
.client-info-wrapper .client-info-image .pmt-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    flex-shrink: 0;
}

.client-info-wrapper .client-info-image .pmt-image img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.client-info-wrapper .client-info-image .client-image {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: -50px;
}

.client-info-wrapper .client-info-image .client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.client-info-wrapper .content h5.pmt-author-meta,
.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info h5.pmt-author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
    margin: 0;
}

.client-info-wrapper .content h5.pmt-author-meta {
    position: relative;
    padding-left: 64px;
    margin-top: 12px;
}

.client-info-wrapper .content h5.pmt-author-meta::before {
    display: block;
    position: absolute;
    left: 0;
    top: 12px;
    width: 50px;
    height: 2px;
    background-color: var(--text);
    content: "";
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info h5.pmt-author-meta::before {
    display: none;
}

.pmt-author-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--header);
    line-height: 1.3;
}

.pmt-author-role {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
}

.client-info-wrapper .content h4 {
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.45;
    font-weight: 600;
}

/* Services accordion — full image when open, no extra gap when closed */
.pmt-home .service-box-items .accordion-single .service-image {
    transition: none !important;
}

.pmt-home .service-box-items .accordion-single .right-content p {
    transition: opacity 0.15s ease;
}

.pmt-home .service-box-items .accordion-single:not(.active) .service-image {
    height: 0;
    max-height: 0;
    margin-bottom: 0 !important;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border-radius: 0;
}

.pmt-home .service-box-items .accordion-single.active .service-image {
    height: auto;
    max-height: none;
    margin-bottom: 0;
    padding: 0 30px 30px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    border-radius: 7px;
}

.pmt-home .service-box-items .accordion-single .service-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 7px;
}

/* Keep accordion closed-by-default on tablet too (override template max-xxl rules) */
@media (max-width: 1399px) {
    .pmt-home .service-box-items .accordion-single:not(.active) .right-content p {
        margin-bottom: -180px;
        opacity: 0;
        visibility: hidden;
    }

    .pmt-home .service-box-items .accordion-single:not(.active) .right-content .arrow-icon {
        background-color: var(--white);
        color: var(--text);
    }

    .pmt-home .service-box-items .accordion-single.active .right-content p {
        margin-bottom: 0;
        opacity: 1;
        visibility: visible;
    }

    .pmt-home .service-box-items .accordion-single.active .right-content .arrow-icon {
        background-color: #13B5EA;
        color: var(--white);
    }
}

.service-box-items .accordion-single {
    margin-bottom: 16px;
}

.service-box-items .accordion-single .header-area {
    padding-bottom: 0;
}

/* Choose us — layout from main.css; video only needs explicit aspect + cover */
.pmt-home .choose-us-wrapper .choose-us-content .choose-us-image video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.pmt-home .choose-us-wrapper .choose-us-content .choose-us-image .red-box .client-image img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Feature section 2 */
.feature-wrapper-2 .feature-image {
    aspect-ratio: 4 / 3;
    max-height: 420px;
    overflow: hidden;
    border-radius: 8px;
}

.feature-wrapper-2 .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brand title banner — light grid (cta-bg-2) */
.pmt-home .pmt-brand-title-banner.cta-bg-section {
    min-height: 0;
    background-position: center center !important;
    background-size: cover !important;
}

.pmt-home .pmt-brand-title-banner.cta-bg-section::before {
    display: none;
}

.pmt-home .pmt-brand-title-banner .cta-bg-wrapper.style-2 {
    padding: 48px 0 36px;
}

.pmt-home .pmt-brand-title-banner .cta-bg-wrapper h2.style-2 {
    font-size: clamp(2rem, 4.5vw, 4.25rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--header2, #0f313a);
    max-width: min(1100px, 92%);
    margin: 0 auto;
}

@media (max-width: 767px) {
    .pmt-home .pmt-brand-title-banner .cta-bg-wrapper.style-2 {
        padding: 36px 0 28px;
    }

    .pmt-home .pmt-brand-title-banner .cta-bg-wrapper h2.style-2 {
        font-size: clamp(1.65rem, 7vw, 2.5rem);
    }
}

/* Brand logos — style-3 strip on homepage */
.pmt-home .brand-section .brand-wrapper.style-2.style-3 {
    padding: 0;
}

.pmt-home .brand-section .brand-slider-2 {
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.pmt-home .brand-section .brand-slider-2 .swiper-wrapper {
    align-items: stretch;
}

.pmt-home .brand-section .brand-slider-2 .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.pmt-home .brand-section .brand-wrapper.style-3 .brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    line-height: normal;
    overflow: hidden;
    box-sizing: border-box;
    padding: 24px 28px;
}

.pmt-home .brand-section .brand-wrapper.style-3 .brand-image img {
    max-height: 120px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 767px) {
    .pmt-home .brand-section .brand-wrapper.style-3 .brand-image {
        height: 150px;
        padding: 18px 20px;
    }

    .pmt-home .brand-section .brand-wrapper.style-3 .brand-image img {
        max-height: 90px;
        max-width: 170px;
    }
}

.pmt-home .brand-section .brand-wrapper.style-3 .brand-image:hover {
    background-color: rgba(15, 49, 58, 0.05);
}

.pmt-home .brand-section .brand-wrapper.style-3 .brand-image:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Legacy brand-slider (if used elsewhere on home) */
.pmt-home .brand-section .brand-slider {
    overflow: hidden;
    padding: 0 12px;
}

.pmt-home .brand-section .brand-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmt-home .brand-section .brand-wrapper:not(.style-3) .brand-image {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

.pmt-home .brand-section .brand-wrapper:not(.style-3) .brand-image img {
    max-height: 56px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Team */
.team-card-item .team-image {
    aspect-ratio: 4 / 5;
    max-height: 380px;
    overflow: hidden;
    border-radius: 8px;
}

.team-card-item .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testimonials — follow template carousel layout */
.testimonial-section {
    overflow: visible;
}

.testimonial-wrapper {
    margin-left: -18%;
    margin-right: -18%;
    padding: 0;
}

@media (max-width: 1199px) {
    .testimonial-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
}

.testimonial-wrapper .swiper {
    overflow: initial !important;
}

.testimonial-wrapper .swiper-slide {
    height: auto;
}

.testimonial-wrapper .testimonial-box-item {
    width: 100%;
    margin-top: 30px;
    padding: 40px 70px;
}

@media (max-width: 991px) {
    .testimonial-wrapper .testimonial-box-item {
        padding: 40px 50px;
    }
}

@media (max-width: 767px) {
    .testimonial-wrapper .testimonial-box-item {
        padding: 40px 40px;
    }
}

@media (max-width: 575px) {
    .testimonial-wrapper .testimonial-box-item {
        padding: 40px 30px;
    }
}

.testimonial-wrapper .testimonial-box-item .content > p {
    margin-bottom: 0;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.55;
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item {
    margin-top: 50px;
    gap: 16px;
    align-items: center;
}

@media (max-width: 767px) {
    .testimonial-wrapper .testimonial-box-item .content .client-info-item {
        margin-top: 30px;
    }
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info {
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 40px;
}

@media (max-width: 1199px) {
    .testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info {
        gap: 16px;
    }
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info .client-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info .client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .client-info h5.pmt-author-meta {
    flex: 1;
    min-width: 0;
}

.testimonial-wrapper .testimonial-box-item .content .client-info-item .icon {
    flex-shrink: 0;
    font-size: 48px;
    line-height: 1;
    margin-left: 8px;
}

@media (max-width: 767px) {
    .testimonial-wrapper .testimonial-box-item .content .client-info-item .icon {
        font-size: 40px;
    }
}

/* News */
.news-wrapper .news-card-item .news-image {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    height: 190px;
    overflow: hidden;
    border-radius: 6px;
}

.news-wrapper .news-card-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1199px) {
    .news-wrapper .news-card-item .news-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: 220px;
    }
}

/* CTA background */
.cta-bg-section {
    min-height: 280px;
    background-position: center center !important;
    background-size: cover !important;
}

/* Consultation form textarea */
.feature-contact-box .form-clt textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 1px solid rgba(13, 38, 108, 0.12);
    border-radius: 6px;
    resize: vertical;
}

/* Header logo: white over hero, dark when scrolled or no hero banner */
.header-1 .header-left .logo a.header-logo-2 {
    display: none;
}

.header-1.pmt-header--solid .header-left .logo a.header-logo,
.sticky.header-1 .header-left .logo a.header-logo {
    display: none;
}

.header-1.pmt-header--solid .header-left .logo a.header-logo-2,
.sticky.header-1 .header-left .logo a.header-logo-2 {
    display: inline-flex;
    align-items: center;
}
