/* ==========================================================
   Auramed Ağız ve Diş Sağlığı Polikliniği — stylesheet
   ========================================================== */

:root {
  --ink: #0f2a30;
  --ink-soft: #4a6168;
  --brand: #0f3b46;
  --brand-2: #1d6b72;
  --mint: #e8f3f1;
  --mint-2: #cfe6e2;
  --gold: #c49a5a;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e4e8e6;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 59, 70, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--brand); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

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

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: .8rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }
.eyebrow--light { color: var(--mint-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; transition: .2s ease;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--mint); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(0,0,0,.25); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .14em; color: var(--brand); font-weight: 600; }
.brand__text small { font-size: .68rem; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }

.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button {
  border: 0; background: transparent; font: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.menu-btn {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 18px; height: 1.5px; background: var(--brand); transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero { background: radial-gradient(1200px 500px at 85% 20%, var(--mint) 0%, transparent 60%); }
.hero__media { position: relative; }
.hero__photo {
  border-radius: 28px 140px 28px 28px; overflow: hidden; aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 60px -30px rgba(15, 59, 70, .45); background: var(--mint-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before {
  content: ""; position: absolute; inset: auto auto -22px -22px; width: 55%; height: 55%;
  border: 1.5px solid var(--gold); border-radius: 28px; z-index: -1;
}
.hero__badge {
  position: absolute; left: -24px; bottom: 32px; background: #fff; border-radius: 16px;
  padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); font-weight: 700; color: var(--brand); line-height: 1.2; font-size: .95rem;
}
.hero__badge small { font-weight: 500; color: var(--ink-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header phone */
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  font-size: .9rem; color: var(--brand); white-space: nowrap;
}
.header__phone svg { width: 18px; height: 18px; color: var(--gold); }
.header__phone:hover { color: var(--brand-2); }

/* Quick services strip */
.quick { margin-top: -24px; position: relative; z-index: 2; }
.quick__list {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 14px;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px;
}
.quick__item {
  border: 0; background: transparent; font: inherit; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 16px 6px; border-radius: 14px; font-size: .85rem; font-weight: 600; line-height: 1.3;
  transition: background .2s, color .2s;
}
.quick__item:hover { background: var(--mint); color: var(--brand); }
.quick__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--brand-2);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.quick__item:hover .quick__icon { background: var(--brand); color: #fff; }
.quick__icon svg { width: 26px; height: 26px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--mint); }
.section--dark { background: var(--brand); color: #e9f2f1; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__lead { color: var(--ink-soft); margin-top: 1rem; }

/* About */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; height: auto; aspect-ratio: 4 / 4.4; max-height: 620px; object-fit: cover; border-radius: 140px 28px 28px 28px;
  box-shadow: 0 30px 60px -30px rgba(15, 59, 70, .45); background: var(--mint-2);
}
.about__media::after {
  content: ""; position: absolute; right: -18px; top: 40px; width: 40%; height: 60%;
  background: var(--mint); border-radius: 24px; z-index: -1;
}
.about__body h2 { margin-bottom: 1.2rem; }
.about__body p { font-size: 1.05rem; color: var(--ink-soft); }
.about__body .about__lead { color: var(--ink); font-size: 1.15rem; }
.about__addr {
  display: flex; align-items: center; gap: 12px; margin: 1.8rem 0 1.6rem !important;
  font-size: .95rem !important; color: var(--ink) !important; font-weight: 500;
}
.about__addr .ic {
  width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--brand-2);
  display: grid; place-items: center; flex: none;
}
.about__addr .ic svg { width: 20px; height: 20px; }
.values { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.values li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px rgba(196,154,90,.18); }

/* ---------- Doctors ---------- */
.doctors { display: grid; grid-template-columns: 1fr; gap: 32px; }
.doctor {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: minmax(260px, 360px) 1fr; align-items: stretch;
}
.doctor:nth-child(even) { grid-template-columns: 1fr minmax(260px, 360px); }
.doctor:nth-child(even) .doctor__photo { order: 2; }
.doctor__photo { position: relative; background: #0d0d10; min-height: 420px; }
.doctor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.doctor__initials {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif);
  font-size: 4rem; color: var(--mint-2);
}
.doctor__content { padding: 40px 44px; display: flex; flex-direction: column; }
.doctor__title { font-size: .8rem; font-weight: 700; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 4px; }
.doctor__name { font-size: clamp(2rem, 3vw, 2.5rem); }
.doctor__spec { font-size: .95rem; color: var(--brand-2); font-weight: 600; margin: 6px 0 18px; }
.doctor__bio { color: var(--ink-soft); }
.doctor__cv { align-self: flex-start; margin-top: 24px; }

.cv { border-top: 1px solid var(--line); margin-top: 8px; }
.cv details { border-bottom: 1px solid var(--line); }
.cv summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--brand);
  display: flex; justify-content: space-between; align-items: center;
}
.cv summary::-webkit-details-marker { display: none; }
.cv summary::after {
  content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px;
}
.cv details[open] summary::after { transform: rotate(-135deg); }
.cv ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.cv li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: .94rem; }
.cv li .yr { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.cv li.no-yr { grid-template-columns: 1fr; padding-left: 16px; position: relative; }
.cv li.no-yr::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Placeholder marker for unfilled content */
.todo {
  background: repeating-linear-gradient(-45deg, #fff6e6, #fff6e6 6px, #fdeed3 6px, #fdeed3 12px);
  border: 1px dashed #d9b16f; border-radius: 4px; padding: 0 4px; color: #8a6420;
}

/* ---------- Treatments ---------- */
.treatments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.treatment {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.treatment:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.treatment__media {
  position: relative; border: 0; padding: 0; cursor: pointer; display: block; width: 100%;
  aspect-ratio: 4 / 3; background: var(--mint-2);
}
.treatment__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; transition: filter .3s;
}
.treatment:hover .treatment__media img { filter: brightness(1.06) saturate(1.08); }
.treatment__icon {
  position: absolute; left: 20px; bottom: -24px; width: 52px; height: 52px; border-radius: 14px;
  background: #fff; display: grid; place-items: center; color: var(--brand-2);
  box-shadow: 0 8px 20px -8px rgba(15, 59, 70, .35);
}
.treatment__icon svg { width: 28px; height: 28px; }
.treatment__body { padding: 38px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.treatment h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.treatment p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 1rem; flex: 1; }
.link-btn {
  align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--brand); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px;
}
.link-btn svg { width: 16px; height: 16px; transition: transform .2s; color: var(--gold); }
.link-btn:hover svg { transform: translateX(4px); }

/* ---------- Modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: 22px; width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 48px); background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(10, 42, 50, .6); backdrop-filter: blur(3px); }
.modal__inner { max-height: calc(100dvh - 48px); overflow-y: auto; position: relative; }
.modal__img { aspect-ratio: 16 / 7; background: var(--mint-2); }
.modal__img { position: relative; }
.modal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 28px 32px 32px; }
.modal__body h3 { font-size: 2rem; margin-bottom: 1rem; }
.modal__body p { color: var(--ink-soft); }
.modal__note {
  font-size: .85rem; background: var(--mint); border-radius: 12px; padding: 12px 14px; margin-top: 1.4rem;
}
.modal__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--brand);
  font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
body.no-scroll { overflow: hidden; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
.fab__btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 12px 24px -10px rgba(0,0,0,.45);
  transition: transform .2s;
}
.fab__btn:hover { transform: scale(1.06); }
.fab__btn svg { width: 24px; height: 24px; }
.fab__btn--wa { background: #25d366; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact h2 { margin-bottom: 2rem; }
.contact__list { margin: 0; display: grid; gap: 22px; }
.contact__list > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.contact__list .ic {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: var(--gold);
}
.contact__list .ic svg { width: 20px; height: 20px; }
.contact__list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-2); opacity: .8; margin-bottom: 2px; }
.contact__list dd { margin: 0; font-size: 1.05rem; color: #fff; }
.contact__list dd a { text-decoration: none; }
.contact__list dd a:hover { text-decoration: underline; }
.contact__list .todo { color: #8a6420; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.contact__map {
  border-radius: var(--radius); overflow: hidden; min-height: 380px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 380px; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--mint-2); font-size: .95rem;
}

/* ---------- Footer ---------- */
.footer { background: #0a2a32; color: #a9c2c0; padding: 40px 0; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.brand--footer .brand__text strong { color: #fff; font-size: 1.2rem; }
.brand--footer .brand__text small { color: #a9c2c0; }
.brand--footer img { filter: brightness(0) invert(1); opacity: .9; }
.footer__note { max-width: 440px; margin: 0; }
.footer__copy { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__svg { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__phone span { display: none; }
  .quick__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .treatments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .treatments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor, .doctor:nth-child(even) { grid-template-columns: 1fr; }
  .doctor:nth-child(even) .doctor__photo { order: 0; }
  .doctor__photo { min-height: 0; aspect-ratio: 4 / 4.2; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg);
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }

  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero__inner { gap: 36px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .about { gap: 40px; }
  .about__media img { aspect-ratio: 4 / 3; border-radius: 80px 24px 24px 24px; }
  .header__phone { display: none; }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .treatments { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .quick__item { flex-direction: row; text-align: left; padding: 10px; gap: 10px; font-size: .82rem; }
  .quick__icon { width: 40px; height: 40px; flex: none; }
  .quick__icon svg { width: 22px; height: 22px; }
  .hero__photo { border-radius: 24px 80px 24px 24px; }
  .modal__body { padding: 22px 20px 24px; }
  .modal__body h3 { font-size: 1.6rem; padding-right: 40px; }
  .fab__btn { width: 50px; height: 50px; }
  .doctor__content { padding: 26px 22px 28px; }
  .doctor__cv { align-self: stretch; }
  .cv li { grid-template-columns: 1fr; gap: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
}

