:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --ink: #1f2a27;
  --muted: #5d6b66;
  --brand: #1f4a43;
  --brand-dark: #163631;
  --gold: #b08d57;
  --line: #e2d9ca;
  --radius: 20px;                      /* kart, fotoğraf ve harita köşeleri */
  --card: #fff;                        /* kart zemini */
  --nav-bg: rgba(250, 247, 242, .92);
  --foot: #1f2a27;
  /* --btn: dolgusuz düğmelerin (hekim sayfaları, telefon) çizgi ve yazı rengi.
     Koyu temada aynı yeşil koyu zeminde okunmadığı için açık tonuna geçer.
     --fill: dolu düğmelerin zemini; iki temada da aynı kalır. */
  --btn: #1f4a43;
  --fill: #1f4a43;
  color-scheme: light dark;            /* tarayıcının zorla karartmasını önler */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-weight: 300; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, .brand { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--gold); }

/* Küçük altın etiketlerin hepsi tek tanımı paylaşır; boyut ya da aralık
   yalnızca buradan değişir. */
.eyebrow, .links-label, .contact-card small, .press small, .post small { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 500; color: var(--gold); }
.eyebrow { margin-bottom: 1.2rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem clamp(16px, 5vw, 4rem); transition: background .3s, box-shadow .3s, padding-top .3s, padding-bottom .3s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding-block: .8rem; }
.brand { font-size: 1.6rem; letter-spacing: .01em; }
.brand span { display: block; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; }
.brand span + span { color: var(--gold); font-style: italic; }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .9rem; font-weight: 400; white-space: nowrap; }
.nav nav a:not(.btn):hover { color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; height: 1.5px; background: var(--ink); margin: 7px 6px; }

/* Buttons */
.btn { display: inline-block; background: var(--fill); color: #fff; border: 1px solid var(--fill); padding: .95rem 1.8rem; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--btn); border-color: var(--btn); }
.btn-ghost:hover { background: var(--btn); color: var(--bg); }
.btn-small { padding: .6rem 1.3rem; font-size: .85rem; }

/* Hero */
/* Giriş tek sütundur ve ekranın tam ortasında durur; svh telefonlarda adres çubuğunu hesaba katar. */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem clamp(16px, 5vw, 4rem) 3rem; max-width: 1300px; margin: 0 auto; }
.hero-text { max-width: 760px; }
.hero .checks { display: inline-block; text-align: left; }
.hero .actions { justify-content: center; }
.hero .lead { margin: 1.8rem 0 2.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); max-width: 1300px; margin: 0 auto; }
.strip div { padding: 2rem clamp(16px, 3vw, 3rem); border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; padding-left: clamp(16px, 5vw, 4rem); } /* bölüm içerikleriyle aynı sol hiza */
.strip strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--brand); }
.strip span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(16px, 5vw, 4rem); max-width: 1300px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); }
/* Menü bağlantıları bölümün kutusuna değil başlığına inmeli. Bölümlerin üst
   boşluğu büyük olduğu için kaydırma hedefi o boşluk kadar aşağı alınır;
   başlık sabit menünün (scroll-padding-top) 2rem altında durur. */
section[id] { scroll-margin-top: calc(2rem - clamp(4rem, 9vw, 7rem)); }
.section.alt > * { max-width: 1172px; margin-inline: auto; }

.doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.doctor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; overflow: hidden; }
/* Fotoğraf kartın üstünü kenardan kenara doldurur (negatif margin = kart padding'i);
   köşeleri kart yuvarlar, altında yalnızca ince altın şerit kalır */
