/*
Theme Name: Pelaak
Theme URI: https://pelaak.online
Author: Pelaak Online
Description: Custom WordPress theme for Pelaak Online
Version: 1.0.0
Text Domain: pelaak
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    background: #f7f8f6;
    color: #17251f;
}

a {
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

.pelaak-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* Header */

.site-header {
    position: relative;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #ecefed;
}

.site-header .pelaak-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.pelaak-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pelaak-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: #566f60;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.pelaak-name {
    font-size: 20px;
    font-weight: 700;
    color: #17251f;
}

.pelaak-tagline {
    margin-top: 4px;
    font-size: 11px;
    color: #7d8881;
    white-space: nowrap;
}

.pelaak-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.pelaak-nav a,
.login-link {
    text-decoration: none;
    color: #26372f;
    font-size: 14px;
}

.pelaak-nav a:hover,
.login-link:hover {
    color: #587363;
}

.pelaak-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.add-listing {
    padding: 12px 20px;
    border-radius: 12px;
    background: #244a38;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.add-listing:hover {
    background: #183a2b;
}


/* Hero */

.pelaak-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    padding-top: 75px;
    background: #17251f;
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.04);

    transition: transform 7s ease;
}

.hero-slide.active img {
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(8, 25, 18, 0.88) 0%,
        rgba(15, 39, 28, 0.72) 35%,
        rgba(20, 45, 34, 0.30) 60%,
        rgba(20, 45, 34, 0.05) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 4;
    min-height: 390px;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 610px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 23px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.93);
    font-size: 13px;
}

.hero-text h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.25;
}

.hero-text p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 2;
}


/* Arrows */

.hero-arrow {
    position: absolute;
    top: 43%;
    z-index: 8;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(10, 25, 19, 0.32);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.hero-arrow:hover {
    background: rgba(37, 74, 57, 0.9);
}

.hero-next {
    left: 24px;
}

.hero-prev {
    right: 24px;
}


/* Dots */

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 142px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    border-radius: 20px;
    background: #ffffff;
}


/* Search */

.hero-search-wrapper {
    position: relative;
    z-index: 6;
}

.car-search-box {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr))
        160px;
    gap: 12px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    color: #17251f;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(45px);
}

.search-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    color: #7b857f;
    font-size: 12px;
}

.search-field select,
.search-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #e3e7e4;
    border-radius: 10px;
    outline: none;
    background: #fafbfa;
    color: #24342c;
    font-size: 13px;
}

.search-field select:focus,
.search-field input:focus {
    border-color: #789184;
    background: #ffffff;
}

.pelaak-search-button {
    align-self: end;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #254a39;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.pelaak-search-button:hover {
    background: #19392b;
}

.advanced-search {
    display: inline-block;
    margin-top: 58px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
}


/* Footer */

.site-footer {
    margin-top: 80px;
    padding: 35px 0;
    background: #17251f;
    color: #ffffff;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}


/* Tablet */

@media (max-width: 1050px) {

    .pelaak-nav {
        gap: 16px;
    }

    .pelaak-tagline {
        display: none;
    }

    .car-search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Small Tablet */

@media (max-width: 800px) {

    .site-header .pelaak-container {
        min-height: 72px;
    }

    .pelaak-nav {
        display: none;
    }

    .pelaak-hero {
        padding-top: 50px;
    }

    .hero-content {
        min-height: 360px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-slide {
        background-position: 65% center;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .hero-next {
        left: 10px;
    }

    .hero-prev {
        right: 10px;
    }

    .hero-dots {
        bottom: 120px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .pelaak-container {
        width: 92%;
    }

    .pelaak-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 22px;
    }

    .pelaak-name {
        font-size: 17px;
    }

    .login-link {
        display: none;
    }

    .add-listing {
        padding: 10px 13px;
        font-size: 12px;
    }

    .pelaak-hero {
        min-height: auto;
        padding: 46px 0 85px;
    }

    .hero-content {
        min-height: 310px;
    }

    .hero-slide {
        background-position: 67% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(9, 26, 19, 0.9) 0%,
                rgba(13, 35, 26, 0.76) 55%,
                rgba(15, 35, 27, 0.38) 100%
            );
    }

    .hero-text {
        max-width: 90%;
    }

    .hero-text h1 {
        margin-bottom: 18px;
        font-size: 36px;
    }

    .hero-text p {
        font-size: 15px;
        line-height: 1.9;
    }

    .hero-badge {
        margin-bottom: 18px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 100px;
    }

    .car-search-box {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
        transform: translateY(35px);
    }

    .search-field select,
    .search-field input {
        min-height: 48px;
    }

    .pelaak-search-button {
        min-height: 50px;
    }

    .advanced-search {
        margin-top: 48px;
    }

    .site-footer {
        margin-top: 60px;
    }
}