/* ============================================================================
   Qualia Spa & Wellness — Custom Styles
   Tailwind CDN'i tamamlayan özel stiller.
   ============================================================================ */

/* ---- Material Symbols ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---- Scrollbar tamamen gizli (scroll çalışır, çubuk görünmez) ---- */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fcf9f4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: preloaderPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.preloader-logo {
    height: 56px;
    width: auto;
    opacity: 0.95;
}

.preloader-bar {
    width: 160px;
    height: 1.5px;
    background: rgba(135, 119, 79, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.preloader-bar span {
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, #87774f, transparent);
    animation: preloaderSlide 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

@keyframes preloaderSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }
}

/* No scroll while loading */
body:has(#preloader:not(.loaded)) {
    overflow: hidden;
}

/* ---- Hero full-bleed (underlaps top-bar + nav) ---- */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.hero-section {
    margin-top: -70px;
}

@media (min-width: 768px) {
    .hero-section {
        margin-top: -148px;
        /* top-bar ~40px (with padding) + nav spacer 108px */
    }
}

/* Force exact heights to eliminate seam */
body.home-hero #top-bar {
    height: 40px;
    line-height: 1;
    overflow: hidden;
}

body.home-hero #top-bar>div {
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- Luxury Easing ---- */
.luxury-ease {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Editorial Typography ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #87774f;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.eyebrow.center {
    justify-content: center;
}

.eyebrow.center::after {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.display-serif {
    font-family: 'Noto Serif', serif;
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.display-serif em {
    font-style: italic;
    font-weight: 400;
    color: #87774f;
}

/* Editorial card numbering */
.edi-num {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

/* ---- Fancybox image size cap ---- */
.fancybox__image,
.fancybox__slide .fancybox__content>img {
    max-width: min(80vw, 900px) !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* ---- Subtle Grain / Noise Texture ---- */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
}

/* ---- Warm bg tint (used on alt sections) ---- */
.bg-warm {
    background: #faf6ee;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

/* ---- KVKK Çerez Banner ---- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.5s;
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(252, 249, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(135, 119, 79, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 60px -15px rgba(28, 28, 25, 0.25);
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        padding: 1.25rem 1.75rem;
        gap: 1.5rem;
    }
}

/* ---- Scroll hint — mouse wheel (hero) ---- */
.scroll-mouse-wheel {
    animation: scrollMouseWheel 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes scrollMouseWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 14px);
        opacity: 0;
    }
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #87774f 0%, #d8c597 50%, #87774f 100%);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(135, 119, 79, 0.4);
    pointer-events: none;
}

/* ---- Nav wrap hover area for mega menu ---- */
.nav-item-wrap.has-mega:hover .mega-chev {
    transform: rotate(180deg);
}

.nav-item-wrap.has-mega:hover .nav-link-bar {
    width: 70%;
}

/* ---- Mega Menu ---- */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 640px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.35s;
    z-index: 60;
}

.nav-item-wrap.has-mega:hover .mega-menu,
.nav-item-wrap.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.mega-menu-inner {
    background: rgba(252, 249, 244, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(135, 119, 79, 0.12);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 60px -15px rgba(28, 28, 25, 0.18);
}

.mega-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.mega-card:hover {
    background: rgba(135, 119, 79, 0.04);
    border-color: rgba(135, 119, 79, 0.15);
}

/* ---- Language buttons ---- */
.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* ---- Full-screen Mobile Menu ---- */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.4s;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    inset: 0;
    background: rgba(252, 249, 244, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open .mobile-menu-inner {
    transform: translateY(0);
}

#mobile-menu {
    max-height: none;
    overflow: visible;
}

.mobile-nav-link {
    transition: padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-link:hover {
    padding-left: 0.25rem;
}

/* ---- Search Overlay ---- */
#search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 25, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1.5rem 2rem;
    transform: translateY(-20px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

#search-overlay.open .search-overlay-content {
    transform: translateY(0);
}

.search-card {
    width: 100%;
    max-width: 640px;
    background: #fcf9f4;
    border-radius: 1.25rem;
    box-shadow: 0 30px 80px -15px rgba(28, 28, 25, 0.35);
    overflow: hidden;
    border: 1px solid rgba(135, 119, 79, 0.1);
}

.search-results {
    max-height: 55vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(135, 119, 79, 0.08);
    text-decoration: none;
    transition: background 0.2s ease, padding 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
    .search-result-item {
        padding: 1rem 2rem;
    }
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover {
    background: rgba(135, 119, 79, 0.05);
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .search-result-item:hover {
        padding-left: 2.5rem;
    }
}

.search-result-item mark {
    background: rgba(135, 119, 79, 0.2);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Main Nav — glass by default, transparent only on home hero */
.nav-main {
    background: rgba(252, 249, 244, 0.9);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    top: 0;
    transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease,
        backdrop-filter 0.5s ease;
    border-bottom: 1px solid rgba(135, 119, 79, 0.08);
}

@media (min-width: 768px) {
    .nav-main:not(.scrolled) {
        top: 36px;
    }
}

/* Home page only: transparent nav over hero */
body.home-hero .nav-main:not(.scrolled) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.nav-main.scrolled {
    top: 0;
    background: rgba(252, 249, 244, 0.92);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    box-shadow: 0 12px 40px -8px rgba(28, 28, 25, 0.12);
    border-bottom-color: rgba(135, 119, 79, 0.12);
}

/* Active nav link — subtle pulse animation */
.nav-link.text-primary .nav-link-bar {
    animation: navActivePulse 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes navActivePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 rgba(135, 119, 79, 0);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 8px rgba(135, 119, 79, 0.4);
    }
}

/* Top-bar transparent at top so hero is full-bleed */
body.home-hero #top-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.home-hero #top-bar,
body.home-hero #top-bar a,
body.home-hero #top-bar span {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.home-hero #top-bar a:hover {
    color: #f5e1b1 !important;
}

/* Hide nav divider line on home hero — it was the white line user saw */
body.home-hero .nav-main:not(.scrolled) .nav-divider {
    display: none !important;
}

/* On home page only: nav links white over hero */
body.home-hero .nav-main:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

body.home-hero .nav-main:not(.scrolled) .nav-link:hover {
    color: #f5e1b1;
}

body.home-hero .nav-main:not(.scrolled) #menu-icon {
    color: #fff !important;
}

body.home-hero .nav-main:not(.scrolled) #mobile-menu-btn {
    background: transparent !important;
}

body.home-hero .nav-main:not(.scrolled) .mobile-lang .lang-btn {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.home-hero .nav-main:not(.scrolled) .mobile-lang .lang-btn.font-semibold {
    color: #f5e1b1 !important;
}

body.home-hero .nav-main:not(.scrolled) .mobile-lang .lang-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* Home hero: logo beyaz */
body.home-hero .nav-main:not(.scrolled) #nav-logo-img {
    filter: brightness(0) invert(1);
}

/* Home hero: search + lang switcher + mega chev beyaz */
body.home-hero .nav-main:not(.scrolled) #nav-search-btn {
    color: rgba(255, 255, 255, 0.85);
}

