/* =========================================================
   ESPAGLOBAL GLOBAL THEME
   Bootstrap 5 + EspaGlobal Design System
========================================================= */


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    font-size: 16px;

    scroll-behavior: smooth;

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    font-family:
            var(
                    --font-family-base,
                    'Inter',
                    -apple-system,
                    BlinkMacSystemFont,
                    'Segoe UI',
                    Roboto,
                    'Helvetica Neue',
                    Arial,
                    sans-serif
            );

    font-size:
            var(--font-size-base, 1rem);

    font-weight: 400;

    line-height: 1.6;

    color:
            var(--espa-text, #182230);

    background:
            var(--espa-body-bg, #f5f6f8);
}


/* =========================================================
   BASIC ELEMENTS
========================================================= */

button,
input,
select,
textarea {
    font-family:
            var(
                    --font-family-base,
                    'Inter',
                    -apple-system,
                    BlinkMacSystemFont,
                    'Segoe UI',
                    Roboto,
                    'Helvetica Neue',
                    Arial,
                    sans-serif
            );
}

button,
input,
select,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

svg {
    flex-shrink: 0;
}

a {
    color:
            var(--espa-link, #182230);

    text-decoration: none;

    transition:
            color .2s ease,
            background-color .2s ease,
            border-color .2s ease,
            opacity .2s ease,
            transform .2s ease;
}

a:hover {
    color:
            var(
                    --espa-link-hover,
                    var(--espa-primary)
            );
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color:
            var(--espa-heading, #111827);

    font-family:
            var(
                    --font-family-heading,
                    'Poppins',
                    -apple-system,
                    BlinkMacSystemFont,
                    'Segoe UI',
                    Arial,
                    sans-serif
            );

    font-weight:
            var(--font-weight-heading, 700);

    line-height: 1.2;
}

h1 {
    font-size:
            var(--font-size-4xl, 2.25rem);
}

h2 {
    font-size:
            var(--font-size-3xl, 1.875rem);
}

h3 {
    font-size:
            var(--font-size-2xl, 1.5rem);
}

h4 {
    font-size:
            var(--font-size-xl, 1.25rem);
}

h5 {
    font-size:
            var(--font-size-lg, 1.125rem);
}

h6 {
    font-size:
            var(--font-size-base, 1rem);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* =========================================================
   FONT HELPERS
========================================================= */

.font-base {
    font-family:
            var(--font-family-base) !important;
}

.font-heading {
    font-family:
            var(--font-family-heading) !important;
}

.font-button {
    font-family:
            var(--font-family-button) !important;
}

.font-price {
    font-family:
            var(--font-family-price) !important;
}

.fw-heading {
    font-weight:
            var(--font-weight-heading, 700) !important;
}

.fw-body {
    font-weight:
            var(--font-weight-body, 500) !important;
}

.fw-button {
    font-weight:
            var(--font-weight-button, 600) !important;
}


/* =========================================================
   APP
========================================================= */

.espaglobal-app {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow-x: clip;
}

.site-main {
    position: relative;

    width: 100%;

    min-height: 500px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container-xxl {
    width:
            min(
                    calc(100% - 32px),
                    var(--espa-container, 1280px)
            );

    max-width:
            var(--espa-container, 1280px);

    margin-left: auto;
    margin-right: auto;

    padding-left: 0;
    padding-right: 0;
}


/* =========================================================
   GLOBAL COLOR HELPERS
========================================================= */

.text-espa-primary {
    color:
            var(--espa-primary) !important;
}

.text-espa-secondary {
    color:
            var(--espa-secondary) !important;
}

.text-espa-muted {
    color:
            var(--espa-muted) !important;
}

.text-espa-heading {
    color:
            var(--espa-heading) !important;
}

.bg-espa-primary {
    background-color:
            var(--espa-primary) !important;
}

.bg-espa-secondary {
    background-color:
            var(--espa-secondary) !important;
}

.bg-espa-surface {
    background-color:
            var(--espa-surface) !important;
}

.border-espa {
    border-color:
            var(--espa-border) !important;
}

.home-section {
    width: 100%;
}

.home-section--white {
    background: #ffffff;
}

.home-section--gray {
    background: var(--espa-body-bg, #f6f8fb);
}
/* =========================================================
   BUTTONS
========================================================= */

.btn {
    min-height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-family:
            var(
                    --font-family-button,
                    var(--font-family-base)
            );

    font-weight:
            var(--font-weight-button, 600);

    line-height: 1;

    transition:
            color .2s ease,
            background-color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            transform .2s ease;
}

.btn:active {
    transform:
            translateY(1px);
}


/* Bootstrap primary */

.btn-primary {
    --bs-btn-color:
            var(--espa-button-text);

    --bs-btn-bg:
            var(--espa-primary);

    --bs-btn-border-color:
            var(--espa-primary);

    --bs-btn-hover-color:
            var(--espa-button-text);

    --bs-btn-hover-bg:
            var(--espa-primary-hover);

    --bs-btn-hover-border-color:
            var(--espa-primary-hover);

    --bs-btn-active-color:
            var(--espa-button-text);

    --bs-btn-active-bg:
            var(--espa-primary-hover);

    --bs-btn-active-border-color:
            var(--espa-primary-hover);

    --bs-btn-disabled-color:
            var(--espa-button-text);

    --bs-btn-disabled-bg:
            var(--espa-primary);

    --bs-btn-disabled-border-color:
            var(--espa-primary);

    border-radius:
            var(--espa-button-radius);
}


/* Espa primary */

.btn-espa-primary {
    color:
            var(--espa-button-text);

    background:
            var(--espa-primary);

    border:
            1px solid
            var(--espa-primary);

    border-radius:
            var(--espa-button-radius);
}

.btn-espa-primary:hover,
.btn-espa-primary:focus {
    color:
            var(--espa-button-text);

    background:
            var(--espa-primary-hover);

    border-color:
            var(--espa-primary-hover);
}


/* Espa outline */

.btn-espa-outline {
    color:
            var(--espa-heading);

    background:
            transparent;

    border:
            1px solid
            var(--espa-border);

    border-radius:
            var(--espa-button-radius);
}

.btn-espa-outline:hover {
    color:
            var(--espa-primary);

    border-color:
            var(--espa-primary);

    background:
            transparent;
}


/* =========================================================
   FORMS
========================================================= */

.form-control,
.form-select {
    min-height: 44px;

    color:
            var(--espa-text);

    background-color:
            var(--espa-surface);

    border-color:
            var(--espa-border);

    border-radius:
            var(--espa-input-radius);

    font-family:
            var(--font-family-base);

    font-size:
            .875rem;

    transition:
            border-color .2s ease,
            box-shadow .2s ease,
            background-color .2s ease;
}

.form-control::placeholder {
    color:
            var(--espa-muted);

    opacity: .8;
}

.form-control:focus,
.form-select:focus {
    color:
            var(--espa-text);

    background-color:
            var(--espa-surface);

    border-color:
            var(--espa-primary);

    box-shadow:
            0 0 0 .2rem
            color-mix(
                    in srgb,
                    var(--espa-primary) 12%,
                    transparent
            );
}

.form-check-input:checked {
    background-color:
            var(--espa-primary);

    border-color:
            var(--espa-primary);
}

.form-check-input:focus {
    border-color:
            var(--espa-primary);

    box-shadow:
            0 0 0 .2rem
            color-mix(
                    in srgb,
                    var(--espa-primary) 12%,
                    transparent
            );
}


/* =========================================================
   CARDS
========================================================= */

.card {
    border-color:
            var(--espa-border);

    border-radius:
            var(--espa-card-radius);

    background:
            var(--espa-surface);
}

.espa-card {
    background:
            var(--espa-surface);

    border:
            1px solid
            var(--espa-border);

    border-radius:
            var(--espa-card-radius);

    box-shadow:
            var(--espa-shadow);
}


/* =========================================================
   SECTIONS
========================================================= */

.espa-section {
    position: relative;

    width: 100%;

    padding-top: 32px;
    padding-bottom: 32px;
}

.espa-section-sm {
    padding-top: 20px;
    padding-bottom: 20px;
}

.espa-section-lg {
    padding-top: 56px;
    padding-bottom: 56px;
}

.espa-section-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.espa-section-title {
    margin: 0;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-heading);

    font-size:
            clamp(
                    21px,
                    2vw,
                    28px
            );

    font-weight:
            var(--font-weight-heading);
}

.espa-section-subtitle {
    margin-top: 6px;
    margin-bottom: 0;

    color:
            var(--espa-muted);

    font-family:
            var(--font-family-base);

    font-size: 14px;

    font-weight: 400;
}

.espa-section-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
            var(--espa-primary);

    font-family:
            var(--font-family-base);

    font-size: 14px;

    font-weight: 600;
}

.espa-section-link:hover {
    color:
            var(--espa-primary-hover);
}


/* =========================================================
   NAV
========================================================= */

.nav-link {
    font-family:
            var(--font-family-base);

    color:
            var(--espa-text);
}

.nav-link:hover,
.nav-link:focus {
    color:
            var(--espa-primary);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color:
            var(--espa-button-text);

    background-color:
            var(--espa-primary);
}

.nav-tabs .nav-link.active {
    color:
            var(--espa-primary);
}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {
    padding: 8px;

    border-color:
            var(--espa-border);

    border-radius:
            var(--espa-radius);

    background:
            var(--espa-surface);

    box-shadow:
            var(--espa-shadow);

    font-family:
            var(--font-family-base);
}

.dropdown-item {
    border-radius: 7px;

    font-family:
            var(--font-family-base);

    font-size: 14px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 7%,
                    white
            );
}


/* =========================================================
   MODAL / OFFCANVAS
========================================================= */

.modal-content {
    border: 0;

    border-radius:
            var(--espa-card-radius);

    box-shadow:
            var(--espa-shadow);
}

.offcanvas {
    border-color:
            var(--espa-border);

    font-family:
            var(--font-family-base);
}

.offcanvas-backdrop.show {
    opacity: .45;
}


/* =========================================================
   BADGES
========================================================= */

.espa-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    padding:
            6px 10px;

    border-radius: 999px;

    font-family:
            var(--font-family-base);

    font-size: 12px;

    font-weight: 600;
}

.espa-badge-primary {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 10%,
                    white
            );
}


/* =========================================================
   PRICE
========================================================= */

.price,
.price-value,
.price-amount,
[class*="price-value"],
[class*="price-amount"] {
    font-family:
            var(--font-family-price);

    font-weight:
            var(--font-weight-price, 700);
}


/* =========================================================
   SHADOW / RADIUS
========================================================= */

.espa-shadow {
    box-shadow:
            var(--espa-shadow) !important;
}

.espa-shadow-sm {
    box-shadow:
            0 4px 18px
            rgba(15, 23, 42, .06) !important;
}

.espa-rounded {
    border-radius:
            var(--espa-radius) !important;
}

.espa-rounded-card {
    border-radius:
            var(--espa-card-radius) !important;
}

.espa-rounded-button {
    border-radius:
            var(--espa-button-radius) !important;
}


/* =========================================================
   SWIPER
========================================================= */

.swiper {
    width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color:
            var(--espa-primary);
}

.swiper-pagination-bullet {
    opacity: .35;
}

.swiper-pagination-bullet-active {
    background:
            var(--espa-primary);

    opacity: 1;
}


/* =========================================================
   ESPAVEL POWERED BY
========================================================= */

.espa-powered {
    width: 100%;

    background:
            #ffffff;

    border-top:
            1px solid
            rgba(
                    15,
                    23,
                    42,
                    .08
            );
}

.espa-powered .espa-container,
.espa-powered .container-xxl {
    width:
            min(
                    calc(100% - 32px),
                    var(--espa-container, 1280px)
            );

    max-width:
            var(--espa-container, 1280px);

    margin-left: auto;
    margin-right: auto;
}

.espa-powered__inner {
    width: 100%;

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    text-align: center;
}

.espa-powered__text {
    color:
            #8a9199;

    font-family:
            var(--font-family-base);

    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;
}

.espa-powered__link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    opacity: .8;

    transition:
            opacity .2s ease;
}

