/* ============================================================
   Karşıyaka Girne Anaokulu — B1 "Sıcak Prestij" tasarım sistemi
   ============================================================ */

:root {
  --green-900: #1E3A2F;
  --green-700: #2C5243;
  --terracotta: #C96F4A;        /* dekoratif / büyük metin (≥3:1) */
  --terracotta-dark: #B05A37;   /* buton zemini (beyazla 4.81:1) */
  --terracotta-text: #A8542F;   /* krem üstünde küçük metin (4.83:1) */
  --amber: #E8B26A;
  --cream: #FBF4E8;
  --cream-dark: #F3E8D5;
  --ink: #2A332C;
  --body: #4A5548;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-organic: 24px 24px 72px 24px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-accent: 'Caveat', cursive;
  --shadow-soft: 0 8px 30px rgba(30, 58, 47, .10);
  --maxw: 1140px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--body);
  background: var(--cream); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display); color: var(--green-900);
  line-height: 1.18; font-weight: 600; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { color: var(--terracotta); font-style: italic; }
p { margin: 0 0 1em; }
a { color: var(--terracotta-text); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta-text); font-weight: 700; margin-bottom: 10px; display: block;
}
.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;
}
.accent {
  font-family: var(--font-accent); color: var(--terracotta);
  font-size: clamp(1.5rem, 2.5vw, 1.7rem); transform: rotate(-1.5deg);
  display: inline-block; line-height: 1.2;
}
.bg-alt { background: var(--cream-dark); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--green-900); }
.bg-dark h2, .bg-dark h3 { color: var(--cream); }
.bg-dark p { color: rgba(251, 244, 232, .85); }
.bg-dark .eyebrow { color: var(--amber); }
.bg-dark .accent { color: var(--amber); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 0; cursor: pointer; font-family: var(--font-body);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--green-900); color: var(--cream); }
.btn-primary:hover { background: var(--green-700); }
.btn-accent { background: var(--terracotta-dark); color: #fff; }
.btn-accent:hover { background: var(--terracotta-text); }
.btn-light { background: var(--cream); color: var(--green-900); }
.btn-ghost {
  color: var(--terracotta-text); font-weight: 700; text-decoration: none;
  padding: 14px 4px; display: inline-block;
}
.btn-ghost:hover { color: var(--terracotta-dark); }

/* ---------- Reveal animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 232, .88); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(30, 58, 47, .08); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  color: var(--green-900); margin-right: auto;
}
.nav-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--green-900); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { white-space: nowrap; padding: 11px 24px; font-size: .92rem; }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.6rem;
  color: var(--green-900); cursor: pointer; padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy .accent { margin-bottom: 14px; }
.hero-copy h1 { margin-bottom: .45em; }
.hero-sub { font-size: 1.12rem; max-width: 460px; }
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.7; max-height: 560px; object-fit: cover;
  border-radius: var(--radius-organic); box-shadow: var(--shadow-soft);
}
.hero-badge {
  position: absolute; bottom: 26px; left: -18px;
  background: var(--white); border-radius: 14px; padding: 12px 18px;
  font-weight: 600; font-size: .92rem; color: var(--green-900);
  box-shadow: 0 6px 24px rgba(30, 58, 47, .16);
}

/* ---------- Kartlar ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 2px 12px rgba(30, 58, 47, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .97rem; }
.meb-note {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  margin-top: 40px; font-size: .95rem; color: var(--green-900); font-weight: 500;
}
.meb-note img { width: 52px; height: auto; }

/* ---------- M.İ.N.A. ---------- */
.mina-intro { max-width: 740px; font-size: 1.08rem; }
.hibrit-box {
  background: var(--white); border: 1.5px solid var(--green-900);
  border-radius: var(--radius); padding: 28px 30px; margin: 36px 0;
  max-width: 860px;
}
.hibrit-box h3 { margin-bottom: .4em; }
.hibrit-box p { margin: 0; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.principle { background: var(--white); border-radius: var(--radius); padding: 26px 22px; }
.principle .num {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--amber);
  font-weight: 700; display: block; margin-bottom: 8px;
}
.principle h3 { font-size: 1.08rem; }
.principle p { font-size: .92rem; margin: 0; }
.mina-quote {
  margin: 48px 0 0; padding: 0; max-width: 760px;
}
.mina-quote .accent { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; }
.mina-quote p { font-size: 1.02rem; }

/* ---------- Eğitim sistemi ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag {
  background: var(--cream); border: 1px solid var(--amber);
  color: var(--green-900); border-radius: 999px; padding: 7px 16px;
  font-size: .88rem; font-weight: 500;
}

/* ---------- Yaz banner ---------- */
.banner-yaz { position: relative; overflow: hidden; }
.banner-yaz::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--amber); opacity: .18; pointer-events: none;
}
.banner-inner { position: relative; display: grid; gap: 8px; max-width: 720px; }
.banner-inner .btn { justify-self: start; margin-top: 16px; }

/* ---------- Olanaklar ---------- */
.split-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.split-photo {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: var(--radius-organic); box-shadow: var(--shadow-soft);
}
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; }
.feature-list .icon { font-size: 1.4rem; line-height: 1.4; }
.note-box {
  background: var(--white); border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px;
  font-size: .97rem;
}
.note-box p { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 640px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--amber);
}
.timeline li { position: relative; padding: 0 0 28px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -28px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--terracotta); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--amber); margin-left: 1px;
}
.timeline .time {
  font-family: var(--font-display); font-weight: 700; color: var(--green-900);
  font-size: 1.12rem; display: block;
}
.timeline p { margin: 2px 0 0; font-size: .97rem; }

