/* =========================================================
   CIHANGIR CORPORATION
   GLOBAL DESIGN SYSTEM
========================================================= */

:root {
    --cc-accent: #d6d0c4;
    --cc-accent-bright: #f3efe8;
    --cc-accent-soft: #bbb5aa;
    --cc-accent-muted: #92909a;

    --cc-white: #f6f5f3;
    --cc-dark: #10111a;
    --cc-dark-soft: #171823;
    --cc-dark-surface: #1c1d28;

    --cc-purple: #7565a4;
    --cc-purple-soft: rgba(117, 101, 164, 0.16);

    --cc-border: rgba(255, 255, 255, 0.10);
    --cc-border-hover: rgba(214, 208, 196, 0.28);

    --cc-container: 1320px;
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: rgba(236, 234, 239, 0.68);
    background: var(--cc-dark);
}

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

a {
    transition:
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

::selection {
    color: var(--cc-dark);
    background: var(--cc-accent);
}

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

.navbar > .container,
main > section > .container,
.footer > .container {
    width: 100%;
    max-width: var(--cc-container);
    margin-right: auto;
    margin-left: auto;
    padding-right: 32px;
    padding-left: 32px;
}

/* =========================================================
   GLOBAL ACCENT OVERRIDES
========================================================= */

.text-primary-dark,
.text-primary,
.arrow-link-primary-dark,
.arrow-link-primary-dark .icon,
.footer .text-primary-dark {
    color: var(--cc-accent) !important;
}

.bg-primary,
.bg-primary-dark,
.text-bg-primary {
    color: var(--cc-dark) !important;
    background-color: var(--cc-accent) !important;
}

/* =========================================================
   HEADER
========================================================= */

.navbar {
    min-height: 92px;
    background:
        linear-gradient(
            180deg,
            rgba(16, 17, 26, 0.98),
            rgba(16, 17, 26, 0.95)
        ) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar .container {
    min-height: 92px;
}

.navbar .nav-link {
    position: relative;
    color: rgba(246, 245, 243, 0.66) !important;
}

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

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cc-accent);
    box-shadow:
        0 0 0 4px rgba(214, 208, 196, 0.06),
        0 0 18px rgba(214, 208, 196, 0.28);
    transform: translateX(-50%);
}

/* =========================================================
   GLOBAL LOGO SIZES
========================================================= */

.cc-site-logo,
.navbar-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    height: 72px;
    margin: 0;
    padding: 0;
}

.cc-site-logo-img,
.navbar-brand img {
    display: block;
    width: auto !important;
    height: 58px !important;
    max-width: 130px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.cc-footer-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 68px;
    margin: 0;
    padding: 0;
}

.cc-footer-logo-img {
    display: block;
    width: auto !important;
    height: 58px !important;
    max-width: 125px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

/*
 * Eski footer yapısında özel sınıf yoksa da logo büyümesin.
 */
.footer-widget > a:first-child img {
    display: block;
    width: auto !important;
    height: 58px !important;
    max-width: 125px !important;
    max-height: 58px !important;
    object-fit: contain;
    object-position: left center;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.btn-primary-dark {
    color: #15151d !important;
    background:
        linear-gradient(
            135deg,
            #f5f2ec 0%,
            #d8d1c5 55%,
            #beb6aa 100%
        ) !important;
    border-color: transparent !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn-primary-dark:hover,
.btn-primary-dark:focus {
    color: #101118 !important;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #e6e1d8 55%,
            #cbc4b8 100%
        ) !important;
    border-color: transparent !important;
    box-shadow:
        0 17px 40px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-2px);
}

.btn-outline-primary-dark {
    color: #e6e2dc !important;
    background: rgba(255, 255, 255, 0.018) !important;
    border-color: rgba(214, 208, 196, 0.45) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 10px 28px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(10px);
}

.btn-outline-primary-dark:hover,
.btn-outline-primary-dark:focus {
    color: #15151d !important;
    background: var(--cc-accent-bright) !important;
    border-color: var(--cc-accent-bright) !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

/* =========================================================
   SHARED HEADINGS / LABELS
========================================================= */

.cc-section-label,
.cc-about-label {
    color: var(--cc-accent-soft) !important;
}

.cc-section-label::before,
.cc-about-label::before {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(214, 208, 196, 0.95) 100%
        ) !important;
}

.arrow-link-primary-dark {
    color: var(--cc-accent) !important;
}

.arrow-link-primary-dark:hover {
    color: var(--cc-accent-bright) !important;
}

/* =========================================================
   GLOBAL DARK SURFACES
========================================================= */

.bg-dark-blue-4 {
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(117, 101, 164, 0.075),
            transparent 38%
        ),
        var(--cc-dark-soft) !important;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(177, 143, 102, 0.085),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(117, 101, 164, 0.13),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #13151d,
            #1b1322
        ) !important;
}