body.home-hero .nav-main:not(.scrolled) #nav-search-btn:hover {
    color: #f5e1b1;
    background: rgba(255, 255, 255, 0.1);
}

body.home-hero .nav-main:not(.scrolled) .lang-btn {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.home-hero .nav-main:not(.scrolled) .lang-btn.font-semibold {
    color: #f5e1b1 !important;
}

body.home-hero .nav-main:not(.scrolled) .lang-btn:hover {
    color: #f5e1b1 !important;
}

body.home-hero .nav-main:not(.scrolled) .mega-chev {
    color: rgba(255, 255, 255, 0.6);
}

/* Dil butonları arasındaki slash */
body.home-hero .nav-main:not(.scrolled) .lang-sep {
    color: rgba(255, 255, 255, 0.5) !important;
}

.nav-main.scrolled #nav-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-main.scrolled #nav-logo-img {
    height: 2.25rem;
}

@media (min-width: 768px) {
    .nav-main.scrolled #nav-logo-img {
        height: 2.5rem;
    }
}

#nav-inner {
    transition: padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#nav-logo-img {
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav link hover underline */
.nav-link:hover .nav-link-bar,
.nav-link:focus-visible .nav-link-bar {
    width: 70%;
}

/* Top bar hide on scroll */
#top-bar {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#top-bar.hidden-bar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Mobile Menu */
/* Legacy glass nav */
.glass-nav {
    background: rgba(252, 249, 244, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0px 12px 32px rgba(28, 28, 25, 0.04);
}

/* ============================================================================
   BUTTON SYSTEM
   ============================================================================ */

/* Primary CTA — gradient, rounded-full, with arrow icon */
.cta-gradient {
    background: linear-gradient(135deg, #87774f 0%, #a0926d 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(135, 119, 79, 0.25);
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6e6140 0%, #87774f 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.cta-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.cta-gradient:hover {
    box-shadow: 0 10px 30px -5px rgba(135, 119, 79, 0.45);
    transform: translateY(-1px);
}

.cta-gradient:hover::before {
    opacity: 1;
}

.cta-gradient:hover::after {
    left: 150%;
}

.cta-gradient>* {
    position: relative;
    z-index: 2;
}

/* Shared button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid #87774f;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #87774f 0%, #a0926d 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(135, 119, 79, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(135, 119, 79, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #87774f;
    border: 1.5px solid #cec5b7;
}

.btn-secondary:hover {
    border-color: #87774f;
    background: rgba(135, 119, 79, 0.05);
}

.btn-ghost {
    background: transparent;
    color: #87774f;
    padding: 0.5rem 0;
    border-radius: 0;
    border-bottom: 2px solid #87774f;
    letter-spacing: 0.08em;
}

.btn-ghost:hover {
    color: #a0926d;
    border-color: #a0926d;
}

/* ---- Editorial Bento Card ---- */
.edi-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    isolation: isolate;
}

.edi-card .edi-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
    filter: saturate(0.92) brightness(0.88);
}

