/* Design B ("satır düzeni") from the homepage design comparison:
   centered utility bar + uppercase nav, plate-framed portrait hero with
   floating cards, trust strip, image-left/text-right rows for
   specialties, warm paper palette with clay + teal accents.
   Fixed light palette — a clinic site, it does not follow OS theme. */

:root {
  --paper: #f8f7f2;
  --card: #ffffff;
  --tint: #f1ede4;
  --ink: #2c2a26;
  --ink-soft: #6b655b; /* darkened from the mockup's #726c62 to clear AA on --paper */
  --line: #e9e4d9;
  --clay: #c1543a;
  --clay-text: #a8432b; /* clay for small text: ~5.6:1 on --card */
  --teal: #4c8c72;
  --teal-text: #3b6f5a;
  --whatsapp: #1f9e6d;
  --whatsapp-dark: #187f58;

  --font: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1120px;
  --gutter: 2rem;
  --radius-lg: 20px;
  --radius: 16px;
  --shadow-soft: 0 10px 26px -16px rgba(0, 0, 0, 0.2);
  --shadow-float: 0 14px 30px -10px rgba(0, 0, 0, 0.25);
  --well: linear-gradient(
    160deg,
    color-mix(in srgb, var(--clay) 10%, var(--card)),
    color-mix(in srgb, var(--teal) 10%, var(--card))
  );
}

* { box-sizing: border-box; }

/* Base text size: 18px (browser default 16px). Every rem/em size scales from this. */
html { font-size: 112.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

a { color: var(--clay-text); }
a:hover { color: var(--teal-text); }

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 0.6em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Brand mark: two overlapping organic blobs ---------- */
.mark { display: inline-flex; position: relative; width: 2.1em; height: 2.1em; flex: none; }
.mark i {
  position: absolute;
  width: 1.5em;
  height: 1.5em;
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
}
.mark i:first-child { background: var(--clay); top: 0; left: 0; }
.mark i:last-child { background: var(--teal); bottom: 0; right: 0; opacity: 0.88; }

/* ---------- Header: utility bar + centered nav ---------- */
.site-top {
  display: flex;
  justify-content: center;
  padding: 1.2em var(--gutter);
}
.site-top__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.site-top__brand:hover { color: var(--ink); }
.site-top__brand em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-top: 0.2em;
}

.nav-toggle { display: none; }

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em 1.25em;
  padding: 0.85em var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.2em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-text); }
.site-nav a[aria-current] { border-bottom-color: var(--clay); }
.site-nav .site-nav__cta { color: var(--clay-text); }

/* ---------- Buttons ---------- */
.cta-group { display: flex; gap: 0.75em; margin-top: 1.7em; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cta--fill, .cta--whatsapp {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.cta:hover, .cta:focus-visible {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

/* ---------- Home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3em var(--gutter) 4em;
}
.hero .eyebrow { font-size: 1.1556rem; } /* 20.8px, kept at its pre-18px-base size */
.hero h1 { font-size: clamp(1.8667rem, 1.3333rem + 2.4vw, 3.0222rem); margin: 0 0 0.35em; } /* 33.6–54.4px, kept at its pre-18px-base size */
.hero__lead { max-width: 42ch; color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.hero__art { position: relative; }

/* Plate: thin frame on a white mat — echoed by every content image */
.plate {
  overflow: hidden;
  border-radius: 4px;
  padding: 0.6em;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.2);
}
.plate img { width: 100%; border-radius: 2px; }
.hero__art .plate { aspect-ratio: 4 / 5; }
.hero__art .plate img { height: 100%; object-fit: cover; object-position: 50% 12%; }


/* ---------- Trust strip ---------- */
.trust {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 3.5em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9em 2.5em;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}
.trust__mark {
  flex: none;
  margin-top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ---------- Specialty rows (image always on the left) ---------- */
.rows {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1em var(--gutter) 4em;
}
.rows > h2 { font-size: 1.8rem; margin: 0 0 1em; }
.banner {
  width: 100%;
  aspect-ratio: 13 / 8;
  max-height: 540px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
  margin-bottom: 2em;
}
.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2em;
  align-items: center;
  padding: 1.8em 0;
  border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: none; }
.row__img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--well);
  padding: 0.9em;
}
.row__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.row__text h2, .row__text h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
.row__text h2 a, .row__text h3 a { color: inherit; text-decoration: none; }
.row__text h2 a:hover, .row__text h3 a:hover { color: var(--clay-text); }
.row__text p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 0.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row__more { text-decoration: none; font-weight: 700; font-size: 0.86rem; }

/* ---------- Health guide (home) ---------- */
.guide { background: var(--card); padding: 3.5em var(--gutter); }
.guide > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.guide h2 { font-size: 1.7rem; margin-top: 0; margin-bottom: 1.3em; }
.guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4em;
}
.guide__grid a {
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.4em;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide__grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); color: var(--ink); }
.guide__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay-text);
}
.guide__grid h3 { font-size: 1.04rem; margin: 0.5em 0 0.4em; }
.guide__grid p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- Inner pages ---------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5em var(--gutter) 4em;
}
.page > h1, .about__bio h1, .specialty-content h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 0 0 0.4em; }
.page__intro { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 1em; }
.page .rows { padding: 0; max-width: none; }

.specialty-hero {
  max-width: calc(var(--max-width) - 2 * var(--gutter)); /* lines up with the text column */
  width: calc(100% - 2 * var(--gutter));
  margin: 2.5em auto 0;
  max-height: 460px;
  object-fit: contain;
  background: var(--well);
  border-radius: var(--radius-lg);
  padding: 1.5em;
}