.footer a {
    color: rgba(230, 227, 235, 0.67);
}

.footer a:hover {
    color: var(--cc-accent-bright) !important;
}

.footer-bottom .text-primary-dark {
    color: var(--cc-accent) !important;
}

.footer-bottom a {
    color: var(--cc-accent-soft) !important;
}

.footer-bottom a:hover {
    color: var(--cc-accent-bright) !important;
}

/* =========================================================
   AOS SAFETY
========================================================= */

main [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .navbar > .container,
    main > section > .container,
    .footer > .container {
        max-width: 1140px;
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 76px;
    }

    .navbar .container {
        min-height: 76px;
    }

    .navbar > .container,
    main > section > .container,
    .footer > .container {
        max-width: 100%;
        padding-right: 24px;
        padding-left: 24px;
    }

    .cc-site-logo,
    .navbar-brand {
        height: 62px;
    }

    .cc-site-logo-img,
    .navbar-brand img {
        height: 48px !important;
        max-width: 110px;
        max-height: 48px;
    }

    .cc-footer-logo {
        height: 60px;
    }

    .cc-footer-logo-img,
    .footer-widget > a:first-child img {
        height: 52px !important;
        max-width: 112px !important;
        max-height: 52px !important;
    }

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

@media (max-width: 575.98px) {
    .navbar {
        min-height: 68px;
    }

    .navbar .container {
        min-height: 68px;
    }

    .navbar > .container,
    main > section > .container,
    .footer > .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cc-site-logo,
    .navbar-brand {
        height: 56px;
    }

    .cc-site-logo-img,
    .navbar-brand img {
        height: 42px !important;
        max-width: 96px;
        max-height: 42px;
    }

    .cc-footer-logo {
        height: 54px;
    }

    .cc-footer-logo-img,
    .footer-widget > a:first-child img {
        height: 46px !important;
        max-width: 100px !important;
        max-height: 46px !important;
    }

    .btn-primary-dark,
    .btn-outline-primary-dark {
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    a {
        transition: none;
    }
}

/* =========================================================
   GLOBAL PAGE LAYOUT / FOOTER OVERLAP FIX
========================================================= */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
}

/*
 * Header.php içinde açılan ana wrapper.
 * Sayfa içeriği footer'ı aşağı itmeli.
 */
.wrapper {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

/*
 * Bütün sayfalardaki main alanları kalan yüksekliği doldurur.
 */
.wrapper > main,
main.cc-page,
main.cc-about-page,
main.cc-brands-page {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    min-height: 1px !important;
    flex: 1 0 auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden;
}

/*
 * Main içindeki bölümler normal belge akışında kalır.
 */
.wrapper > main > section,
.cc-brands-page > section,
.cc-about-page > section,
.cc-page > section {
    position: relative;
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/*
 * Footer kesinlikle main üzerine çıkmamalı.
 */
.footer,
.wrapper > footer {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    margin-top: auto !important;
    flex: 0 0 auto !important;
    transform: none !important;
}

/*
 * Temadan gelebilecek negatif konumları temizle.
 */
main + .footer,
main ~ .footer {
    margin-top: 0 !important;
}

/* AOS güvenliği */
.cc-brands-page [data-aos],
.cc-brands-page .aos-init,
.cc-brands-page .aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* =========================================================
   MOBILE HAMBURGER ICON COLOR
========================================================= */

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(214, 208, 196, 0.08) !important;
}

.navbar-toggler-icon span {
    background-color: var(--cc-accent, #d6d0c4) !important;
    border-color: var(--cc-accent, #d6d0c4) !important;
}

.navbar-toggler:hover .navbar-toggler-icon span {
    background-color: var(--cc-accent-bright, #f3efe8) !important;
}