.edi-card:hover .edi-img {
    transform: scale(1.06);
    filter: saturate(1) brightness(0.95);
}

.edi-card .edi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
    transition: background 0.7s ease;
}

.edi-card:hover .edi-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.edi-card .edi-content {
    position: absolute;
    inset: 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

@media (min-width: 768px) {
    .edi-card .edi-content {
        padding: 2.25rem;
    }
}

.edi-card .edi-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    margin-top: 0.75rem;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.edi-card:hover .edi-desc {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.edi-card .edi-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.edi-card:hover .edi-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Vertical accent line ---- */
.v-accent {
    position: relative;
    padding-left: 1.25rem;
}

.v-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    bottom: 0.4em;
    width: 1.5px;
    background: linear-gradient(180deg, #87774f 0%, rgba(135, 119, 79, 0) 100%);
}

/* ============================================================================
   CARD SYSTEM
   ============================================================================ */

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(28, 28, 25, 0.08);
}

.card-elevated {
    box-shadow: 0 4px 20px rgba(28, 28, 25, 0.04);
}

.ambient-glow {
    box-shadow: 0px 12px 32px rgba(28, 28, 25, 0.04);
}

/* ============================================================================
   FORM SYSTEM
   ============================================================================ */

/* Base input */
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #cec5b7;
    padding: 0.625rem 0;
    font-family: 'Manrope', sans-serif;
    color: #1c1c19;
    transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-input::placeholder {
    color: rgba(28, 28, 25, 0.3);
}

.form-input:hover {
    border-bottom-color: #a0926d;
}

.form-input:focus,
.form-input:focus-visible {
    outline: none !important;
    border-bottom-color: #87774f !important;
    box-shadow: none !important;
    caret-color: #87774f !important;
    --tw-ring-color: transparent !important;
    --tw-ring-shadow: none !important;
}

/* Form label */
.form-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7d766a;
    margin-bottom: 0.5rem;
}

/* Remove old generic focus override */
select:focus,
textarea:focus {
    outline: none;
    border-bottom-color: #87774f !important;
}

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child elements */
.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-item .faq-icon {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-item:hover {
    background: rgba(135, 119, 79, 0.03);
}

/* ============================================================================
   FLASH MESSAGES
   ============================================================================ */

.flash-message {
    animation: flashSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -16px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================================================
   SUCCESS CHECK ANIMATION (contact form)
   ============================================================================ */

.success-check {
    animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.success-check-path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: successDraw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes successPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successDraw {
    to {
        stroke-dashoffset: 0;
    }
}

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

#success-modal.show,
#error-modal.show {
    display: flex;
}

/* Açılış */
#success-modal.show #modal-content,
#error-modal.show>div:last-child {
    animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#success-modal.show #modal-overlay,
#error-modal.show #error-modal-overlay {
    animation: overlayIn 0.25s ease forwards;
}

/* Kapanış */
#success-modal.closing #modal-content,
#error-modal.closing>div:last-child {
    animation: modalOut 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#success-modal.closing #modal-overlay,
#error-modal.closing #error-modal-overlay {
    animation: overlayOut 0.25s ease forwards;
}

