:root {
  --text: #222222;
  --muted: #6a6a6a;
  --soft: #fff5f0;
  --soft-2: #f7fbff;
  --brand: #ff6b6b;
  --brand-dark: #d83f52;
  --mint: #6bd6c7;
  --yellow: #ffd166;
  --blue: #5472ff;
  --card: #ffffff;
  --line: rgba(34,34,34,.1);
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.05) 0 12px 30px, rgba(0,0,0,0.08) 0 24px 60px;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(255,209,102,.24), transparent 28rem),
    radial-gradient(circle at 90% 6%, rgba(107,214,199,.23), transparent 24rem),
    #fffdfb;
}

a { color: inherit; text-decoration: none; }
img, picture { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34,34,34,.08);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #ff9f7a);
  color: white; font-weight: 900; font-family: 'Nunito', sans-serif; font-size: 24px;
  box-shadow: 0 12px 30px rgba(255,107,107,.3);
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; color: #4a4a4a; }
.nav a { padding: 10px 4px; }
.nav a:hover { color: var(--brand-dark); }
.nav-cta { background: #222; color: #fff !important; border-radius: 999px; padding: 11px 18px !important; }
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  box-shadow: rgba(0,0,0,.05) 0 8px 24px;
  cursor: pointer;
}
.mobile-menu-toggle span { width: 20px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 18px;
  right: 18px;
  z-index: 80;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: flex; min-height: 46px; align-items: center; padding: 0 14px; border-radius: 16px; font-weight: 900; color: #444; }
.mobile-menu a:hover { background: var(--soft); color: var(--brand-dark); }
.mobile-menu .nav-cta { justify-content: center; margin-top: 4px; }
:focus-visible { outline: 3px solid rgba(84,114,255,.42); outline-offset: 3px; }

.section-pad { padding: clamp(58px, 8vw, 112px) clamp(20px, 6vw, 84px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(34px, 6vw, 86px); align-items: start; min-height: auto; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(50px, 6vw, 84px); }
.eyebrow { margin: 0 0 12px; color: var(--brand-dark); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { font-family: 'Nunito', 'DM Sans', sans-serif; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(24px, 4vw, 48px); line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.08; margin-bottom: 10px; }
p { line-height: 1.72; color: var(--muted); font-size: 17px; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 760px; }

.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 16px 40px rgba(216,63,82,.26); }
.button.whatsapp { background: #25d366; color: #fff; box-shadow: 0 16px 40px rgba(37,211,102,.22); }
.button-icon { width: 20px; height: 20px; margin-right: 8px; flex: 0 0 auto; }
.button.secondary { background: #fff; color: #222; border: 1px solid var(--line); box-shadow: rgba(0,0,0,.05) 0 8px 24px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span, .tag { border: 1px solid rgba(255,107,107,.18); background: #fff; color: #913044; border-radius: 999px; padding: 9px 13px; font-weight: 900; font-size: 13px; }

.hero-card { position: relative; }
.hero-card > img,
.hero-card > picture > img { width: 100%; height: clamp(500px, 62vh, 640px); object-fit: cover; object-position: center 68%; border-radius: 42px; box-shadow: var(--shadow); }
.floating-note {
  position: absolute;
  left: 24px;
  top: 28px;
  max-width: 260px;
  padding: 16px 20px;
  border-radius: 22px 22px 22px 6px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow), 0 4px 16px rgba(0,0,0,.08);
  font-size: 15px;
  border: 1px solid rgba(255,107,107,.12);
}
.floating-note::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 24px;
  border: 10px solid transparent;
  border-top-color: rgba(255,255,255,.95);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.06));
}
.floating-note strong, .floating-note span { display: block; }
.floating-note strong { font-size: 16px; color: var(--text); }
.floating-note span { color: var(--muted); margin-top: 4px; line-height: 1.5; font-size: 14px; }