.specialty-content {
  max-width: var(--max-width);
  padding-top: 2em;
  padding-bottom: 4em;
}
.specialty-content h2 { font-size: 1.45rem; margin: 1.8em 0 0.5em; }
.specialty-content h3 { font-size: 1.12rem; margin: 1.5em 0 0.4em; }
.specialty-content li { margin-bottom: 0.35em; }
.specialty-content > .cta { margin-top: 2em; }

.breadcrumb { margin: 0 0 0.6em; font-size: 0.86rem; }
.breadcrumb a { text-decoration: none; font-weight: 700; }

.content-figure {
  max-width: min(100%, 560px);
  margin: 1.5em auto;
  padding: 0.6em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.2);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3.5em;
  align-items: start;
}
.about .plate { position: sticky; top: 1.5em; }
.about__role { color: var(--teal-text); font-weight: 700; margin: -0.2em 0 1.2em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin: 1.5em 0 2.5em;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2em 1.4em;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--teal);
  text-decoration: none;
  color: var(--ink);
}
.contact-card--clay { border-left-color: var(--clay); }
.contact-card strong { font-size: 1rem; font-weight: 800; }
.contact-card span { font-size: 1.2rem; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
a.contact-card:hover { color: var(--clay-text); }

.social-links { display: flex; flex-wrap: wrap; gap: 0.6em 1.4em; }
.social-links a { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; text-decoration: none; font-size: 0.9rem; }
/* Social icons: Bootstrap Icons v1.11.3 (MIT License, © 2019-2024 The
   Bootstrap Authors), inlined in each footer — no CDN request. */
.social-icon { flex: none; }
/* Brand colours; Instagram uses its gradient (defined in the SVG) */
.social-icon--facebook { color: #0866ff; }
.social-icon--linkedin { color: #0a66c2; }

/* Third contact card: social media icons */
.contact-card__icons { display: flex; gap: 1.6em; margin-top: 0.25em; }
.contact-card__icons a { display: inline-flex; border-radius: 6px; }
.contact-card__icons .social-icon { width: 1.8em; height: 1.8em; }
.contact-card__icons a:hover { transform: translateY(-2px); }

/* ---------- Contact form ---------- */
.contact-form {
  position: relative;
  scroll-margin-top: 1.5em;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2em;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.1em;
}
.contact-form h2 { margin: 0; font-size: 1.4rem; }
.contact-form label {
  display: grid;
  gap: 0.35em;
  font-size: 0.88rem;
  font-weight: 700;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em 1.5em; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75em 0.9em;
  width: 100%;
}
.contact-form textarea { min-height: 15em; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.contact-form button {
  justify-self: start;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.contact-form button:hover { background: var(--clay); border-color: var(--clay); }

/* Status messages: the two id'd ones show via :target after a no-JS
   post (gonder.php redirects to #form-gonderildi / #form-hata); the
   JS one is filled in by main.js after a fetch() submit. */
.form-status {
  display: none;
  margin: 0;
  padding: 0.85em 1em;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status:target,
.form-status.is-visible { display: block; }
.form-status--ok,
.form-status.is-ok { background: color-mix(in srgb, var(--teal) 14%, var(--card)); color: var(--teal-text); }
.form-status--error,
.form-status.is-error { background: color-mix(in srgb, var(--clay) 12%, var(--card)); color: var(--clay-text); }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Honeypot field — hidden from people, left for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Note under the contact form linking the KVKK notice */
.form-note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Legal pages (KVKK notice) ---------- */
.legal h2 { font-size: 1.25rem; margin: 2em 0 0.6em; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.88rem; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.75em 0.9em; border-bottom: 1px solid var(--line); }
.legal th { background: var(--tint); font-weight: 700; }
.legal tbody tr:last-child td { border-bottom: none; }
.legal__updated { margin-top: 2.5em; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding: 2.5em var(--gutter) 1.5em;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-foot > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.site-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 1em;
}
.site-foot p { margin: 0 auto 0.5em; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--clay-text); }
.site-foot a[href^="tel:"],
.site-foot a[href^="mailto:"],
.site-foot__legal a { text-decoration: none; }
.site-foot .social-links a { font-size: 1rem; }
.site-foot .social-icon { width: 1.1em; height: 1.1em; }
.site-foot .social-links { justify-content: center; margin: 0.8em auto 1em; }
.site-foot__legal { font-size: 0.72rem; }

/* ---------- Floating WhatsApp button (injected by main.js) ---------- */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.whatsapp-fab img { width: 26px; height: 26px; }
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible { background: var(--whatsapp-dark); transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card--social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about .plate { position: static; max-width: 28em; }
}

@media (max-width: 720px) {
  :root { --gutter: 1rem; }

  .js .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: none;
    border-top: 1px solid var(--line);
    padding: 0.85em var(--gutter);
    cursor: pointer;
  }
  .js .nav-toggle::after { content: "☰"; font-size: 1.1rem; letter-spacing: 0; }
  .js .nav-toggle[aria-expanded="true"]::after { content: "✕"; }

  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: center; gap: 0; padding: 0.3em var(--gutter) 0.8em; }
  .site-nav a { padding: 0.7em 0; font-size: 0.82rem; }

  .hero { grid-template-columns: 1fr; padding-top: 2em; }
  .hero__art { order: -1; max-width: 20em; margin: 0 auto; width: 100%; }

  .row { grid-template-columns: 1fr; gap: 1em; }
  .row__img { max-width: 220px; width: 100%; justify-self: center; }

  .specialty-hero { margin-top: 1.5em; padding: 1em; }
  .contact-form { padding: 1.4em; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .guide__grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}