@keyframes modalIn {
    from {
        transform: scale(0.92) translateY(10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    to {
        transform: scale(0.95) translateY(8px);
        opacity: 0;
    }
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes overlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Timer bar — 15 saniyede sağdan sola daralır */
.modal-timer-bar {
    width: 100%;
    animation: timerShrink 10s linear forwards;
}

@keyframes timerShrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

#back-to-top {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================================================
   PAGE HERO — Standardized inner page hero
   ============================================================================ */

/* Page hero — subtle background tint + nav offset */
.page-hero {
    position: relative;
    padding-top: calc(70px + 3.5rem);
    padding-bottom: 3.5rem;
    margin-top: -70px;
    text-align: center;
    overflow: hidden;
    background: #f0ede8;
    border-bottom: 1px solid rgba(135, 119, 79, 0.08);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .page-hero {
        margin-top: -108px;
        padding-top: calc(108px + 4rem);
        padding-bottom: 4rem;
    }

    .page-hero::before {
        width: 900px;
        height: 900px;
    }
}

/* Sticky kategori tab bar — hero ile sıfır boşluk */
#category-tabs {
    margin-top: 0;
}

.page-hero h1 {
    font-family: 'Noto Serif', serif;
    font-size: 2.5rem;
    line-height: 1.15;
    color: #1c1c19;
    position: relative;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 3.5rem;
    }
}

/* ============================================================================
   IMAGE HOVER — Standardized
   ============================================================================ */

.img-hover {
    overflow: hidden;
}

.img-hover img {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-hover:hover img {
    transform: scale(1.05);
}

/* ============================================================================
   DECORATIVE ELEMENTS
   ============================================================================ */

/* Section divider — thin gold line with diamond */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    height: 1px;
    width: 4rem;
    background: #cec5b7;
}

.section-divider span {
    width: 6px;
    height: 6px;
    background: #87774f;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ============================================================================
   SELECTION & GLOBAL
   ============================================================================ */

::selection {
    background-color: rgba(135, 119, 79, 0.2);
}

html {
    scroll-behavior: smooth;
}

/* Focus visible for interactive elements (except form inputs) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #87774f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form inputs handle their own focus via border-bottom */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================================
   CATEGORY TABS (services page)
   ============================================================================ */

.gallery-filter.active {
    background: rgba(135, 119, 79, 0.1);
    color: #87774f;
    border-color: rgba(135, 119, 79, 0.3);
}

.category-tab.active {
    background: rgba(135, 119, 79, 0.1);
    color: #87774f;
    border-color: rgba(135, 119, 79, 0.3);
}

/* Service comparison filter buttons */
.compare-filter.active {
    background: #87774f;
    color: #fff;
    border-color: #87774f;
}

.compare-row.hidden-filtered {
    display: none;
}

/* Hide scrollbar for tab bar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================================
   MODERN IMAGE EFFECTS
   ============================================================================ */

/* Floating animation — subtle levitation */
.float {
    animation: float 6s ease-in-out infinite;
}

.float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

.float-slow {
    animation: float 8s ease-in-out 1s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Decorative gradient blob */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.blob-primary {
    background: #87774f;
}

.blob-warm {
    background: linear-gradient(135deg, #d8c597, #87774f);
}

/* Parallax speed layers */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Rotate on scroll */
.scroll-rotate {
    transition: transform 0.3s ease-out;
}

/* ============================================================================
   AI WIZARD MODAL
   ============================================================================ */

#ai-wizard-modal.show {
    display: flex;
}

#ai-wizard-modal.show #ai-wizard-content {
    animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#ai-wizard-modal.show #ai-wizard-overlay {
    animation: overlayIn 0.25s ease forwards;
}

#ai-wizard-modal.closing #ai-wizard-content {
    animation: modalOut 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#ai-wizard-modal.closing #ai-wizard-overlay {
    animation: overlayOut 0.25s ease forwards;
}

/* Option selected state */
.ai-option.selected {
    border-color: #87774f;
    background: rgba(135, 119, 79, 0.08);
}

/* Wizard tooltip */
.ai-wizard-tooltip {
    opacity: 0;
    pointer-events: none;
}

.ai-wizard-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    animation: tooltipBounce 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-wizard-tooltip.hide {
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
}

@keyframes tooltipBounce {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step transition */
.ai-step {
    animation: wizardStepIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-step.hidden {
    display: none;
}

@keyframes wizardStepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   PRINT
   ============================================================================ */

/* ============================================================================
   MOBILE APP BAR
   ============================================================================ */

.app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(252, 249, 244, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(135, 119, 79, 0.1);
    padding: 0.35rem 0 env(safe-area-inset-bottom, 0.35rem);
    box-shadow: 0 -4px 20px -4px rgba(28, 28, 25, 0.08);
}

.app-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(28, 28, 25, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0;
}

.app-bar-item.active {
    color: #87774f;
}

.app-bar-item.app-bar-cta {
    color: #fff;
}

.app-bar-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #87774f;
    margin-top: -18px;
    box-shadow: 0 4px 14px rgba(135, 119, 79, 0.35);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-bar-item.app-bar-cta:active .app-bar-cta-icon {
    transform: scale(0.92);
}

.app-bar-item.app-bar-cta span:last-child {
    color: #87774f;
    font-weight: 600;
}

/* App bar altında içerik kaybolmasın */
@media (max-width: 767px) {
    footer {
        padding-bottom: 70px;
    }

    .cookie-banner {
        bottom: 4.5rem;
    }
}

@media print {

    nav,
    footer,
    #back-to-top,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}