/* ============================================================
   RENKLER VE YAZI TİPİ: değiştirmek isterseniz buradan değiştirin
   ============================================================ */
:root {
  --ink: #0f2e4c;          /* koyu lacivert: başlıklar, koyu alanlar */
  --text: #3b556e;         /* normal yazı rengi */
  --sky: #e9f4fa;          /* açık mavi zemin */
  --sky-deep: #d3e9f3;
  --mint: #d3f0e8;
  --aqua: #1aa6b7;
  --aqua-dark: #0e7c8b;    /* bağlantılar ve koyu turkuaz alanlar */
  --wa: #15803d;           /* WhatsApp yeşili (randevu düğmeleri) */
  --wa-hover: #116a32;
  --line: #d9e6ee;
  --white: #ffffff;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--aqua-dark); }
ul { margin: 0; padding: 0; list-style: none; }

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

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

/* ============================================================
   DÜĞMELER
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border: 2px solid transparent; border-radius: 999px;
  font: 700 0.95rem var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.02rem; }
.btn-icon { width: 1.25rem; height: 1.25rem; flex: none; }

.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--sky); }

/* ============================================================
   ÜST MENÜ
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.4rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-icon { width: 1.9rem; height: 2.1rem; fill: var(--aqua); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a.active { border-bottom-color: var(--aqua); }

.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; padding: 0.7rem; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--white); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   ANASAYFA
   ============================================================ */
.hero { background: var(--sky); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
.hero-art { width: 100%; height: auto; display: block; }
.art-blob { fill: var(--sky-deep); }
.art-dot { fill: var(--aqua); opacity: 0.35; }
.art-dot.alt { fill: var(--ink); opacity: 0.2; }
.art-spark { fill: var(--aqua); }
.art-tooth { fill: var(--white); stroke: var(--aqua); stroke-width: 5; stroke-linejoin: round; }
.art-eye { fill: var(--ink); }
.art-smile { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.art-float { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

/* Çalışma saati / telefon / adres şeridi (hero'nun üzerine biner) */
.info-bar-wrap { position: relative; z-index: 2; margin-top: -3.2rem; }
.info-bar {
  display: grid; gap: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 14px 40px rgba(15, 46, 76, 0.1);
}
.info-bar li { display: flex; flex-direction: column; gap: 0.1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.info-bar li:last-child { border-bottom: 0; }
.info-label { font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 0.15rem; }
@media (min-width: 860px) {
  .info-bar { grid-template-columns: 1fr 0.8fr 1.2fr; }
  .info-bar li { border-bottom: 0; border-right: 1px solid var(--line); }
  .info-bar li:last-child { border-right: 0; }
}

/* ============================================================
   ORTAK BÖLÜM STİLLERİ
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.08rem; margin: 0; }

/* ============================================================
   HİZMETLERİMİZ
   ============================================================ */
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

/* Üzerine gelince renk değiştiren hizmet kartları (2. projedeki efekt) */
.service { display: flex; flex-direction: column; gap: 1.1rem; min-height: 15rem; padding: 1.6rem; background: var(--sky); border: 1px solid var(--line); border-radius: 24px; transition: background .25s, border-color .25s, transform .25s; }
.service p { margin: 0; font-size: 1rem; }
.service h3 { margin-bottom: 0.3rem; }
.service h3, .service p { transition: color .25s; }
.service .icon { background: var(--white); transition: background .25s, color .25s; }
.service:hover { background: var(--aqua-dark); border-color: var(--aqua-dark); transform: translateY(-4px); }
.service:hover h3 { color: var(--white); }
.service:hover p { color: #e3f5f7; }
.service:hover .icon { background: rgba(255, 255, 255, 0.18); color: var(--white); }

.icon {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--sky); color: var(--aqua-dark);
  display: grid; place-items: center;
}
.icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   DOKTORLARIMIZ
   ============================================================ */
.doctors { background: var(--sky); }
.doctor-grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) { .doctor-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.doctor { background: var(--white); border-radius: 26px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.doctor p { font-size: 1rem; }
.doctor h3 { font-size: 1.5rem; margin-bottom: 0.1rem; }
.role { color: var(--aqua-dark); font-weight: 700; margin-bottom: 1rem; }

/* Kemer şeklinde portre çerçevesi */
.portrait {
  width: 8.5rem; height: 10.5rem; margin-bottom: 1.4rem;
  border-radius: 999px 999px 18px 18px;
  background: var(--mint); color: var(--aqua-dark);
  display: grid; place-items: center; overflow: hidden;
  font-size: 2.4rem; font-weight: 800; letter-spacing: 0.02em;
}
.portrait.alt { background: var(--sky-deep); color: var(--ink); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tags li { background: var(--sky); color: var(--ink); font-size: 0.9rem; font-weight: 600; padding: 0.3rem 0.9rem; border-radius: 999px; }

/* ============================================================
   RANDEVU ÇAĞRISI
   ============================================================ */
.cta { background: var(--aqua-dark); color: #e3f5f7; padding: clamp(2.5rem, 6vw, 3.75rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { color: var(--white); margin-bottom: 0.3rem; }
.cta p { margin: 0; font-size: 1.08rem; }

/* ============================================================
   İLETİŞİM
   ============================================================ */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }

.contact-list { display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--sky); color: var(--aqua-dark); display: grid; place-items: center; flex: none; }
.contact-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-weight: 700; color: var(--ink); }
.contact-list a { font-weight: 600; }

.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 340px; background: var(--sky); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   ALT BİLGİ
   ============================================================ */
.site-footer { background: var(--ink); color: #b9cbdb; padding: 2.5rem 0 5.5rem; font-size: 0.95rem; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-note { max-width: 40rem; }
.footer-copy { margin: 0; font-size: 0.88rem; opacity: 0.8; }
@media (min-width: 721px) { .site-footer { padding-bottom: 2.5rem; } }

/* ============================================================
   MOBİLDE SABİT RANDEVU DÜĞMESİ
   ============================================================ */
.float-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: none; align-items: center; gap: 0.5rem;
  background: var(--wa); color: var(--white); text-decoration: none;
  font-weight: 700; padding: 0.85rem 1.3rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 46, 76, 0.3);
}
@media (max-width: 720px) { .float-wa { display: inline-flex; } }

/* Hareketi azaltmak isteyen kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art-float { animation: none; }
  .btn { transition: none; }
}

/* ============================================================
   SAYFA İNDİKÇE İÇERİĞİN YUMUŞAKÇA BELİRMESİ (3. projedeki efekt)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ÇOK SAYFALI SİTE İÇİN EKLEMELER
   ============================================================ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.alt { background: var(--sky); }
.page-hero { background: var(--sky); padding: clamp(2.5rem, 6vw, 4.25rem) 0; }
.page-hero h1 { margin-bottom: 0.4em; max-width: none; }
.page-hero p { font-size: 1.12rem; max-width: 42rem; margin: 0; }
.section-head p { max-width: 42rem; }

a.service { text-decoration: none; color: inherit; }
.service .more { margin-top: auto; font-weight: 700; color: var(--aqua-dark); transition: color .25s; }
.service .more::after { content: " ›"; }
.service:hover .more { color: var(--white); }
.doctor .btn { margin-top: 1.2rem; }


.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.footer-copy a { color: #cfe6e4; }

/* Aktif sayfa menüde vurgulanır */
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--aqua); color: var(--aqua-dark); }

/* Klavye kullanıcıları için "içeriğe geç" bağlantısı */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.btn-icon.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.center-link { text-align: center; margin: 2.5rem 0 0; }
.cta a:not(.btn) { color: var(--white); font-weight: 700; }

/* Hizmet ayrıntıları */
.detail-list { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .detail-list { grid-template-columns: 1fr 1fr; } }
.detail { display: flex; gap: 1.25rem; align-items: flex-start; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 24px; background: var(--white); scroll-margin-top: 6rem; }
.detail .icon { flex: none; }
.detail h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.detail p { font-size: 1rem; }
.detail p:last-child { margin: 0; }
.detail:target { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(26, 166, 183, .18); }
.alt .icon, .detail .icon { background: var(--sky); }

/* Süreç adımları */
.steps { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--white); border-radius: 22px; padding: 1.6rem; }
.steps p { margin: 0; font-size: 1rem; }
.step-no { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--aqua-dark); color: var(--white); font-weight: 800; margin-bottom: 1rem; }

