/* ==========================================================================
   Narlıdere Diş — Dt. Batuhan Hıdıroğlu
   Vanilla CSS, no framework. Shared by all pages (future articles too).
   ========================================================================== */

@font-face {
  /* Fraunces subset: Latin + Turkish (ÇĞİÖŞÜ), wght 400–600, opsz 24–96. Rebuild notes in README. */
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-tr.woff2") format("woff2");
}

:root {
  /* Palette drawn from the logo (navy line art) and the clinic's warm interior */
  --ink: #2a2848;
  --ink-soft: #4d4b6b;
  --muted: #6d6a80;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --sand: #f3ece1;
  --line: #e7dfd2;
  --accent: #c9772b;
  --accent-strong: #a95f1b;
  --accent-tint: #fbeede;
  --whatsapp: #1f9d55;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(42, 40, 72, .06), 0 8px 24px rgba(42, 40, 72, .06);
  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 24; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: .75rem;
}

.lead { font-size: clamp(1.075rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c1a36; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #188547; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  line-height: 1.15;
}
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .25s, background-color .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav .nav-cta a { background: var(--ink); color: #fff; margin-left: .5rem; }
.site-nav .nav-cta a:hover { background: #1c1a36; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(42, 40, 72, .08);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 em { display: block; font-style: italic; color: var(--accent-strong); }
.hero .lead { max-width: 36em; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-media { position: relative; }
.hero-media picture img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 80%;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .9rem;
  line-height: 1.35;
}
.hero-badge img { width: 42px; height: 42px; flex: none; }
.hero-badge strong { display: block; font-size: 1rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media picture img { aspect-ratio: 16 / 10; }
  .hero-badge { left: .75rem; bottom: .75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--sand); }
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { max-width: 40rem; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  height: 100%;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: #d9cdb9; box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  background: var(--accent-tint);
  border-radius: 16px;
}
.service-icon img { width: 40px; height: 40px; }
.service h3 { margin-bottom: .4rem; }
.service p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.timeline {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline time { display: block; font-weight: 700; color: var(--accent-strong); font-size: .9rem; }

@media (max-width: 860px) {
  .about .wrap { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.25rem;
  align-items: stretch;
}
.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-list { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  align-items: start;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list address { font-style: normal; font-weight: 600; }
.nowrap { white-space: nowrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-actions .btn { flex: 1 1 auto; padding-inline: 1rem; }

.map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sand);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem;
  background: var(--ink);
  color: #d9d7e8;
  font-size: .95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #a9a6c4; }
.site-footer .brand img { filter: invert(1) brightness(1.4); }
.social { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .2s;
}
.social a:hover { background: rgba(255, 255, 255, .18); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #a9a6c4;
  font-size: .85rem;
}

/* ---------- Mobile quick-action bar ---------- */
.quick-bar { display: none; }
@media (max-width: 700px) {
  .quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .quick-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .4rem;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
  }
  .quick-bar a svg { width: 22px; height: 22px; }
  .quick-bar .qb-wa { color: var(--whatsapp); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Article pages (ready for future blog posts) ---------- */
.prose { max-width: 42rem; margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
