:root {
    --bg: #faf7f0;
    --surface: #ffffff;
    --text: #1f1c14;
    --muted: #5c5748;
    --accent: #b08d1f;
    --accent-dark: #8a6f18;
    --accent-soft: #fff4d6;
    --border: #ebe5d8;
    --sidebar-w: 260px;
    --mobile-bar-h: 56px;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(45, 38, 20, 0.07);
    --font: "DM Sans", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.public-body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    left: 0;
}

/* Mobil üst bar — masaüstünde gizli */
.mobile-top-bar {
    display: none;
}

.nav-backdrop {
    display: none;
}

.sheet-close {
    display: none;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: var(--shadow);
}

.sidebar-brand {
    margin-bottom: 2rem;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.sidebar-foot {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.main-wrap {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* Hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: min(100vh, 900px);
    min-height: 420px;
    background: #0f1419;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-yt-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-yt-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh;
    min-width: 100%;
    height: 100vh;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}

.hero-dots button.is-active {
    background: #fff;
    transform: scale(1.15);
}

.section {
    padding: 3rem 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-head a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.section-head a:hover {
    text-decoration: underline;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(26, 29, 38, 0.12);
}

.card-img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-soft), #e8ecf4);
}

.card-body {
    padding: 1.1rem 1.2rem 1.25rem;
}

.card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.card-body p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.page-hero {
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 640px;
}

.detail-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.75rem 3rem;
}

.detail-layout img.feature {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.prose {
    font-size: 1.02rem;
}

.prose p {
    margin-top: 0;
}

/* İletişim */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.75rem 3rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-info h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--accent);
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 320px;
    background: var(--border);
}

.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.form-stack label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-stack input,
.form-stack textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-stack textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.btn:hover:not(:disabled) {
    background: var(--accent-dark);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* İletişim — sürükleyerek doğrulama */
.contact-gate-wrap {
    margin: 1.25rem 0 1rem;
    padding: 1rem 1.1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-gate-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.contact-gate-hint {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-slider-track {
    position: relative;
    height: 52px;
    border-radius: 999px;
    background: #ede6d8;
    border: 1px solid var(--border);
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.contact-slider-track.is-complete {
    border-color: rgba(176, 141, 31, 0.55);
    box-shadow: inset 0 0 0 1px rgba(176, 141, 31, 0.2);
}

.contact-slider-track.is-complete .contact-slider-hint {
    opacity: 0;
}

.contact-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    max-width: 100%;
    background: linear-gradient(90deg, var(--accent-soft), rgba(176, 141, 31, 0.35));
    border-radius: 999px 0 0 999px;
    pointer-events: none;
    z-index: 0;
    transition: width 0.08s linear;
}

.contact-slider-hint {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
    padding-left: 52px;
    transition: opacity 0.25s ease;
}

.contact-slider-thumb {
    position: absolute;
    top: 50%;
    left: 6px;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(160deg, #fff4d6, #d4b84a);
    box-shadow: 0 2px 12px rgba(45, 38, 20, 0.2);
    z-index: 2;
    cursor: grab;
    padding: 0;
    touch-action: none;
    transition: left 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.2s, background 0.2s;
}

.contact-slider-thumb.is-dragging {
    cursor: grabbing;
    transition: none;
    box-shadow: 0 4px 18px rgba(45, 38, 20, 0.28);
}

.contact-slider-thumb.is-snapping {
    transition: left 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.contact-slider-thumb.is-complete {
    background: linear-gradient(160deg, #c9a227, var(--accent-dark));
    cursor: default;
    box-shadow: 0 2px 8px rgba(138, 111, 24, 0.35);
    pointer-events: none;
}

.contact-gate-status {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.alert-error {
    background: #ffe8e8;
    color: #a32020;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 200;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .mobile-top-bar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-bar-h);
        z-index: 500;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 16px rgba(45, 38, 20, 0.06);
    }

    .mobile-top-bar__inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.85rem 0 1rem;
        gap: 0.75rem;
    }

    .mobile-top-logo {
        display: flex;
        align-items: center;
        min-width: 0;
        text-decoration: none;
        color: var(--text);
    }

    .mobile-top-logo img {
        max-height: 40px;
        width: auto;
        max-width: min(200px, 52vw);
        object-fit: contain;
    }

    .mobile-top-logo-text {
        font-weight: 700;
        font-size: 0.82rem;
        line-height: 1.25;
        max-width: 55vw;
    }

    .nav-burger {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: var(--accent-soft);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
    }

    .nav-burger-line {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--accent-dark);
        border-radius: 1px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    body.nav-open .nav-burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-burger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.nav-open .nav-burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 600;
        background: rgba(30, 26, 18, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .sheet-close {
        display: none;
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + var(--mobile-bar-h) + 10px);
        right: calc(env(safe-area-inset-right, 0px) + 12px);
        z-index: 750;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--surface);
        box-shadow: var(--shadow);
        font-size: 1.6rem;
        line-height: 1;
        color: var(--text);
        cursor: pointer;
    }

    body.nav-open .sheet-close {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(100%, 400px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: calc(var(--mobile-bar-h) + 2.75rem) 1.25rem 1.5rem;
        border-right: none;
        border-top: none;
        box-shadow: -8px 0 32px rgba(45, 38, 20, 0.12);
        z-index: 700;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar-brand {
        margin-bottom: 1.25rem;
    }

    .sidebar-logo {
        max-height: 48px;
    }

    .sidebar-nav {
        flex: 0;
    }

    .sidebar-nav a {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
    }

    .sidebar-foot {
        margin-top: auto;
        padding-top: 1.5rem;
    }

    .main-wrap {
        margin-left: 0;
        padding-top: var(--mobile-bar-h);
    }

    .hero-slider {
        height: min(70vh, 620px);
    }

    .whatsapp-float {
        bottom: 1.1rem;
    }
}
