/* =========================================================
   ÖZEL BALPETEĞİ ANAOKULU — Tasarım Sistemi
   Tasarım: Buğra Bal

   Yaklaşım: sakin ve modern. İnce kenarlık + yumuşak gölge,
   bol beyaz alan, sınırlı renk. Koyu kontur yalnızca birincil
   eylemlerde ve marka rozetlerinde kullanılır — her yerde değil.

   Not: Başlık fontu Baloo 2. Fredoka, Türkçe ğ/ş gliflerini kendi
   ailesinden vermediği için kullanılmıyor.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Ölçü */
    --container-width: 1180px;
    --side-margin: 64px;

    /* Marka — logodan örneklendi */
    --turuncu: #F0821E;
    --turuncu-koyu: #C96411;
    --turuncu-sis: #FDF0E3;

    --yesil: #58A82C;
    --yesil-koyu: #45871F;
    --yesil-sis: #EFF7E8;

    --bal: #F5AC1B;
    --bal-sis: #FDF4E2;

    /* Metin */
    --metin: #2E2419;
    --metin-orta: #6A5E50;
    --metin-soft: #8F8376;

    /* Yüzey */
    --kabuk: #FFFFFF;
    --krem: #FCFAF7;
    --cizgi: #EAE3DA;
    --cizgi-koyu: #D9CFC2;

    /* Gölge */
    --golge-xs: 0 1px 2px rgba(46, 36, 25, .05);
    --golge-sm: 0 2px 8px rgba(46, 36, 25, .06);
    --golge: 0 6px 20px -8px rgba(46, 36, 25, .14);
    --golge-lg: 0 18px 40px -18px rgba(46, 36, 25, .22);

    /* Biçim */
    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --ease: cubic-bezier(.22, 1, .36, 1);

    --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115'%3E%3Cpath d='M50 0 100 28.75v57.5L50 115 0 86.25v-57.5z'/%3E%3C/svg%3E");
}

/* -------- Reset -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--metin);
    background: var(--kabuk);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    /* Baloo 2'nin ğ/İ üstündeki işaretleri kırpılmasın diye geniş tutuldu */
    line-height: 1.25;
    color: var(--metin);
    letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; max-width: 100%; }
/* Emniyet: boyutu verilmemiş satır içi ikon SVG'leri konteyneri kaplamasın.
   :where() sıfır özgüllük taşır, bu yüzden gerçek her kural (.btn svg gibi)
   bunu sorunsuz ezer — yalnızca unutulan durumlarda devreye girer. */
:where(svg) { width: 1em; height: 1em; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }
strong, b { font-weight: 700; }

::selection { background: var(--bal-sis); color: var(--metin); }
:focus-visible { outline: 2px solid var(--turuncu); outline-offset: 3px; border-radius: 4px; }

/* -------- Konteyner -------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--side-margin);
}
.container--dar { max-width: 860px; }

/* -------- Bölüm ritmi -------- */
.section { padding-block: 84px; position: relative; }
.section--tight { padding-block: 56px; }
.section--cream { background: var(--krem); }
.section--shell { background: var(--kabuk); }
.section--honey { background: var(--bal-sis); }
.section--leaf  { background: var(--yesil-sis); }

.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--turuncu-koyu);
    margin-bottom: 12px;
}
.eyebrow--leaf { color: var(--yesil-koyu); }

.sec-title { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: 14px; }
.sec-title em { font-style: normal; color: var(--turuncu); }
.sec-desc { color: var(--metin-orta); font-size: 17px; }
.sec-desc a { color: var(--turuncu-koyu); text-decoration: underline; font-weight: 700; }
.sec-desc a:hover { color: var(--turuncu); }

/* -------- Butonlar -------- */
.btn {
    --btn-bg: var(--turuncu);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    box-shadow: var(--golge-sm);
    transition: background .2s ease, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--golge); }
