/* ============================================
   Tarsus Özel Çamlıca Anaokulu — stylesheet
   ============================================ */

:root {
  /* palette */
  --cream: #FBF3E7;
  --cream-soft: #F3E7D4;
  --paper: #FFFCF6;
  --forest-900: #16281C;
  --forest-800: #1F3D2A;
  --forest-700: #2C5238;
  --terracotta: #E8663F;
  --terracotta-dark: #C6502D;
  --sunshine: #F2B441;
  --sky: #BFE0DB;
  --ink: #22261F;
  --ink-soft: rgba(34, 38, 31, 0.68);
  --line: rgba(34, 38, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 1.7rem + 4vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-body: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);

  /* layout */
  --container-w: 1220px;
  --section-pad-y: clamp(4.5rem, 4rem + 4vw, 8rem);
  --nav-h: 84px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(.16,.84,.44,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2.5rem, var(--container-w));
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--forest-900); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 999; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--terracotta-dark);
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.6em; height: 2px; background: var(--terracotta);
  display: inline-block; border-radius: 2px;
}
.eyebrow-light { color: var(--sunshine); }

.highlight {
  color: var(--terracotta);
  font-style: italic;
  position: relative;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta); color: var(--paper);
  box-shadow: 0 10px 24px -8px rgba(232, 102, 63, .55);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(198, 80, 45, .6); }
.btn-ghost {
  background: transparent; color: var(--forest-800);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--forest-800); transform: translateY(-3px); }

/* ---------- scroll reveal ---------- */
/* Visible by default; only animates in when JS has run (see .js class set in <head>) so content never gets stuck hidden if JS fails. */
[data-reveal] { opacity: 1; }
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js [data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), height .35s var(--ease-out);
}
.site-header.is-scrolled {
  /* Plain background instead of backdrop-filter: a blur/filter on this
     fixed ancestor would turn it into the containing block for its own
     fixed-position descendant (.main-nav), breaking the mobile menu's
     viewport-relative sizing while open. */
  background: rgba(251, 243, 231, .94);
  box-shadow: 0 10px 30px -18px rgba(22, 40, 28, .35);
  height: calc(var(--nav-h) - 16px);
}
.header-inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  display: flex; flex-direction: column; line-height: 1.05; color: var(--forest-900);
}
.brand-name em { font-style: normal; font-weight: 400; font-size: .68em; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta-dark); }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 2.1rem; }
.nav-link {
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
  transition: color .25s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--terracotta); transition: right .3s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--forest-900); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }

.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex-shrink: 0;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--forest-900); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 7rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem;
}
.hero-copy h1 { font-size: var(--fs-hero); margin-block: 1rem 1.3rem; color: var(--forest-900); }
.hero-lede { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; width: 100%; height: clamp(320px, 34vw, 460px); }
.hero-blob {
  position: absolute; inset: 0;
  border-radius: 61% 39% 48% 52% / 45% 55% 45% 55%;
  background: linear-gradient(155deg, var(--terracotta) 0%, var(--sunshine) 100%);
  display: flex; align-items: center; justify-content: center;
  animation: blob-morph 14s ease-in-out infinite alternate;
  box-shadow: 0 40px 60px -25px rgba(198, 80, 45, .5);
}
@keyframes blob-morph {
  0%   { border-radius: 61% 39% 48% 52% / 45% 55% 45% 55%; }
  50%  { border-radius: 42% 58% 62% 38% / 55% 42% 58% 45%; }
  100% { border-radius: 55% 45% 38% 62% / 40% 60% 40% 60%; }
}
.hero-blob-logo {
  width: 58%; height: 58%; border-radius: 50%; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 40px -15px rgba(22,40,28,.35);
}
.hero-blob-logo img { width: 100%; height: 100%; object-fit: cover; }
.floatie { position: absolute; color: var(--forest-800); }
.floatie-star { top: 6%; right: 8%; font-size: 2rem; animation: float-a 6s ease-in-out infinite; }
.floatie-circle {
  bottom: 10%; left: 2%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky); animation: float-b 7s ease-in-out infinite;
}
.floatie-leaf { bottom: 20%; right: -2%; font-size: 1.6rem; color: var(--terracotta-dark); animation: float-a 8s ease-in-out infinite reverse; }
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(12deg); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(16px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); z-index: 1;
}
.scroll-cue-line { width: 1px; height: 34px; background: var(--ink-soft); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--terracotta); animation: cue-drip 2.2s ease-in-out infinite;
}
@keyframes cue-drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

