/* Prof. Dr. Nermin Gündüz | ortak stil dosyası
   Düzen: geniş, ferah giriş; kemer çerçeveli portre; yumuşak renk zeminli kartlar; okuma kolonu ~65 karakter
   Renk: soft sarı, soft turuncu (şeftali), soft mor (lila); koyu mürdüm mürekkep */

@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/libre-caslon-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/libre-caslon-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fcf9fb;
  --surface: #ffffff;
  --ink: #2b2338;
  --muted: #675d74;
  --line: #e9e1ec;
  --plum: #5d4785;        /* ana vurgu: metin, düğme */
  --apricot: #d77f4e;     /* ikincil vurgu: çizgi, hover */
  --sun: #f8eabc;         /* soft sarı zemin */
  --peach: #f7d7c2;       /* soft turuncu zemin */
  --lilac: #e7def3;       /* soft mor zemin */
  --mark: #fff1b8;
  --mark-ink: #6b5200;
  --shadow: 0 10px 30px -12px rgba(61, 41, 92, .18);
  --display: "Libre Caslon Display", "Georgia", "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18141e; --surface: #211b29; --ink: #efe9f4; --muted: #b6abc2; --line: #342c3f;
    --plum: #c9b6ef; --apricot: #f0a777; --sun: #3a321f; --peach: #3e2b22; --lilac: #2e2641;
    --mark: #3d3410; --mark-ink: #f1d77a; --shadow: 0 10px 30px -12px rgba(0,0,0,.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18141e; --surface: #211b29; --ink: #efe9f4; --muted: #b6abc2; --line: #342c3f;
  --plum: #c9b6ef; --apricot: #f0a777; --sun: #3a321f; --peach: #3e2b22; --lilac: #2e2641;
  --mark: #3d3410; --mark-ink: #f1d77a; --shadow: 0 10px 30px -12px rgba(0,0,0,.5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--apricot); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: var(--bg); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 20px; }
section[id] { scroll-margin-top: 5rem; }

/* Üst menü: başta saydam, kaydırınca zemin kazanır */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: transparent; transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(61,41,92,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); }
.nav .btn { padding: .55rem 1.05rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--bg); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-size: .9rem; cursor: pointer; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 500; font-size: .98rem; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { color: var(--bg); background: color-mix(in srgb, var(--plum) 85%, var(--apricot)); }
.btn-soft { background: var(--sun); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: var(--peach); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Giriş */
.hero { padding-block: 3rem 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; align-items: center; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--apricot); font-weight: 600; margin: 0 0 1rem; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 1.4rem; color: var(--ink); }
h1 .title { display: block; font-size: .42em; color: var(--plum); letter-spacing: .02em; margin-bottom: .35rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; padding: 0; margin: 0; list-style: none; }
.quick a { text-decoration: none; border-bottom: 1px solid var(--line); }
.quick a::after { content: " →"; }

.portrait { position: relative; justify-self: center; width: min(100%, 25rem); }
.portrait::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; background: var(--sun); border-radius: 999px 999px var(--radius) var(--radius); z-index: 0; }
.portrait::after { content: ""; position: absolute; width: 7rem; height: 7rem; left: -2rem; top: 38%; background: var(--lilac); border-radius: 50%; z-index: 0; }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); }

/* Profil kartı */
.profile { margin-top: -1rem; }
.profile dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.profile dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.profile dd { margin: 0; font-size: .98rem; }

/* Bölüm başlıkları */
.section { padding-block: 5rem 1rem; }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head .eyebrow { margin-bottom: .6rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.12; margin: 0 0 .8rem; }
.section-head p { color: var(--muted); margin: 0; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .4rem; line-height: 1.35; }

/* Hizmet kartları */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { border-radius: var(--radius); padding: 1.6rem 1.6rem 1.75rem; background: var(--lilac); transition: transform .3s ease, box-shadow .3s ease; }
.card:nth-child(3n+2) { background: var(--sun); }
.card:nth-child(3n+3) { background: var(--peach); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; font-size: .97rem; color: var(--ink); opacity: .85; }

/* Hastalık dizini */
.conditions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.conditions h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; padding-bottom: .55rem; margin-bottom: .6rem; border-bottom: 2px solid var(--peach); }
.conditions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .98rem; }
.conditions li::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--apricot); margin-right: .6rem; vertical-align: middle; }
.note { font-size: .88rem; color: var(--muted); margin-top: 1.75rem; max-width: 46rem; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .ph-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .9rem; color: var(--muted); background: var(--lilac); }
.gallery .ph-tile:nth-child(2) { background: var(--sun); }
.gallery .ph-tile:nth-child(3) { background: var(--peach); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(24, 20, 30, .88); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox button { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: .5rem 1rem; font: inherit; cursor: pointer; }

/* SSS */
.faq { display: grid; gap: .75rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; transition: border-color .25s ease, background-color .25s ease; }
.faq details[open] { border-color: var(--peach); background: color-mix(in srgb, var(--sun) 35%, var(--surface)); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--apricot); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--ink); opacity: .9; }

/* Randevu / iletişim */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-box { background: var(--lilac); border-radius: var(--radius); padding: 2rem; }
.contact-box dl { margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-box dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-box dd { margin: 0; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .98rem; margin-bottom: 1rem; }
.hours td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--sun); min-height: 22rem; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.map p { margin: 0 0 1rem; color: var(--ink); font-size: .95rem; max-width: 22rem; }
.map button { font: inherit; cursor: pointer; border: 0; }
.map.loaded { padding: 0; display: block; }
.urgent { margin-top: 2rem; padding: 1.1rem 1.4rem; background: var(--peach); border-radius: 14px; font-size: .95rem; }

/* Hakkımda sayfası */
.page-hero { padding-block: 2.5rem 1rem; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 3rem; align-items: start; }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.1rem; }
.about aside img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.4rem; max-width: 46rem; }
.timeline::before { content: ""; position: absolute; left: 7.2rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--lilac); }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.6rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.2rem - 5px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 4px var(--bg); }
.timeline .yr { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .95rem; text-align: right; padding-right: .4rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; }
.links { display: flex; gap: .6rem; flex-wrap: wrap; }

.ph { background: var(--mark); color: var(--mark-ink); padding: 0 .3em; border-radius: 3px; }

/* Alt bilgi */
.site-footer { margin-top: 5rem; background: var(--lilac); padding-block: 3.5rem 2rem; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--plum); }
.site-footer p { margin: 0 0 .5rem; }
.site-footer .legal { border-top: 1px solid color-mix(in srgb, var(--plum) 20%, transparent); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* Kaydırınca beliren bölümler (JS yoksa her şey görünür kalır) */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-on .reveal { opacity: 1; transform: none; transition: none; } .card, .btn, .gallery img { transition: none; } }

@media (max-width: 900px) {
  .hero .wrap, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: min(80%, 20rem); order: -1; margin-top: 1rem; }
  .profile dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .conditions, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about aside { max-width: 20rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav { display: none; }
  .site-header.open .nav { display: block; }
  .site-header.open { background: var(--bg); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.25rem; }
  .nav li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border: 0; margin-top: .8rem; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 1rem 3rem; }
  .profile dl, .cards, .conditions, .gallery, .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 3.5rem .5rem; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .15rem; padding-left: 1.75rem; }
  .timeline li::before { left: 0; }
  .timeline .yr { text-align: left; }
  .contact-box { padding: 1.4rem; }
}
