@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap");

:root {
    --primary: #d71920;
    --primary-dark: #a90f14;
    --dark: #101010;
    --dark-soft: #1a1a1a;
    --text: #181818;
    --text-light: #717171;
    --background: #f5f5f5;
    --white: #ffffff;
    --border: #e5e5e5;
    --success: #25d366;
    --success-dark: #128c47;

    --container-width: 1240px;
    --header-height: 82px;

    --shadow-small:
        0 8px 25px rgba(0, 0, 0, 0.08);

    --shadow-medium:
        0 18px 45px rgba(0, 0, 0, 0.13);
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

body.menu-open,
body.gallery-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-inline: auto;
}

/* HEADER */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid rgba(6, 6, 6, 0);
    background: rgb(0, 0, 0);
    backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    height: 100%;
    align-items: center;
}

.logo {
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo-main {
    color: var(--primary);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background: var(--primary);
    content: "";
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-whatsapp {
    margin-left: 36px;
    padding: 11px 20px;
    border: 1px solid var(--success);
    border-radius: 4px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.header-whatsapp:hover {
    background: var(--success);
    transform: translateY(-2px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background: var(--white);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* HERO */

.hero {
    position: relative;

    display: flex;

    min-height: 790px;

    align-items: center;

    overflow: hidden;

    background:
        url("../images/hero/rline-wallpaper.png")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.91) 0%,
            rgba(0, 0, 0, 0.67) 50%,
            rgba(0, 0, 0, 0.24) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
}

.hero-label {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;

    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(46px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
}

.hero p {
    max-width: 620px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--primary);
    color: var(--white);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.hero-info {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 10, 0.66);
    backdrop-filter: blur(12px);
}

.hero-info-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.info-item {
    padding: 24px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item:last-child {
    border-right: none;
}

.info-item strong,
.info-item span {
    display: block;
}

.info-item strong {
    color: var(--white);
    font-size: 14px;
}

.info-item span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

/* VEHICLES SECTION */

.vehicles-section {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.view-all-link {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.view-all-link span {
    display: inline-block;
    margin-left: 7px;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.view-all-link:hover span {
    transform: translateX(5px);
}

/* FILTERS */

.vehicle-filters {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    background: #fafafa;
    color: var(--text);
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.reset-filter-button {
    height: 48px;
    padding: 0 18px;
    border-radius: 4px;
    background: var(--dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.reset-filter-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.filter-result {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

/* VEHICLE CARDS */

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.vehicle-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow-small);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.vehicle-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

.vehicle-card.is-hidden {
    display: none;
}

.vehicle-image-wrapper {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #dddddd;
}

.gallery-trigger {
    cursor: zoom-in;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.06);
}

.vehicle-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 6px 11px;
    border-radius: 3px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.image-count {
    position: absolute;
    z-index: 2;
    right: 15px;
    bottom: 15px;
    padding: 7px 11px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    font-size: 12px;
}

.vehicle-content {
    padding: 22px;
}

.vehicle-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.vehicle-brand {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vehicle-top h3 {
    margin-top: 3px;
    font-size: 19px;
    line-height: 1.35;
}

.vehicle-price {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 18px;
}

.vehicle-specifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 21px 0;
    padding: 17px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vehicle-specifications span {
    position: relative;
    padding-left: 13px;
    color: var(--text-light);
    font-size: 12px;
}

.vehicle-specifications span::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.details-button,
.card-whatsapp-button {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.details-button {
    background: var(--dark);
    color: var(--white);
}

.details-button:hover {
    background: var(--primary);
}

.card-whatsapp-button {
    border: 1px solid var(--success);
    color: var(--success-dark);
}

.card-whatsapp-button:hover {
    background: var(--success);
    color: var(--white);
}

/* GALLERY */

.gallery-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.gallery-dialog {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #111111;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-header h2 {
    overflow: hidden;
    color: var(--white);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-close {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.gallery-main {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    min-height: 500px;
    padding: 20px 10px;
}

.gallery-image-container {
    position: relative;
    display: flex;
    min-width: 0;
    height: min(64vh, 650px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-arrow {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 40px;
    line-height: 1;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-arrow:hover {
    background: var(--primary);
    transform: scale(1.08);
}

.gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.gallery-thumbnail {
    width: 112px;
    height: 74px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #222222;
    opacity: 0.58;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TABLET */

@media (max-width: 1100px) {
    .vehicle-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-search {
        grid-column: span 2;
    }

    .reset-filter-button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .navbar {
        gap: 21px;
    }

    .header-whatsapp {
        margin-left: 22px;
    }

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

/* MOBILE */

@media (max-width: 820px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(calc(100% - 30px), var(--container-width));
    }

    .navbar {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        display: flex;
        width: min(320px, 86%);
        height: calc(100vh - var(--header-height));
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 25px;
        background: var(--dark);
        box-shadow: -20px 0 45px rgba(0, 0, 0, 0.35);
        transition: right 0.3s ease;
    }

    .navbar.open {
        right: 0;
    }

    .nav-link {
        padding: 18px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        font-size: 15px;
    }

    .nav-link::after {
        display: none;
    }

    .header-whatsapp {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .menu-button.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: 720px;
        background-position: 64% center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .hero h1 span {
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    }

    .hero-info {
        position: relative;
        margin-top: auto;
    }

    .hero-info-container {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .info-item:last-child {
        border-bottom: none;
    }

    .vehicles-section {
        padding: 75px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .vehicle-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .filter-search {
        grid-column: auto;
    }

    .gallery-modal {
        padding: 0;
    }

    .gallery-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border: none;
        border-radius: 0;
    }

    .gallery-header {
        min-height: 58px;
        padding: 8px 14px;
    }

    .gallery-header h2 {
        font-size: 15px;
    }

    .gallery-main {
        position: relative;
        display: block;
        min-height: 0;
        padding: 0;
    }

    .gallery-image-container {
        height: calc(100vh - 180px);
        padding: 10px;
    }

    .gallery-arrow {
        position: absolute;
        z-index: 5;
        top: 50%;
        width: 42px;
        height: 42px;
        background: rgba(0, 0, 0, 0.55);
        transform: translateY(-50%);
    }

    .gallery-arrow:hover {
        transform: translateY(-50%);
    }

    .gallery-arrow-left {
        left: 10px;
    }

    .gallery-arrow-right {
        right: 10px;
    }

    .gallery-thumbnails {
        padding: 10px 12px 16px;
    }

    .gallery-thumbnail {
        width: 88px;
        height: 58px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .hero-label {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .vehicle-image-wrapper {
        height: 220px;
    }

    .vehicle-top {
        flex-direction: column;
    }

    .vehicle-actions {
        grid-template-columns: 1fr;
    }
}
/* WHATSAPP ICON */

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.header-whatsapp .whatsapp-icon {
    width: 18px;
    height: 18px;
}

.card-whatsapp-button .whatsapp-icon {
    width: 18px;
    height: 18px;
}
.sell-home-section {
    padding: 20px 0 90px;
}

.sell-home-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, 0.85fr);
    gap: 50px;
    align-items: center;
    padding: 50px;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #121212,
            #292929
        );
    color: var(--white);
}

.sell-home-content h2 {
    max-width: 680px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.sell-home-content p {
    max-width: 650px;
    margin: 18px 0 30px;
    color:
        rgba(255, 255, 255, 0.66);
}

.sell-home-steps {
    display: grid;
}

.sell-home-steps div {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.sell-home-steps div:last-child {
    border-bottom: none;
}

.sell-home-steps strong {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
}

.sell-home-steps span {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 850px) {
    .sell-home-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 550px) {
    .sell-home-section {
        padding-bottom: 70px;
    }

    .sell-home-card {
        padding: 28px;
    }
}
/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher button {
    min-width: 34px;
    height: 30px;
    padding: 0 7px;

    border: 0;
    border-radius: 3px;

    background: transparent;

    /* Dil yazıları her zaman beyaz */
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus,
.language-switcher button.active,
.language-switcher button[aria-pressed="true"] {
    background: var(--primary);
    color: #ffffff;
}


/* =========================
   LANGUAGE SWITCHER MOBILE
========================= */

@media (max-width: 900px) {

    .language-switcher {
        order: 3;
    }

    .language-switcher button {
        color: #ffffff;
    }
}
/* =========================
   RLINE LOGO
========================= */

.logo-image-link {
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.rline-logo {
    display: block;
    width: auto;
    height: 70px;
    object-fit: contain;
}



/* =========================
   RLINE LOGO - MOBILE
========================= */

@media (max-width: 768px) {

    .rline-logo {
        height: 42px;
    } 
}