/* ============================================================
   Hamilik Okulu Kırşehir — Shared Stylesheet
   Manrope (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --blue:        #009FE3;
  --blue-deep:   #005CA8;
  --blue-ink:    #033A6B;
  --green:       #58B832;
  --green-deep:  #3F9220;
  --gold:        #F6B400;
  --gold-deep:   #D99800;
  --sky:         #EAF8FF;
  --green-pale:  #F3FAEF;
  --ink:         #172033;
  --muted:       #667085;
  --border:      #DDE7F0;
  --white:       #FFFFFF;
  --paper:       #F7FBFE;

  /* Gradients */
  --grad-brand:  linear-gradient(120deg, #009FE3 0%, #28B6C8 48%, #58B832 100%);
  --grad-cta:    linear-gradient(120deg, #005CA8 0%, #009FE3 45%, #58B832 100%);
  --grad-sky:    linear-gradient(180deg, #FFFFFF 0%, #EAF8FF 100%);

  /* Shadows */
  --sh-sm:  0 2px 8px rgba(0,92,168,0.06);
  --sh-md:  0 14px 40px rgba(0,92,168,0.10);
  --sh-lg:  0 24px 80px rgba(0,92,168,0.12);
  --sh-glow:0 0 0 4px rgba(0,159,227,0.12);

  /* Radii */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Layout */
  --nav-h: 96px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--blue-ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: min(var(--maxw), 100%); margin: 0 auto; padding: 0 28px; }

section { position: relative; }

.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 0;
}
.sec-head p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(0,92,168,0.08);
  transition: height 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform: translateY(-100%);
  animation: navDrop 0.7s var(--ease) 0.1s forwards;
}
@keyframes navDrop { to { transform: translateY(0); } }
.nav.shrink { height: 74px; background: rgba(255,255,255,0.88); box-shadow: var(--sh-sm); }

.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; order: 3; }
.brand img { height: 54px; width: auto; transition: height 0.4s var(--ease); }
.brand .ham { height: 40px; }
.nav.shrink .brand img { height: 42px; }
.nav.shrink .brand .ham { height: 30px; }
.brand .ahi { height: 62px; }
.nav.shrink .brand .ahi { height: 48px; }
.brand .katki-text {
  display: flex; align-items: center;
  max-width: 132px; color: var(--blue-ink);
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 12px; line-height: 1.18;
  letter-spacing: 0;
}
.nav.shrink .brand .katki-text { font-size: 11px; max-width: 120px; }
.nav-links { display: flex; align-items: center; gap: 6px; order: 1; margin-right: auto; }
.nav .btn.desk { order: 4; }
.nav-links a {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15.5px;
  color: var(--ink); padding: 10px 16px; border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--blue-deep); background: var(--sky); }
.nav-links a.active { color: var(--blue-deep); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 100px; cursor: pointer; border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff; background: var(--grad-cta);
  background-size: 160% 160%;
  box-shadow: 0 10px 26px rgba(0,159,227,0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,159,227,0.42); filter: saturate(1.08); }
.btn-ghost {
  color: var(--blue-deep); background: #fff; border: 1.5px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--sh-sm); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn .arr,
.btn .arr-icon { transition: transform 0.25s var(--ease); }
.btn:hover .arr,
.btn:hover .arr-icon { transform: translate(3px, -1px); }

.arr-icon {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.12em;
}

/* Hamburger */
.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; order: 1; margin-right: auto;
}
.burger span { width: 24px; height: 2.5px; background: var(--blue-ink); border-radius: 2px; transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px 28px; display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; transition: 0.3s var(--ease);
}
.mobile-menu.show { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a {
  font-family: 'Manrope'; font-weight: 600; font-size: 18px; padding: 14px 8px;
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.mobile-menu .btn { margin-top: 14px; }

/* Mobile sticky bottom CTA */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { width: 100%; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001s !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #F7FBFE 0%, #FFFFFF 100%);
  color: var(--muted); padding: 72px 0 28px; margin-top: 40px; position: relative;
  overflow: hidden; border-top: 1px solid var(--border);
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(640px 320px at 12% -10%, rgba(0,159,227,0.14), transparent 60%),
    radial-gradient(540px 300px at 92% 0%, rgba(88,184,50,0.12), transparent 60%);
  pointer-events: none;
}
.footer .wrap { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--blue-ink); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: var(--muted); padding: 6px 0; font-size: 15px; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: var(--blue-deep); transform: translateX(4px); }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.footer-logos .chip { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; }
.footer-logos .chip img { height: 40px; }
.footer-logos .chip.round img { height: 40px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); color: var(--blue-deep);
  transition: 0.25s var(--ease);
}
.footer-social a:hover { background: var(--sky); color: var(--blue-deep); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer-bottom strong { color: var(--blue-ink); font-weight: 600; }

/* ============================================================
   GENERIC CARD / CHIP UTILITIES
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope'; font-weight: 600; font-size: 14px;
  padding: 8px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--border); color: var(--blue-deep);
  backdrop-filter: blur(6px);
}
.tag .i { width: 16px; height: 16px; color: var(--green-deep); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue-deep); flex: none;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.green { background: var(--green-pale); color: var(--green-deep); }
.icon-badge.gold  { background: #FFF6E0; color: var(--gold-deep); }

/* Decorative aura blobs */
.aura { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; z-index: 0; }

/* Thin line pattern bg helper */
.grid-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,92,168,0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,92,168,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}

/* Bird motif (reused) drift */
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(-1.5deg); } }
@keyframes driftSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes auraFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-24px) scale(1.08); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Firebase analytics consent — light, non-blocking notice */
.firebase-consent {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(460px, calc(100% - 32px));
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(18, 43, 71, .16);
}
.firebase-consent strong { display: block; color: var(--blue-ink); margin-bottom: 5px; }
.firebase-consent p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.firebase-consent-actions { display: flex; flex: none; gap: 8px; }
.firebase-consent-actions .btn { min-height: 40px; padding: 10px 14px; font-size: 12px; }
@media (max-width: 560px) {
  .firebase-consent { right: 16px; bottom: 16px; width: calc(100% - 32px); display: block; }
  .firebase-consent-actions { margin-top: 14px; justify-content: flex-end; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .nav-links, .nav .btn.desk { display: none; }
  .burger { display: flex; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  h1, h2, h3, h4, h5, p, .lead { text-wrap: auto; overflow-wrap: break-word; }
  .footer-top { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
  .brand .ham { height: 24px; }
  .brand .ahi { height: 40px; }
  .brand .katki-text { font-size: 9.5px; max-width: 84px; line-height: 1.12; }
  .nav.shrink .brand img { height: 30px; }
  .nav.shrink .brand .ham { height: 22px; }
  .nav.shrink .brand .ahi { height: 34px; }
  .nav.shrink .brand .katki-text { font-size: 9px; max-width: 76px; }
  .brand { gap: 8px; }
  .nav .wrap { gap: 12px; }
}


.intro-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 35, 0.72);
  backdrop-filter: blur(4px);
  padding: 24px;
}

.intro-splash-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.intro-splash-content img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: block;
}

.intro-splash-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #0a1e35;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
}

.intro-splash-close:hover {
  background: #f2f5f8;
}

@media (max-width: 560px) {
  .intro-splash-close {
    top: -14px;
    right: 4px;
  }
}
