/* =========================================================
   Uzm. Dr. Hilal Seven — Tasarım sistemi (stil dosyası)
   Renkler logodan alınmıştır: yumuşak altın, nane, pembe,
   koyu yeşil. Sakin, sıcak ve okunaklı bir his hedeflenmiştir.
   ========================================================= */

:root {
  --cream:     #FAF7F2;   /* arka plan */
  --cream-2:   #F3ECE2;   /* açık vurgu */
  --ink:       #2E4A43;   /* koyu yeşil — ana metin/başlık */
  --ink-soft:  #3C5750;
  --muted:     #5C6B66;   /* ikincil metin */
  --gold:      #BFA06A;   /* altın vurgu (dekoratif) */
  --gold-dark: #A8884E;   /* dekoratif — metin için kullanmayın */
  --gold-text: #806128;   /* erişilebilir koyu altın — küçük etiket metinleri için (AA) */
  --mint:      #BFE3E0;   /* nane kalp */
  --pink:      #EFC9DD;   /* pembe kalp */
  --line:      #E7DED2;   /* ince çizgiler */
  --focus:     #1F6F8B;   /* odak halkası (yüksek kontrast) */
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Lora', Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
}

p { color: var(--ink-soft); }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Erişilebilirlik ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Yer tutucu metinler (sonra doldurulacak) hafifçe işaretlenir */
.placeholder {
  background: #FFF6E6;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 2px 8px;
  color: #7a5f1f;
  font-size: 0.95em;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #233a34; color: #fff; }

.btn-gold { background: var(--gold); color: #3A2E14; }
.btn-gold:hover { background: var(--gold-dark); color: #2a2210; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.1; }
.brand-sub { display: block; font-family: 'Nunito Sans', sans-serif; font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }

/* Dar telefon ekranlarında üst menüyü ferahlatmak için alt başlığı gizle
   ve isim yazısını biraz küçült (taşmayı önler). */
@media (max-width: 639px) {
  .brand-sub { display: none; }
  /* İsim tek satırda kalsın (taşmadan), ekrana göre ölçeklensin */
  .brand-name { font-size: clamp(0.75rem, 3.4vw, 1rem); white-space: nowrap; }
  .brand-logo { width: 36px; height: 36px; }
}

/* Üst menüdeki dar ekran "Randevu Al" düğmesi */
.btn-compact { min-height: 42px; padding: 0.5rem 0.8rem; font-size: 0.85rem; }

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.menu-button { background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Bölümler / yardımcılar ---------- */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -22px rgba(46, 74, 67, .45);
  height: 100%;
  overflow-wrap: anywhere; /* uzun e-posta/kullanıcı adı taşmasın */
  min-width: 0;            /* grid içinde küçülebilsin */
}
/* İletişim kartlarında (flex) metin sütunu küçülebilsin */
.card.flex > * { min-width: 0; }

.hr-gold { width: 64px; height: 3px; background: var(--gold); border: 0; border-radius: 3px; margin: 1rem 0; }

/* Konu etiketleri (ilgi alanları) */
.chip {
  display: inline-block;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Yıldız puanı (dekoratif) */
.stars { color: #A8884E; letter-spacing: 2px; }
blockquote { margin: 0; }

/* Sertifika / belge galerisi — belgelerin gerçek görüntüsünü gösterir */
/* Masonry (sütun) düzeni — kısa belgelerin altında boşluk kalmaz */
.cert-grid { columns: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .cert-grid { columns: 2; } }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(46,74,67,.45); display: block; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 1.5rem; }
.cert-thumb { position: relative; display: block; background: #fbfaf7; line-height: 0; }
.cert-thumb img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.015); }
.cert-badge { position: absolute; top: 10px; right: 10px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; z-index: 2; }
.cert-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; border-top: 1px solid var(--line); }
.cert-body h3 { font-size: 1.05rem; margin: 0; }

/* Yayınlar listesi */
.pub-list { padding-left: 1.25rem; }
.pub-list li { margin-bottom: .7rem; color: var(--ink-soft); }
.pub-list li::marker { color: var(--gold-dark); font-weight: 700; }

/* WhatsApp yüzen düğme */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.45);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px -6px rgba(0,0,0,.5); color: #fff; }
.wa-float svg { width: 32px; height: 32px; display: block; }
@media (max-width: 639px) { .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }

/* Telefon yüzen düğme (sol alt) */
.tel-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px;
  background: #2E4A43; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.45);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tel-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px -6px rgba(0,0,0,.5); color: #fff; }
.tel-float svg { width: 28px; height: 28px; display: block; }
@media (max-width: 639px) { .tel-float { left: 14px; bottom: 14px; width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .tel-float { transition: none; } .tel-float:hover { transform: none; } }

.media-frame {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint) 0%, var(--cream-2) 55%, var(--pink) 100%);
  box-shadow: 0 30px 60px -32px rgba(46, 74, 67, .55);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Sakin dekoratif arka plan lekeleri */
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

.contact-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.contact-link:hover { color: var(--gold-dark); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--ink); color: #Eaf1ee; }
.site-footer a { color: #EAF1EE; }
.site-footer a:hover { color: #fff; }
.footer-muted { color: #B9CcC6; }

/* ---------- Hareketi azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
