/* =========================================================
   Can Kitap Kırtasiye — Statik Site ("Renkli Raf")
   Marka turuncusu + logodaki gökkuşağı
   ========================================================= */

:root {
  --brand: #f47a1e;
  --brand-deep: #e0620a;
  --brand-soft: #ffe7cf;

  --red: #ee3e38;
  --amber: #fdb714;
  --teal: #11a394;
  --blue: #2e7dd1;
  --purple: #8b3daf;
  --pink: #e84c9a;

  --ink: #241c17;
  --ink-soft: #6a5f57;
  --paper: #fffdf9;
  --paper-2: #fff6ea;
  --card: #ffffff;
  --line: #f0e7d9;

  --wrap: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(60, 40, 15, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(70, 45, 15, 0.28);
  --shadow-lg: 0 34px 70px -28px rgba(70, 45, 15, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--teal), var(--purple));
}

/* ===================== BUTONLAR ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -10px rgba(224, 98, 10, 0.7); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-3px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand-deep); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ===================== NAV ===================== */
.nav { position: sticky; top: 0; z-index: 50; padding: 10px 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s; }
.nav.scrolled { background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); padding: 4px 0; }
/* 3'lü grid: solda menü · ortada logo · sağda telefon */
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { justify-self: center; display: flex; align-items: center; }
.brand img {
  height: 104px; width: 104px; border-radius: 50%;
  border: 4px solid var(--brand); background: #fff; padding: 3px;
  object-fit: contain; box-shadow: var(--shadow-sm);
  transition: height 0.3s, width 0.3s, border-width 0.3s;
}
.nav.scrolled .brand img { height: 82px; width: 82px; }
.nav-links { justify-self: start; display: flex; align-items: center; gap: 3px; }
.nav-links a { padding: 9px 13px; border-radius: 100px; font-weight: 600; font-size: 0.94rem; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; color: var(--brand); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2.5px; border-radius: 3px; background: var(--ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ===================== HERO (iki sütun — sağda gökkuşağı yelpaze) ===================== */
.hero { position: relative; padding: 46px 0 44px; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; pointer-events: none; }
.hero-blob.b1 { width: 460px; height: 460px; background: var(--brand-soft); top: -120px; right: -80px; }
.hero-blob.b2 { width: 380px; height: 380px; background: #dff3ef; bottom: -140px; left: -100px; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero-copy h1 .hl { position: relative; color: var(--brand); white-space: nowrap; }
.hero-copy h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.34em; z-index: -1;
  background: linear-gradient(90deg, var(--amber), var(--pink)); opacity: 0.35; border-radius: 6px;
  transform: scaleX(0); transform-origin: left; animation: underline 0.9s var(--ease) 1s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero-copy p { font-size: 1.16rem; color: var(--ink-soft); max-width: 30em; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.7rem; }
.hero-trust small { color: var(--ink-soft); font-size: 0.9rem; }

/* Sağdaki gökkuşağı yelpaze kartı */
.fan-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.fan-card {
  position: relative; width: min(100%, 460px); aspect-ratio: 1/1;
  background: var(--card); border-radius: 34px; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; overflow: hidden; animation: floaty 6s ease-in-out infinite;
}
.fan-card::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 16%; height: 5px; border-radius: 5px;
  background: linear-gradient(90deg, var(--red), var(--brand), var(--amber), var(--teal), var(--blue), var(--purple));
  opacity: 0.9;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
/* Kitap yığını — net, tanınır görsel */
.books { position: relative; width: 70%; display: flex; flex-direction: column; align-items: center; }
.book {
  height: 38px; border-radius: 6px; position: relative; margin-bottom: 12px;
  box-shadow: 0 12px 20px -12px rgba(0,0,0,0.3);
  opacity: 0; animation: book-in 0.55s var(--ease) forwards;
}
.book::after { /* sayfa kenarı */
  content: ""; position: absolute; top: 6px; bottom: 6px; right: 7px; width: 8px; border-radius: 2px;
  background: repeating-linear-gradient(0deg, #fff 0 2px, rgba(0,0,0,0.07) 2px 4px);
}
.book::before { /* sırt etiketi */
  content: ""; position: absolute; top: 9px; bottom: 9px; left: 15px; width: 26px; border-radius: 3px;
  background: rgba(255,255,255,0.6);
}
.book.b1 { background: var(--red);   width: 86%;  transform: rotate(-2.5deg); animation-delay: .5s; }
.book.b2 { background: var(--amber); width: 100%; transform: rotate(1.5deg);  animation-delay: .62s; }
.book.b3 { background: var(--teal);  width: 80%;  transform: rotate(-1.5deg); animation-delay: .74s; }
.book.b4 { background: var(--blue);  width: 92%;  transform: rotate(1deg); margin-bottom: 0; animation-delay: .86s; }
@keyframes book-in { from { opacity: 0; transform: translateY(-16px) scale(0.94); } to { opacity: 1; } }

.pencil {
  position: absolute; top: -20px; left: 50%; width: 58%; height: 15px;
  transform: translateX(-42%) rotate(-9deg); border-radius: 3px 2px 2px 3px;
  background: linear-gradient(90deg, #f6b73a 0 76%, #e9cfa2 76% 88%, #3a3a3a 88% 100%);
  box-shadow: 0 8px 14px -8px rgba(0,0,0,0.35);
  opacity: 0; animation: book-in 0.55s var(--ease) 1s forwards;
}
.pencil::before { /* silgi */
  content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 10px;
  border-radius: 4px 2px 2px 4px; background: var(--pink);
}

/* İkon rozetleri (yazı değil) */
.chip {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow-md); display: grid; place-items: center;
  animation: floaty 5s ease-in-out infinite;
}
.chip svg { width: 26px; height: 26px; }
.chip.c1 { color: var(--teal); top: 7%; left: -5%; animation-delay: .3s; }
.chip.c2 { color: var(--pink); top: 44%; right: -5%; animation-delay: .7s; }
.chip.c3 { color: var(--blue); bottom: 12%; left: -4%; animation-delay: 1.1s; }

/* ===================== BÖLÜM ORTAK ===================== */
.section { padding: 74px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ===================== KATEGORİLER ===================== */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 230px; padding: 20px; border-radius: 18px; color: #fff; overflow: hidden;
  box-shadow: var(--shadow-md); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: rgba(255,255,255,0.35); }
.cat:hover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.cat .ic { width: 42px; height: 42px; margin-bottom: auto; }
.cat h3 { font-size: 1.18rem; color: #fff; }
.cat span { font-size: 0.86rem; opacity: 0.9; margin-top: 4px; }
.cat .arrow { margin-top: 14px; font-weight: 700; font-size: 0.9rem; opacity: 0; transform: translateX(-6px); transition: 0.3s var(--ease); }
.cat:hover .arrow { opacity: 1; transform: translateX(0); }
.cat.k1 { background: linear-gradient(160deg, #f6924a, var(--brand-deep)); }
.cat.k2 { background: linear-gradient(160deg, #2ea6d6, var(--blue)); }
.cat.k3 { background: linear-gradient(160deg, #23b3a4, var(--teal)); }
.cat.k4 { background: linear-gradient(160deg, #f36ba4, var(--pink)); }
.cat.k5 { background: linear-gradient(160deg, #a45ac3, var(--purple)); }
.cat.k6 { background: linear-gradient(160deg, #fdc23e, #f0980f); }

/* ===================== NEDEN BİZ ===================== */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.feature .badge svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ===================== OKUL LİSTESİ ===================== */
.list-card {
  background: linear-gradient(135deg, #2a211b, #3a2a1c); color: #fff; border-radius: var(--radius);
  padding: 46px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.list-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--red), var(--brand), var(--amber), var(--teal), var(--blue), var(--purple)); }
.list-card h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.list-card .lead { color: rgba(255,255,255,0.78); margin: 14px 0 24px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 18px; }
.step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--amber); min-width: 34px; }
.step b { display: block; font-size: 1.05rem; }
.step small { color: rgba(255,255,255,0.7); font-size: 0.92rem; }

/* ===================== İLETİŞİM ===================== */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row b { display: block; }
.info-row span { color: var(--ink-soft); }
.info-row a { color: var(--brand-deep); font-weight: 700; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: rgba(255,255,255,0.82); padding: 56px 0 26px; margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.96rem; max-width: 28em; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.8); font-size: 0.98rem; }
.footer ul a:hover { color: var(--brand); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.socials a:hover { background: var(--brand); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal a:hover { color: var(--brand); }
.footer-credit a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-credit a:hover { color: var(--brand); }

/* ===================== İÇ SAYFALAR (Hakkımızda / Yasal) ===================== */
.page-header { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
/* dar içerikli (prose) sayfalarda başlığı metinle hizala */
.page-header--narrow .wrap { max-width: 780px; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.page-header p { color: var(--ink-soft); font-size: 1.08rem; margin: 12px 0 0; max-width: 62ch; }
.prose { max-width: 780px; margin: 0 auto; padding: 46px 22px 66px; }
.prose .lead { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 26px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.prose p, .prose li { line-height: 1.75; margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose a { color: var(--brand-deep); font-weight: 600; }
.prose .muted { color: var(--ink-soft); font-size: 0.9rem; }
.prose .box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 20px 0; }
.prose .box p:last-child { margin-bottom: 0; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1040px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .fan-stage { max-width: 420px; margin-inline: auto; order: -1; }
  .chip { display: none; } /* rozetler mobilde gizli */
  .list-card, .visit-grid { grid-template-columns: 1fr; }
  /* mobilde: ortada logo · sağda hamburger */
  .nav-phone { display: none; }
  .nav-links { display: none; }
  .brand { grid-column: 2; }        /* logoyu ortada sabitle */
  .nav-actions { grid-column: 3; }  /* hamburger sağda */
  .brand img { height: 76px; width: 76px; border-width: 3px; }
  .nav.scrolled .brand img { height: 66px; width: 66px; }
  .nav-toggle { display: inline-flex; }
  /* mobil menü: sağdan açılan panel */
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 6px); right: 14px; left: auto;
    width: min(72vw, 264px);
    background: #fff; padding: 12px; border-radius: 16px; box-shadow: var(--shadow-lg);
    transform-origin: top right; animation: menu-in 0.22s var(--ease);
  }
  .nav-links.open a { width: 100%; padding: 12px 15px; border-radius: 10px; text-align: right; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .list-card { padding: 28px; }
  .hero-trust { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .leaf { opacity: 1; transform: translateX(-50%) rotate(var(--r)); }
}