.stats-strip { margin: 0 clamp(20px, 6vw, 84px); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: #222; color: white; border-radius: 34px; box-shadow: var(--shadow); }
.stats-strip article { padding: 18px; border-radius: 24px; background: rgba(255,255,255,.06); }
.stats-strip strong { display: block; font-size: clamp(28px, 4vw, 44px); font-family: 'Nunito'; }
.stats-strip span { color: rgba(255,255,255,.72); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.credential-card, .service-card, .post-card, .contact-card, .family-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); }
.credential-card { padding: clamp(24px, 4vw, 44px); }
.check-list { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: #444; line-height: 1.45; font-weight: 700; }
.check-list li::before { content: '✓'; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eafaf7; color: #119582; font-weight: 900; }

.soft-bg { background: linear-gradient(180deg, rgba(255,245,240,.86), rgba(247,251,255,.86)); }
.instagram-section { position: relative; }
.instagram-updated {
  position: absolute;
  top: 24px;
  right: clamp(18px, 4vw, 56px);
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(31, 42, 54, .08);
  color: #6a5b52;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.section-head { max-width: 860px; margin: 0 auto 36px; text-align: center; }
.section-head.narrow { max-width: 920px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 28px; transition: transform .2s ease; }
.service-card:hover, .post-card:hover { transform: translateY(-4px); }
.icon { font-size: 34px; display: inline-grid; place-items: center; width: 62px; height: 62px; background: var(--soft); border-radius: 22px; margin-bottom: 18px; }

/* Ana bölüm görseli (tek görsel, eskiden image-stack idi) */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.accordion-list { display: grid; gap: 12px; margin-top: 24px; }
details { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; font-size: 18px; }
details p { margin-bottom: 0; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.timeline article { padding: 26px; border-radius: 28px; background: linear-gradient(180deg, #fff, #fff8f5); border: 1px solid rgba(0,0,0,.06); }
.timeline span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #222; color: white; font-weight: 900; margin-bottom: 18px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.blog-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(0,0,0,.05); box-shadow: var(--shadow); transition: transform .2s ease; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card h2, .blog-card h3 { margin-top: 16px; }
.blog-card p { font-size: 16px; }
.blog-archive-link { display: flex; justify-content: center; margin-top: 28px; }
.text-link { color: var(--brand-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.blog-page { background: radial-gradient(circle at 12% 8%, rgba(255,209,102,.22), transparent 26rem), #fffdfb; }
.blog-hero { max-width: 1100px; margin: 0 auto; padding-bottom: 34px; }
.blog-list { padding-top: 24px; }
.article-shell { max-width: 880px; margin: 0 auto; padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 48px); }
.article-shell h1 { font-size: clamp(34px, 5.2vw, 62px); }
.article-shell h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 42px; }
.article-shell h3 { font-size: 21px; margin-top: 24px; }
.article-shell li { margin-bottom: 10px; line-height: 1.65; color: #484848; font-size: 17px; }
.article-hero-image { margin: 32px 0 40px; }
.article-hero-image img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.article-note, .article-cta, .related-posts { margin-top: 34px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: rgba(0,0,0,.03) 0 10px 30px; }
.article-cta { background: linear-gradient(135deg, rgba(255,245,240,.96), rgba(247,251,255,.96)); }
.article-cta h2 { margin-top: 0; font-size: clamp(24px, 3vw, 34px); }
.related-posts a { color: var(--brand-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { overflow: hidden; transition: transform .2s ease; }
.post-media { display: block; color: inherit; text-decoration: none; background: #111; }
.post-card img,
.post-card video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card video { display: block; background: #111; }
.post-body { padding: 24px; }
.reactions { display: flex; gap: 10px; margin-top: 18px; }
.reactions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 900; }
.reactions button:hover { border-color: var(--brand); }
.instagram-callout { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 30px; background: #222; color: #fff; }
.instagram-callout p { color: rgba(255,255,255,.76); margin-bottom: 0; }
.instagram-callout .eyebrow { color: var(--yellow); }
.instagram-callout h3 { margin-bottom: 6px; }
.post-media-link { display: block; color: inherit; text-decoration: none; }
.inline-link { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 900; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.admin-page { background: var(--soft); min-height: 100vh; }
.admin-card { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.admin-token-row { display: grid; gap: 10px; margin: 24px 0; }
.admin-token-row input { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; font: inherit; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.admin-status { display: grid; gap: 8px; margin-top: 20px; }
.admin-status-row { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-status-row span { overflow-wrap: anywhere; }

.family-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; overflow: hidden; padding: clamp(26px, 4vw, 46px); align-items: center; background: #fff; }
.family-card picture { width: 100%; }
.family-card img { height: clamp(440px, 42vw, 560px); width: 100%; object-fit: cover; object-position: center 15%; border-radius: 28px; }

.contact { background: radial-gradient(circle at center, rgba(255,107,107,.16), transparent 40rem); }
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.legal-card { padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: #fff; border: 1px solid rgba(0,0,0,.05); box-shadow: var(--shadow); }
.legal-card h3 { margin-bottom: 12px; }
.legal-card p { font-size: 15px; margin-bottom: 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.contact-card { max-width: 860px; margin: auto; padding: clamp(30px, 5vw, 60px); text-align: center; }
.contact-card small { display: block; color: var(--muted); margin-top: 24px; line-height: 1.6; }
.contact-card small a { color: var(--brand-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 30px clamp(20px, 6vw, 84px); border-top: 1px solid var(--line); background: #fff; }
.footer span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.footer a { font-weight: 900; color: var(--brand-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: flex-end; }

.floating-whatsapp {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 17px 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .38), 0 8px 20px rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.34);
}
.floating-whatsapp svg { width: 26px; height: 26px; flex: 0 0 auto; }
.floating-whatsapp:focus-visible { outline: 4px solid rgba(37, 211, 102, .28); outline-offset: 4px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .hero, .grid-2, .family-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .stats-strip, .service-grid, .post-grid, .timeline, .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image { max-width: 100%; aspect-ratio: 5 / 4; }
  .family-card img { height: 380px; }
  .family-card { text-align: center; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .site-header { padding: 14px 18px; }
  .hero-card > img,
  .hero-card > picture > img { height: 500px; border-radius: 30px; }
  /* Mobilde balon iki yandan sabitlenir; böylece dar ekranda fotoğraf kenarından taşmaz/kesilmez. */
  .floating-note { left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; max-width: none; padding: 13px 15px; font-size: 14px; border-radius: 22px 22px 6px 22px; }
  .floating-note strong { font-size: 14px; }
  .floating-note span { font-size: 12px; }
  .floating-note::after { left: 55%; right: auto; top: -10px; bottom: auto; transform: translateX(-50%); border-top: none; border-bottom: 10px solid rgba(255,255,255,.95); }
  .stats-strip, .service-grid, .post-grid, .timeline, .legal-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .section-head { text-align: left; }
  .hero-image { aspect-ratio: 4 / 5; }
  .family-card img { height: 360px; }
  .instagram-callout { align-items: stretch; flex-direction: column; }
  .instagram-callout .button { align-self: stretch; }
  .legal-card { padding: 22px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .floating-whatsapp { display: inline-flex; }
}
