/* ── Organic design system tokens ───────────────────────────────── */
:root {
    --color-bg: #f5ead8;
    --color-surface: #ebddc5;
    --color-text: #201e1d;
    --color-accent: #c67139;
    --color-divider: rgba(32, 30, 29, .16);

    --color-neutral-700: #645c50;
    --color-neutral-800: #474238;

    --color-accent-400: #f6a06b;
    --color-accent-600: #b2622d;
    --color-accent-700: #8c491a;

    --color-accent-2-200: #e1eecc;
    --color-accent-2-800: #3d472b;
    --color-accent-2-900: #272e1b;

    /* Caprasimo ships no Turkish glyphs (ş ğ İ) — headings broke mid-word.
       Baloo 2 keeps the warm, heavy, over-rounded display voice with latin-ext coverage. */
    --font-heading: "Baloo 2", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 8.8px;
}

p {
    margin: 0 0 13.2px;
}

a {
    color: var(--color-accent-700);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-600);
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

button {
    font-family: inherit;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

::selection {
    background: rgba(198, 113, 57, .3);
}

.washed {
    filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* ── Forms ──────────────────────────────────────────────────────── */
.field>label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: rgba(32, 30, 29, .7);
}

.input {
    width: 100%;
    min-height: 36px;
    font: inherit;
    font-size: 14px;
    color: var(--color-text);
    caret-color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: 999px;
    padding: 6px 14px;
}

.input:hover {
    border-color: rgba(32, 30, 29, .45);
}

.input:focus-visible {
    border-color: var(--color-accent);
    outline-offset: 0;
}

textarea.input {
    resize: vertical;
}

/* ── Motion ─────────────────────────────────────────────────────── */
@keyframes kxRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes kxFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes kxBreathe {

    0%,
    100% {
        transform: scale(1);
        opacity: .55;
    }

    50% {
        transform: scale(1.12);
        opacity: .9;
    }
}

@keyframes kxDraw {
    from {
        stroke-dashoffset: 120;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes kxDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.kx-rise {
    animation: kxRise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.kx-hoverlift {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.kx-hoverlift:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(46, 43, 37, .28);
}

.kx-zoom img {
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.kx-zoom:hover img {
    transform: scale(1.07);
}

.kx-ico {
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.kx-hoverlift:hover .kx-ico {
    transform: scale(1.12) rotate(-6deg);
}

.kx-draw path,
.kx-draw circle,
.kx-draw line,
.kx-draw polyline {
    stroke-dasharray: 120;
    animation: kxDraw 1.4s cubic-bezier(.4, .1, .2, 1) both;
}

.kx-marquee {
    display: flex;
    width: max-content;
    animation: kxDrift 34s linear infinite;
}

.kx-marquee:hover {
    animation-play-state: paused;
}

details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] .kx-plus {
    transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .kx-marquee {
        animation: none;
    }

    .kx-rise,
    .kx-draw path,
    .kx-draw circle,
    .kx-draw line,
    .kx-draw polyline {
        animation: none;
    }

    .kx-zoom img,
    .kx-hoverlift {
        transition: none;
    }

    /* Intro filmi JS tarafında da atlanır; bu, overlay bir şekilde açılırsa
       nefes/yakınlaşma hareketinin çalışmamasını garantiler. */
    #intro [style*="kxBreathe"],
    #introFilm img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ── Header / navigation ────────────────────────────────────────── */
.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(245, 234, 216, .88);
    border-bottom: 1px solid rgba(32, 30, 29, .14);
}

.head-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-heading);
    font-size: 21px;
    color: #201e1d;
}

/* assets/logo.png is a 447×559 canvas whose artwork only occupies the
   402×169 box at (21, 198) — the rest is transparent padding. The wrapper
   takes the artwork's aspect ratio and the image is scaled/offset inside
   it so the wordmark fills the space instead of floating in dead air. */
.brand-logo {
    position: relative;
    display: block;
    flex: none;
    height: 40px;
    aspect-ratio: 402 / 169;
    overflow: hidden;
}

.brand-logo img {
    position: absolute;
    width: 111.194%;
    max-width: none;
    left: -5.224%;
    top: -117.16%;
}

/* The wordmark's greens sit too close to the footer's #272e1b, so on dark
   surfaces it gets a light plate. The plate is a separate element — padding
   on .brand-logo itself would shift the crop offsets above. */
.brand-plate {
    display: inline-flex;
    background: rgba(249, 244, 237, .93);
    border-radius: 16px;
    padding: 9px 14px;
}

.site-nav {
    display: flex;
    gap: clamp(10px, 2vw, 26px);
    align-items: center;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #474238;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--color-accent-700);
}

.nav-link.is-active {
    color: #8c491a;
    border-bottom-color: #c67139;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 20px;
    background: #c67139;
    color: #fff4e6;
    font-family: var(--font-heading);
    font-size: 15px;
    min-height: 44px;
}

.nav-cta:hover {
    background: var(--color-accent-600);
    color: #fff4e6;
}

.burger {
    display: none;
    margin-left: auto;
    cursor: pointer;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(32, 30, 29, .2);
    background: transparent;
    font-size: 18px;
    color: #201e1d;
}

@media (max-width: 879px) {
    .site-nav {
        display: none;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        width: 100%;
        order: 3;
        padding-bottom: 10px;
        margin-left: 0;
    }

    .site-nav.is-open {
        display: flex;
    }

    .burger {
        display: block;
    }
}

/* ── Pills (gallery + element tabs) ─────────────────────────────── */
.pill {
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(32, 30, 29, .2);
    background: transparent;
    color: #474238;
    transition: background .2s ease, color .2s ease;
}

.pill:hover {
    background: rgba(32, 30, 29, .06);
}

.pill.is-active {
    border-color: transparent;
    background: #c67139;
    color: #fff4e6;
}

/* ── Section helpers ────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ── Tab panels (galeri + 4 element) ────────────────────────────── */
/* Paneller HTML'de statik durur; JS yalnızca görünürlüğü değiştirir.
   Böylece JS çalışmadan da tüm içerik sayfada bulunur. */
.tabpanel {
    display: none;
}

.tabpanel.is-active {
    display: grid;
}

.tabpanel.is-active.is-flow {
    display: block;
}

/* ── Form durumları ─────────────────────────────────────────────── */
.input.has-error {
    border-color: #a8321f;
    background: #fbe9e5;
}

.field-error {
    display: none;
    margin: 5px 0 0;
    font-size: 13px;
    color: #a8321f;
}

.field-error.is-visible {
    display: block;
}

.form-alert {
    display: none;
    gap: 10px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.55;
}

.form-alert.is-visible {
    display: flex;
}

.form-alert.is-error {
    background: #fbe9e5;
    border: 1px solid rgba(168, 50, 31, .3);
    color: #8b2a1a;
}

.form-alert.is-success {
    background: #e6f0d6;
    border: 1px solid rgba(61, 71, 43, .3);
    color: #3d472b;
}

/* ── Toast ──────────────────────────────────────────────────────── */
.toast-stack {
    position: fixed;
    right: clamp(12px, 3vw, 28px);
    bottom: clamp(12px, 3vw, 28px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 24px));
}

.toast {
    border-radius: 18px;
    padding: 14px 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #f9f4ed;
    background: #3d472b;
    box-shadow: 0 12px 32px rgba(46, 43, 37, .3);
    animation: kxRise .35s cubic-bezier(.2, .7, .2, 1) both;
}

.toast.is-error {
    background: #8b2a1a;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
    }
}

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: #c67139;
    color: #fff4e6;
    border-radius: 0 0 14px 0;
    padding: 12px 20px;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
    color: #fff4e6;
}

/* ── Giriş animasyonu ───────────────────────────────────────────── */
/* <head>'deki satır içi kontrol bu sınıfı boyamadan önce ekler; böylece
   oturumda ikinci kez gelindiğinde overlay bir kare bile görünmez. */
.intro-seen #intro {
    display: none;
}