.espa-powered__link:hover {
    opacity: 1;
}

.espa-powered__logo {
    display: block;

    width: auto;

    height: 32px;

    max-width: 150px;

    object-fit: contain;

    filter: grayscale(1);

    opacity: .85;

    transition:
            filter .2s ease,
            opacity .2s ease,
            transform .2s ease;
}

.espa-powered__link:hover
.espa-powered__logo {
    filter: grayscale(0);

    opacity: 1;

    transform:
            translateY(-1px);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background:
            #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background:
            #c9ced6;

    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background:
            #aeb5bf;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    color:
            #fff;

    background:
            var(--espa-primary);
}


/* =========================================================
   FOCUS / ACCESSIBILITY
========================================================= */

:focus-visible {
    outline:
            2px solid
            var(--espa-primary);

    outline-offset:
            2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}


/* =========================================================
   SAFE AREA
========================================================= */

@supports (
    padding:
        max(0px)
) {

    body {
        padding-left:
                env(safe-area-inset-left);

        padding-right:
                env(safe-area-inset-right);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 991.98px) {

    .container-xxl {
        width:
                calc(100% - 28px);
    }


    .espa-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }


    .espa-section-lg {
        padding-top: 40px;
        padding-bottom: 40px;
    }


    .espa-section-heading {
        gap: 14px;
    }

}