.wave-divider { display: block; width: 100%; height: 90px; color: var(--cream); position: relative; margin-top: -2px; }
.wave-divider path { fill: currentColor; }

/* ============ ABOUT ============ */
.about { padding-block: var(--section-pad-y); background: var(--cream); }
.about-head h2 { color: var(--forest-900); max-width: 20ch; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; margin-top: 2.5rem; align-items: start; }
.about-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.about-points { display: flex; flex-direction: column; gap: 1.4rem; }
.about-points li {
  padding-left: 1.4rem; border-left: 3px solid var(--terracotta);
  display: flex; flex-direction: column; gap: .2rem;
}
.about-points strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest-900); }
.about-points span { color: var(--ink-soft); font-size: .92rem; }

.stat-row {
  margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.stat-card {
  background: var(--paper); border-radius: var(--radius-md); padding: 2rem 1.5rem;
  text-align: center; box-shadow: 0 20px 40px -28px rgba(22,40,28,.35);
  transition: transform .35s var(--ease-out);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); color: var(--terracotta); font-weight: 600; }
.stat-suffix { font-family: var(--font-display); font-size: 1.6rem; color: var(--terracotta); }
.stat-label { display: block; margin-top: .4rem; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }

/* ============ EĞİTİM ANLAYIŞIMIZ (dark) ============ */
.approach { position: relative; background: var(--forest-900); color: var(--cream); padding-block: var(--section-pad-y); overflow: hidden; }
.wave-divider-top { position: absolute; top: -1px; left: 0; color: var(--forest-900); background: var(--cream); height: 70px; }
.approach-head { max-width: 34ch; }
.approach-head h2 { color: var(--paper); }
.approach-grid {
  margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem;
}
.approach-card {
  background: var(--forest-800); border: 1px solid var(--line-light);
  border-radius: var(--radius-md); padding: 2.2rem 1.6rem;
  flex: 1 1 300px; max-width: 340px;
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.approach-card:nth-child(even) { transform: translateY(1.75rem); }
.approach-card:hover { transform: translateY(-.5rem); background: var(--forest-700); border-color: var(--terracotta); }
.approach-card:nth-child(even):hover { transform: translateY(1.75rem) translateY(-.5rem); }
.approach-index { font-family: var(--font-display); font-size: 2.4rem; color: var(--terracotta); opacity: .8; }
.approach-icon { width: 40px; height: 40px; margin-block: 1rem; color: var(--sunshine); transition: transform .4s var(--ease-out); }
.approach-card:hover .approach-icon { transform: rotate(-8deg) scale(1.05); }
.approach-card h3 { color: var(--paper); margin-bottom: .6rem; }
.approach-card p { color: rgba(251,243,231,.72); font-size: .95rem; }

/* ============ GALERİ ============ */
.gallery { padding-block: var(--section-pad-y); background: var(--cream-soft); }
.gallery-head { max-width: 50ch; }
.gallery-head h2 { color: var(--forest-900); }

.gallery-category { margin-top: 3.5rem; }
.gallery-category:first-of-type { margin-top: 3rem; }
.gallery-category-title {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.35rem; color: var(--terracotta-dark); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.gallery-category-title::before {
  content: ""; width: 2rem; height: 2px; background: var(--terracotta); border-radius: 2px;
}

.gallery-grid {
  column-count: 3; column-gap: 1.1rem;
}
.gallery-photo {
  break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 18px 36px -20px rgba(22,40,28,.4);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  position: relative;
}
/* Photos keep their natural aspect ratio (width:100%, height:auto) so nothing gets cropped — only a gentle scale + un-rotate on hover. */
.gallery-photo img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease-out); }
.gallery-photo:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 28px 46px -18px rgba(22,40,28,.5); z-index: 2; }
.gallery-photo:hover img { transform: scale(1.06); }