.avatar { aspect-ratio: 4 / 3; margin: -2.5rem -2.5rem 1.8rem; border-bottom: 3px solid var(--gold); }
.role { color: var(--gold); font-weight: 500; font-size: .9rem; margin: .4rem 0 1rem; }
.doctor p:not(.role) { color: var(--muted); }
.doctor .links-row { margin-top: 1.4rem; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.service-col h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.service-col li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.service-col b { font-weight: 500; }
.service-col span { color: var(--muted); font-size: .85rem; text-align: right; }
.note { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; font-style: italic; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps span { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); }
.steps h3 { margin: .4rem 0 .6rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Reviews: cards drift left to right; the track holds two copies so the loop is seamless */
.reviews { padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.reviews-head { padding: 0 clamp(16px, 5vw, 4rem); max-width: 1300px; margin: 0 auto; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.review { width: min(360px, 80vw); height: 100%; margin: 0; transition: border-color .2s, transform .2s, box-shadow .2s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.stars { color: var(--gold); letter-spacing: .2em; font-size: .9rem; }
.review blockquote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; flex: 1; }
.review figcaption { font-size: .8rem; color: var(--muted); }
.review figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .marquee { overflow-x: auto; } }

/* Satırlar bölümün tam genişliğine uzanır; yalnızca yanıt metni okunur genişlikte kalır. */
.faq details p { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2rem 1.3rem 0; font-family: var(--serif); font-size: 1.35rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details.closing summary::after { transform: translateY(-50%); }
.faq p { color: var(--muted); padding-bottom: 1.4rem; }

.service-col span:empty { display: none; }

footer { background: var(--foot); color: #b9c2bf; text-align: center; padding: 3rem 16px; font-size: .85rem; }
footer .brand { color: #fff; margin-bottom: 1rem; }
footer p + p { margin-top: .5rem; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; margin-bottom: 1.5rem; }
.foot-nav a { color: #fff; font-weight: 400; }
.foot-nav a:hover { color: var(--gold); }

/* Legal and plain text pages */
.page { max-width: 800px; margin: 0 auto; padding: 8rem clamp(16px, 5vw, 4rem) 5rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page h2 { font-size: 1.7rem; margin: 2.5rem 0 .8rem; }
.page p, .page li { color: var(--muted); margin-bottom: .9rem; }
.page ul { list-style: disc; padding-left: 1.3rem; }
.page a { color: var(--brand); border-bottom: 1px solid currentColor; }
.page .updated { font-size: .85rem; font-style: italic; }
.press { list-style: none !important; padding: 0 !important; }
.press li { border-bottom: 1px solid var(--line); padding: 1.4rem 0; margin: 0; }
.press a { font-family: var(--serif); font-size: 1.6rem; border: 0; color: var(--ink); }
.press a:hover { color: var(--gold); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Menü yedi bağlantıyla 980px altında markaya değiyor; orada açılır menüye geçer. */
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.2rem; padding: 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav nav.open { display: flex; }
}
@media (max-width: 860px) {
  .hero { text-align: left; justify-content: flex-start; }
  .hero .checks { display: block; }
  .hero .actions { justify-content: flex-start; }
  .strip, .doctors, .services, .contact-box { grid-template-columns: 1fr; }
  .strip div { border-left: 0; border-top: 1px solid var(--line); padding-block: 1.3rem; }
  .strip div:first-child { border-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .doctor { padding-inline: 1.5rem; }
}

/* Logo sits left of the two-line name */
.nav .brand { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
.nav .brand img { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; }

.checks { margin: -1rem 0 2.2rem; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .4rem; font-weight: 400; font-size: .95rem; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 600; }

/* Çalışma saatleri: tek parça kart; solda fotoğraf, sağda saat tablosu.
   Sütunlar ve aralık .contact-box ile aynıdır, böylece panel alttaki iletişim
   listesiyle aynı hizada başlar. Fotoğraf aradaki boşluğu negatif margin ile
   kapatır ve panele yapışır. */
.hours { --gap: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.hours-photo { margin-right: calc(-1 * var(--gap)); min-height: 440px; border-radius: var(--radius) 0 0 var(--radius); }
.hours-panel { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.hours h2 { margin-bottom: 1.5rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours-table td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-table .today th, .hours-table .today td { color: var(--brand); font-weight: 600; }
.hours-table .today th::after { content: ' • bugün'; font-weight: 400; font-size: .8rem; }
html[lang="en"] .hours-table .today th::after { content: ' • today'; }
.hours-panel .note { color: var(--muted); }
@media (max-width: 860px) {
  .hours { grid-template-columns: 1fr; gap: 0; }
  .hours-photo { margin-right: 0; min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .hours-panel { border-left: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); padding: 2rem 1.5rem; }
}

/* Fotoğraf geçişi: görseller üst üste durur, .on olan görünür */
.slides { position: relative; overflow: hidden; background: var(--bg-alt); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }

/* Blog */
.post { border-bottom: 1px solid var(--line); padding: 1.8rem 0; }
.post h2 { margin: .3rem 0 .6rem; }
.post .src { font-size: .85rem; }

/* Yorum kartı bağlantısı: kart, yorumun yayımlandığı sayfaya gider */
.review-link { flex: none; margin-right: 1.5rem; color: inherit; text-decoration: none; border: 0; }
.review-link:hover .review, .review-link:focus-visible .review { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 42, 39, .08); }
.marquee { padding: .6rem 0 2rem; }
.review-link { display: flex; }

/* Cormorant'ın eski tip rakamları küçük ve dalgalı durur; düz rakam kullan */
body { font-variant-numeric: lining-nums; }
@media (max-width: 860px) { .strip div, .strip div:first-child { padding-inline: clamp(16px, 5vw, 4rem); } }
@media (max-width: 860px) { .avatar { margin-inline: -1.5rem; } }

/* İletişim: kart yok, içerik doğrudan sayfa zeminindedir. Solda cümle,
   hekim sayfaları ve sosyal medya; sağda iletişim listesi; altta harita.
   İki sütun aynı yükseklikte başlar ve biter: sol sütundaki boş yer
   gruplarının arasına dağılır. */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); align-items: stretch; }
.contact-text { display: flex; flex-direction: column; }
.links { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1.8rem; margin-top: 1.8rem; }
.links-label { margin-bottom: .25rem; }
.profile-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: .8rem; }
.links-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Dolgusuz düğme: hekim sayfaları, sosyal medya logoları, hekim kartı bağlantıları */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid var(--btn); border-radius: 999px; color: var(--btn); font-size: .82rem; font-weight: 500; transition: background .2s, color .2s; }
.chip:hover { background: var(--btn); color: var(--bg); }
.links-row.logos .chip { padding: .75rem; }
.links-row.logos svg { width: 20px; height: 20px; }

.contact-card { display: flex; flex-direction: column; }
.contact-card > * { display: block; padding: 1.3rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; overflow-wrap: anywhere; }
.contact-card > :first-child { padding-top: 0; }
.contact-card > :last-child { padding-bottom: 0; border-bottom: 0; }
.contact-card small { font-family: var(--sans); margin-bottom: .2rem; }
.contact-card a:hover { color: var(--brand); }
.contact-card .addr { display: block; font-size: 1.2rem; line-height: 1.35; }
.map { grid-column: 1 / -1; display: block; width: 100%; height: 340px; margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; } .contact-card { margin-top: 2.5rem; } }

/* Koyu tema. Cihaz koyu moddaysa kendiliğinden açılır; ziyaretçi köşedeki
   düğmeyle (theme.js) seçimini değiştirebilir, o zaman <html data-theme>
   cihaz ayarının önüne geçer. Yalnızca renk değişkenleri değişir.
   İki blok aynı değerleri taşır: CSS'te bir koşul ile bir öznitelik tek
   kuralda birleştirilemiyor. Birini değiştirirsen diğerini de değiştir. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111715;
    --bg-alt: #171f1c;
    --card: #1a2320;
    --ink: #ece7dd;
    --muted: #a4afaa;
    --brand: #8fc7b9;
    --btn: #8fc7b9;
    --gold: #c9a66b;
    --line: #2b3632;
    --nav-bg: rgba(17, 23, 21, .92);
    --foot: #0b100e;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .map { filter: brightness(.85); }
}
:root[data-theme="dark"] {
  --bg: #111715;
  --bg-alt: #171f1c;
  --card: #1a2320;
  --ink: #ece7dd;
  --muted: #a4afaa;
  --brand: #8fc7b9;
  --btn: #8fc7b9;
  --gold: #c9a66b;
  --line: #2b3632;
  --nav-bg: rgba(17, 23, 21, .92);
  --foot: #0b100e;
  color-scheme: dark;
}
:root[data-theme="dark"] .map { filter: brightness(.85); }
:root[data-theme="light"] { color-scheme: light; }

.theme-btn { position: fixed; left: 20px; bottom: 20px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transition: transform .2s; }
.theme-btn:hover { transform: scale(1.08); }

/* Telefonda hizmet listeleri uzun bir kaydırma yapar; başlığa dokununca açılır.
   Sınıfı sayfadaki betik ekler, betik çalışmazsa listeler açık kalır. */
@media (max-width: 860px) {
  .services.fold { gap: 0; }
  .services.fold .service-col { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .3s ease; }
  .services.fold .service-col.open { grid-template-rows: auto 1fr; }
  .services.fold .service-col ul { overflow: hidden; min-height: 0; }
  .services.fold h3 { position: relative; padding: 1.2rem 2rem 1.2rem 0; border-bottom-color: var(--line); cursor: pointer; }
  .services.fold h3::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
  .services.fold .open h3::after { transform: translateY(-50%) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .services.fold .service-col { transition: none; } }