/* =========================================================
   MOBILE APPLICATION EXPERIENCE
========================================================= */

@media
(max-width: 767.98px) {

    html {
        font-size: 14px;

        overflow-x: hidden;
        overflow-y: auto;
    }


    body {
        font-family:
                var(--font-family-base);

        font-size: 14px;

        font-weight: 400;

        line-height: 1.5;

        background:
                var(--espa-body-bg);
    }


    /*
     * Mobilde ana document scroll'unu body üzerinden
     * kilitlemiyoruz.
     *
     * Dikey scroll HTML üzerinde kalır.
     */
    .espaglobal-app,
    .site-main {
        width: 100%;
        max-width: 100%;
    }


    /*
     * Yatay taşmayı uygulama wrapper'ında kes.
     */
    .espaglobal-app {
        overflow-x: clip;
    }


    /*
     * Mobil container
     */
    .container-xxl {
        width:
                calc(100% - 24px);

        max-width: none;
    }


    /*
     * iOS Safari input focus olduğunda
     * ekranı zoomlamasın.
     */
    input,
    textarea,
    select,
    .form-control,
    .form-select {
        font-size:
                16px !important;
    }


    /*
     * Touch alanları minimum 44px.
     */
    button,
    .btn,
    .dropdown-item,
    .nav-link {
        min-height:
                44px;
    }


    a,
    button,
    .btn {
        touch-action:
                manipulation;
    }


    /*
     * Mobil başlıklar.
     */
    h1 {
        font-size:
                1.75rem;
    }

    h2 {
        font-size:
                1.5rem;
    }

    h3 {
        font-size:
                1.25rem;
    }

    h4 {
        font-size:
                1.125rem;
    }

    h5 {
        font-size:
                1rem;
    }

    h6 {
        font-size:
                .875rem;
    }


    .espa-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }


    .espa-section-lg {
        padding-top: 30px;
        padding-bottom: 30px;
    }


    .espa-section-heading {
        align-items: flex-start;

        margin-bottom: 16px;
    }


    .espa-section-title {
        font-size:
                20px;
    }


    /*
     * Offcanvas mobil uygulama gibi tam ekran.
     */
    .offcanvas.offcanvas-end {
        width: 100%;

        max-width: 430px;
    }


    /*
     * Modal mobil.
     */
    .modal-dialog {
        margin:
                12px;
    }


    .modal-content {
        border-radius:
                16px;
    }


    /*
     * Powered.
     */
    .espa-powered__inner {
        min-height: 54px;

        gap: 8px;
    }


    .espa-powered__text {
        font-size: 11px;
    }


    .espa-powered__logo {
        height: 28px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media
(max-width: 575.98px) {

    .container-xxl {
        width:
                calc(100% - 20px);
    }


    .espa-section-title {
        font-size:
                19px;
    }


    .offcanvas.offcanvas-end {
        max-width: none;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media
(max-width: 380px) {

    .container-xxl {
        width:
                calc(100% - 16px);
    }


    .espa-section-title {
        font-size:
                18px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
                auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
                .01ms !important;

        animation-iteration-count:
                1 !important;

        transition-duration:
                .01ms !important;

        scroll-behavior:
                auto !important;
    }

}

@media (max-width: 767.98px) {
    .floating-actions--hide-mobile {
        display: none !important;
    }
}