/* Doktor sayfası */
.doctor-card { border: 1px solid var(--line); }
.doctor-card h2 { font-size: 1.6rem; margin-bottom: .1rem; }

/* 404 */
.page-404 { text-align: center; }
.page-404 p { margin-inline: auto; }
.page-404 .hero-actions { justify-content: center; }
.brand-icon.big { width: 4rem; height: 4.4rem; margin-bottom: 1rem; }

/* Genişletilmiş alt bilgi */
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: .6rem; }
.footer-list { display: grid; gap: .4rem; }
.footer-list a { color: #cfe6e4; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }


/* ============================================================
   SAYFA GEÇİŞ YÜKLEME EKRANI
   ============================================================ */
.page-loader { display: none; }
.js .page-loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sky);
  opacity: 1; visibility: visible;
  transition: opacity .45s ease, visibility 0s linear 0s;
  /* Betik bir sebeple çalışmazsa ekran 3 saniye sonra kendiliğinden kapanır */
  animation: loader-failsafe 0s linear 3s forwards;
}
.js.loaded .page-loader { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; animation: none; }
.loader-tooth { width: 3.6rem; height: 4rem; fill: var(--white); stroke: var(--aqua); stroke-width: 9; stroke-linejoin: round; animation: loader-bob 1s ease-in-out infinite; }
@keyframes loader-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .loader-tooth { animation: none; }
}

/* Gizleme anında geçiş efekti kapalı (yazıların önce görünüp sonra kaybolmasını önler) */
.reveal-prep .reveal { transition: none !important; }

/* ============================================================
   İKİ SATIRLI MARKA (ruhsattaki hekim adları + kuruluş türü)
   ============================================================ */
.brand { gap: 0.65rem; min-width: 0; }
.brand-icon { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.015em; }
.brand-kind { font-size: 0.74rem; font-weight: 600; color: var(--aqua-dark); letter-spacing: 0; }
.header-inner { gap: 1rem; }
@media (min-width: 861px) and (max-width: 1100px) {
  .site-nav { gap: 1.1rem; }
  .site-nav ul { gap: 1rem; }
  .brand-name { font-size: 0.92rem; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 0.86rem; }
  .brand-kind { font-size: 0.66rem; }
  .brand-icon { width: 1.6rem; height: 1.8rem; }
}
.footer-brand { margin-bottom: 0.1rem; }
.footer-kind { color: #cfe6e4; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.8rem; }
/* Dar ekranlarda kısa ad (tek satıra sığsın) */
.brand-short { display: none; }
.brand-name { white-space: nowrap; }
@media (max-width: 560px) {
  .brand-full { display: none; }
  .brand-short { display: block; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.8rem; }
  .brand-kind { font-size: 0.62rem; }
}
/* Menünün tek satırda durduğu dar masaüstü/tablet aralığında da kısa ad */
@media (min-width: 861px) and (max-width: 1150px) {
  .brand-full { display: none; }
  .brand-short { display: block; }
}
.site-nav .btn { white-space: nowrap; }