.btn:active { transform: translateY(0); box-shadow: var(--golge-xs); }
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--orange { --btn-bg: var(--turuncu); --btn-fg: #fff; }
.btn--orange:hover { --btn-bg: var(--turuncu-koyu); }
.btn--leaf { --btn-bg: var(--yesil); --btn-fg: #fff; }
.btn--leaf:hover { --btn-bg: var(--yesil-koyu); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--metin); border-color: var(--cizgi-koyu); }
.btn--white:hover { --btn-bg: var(--krem); }
.btn--ghost {
    --btn-bg: transparent; --btn-fg: var(--metin);
    border-color: var(--cizgi-koyu); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--krem); box-shadow: var(--golge-sm); }
.btn--lg { padding: 15px 30px; font-size: 17.5px; }

/* Metin bağlantısı (ok'lu) */
.link-ok {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15.5px;
    color: var(--turuncu-koyu);
}
.link-ok svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-ok:hover svg { transform: translateX(4px); }

/* -------- Kart -------- */
.card {
    background: var(--kabuk);
    border: 1px solid var(--cizgi);
    border-radius: var(--r);
    padding: 26px;
    transition: border-color .25s ease, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--cizgi-koyu); box-shadow: var(--golge); transform: translateY(-3px); }

/* İkon kutusu */
.ikon {
    width: 46px; height: 46px; display: grid; place-items: center;
    font-size: 22px; border-radius: var(--r-sm);
    background: var(--bal-sis); margin-bottom: 14px;
}
.ikon--leaf { background: var(--yesil-sis); }
.ikon--orange { background: var(--turuncu-sis); }

/* -------- Altıgen -------- */
.hex {
    aspect-ratio: 100 / 115;
    -webkit-mask: var(--hex-mask) center / contain no-repeat;
    mask: var(--hex-mask) center / contain no-repeat;
    overflow: hidden;
}
.hex img { width: 100%; height: 100%; object-fit: cover; }

/* -------- Rozet -------- */
.rozet {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 700; line-height: 1.7;
    padding: 3px 13px; border-radius: var(--r-pill);
    background: var(--krem); border: 1px solid var(--cizgi);
    color: var(--metin-orta);
}
.rozet--bal { background: var(--bal-sis); border-color: #F2E3C4; color: #8A6410; }
.rozet--yesil { background: var(--yesil-sis); border-color: #DCEBD0; color: var(--yesil-koyu); }
.rozet--turuncu { background: var(--turuncu-sis); border-color: #F6DCC4; color: var(--turuncu-koyu); }

/* -------- Onay listesi -------- */
.tik-list { display: grid; gap: 11px; }
.tik-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--metin-orta); }
.tik-list svg {
    flex: 0 0 20px; width: 20px; height: 20px; color: var(--yesil);
    margin-top: 4px;
}

/* -------- Sayfa başlığı (iç sayfalar) -------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: 128px 60px;
    background:
        radial-gradient(720px 320px at 88% -10%, var(--bal-sis) 0%, transparent 70%),
        var(--krem);
    border-bottom: 1px solid var(--cizgi);
}
.page-hero__in { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(31px, 4.3vw, 46px);
    max-width: 17ch;
    margin-bottom: 14px;
}
.page-hero__desc { color: var(--metin-orta); font-size: 18px; max-width: 58ch; }
.page-hero__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }

/* Soluk kovan filigranı — dekoratif */
.page-hero__mark {
    position: absolute; right: -14px; bottom: -30px; z-index: 0;
    width: 168px; opacity: .07; pointer-events: none;
    transform: rotate(-8deg);
    filter: grayscale(.45);
}
.page-hero__mark img { width: 100%; height: auto; }

.crumb {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    font-size: 13.5px; font-weight: 600; color: var(--metin-soft);
    margin-bottom: 16px;
}
.crumb a { transition: color .2s ease; }
.crumb a:hover { color: var(--turuncu-koyu); }
.crumb__sep { color: var(--cizgi-koyu); }
.crumb__now { color: var(--metin); }

@media (max-width: 820px) {
    .page-hero { padding-block: 108px 44px; }
    .page-hero__mark { width: 130px; right: -24px; bottom: -26px; }
}

/* -------- Blog kartları -------- */
.bp-bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bp-blogcard {
    background: var(--kabuk); border: 1px solid var(--cizgi);
    border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .25s ease, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.bp-blogcard:hover { border-color: var(--cizgi-koyu); box-shadow: var(--golge); transform: translateY(-3px); }
.bp-blogcard__img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--krem); }
.bp-blogcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bp-blogcard:hover .bp-blogcard__img img { transform: scale(1.04); }
.bp-blogcard__cat {
    position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94);
    color: var(--metin); font-size: 12px; font-weight: 700;
    padding: 3px 11px; border-radius: var(--r-pill);
}
.bp-blogcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.bp-blogcard__body time { font-size: 12.5px; font-weight: 700; color: var(--metin-soft); }
.bp-blogcard__body h2 { font-size: 18.5px; margin: 5px 0 8px; }
.bp-blogcard__body h2 a { transition: color .2s ease; }
.bp-blogcard__body h2 a:hover { color: var(--turuncu-koyu); }
.bp-blogcard__body p { font-size: 14.5px; color: var(--metin-orta); flex: 1; margin-bottom: 14px; }
.bp-blogcard__more {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15px;
    color: var(--turuncu-koyu);
}
.bp-blogcard__more svg { width: 15px; height: 15px; flex: none; transition: transform .25s var(--ease); }
.bp-blogcard:hover .bp-blogcard__more svg { transform: translateX(4px); }

