/* Kreş — ferah, sıcak, mobil uyumlu tema */
:root {
    --kres-primary: #ff8c42;
    --kres-primary-dark: #e86f24;
    --kres-secondary: #4ecdc4;
    --kres-accent: #ffe66d;
    --kres-purple: #a78bfa;
    --kres-pink: #f472b6;
    --kres-dark: #2d3748;
    --kres-light: #fff9f3;
    --kres-white: #ffffff;
    --topbar-height: 36px;
    --navbar-stack: 56px;
    --public-header-offset: calc(var(--topbar-height) + var(--navbar-stack));
    --bs-primary: #ff8c42;
    --bs-primary-rgb: 255, 140, 66;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--kres-dark);
    background: var(--kres-light);
    padding-top: var(--public-header-offset);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Nunito', sans-serif;
}

.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: #fff;
    box-shadow: 0 4px 24px rgba(255, 140, 66, .12);
}

.public-topbar {
    height: var(--topbar-height);
    background: linear-gradient(90deg, #ff8c42, #4ecdc4);
    font-size: 0.78rem;
    color: #fff;
}

.public-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

.public-topbar-left {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.public-topbar-left a {
    color: rgba(255,255,255,.95);
    text-decoration: none;
}

.public-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.public-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-social-icons a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .85rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.public-social-icons a:hover {
    background: #fff;
    color: var(--kres-primary-dark);
    transform: translateY(-1px);
}

.kres-footer .public-social-icons a {
    background: rgba(255, 255, 255, .12);
}

.kres-footer .public-social-icons a:hover {
    background: var(--kres-accent);
    color: var(--kres-dark);
}

.navbar-kres {
    background: #fff !important;
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--kres-accent);
    padding-top: .5rem;
    padding-bottom: .5rem;
    min-height: var(--navbar-stack);
}

.navbar-kres .navbar-brand {
    color: var(--kres-dark) !important;
}

.navbar-kres .navbar-toggler {
    border-color: rgba(45, 55, 72, .25);
}

.navbar-kres .navbar-toggler-icon {
    filter: none;
}

.navbar-kres .nav-link {
    font-weight: 600;
    color: var(--kres-dark) !important;
    border-radius: 999px;
    padding: .45rem .9rem !important;
}

.navbar-kres .nav-link.active,
.navbar-kres .nav-link:hover {
    background: rgba(255,140,66,.15);
    color: var(--kres-primary-dark) !important;
}

.btn-kres-primary {
    background: linear-gradient(135deg, var(--kres-primary), var(--kres-primary-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .5rem 1.25rem;
}

.btn-kres-primary:hover { color: #fff; filter: brightness(1.05); }

.btn-kres-light {
    background: #fff;
    color: var(--kres-primary-dark);
    font-weight: 700;
    border-radius: 999px;
}

/* Hero slider — header altında başlar (negatif margin menüyü kapatırdı) */
.kres-main-slider {
    margin-top: 0;
    background: linear-gradient(135deg, #ff8c42 0%, #4ecdc4 50%, #a78bfa 100%);
}

main {
    position: relative;
    z-index: 1;
}

#mainSlider .carousel-item {
    min-height: min(72vh, 560px);
    position: relative;
    background: linear-gradient(135deg, #ff8c42 0%, #4ecdc4 45%, #a78bfa 100%);
}

#mainSlider .carousel-item .kres-slide-img {
    object-fit: cover;
    width: 100%;
    min-height: min(72vh, 560px);
    max-height: min(72vh, 560px);
    filter: brightness(0.78);
}

.kres-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,140,66,.35), rgba(78,205,196,.25));
    z-index: 2;
}

.kres-hero-caption {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 1.5rem;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.kres-hero-floats {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.kres-float-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    animation: kres-float-drift 12s ease-in-out infinite;
}

.kres-float-icon--a { top: 12%; left: 6%; background: rgba(255,140,66,.45); animation-duration: 11s; }
.kres-float-icon--b { top: 18%; right: 8%; background: rgba(78,205,196,.45); animation-delay: -2s; }
.kres-float-icon--c { bottom: 20%; left: 10%; background: rgba(244,114,182,.4); animation-delay: -4s; }
.kres-float-icon--d { bottom: 14%; right: 10%; background: rgba(167,139,250,.4); animation-delay: -1s; }
.kres-float-icon--e { top: 44%; left: 48%; background: rgba(255,230,109,.5); animation-delay: -3s; }
.kres-float-icon--f { top: 30%; right: 20%; background: rgba(255,255,255,.35); animation-delay: -5s; }

@keyframes kres-float-drift {
    0%, 100% { transform: translate3d(0,0,0) rotate(-3deg); }
    50% { transform: translate3d(12px,-18px,0) rotate(4deg); }
}

.kres-hero-network {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.hero-fallback {
    min-height: min(68vh, 520px);
    background: linear-gradient(135deg, #ff8c42 0%, #4ecdc4 50%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 3rem 1.5rem;
}

.section-title {
    font-weight: 800;
    color: var(--kres-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--kres-primary), var(--kres-secondary));
    border-radius: 4px;
    margin: .5rem auto 0;
}

.feature-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(255,140,66,.12);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(78,205,196,.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.kres-footer {
    background: linear-gradient(160deg, #2d3748, #1a202c);
    color: #fff;
    margin-top: 4rem;
}

.footer-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .5rem;
}

.footer-link:hover { color: var(--kres-accent); }

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform .3s;
}

.gallery-grid a:hover img { transform: scale(1.03); }

.kres-footer + .whatsapp-fab,
.whatsapp-fab {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    z-index: 1040;
}

@media (max-width: 767px) {
    .kres-float-icon--e,
    .kres-float-icon--f { display: none; }
    #mainSlider .carousel-item { min-height: 52vh; }
}