/* ---------- Kayıt adımları ---------- */
.kayit-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  background: var(--cream); border-radius: var(--radius); padding: 20px 24px 20px 70px;
  position: relative; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-900); color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; font-size: .93rem; }
.kayit-side { display: grid; gap: 14px; }
.kayit-side .card { padding: 28px; }
.kayit-side .btn { width: 100%; text-align: center; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; display: block;
}
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 58, 47, .92);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 18px; right: 26px; background: none; border: 0;
  color: var(--cream); font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- SSS ---------- */
.faq { max-width: 780px; display: grid; gap: 14px; }
.faq details {
  background: var(--white); border-radius: var(--radius); padding: 0;
  box-shadow: 0 2px 12px rgba(30, 58, 47, .05); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px;
  font-weight: 600; color: var(--green-900); position: relative; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; font-size: .97rem; }

/* ---------- Misyon / Vizyon ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-grid .card { padding: 36px 34px; }
.mv-grid .accent { margin-bottom: 6px; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-map iframe {
  width: 100%; height: 420px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); display: block;
}
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; font-size: 1rem; }
.contact-list .icon { width: 26px; text-align: center; }
.contact-list a { color: var(--green-900); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--terracotta); }
.contact-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(251, 244, 232, .8); padding: 48px 0 36px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.footer-brand div { font-size: .88rem; line-height: 1.5; }
.footer-brand strong { color: var(--cream); font-family: var(--font-display); font-size: 1.02rem; display: block; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--cream); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--amber); }
.footer-copy { width: 100%; font-size: .8rem; margin-top: 18px; opacity: .7; }

/* ---------- Mina widget ---------- */
.mina-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--green-900);
  border-radius: 999px; padding: 8px 20px 8px 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  color: var(--green-900); cursor: pointer;
  box-shadow: 0 8px 28px rgba(30, 58, 47, .22);
  transition: transform .2s ease;
}
.mina-fab:hover { transform: translateY(-3px); }
.mina-fab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mina-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 89;
  width: min(380px, calc(100vw - 44px)); height: min(560px, 70vh);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(30, 58, 47, .3); overflow: hidden;
  display: flex; flex-direction: column;
}
.mina-panel[hidden] { display: none; }
.mina-head {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-900); color: var(--cream); padding: 12px 16px;
}
.mina-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--white); }
.mina-head strong { font-family: var(--font-display); font-size: 1.02rem; display: block; line-height: 1.2; }
.mina-head span { font-size: .76rem; opacity: .8; }
.mina-log {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 10px; background: var(--cream);
}
.mina-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.mina-msg.bot { background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.mina-msg.user { background: var(--green-900); color: var(--cream); border-bottom-right-radius: 4px; align-self: flex-end; }
.mina-msg.typing { color: var(--body); font-style: italic; opacity: .7; }
.mina-form {
  display: flex; gap: 8px; padding: 10px; background: var(--white);
  border-top: 1px solid var(--cream-dark);
}
.mina-form input {
  flex: 1; border: 1.5px solid var(--cream-dark); border-radius: 999px;
  padding: 10px 16px; font-family: var(--font-body); font-size: .92rem;
  color: var(--ink); outline: none; background: var(--cream);
}
.mina-form input:focus { border-color: var(--amber); }
.mina-form button {
  border: 0; background: var(--terracotta-dark); color: #fff; border-radius: 999px;
  width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
}
.mina-form button:disabled { opacity: .5; cursor: default; }

/* ---------- Yaz okulu sayfası ---------- */
.yaz-hero { text-align: center; padding: clamp(48px, 8vw, 100px) 0; }
.yaz-hero .accent { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.yaz-hero h1 { margin-bottom: .3em; }
.yaz-tagline { font-size: 1.25rem; font-weight: 500; color: var(--green-900); }
.yaz-dates {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px;
}
.yaz-date {
  background: var(--white); border-radius: var(--radius); padding: 14px 24px;
  font-weight: 600; color: var(--green-900); box-shadow: 0 2px 12px rgba(30, 58, 47, .06);
  font-size: .98rem;
}
.yaz-date span { display: block; font-size: .78rem; color: var(--terracotta-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  border-radius: var(--radius); padding: 28px 26px;
  background: color-mix(in srgb, var(--tone) 30%, var(--white));
  transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.program-card .icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--white); margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(30, 58, 47, .08);
}
.program-card h3 { font-size: 1.12rem; }
.program-card ul { margin: 0; padding-left: 18px; font-size: .92rem; display: grid; gap: 4px; }
.info-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  text-align: center;
}
.info-strip div {
  background: var(--white); border-radius: var(--radius); padding: 22px 14px;
  font-size: .88rem; font-weight: 600; color: var(--green-900);
}
.info-strip .icon { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.bridge {
  background: var(--amber); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); text-align: center;
}
.bridge h2 { color: var(--green-900); margin-bottom: .2em; }
.bridge p { color: var(--green-900); font-size: 1.05rem; margin: 0; }
.yaz-final { text-align: center; }
.yaz-final .accent { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.yaz-final .hero-ctas { justify-content: center; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.error-page .container { display: grid; gap: 10px; justify-items: center; }

/* ---------- Mobil ---------- */
@media (max-width: 920px) {
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .kayit-grid, .mv-grid, .contact-grid, .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; gap: 4px; box-shadow: 0 16px 24px rgba(30, 58, 47, .12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--cream-dark); }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .hero-badge { left: 12px; bottom: 14px; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; }
}