/* Renkli Günler (4 photos) */
.rg-1 { transform: rotate(-1.5deg); }
.rg-2 { transform: rotate(1deg); }
.rg-3 { transform: rotate(-.8deg); }
.rg-4 { transform: rotate(.6deg); }

/* Yaşam Becerileri (3 photos) */
.yb-1 { transform: rotate(-1deg); }
.yb-2 { transform: rotate(.8deg); }
.yb-3 { transform: rotate(-.6deg); }

/* ============ İLETİŞİM ============ */
.contact { padding-block: var(--section-pad-y); background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.contact-info h2 { color: var(--forest-900); margin-bottom: 1rem; max-width: 18ch; }
.contact-lede { color: var(--ink-soft); max-width: 42ch; margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; font-weight: 700; color: var(--forest-900); }
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  color: var(--terracotta); box-shadow: 0 10px 20px -12px rgba(22,40,28,.35);
}
.contact-icon svg { width: 20px; height: 20px; }

.instagram-link {
  display: inline-flex; align-items: center; gap: .7rem; font-weight: 800;
  color: var(--terracotta-dark); border: 2px solid var(--line); padding: .8rem 1.4rem; border-radius: 999px;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.instagram-link:hover { border-color: var(--terracotta); transform: translateY(-3px); }
.instagram-link svg { width: 22px; height: 22px; }

.contact-map {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 60px -30px rgba(22,40,28,.45);
  border: 6px solid var(--paper);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15) contrast(1.05); }

/* ============ FOOTER ============ */
.site-footer { background: var(--forest-900); color: var(--cream); padding-top: 3.5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.brand-footer .brand-name { color: var(--paper); }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { font-weight: 700; font-size: .9rem; color: rgba(251,243,231,.75); transition: color .25s var(--ease-out); }
.footer-nav a:hover { color: var(--sunshine); }
.footer-social {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-light);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social:hover { border-color: var(--terracotta); background: var(--terracotta); transform: translateY(-3px); }
.footer-copy { text-align: center; font-size: .82rem; color: rgba(251,243,231,.55); padding-block: 1.4rem; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
section { scroll-margin-top: var(--nav-h); }

/* ---- ≤1280px : tighten container / gallery a touch ---- */
@media (max-width: 1280px) {
  .approach-grid { gap: 1.25rem; }
}

/* ---- ≤1024px : small desktop / large tablet ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-actions { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-visual { order: 1; height: 300px; margin-inline: auto; max-width: 400px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-points { flex-direction: row; flex-wrap: wrap; }
  .about-points li { flex: 1 1 220px; }

  .approach-card { flex-basis: calc(50% - .875rem); max-width: calc(50% - .875rem); }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---- ≤900px : collapse nav to hamburger before the long brand name + links get cramped ---- */
@media (max-width: 900px) {
  :root { --nav-h: 72px; }

  .main-nav {
    position: fixed; inset: 72px 0 0 0; z-index: 90;
    background: var(--cream); padding: 2rem 1.5rem;
    transform: translateX(100%); transition: transform .4s var(--ease-out);
    display: block;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .nav-link { font-size: 1.15rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 2rem; }

  .nav-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
}

/* ---- ≤768px : tablet portrait ---- */
@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; }
  .approach-card { flex-basis: 100%; max-width: 100%; }
  .approach-card:nth-child(even) { transform: none; }
  .approach-card:nth-child(even):hover { transform: translateY(-.5rem); }

  .gallery-grid { column-count: 2; }
}

/* ---- ≤480px : small mobile ---- */
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }

  .gallery-grid { column-count: 1; }

  .contact-list li { align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