/* -------- Formlar -------- */
.bp-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.bp-field label { font-size: 13.5px; font-weight: 700; color: var(--metin); margin-bottom: 5px; }
.bp-field input, .bp-field textarea, .bp-field select {
    padding: 11px 14px; border: 1px solid var(--cizgi-koyu); border-radius: var(--r-xs);
    background: #fff; font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bp-field input::placeholder, .bp-field textarea::placeholder { color: var(--metin-soft); }
.bp-field input:focus, .bp-field textarea:focus, .bp-field select:focus {
    outline: none; border-color: var(--turuncu); box-shadow: 0 0 0 3px var(--turuncu-sis);
}
.bp-field textarea { resize: vertical; min-height: 96px; }
.bp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.bp-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--metin-orta); margin: 6px 0 16px; }
.bp-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--turuncu); flex: 0 0 16px; }
.bp-check a { color: var(--turuncu-koyu); text-decoration: underline; font-weight: 600; }
.bp-alert {
    padding: 13px 17px; border-radius: var(--r-xs); font-size: 14.5px; font-weight: 600;
    margin-bottom: 18px; border: 1px solid;
}
.bp-alert--ok { background: var(--yesil-sis); border-color: #CFE5BF; color: var(--yesil-koyu); }
.bp-alert--err { background: var(--turuncu-sis); border-color: #F3D3B4; color: #A94C10; }

/* -------- Yardımcılar -------- */
.js-on .reveal { opacity: 0; transform: translateY(18px); }
.js-on .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.not { margin-top: 22px; font-size: 13px; color: var(--metin-soft); }
.not a { color: var(--turuncu-koyu); text-decoration: underline; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------- Duyarlı -------- */
@media (max-width: 1080px) {
    :root { --side-margin: 36px; }
    .section { padding-block: 68px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .bp-bloggrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    body { font-size: 16px; }
    .section { padding-block: 54px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .sec-head { margin-bottom: 32px; }
    /* 16px+ : iOS Safari input odaklanınca sayfayı yakınlaştırmasın */
    .bp-field input, .bp-field textarea, .bp-field select { font-size: 16px; }
    .bp-check input { width: 18px; height: 18px; flex-basis: 18px; }
}
@media (max-width: 580px) {
    :root { --side-margin: 18px; }
    body { font-size: 15.5px; }
    .section { padding-block: 46px; }
    .section--tight { padding-block: 38px; }
    .card { padding: 18px; }
    .sec-head { margin-bottom: 26px; }
    .sec-title { font-size: clamp(23px, 6.4vw, 30px); }
    .sec-desc { font-size: 15.5px; }
    .grid { gap: 14px; }
    .grid-4 { grid-template-columns: 1fr; }
    .bp-bloggrid { grid-template-columns: 1fr; }
    .bp-row { grid-template-columns: 1fr; }
    .btn--lg { padding: 13px 24px; font-size: 16px; }
    .page-hero h1 { font-size: clamp(25px, 7vw, 34px); }
    .page-hero__desc { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .js-on .reveal { opacity: 1; transform: none; }
}
