/* ============================================================
   Nova Dent Studio — tek stil dosyası
   Palet: buz mavisi / grafit / turkuaz, altın yalnızca detayda
   ============================================================ */

/* 1. Tokens */
:root {
  --ink: #1C2530;
  --accent: #0E7C86;
  --accent-dark: #0A5A62;
  --ice: #DCEAF2;
  --mist: #F2F7FA;
  --paper: #FFFFFF;
  --gold: #C9A227;
  --wa: #25D366;
  --muted: #5A6B7A;
  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow: 0 4px 24px rgba(28, 37, 48, .08);
  --shadow-lift: 0 12px 32px rgba(28, 37, 48, .14);
  --max-w: 1120px;
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
ul[class], ol[class] { list-style: none; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 3. Skip link */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* 4. Type scale */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px;
}

/* 5. Layout */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { color: var(--muted); margin-top: 8px; }

/* 6. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-btn); padding: 12px 22px; min-height: 44px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--paper); border-color: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--ice); }

/* 7. Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ice);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); }
.brand small { font-weight: 600; color: var(--muted); letter-spacing: .18em; font-size: .58rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; position: relative; padding-block: 6px;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav-cta { border-radius: 999px; padding-block: 10px; }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none;
    border: 0; cursor: pointer; border-radius: 10px;
  }
  .nav-toggle span {
    display: block; height: 2.5px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform .25s, opacity .25s;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); padding: 16px 20px 24px;
    box-shadow: var(--shadow-lift); border-top: 1px solid var(--ice);
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-open .nav-links {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .24s ease, transform .24s ease;
  }
  .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
  .nav-open .nav-links li { opacity: 1; transform: none; }
  .nav-open .nav-links li:nth-child(1) { transition-delay: .03s }
  .nav-open .nav-links li:nth-child(2) { transition-delay: .06s }
  .nav-open .nav-links li:nth-child(3) { transition-delay: .09s }
  .nav-open .nav-links li:nth-child(4) { transition-delay: .12s }
  .nav-open .nav-links li:nth-child(5) { transition-delay: .15s }
  .nav-open .nav-links li:nth-child(6) { transition-delay: .18s }
  .nav-links a:not(.btn) { padding: 12px 8px; }
  .nav-cta { margin-top: 8px; text-align: center; }
}

/* 8. Hero — video arka planlı */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #F2F7FA 0%, #DCEAF2 100%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(242,247,250,.94) 0%, rgba(242,247,250,.72) 55%, rgba(220,234,242,.45) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(48px, 8vw, 96px); }
.hero-content > div { max-width: 640px; }
.hero-content p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin-block: 18px 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust-line .accent { color: var(--accent); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, #F2F7FA 0%, #DCEAF2 100%); }
.page-hero .container { padding-block: clamp(40px, 6vw, 64px); }
.page-hero p { color: var(--muted); max-width: 56ch; margin-top: 10px; font-size: 1.05rem; }

/* 9. Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 22px 16px; text-align: center;
}
.stat b { display: block; color: var(--accent); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 699px) { .stats { grid-template-columns: 1fr 1fr; } }

/* 10. Cards */
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 26px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card > svg { width: 42px; height: 42px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* 11. Treatment explorer */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem;
  background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 10px 20px; min-height: 44px; box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--ice); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.treatments { display: grid; gap: 16px; }
.treatment { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); display: flex; overflow: hidden; }
.treatment-media { width: 34%; flex: none; }
.treatment-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treatment:nth-child(even) { flex-direction: row-reverse; }
.treatment-main { flex: 1; padding: 22px; min-width: 0; }
.treatment-cat {
  display: inline-block; background: var(--mist); color: var(--accent);
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px; margin-bottom: 10px;
}
.treatment-price { font-weight: 800; margin-top: 10px; }
.treatment-toggle {
  width: 100%; display: flex; align-items: flex-start; gap: 16px; text-align: left;
  background: none; border: 0; cursor: pointer; font: inherit; color: inherit;
  padding: 0; border-radius: var(--radius-card);
}
@media (max-width: 699px) {
  .treatment, .treatment:nth-child(even) { flex-direction: column; }
  .treatment-media { width: 100%; aspect-ratio: 16 / 9; }
  .treatment-media img { height: 100%; }
}
.treatment-head { flex: 1; }
.treatment-head p { margin-top: 4px; font-size: .95rem; }
.treatment-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  color: var(--accent);
  background-color: var(--mist);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 18px 3px, 3px 18px;
  background-position: center center, center center;
  background-repeat: no-repeat;
  transition: background-color .2s, color .2s;
}
.treatment-toggle:hover .treatment-arrow { background-color: var(--ice); }
.treatment.open .treatment-arrow {
  background-color: var(--accent); color: #fff;
  background-size: 18px 3px, 0 0;   /* dikey çubuk gizlenir → eksi */
}
.treatment-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.treatment-body-inner { overflow: hidden; }
.treatment.open .treatment-body { grid-template-rows: 1fr; }
.treatment.open .treatment-body-inner { padding-top: 16px; }
.treatment-body-inner > p { color: #425263; max-width: 68ch; }
.treatment-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 16px; }
.treatment-meta > div { background: var(--mist); border-radius: 12px; padding: 10px 14px; }
.treatment-meta dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.treatment-meta dd { font-weight: 700; margin-top: 2px; }
@media (max-width: 599px) { .treatment-meta { grid-template-columns: 1fr; } }

/* 12. Before / after slider */
.ba-slider {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-lift); --ba: 50%;
  max-width: 760px; margin-inline: auto;
}
.ba-pane { display: block; width: 100%; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba)); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--ba); width: 3px;
  background: #fff; box-shadow: 0 0 8px rgba(28, 37, 48, .35); pointer-events: none;
}
.ba-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize;
}
.ba-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(28, 37, 48, .35);
}
.ba-slider input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(28, 37, 48, .35);
}
.ba-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* 13. Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 767px) { .timeline { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .timeline.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* 14. FAQ */
.faq details {
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  color: var(--accent);
  background-color: var(--mist);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 16px 3px, 3px 16px;
  background-position: center center, center center;
  background-repeat: no-repeat;
  transition: background-color .2s, color .2s;
}
.faq summary:hover::after { background-color: var(--ice); }
.faq details[open] summary::after {
  background-color: var(--accent); color: #fff;
  background-size: 16px 3px, 0 0;
}
.faq details p { margin-top: 10px; color: #425263; max-width: 72ch; }

/* 15. Reviews */
.review { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 26px; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { margin-block: 12px; color: #425263; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }

/* 16. CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(10,90,98,.95), rgba(14,124,134,.93)), url("img/klinik.webp") center/cover;
  color: #fff; border-radius: var(--radius-card);
  padding: clamp(32px, 6vw, 56px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D6EDEA; margin-top: 6px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-wa { border-color: #fff; background: transparent; color: #fff; }
.cta-band .btn-wa:hover { background: var(--wa); border-color: var(--wa); }

/* 17. Forms */
.form-card { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--mist); border: 1px solid var(--ice); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px; background: var(--paper);
}
.field-full { grid-column: 1 / -1; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 40px); }
.form-success svg { width: 56px; height: 56px; margin-bottom: 14px; }
.form-success p { font-size: 1.1rem; font-weight: 600; max-width: 44ch; margin-inline: auto; margin-bottom: 20px; }
@media (max-width: 699px) { .form-grid { grid-template-columns: 1fr; } }

/* 18. Team / contact / hours */
.team-card { text-align: center; }
.team-card > svg { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; }
.team-card .role { color: var(--accent); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.team-card p { margin-bottom: 8px; }
.team-card .edu { font-size: .87rem; }
.contact-card { text-align: left; }
.contact-card a { font-weight: 700; word-break: break-word; }
.contact-card .hint { font-size: .85rem; margin-top: 6px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--ice); }
.hours-table th { font-weight: 700; }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* 19. Footer */
.site-footer { background: var(--ink); color: #D7E0E8; margin-top: clamp(48px, 8vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 36px; padding-block: 56px 40px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #D7E0E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand small { color: #9FB0C0; }
.site-footer p { font-size: .95rem; }
.footer-tagline { color: #9FB0C0; max-width: 30ch; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a { display: inline-flex; padding: 8px; background: rgba(255,255,255,.08); border-radius: 10px; }
.social-row svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; }
.footer-bottom p { font-size: .85rem; color: #9FB0C0; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* 20. Reveal animasyonları — yalnızca JS varken gizlenir */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; transition: none; }
  .treatment-body, .treatment-arrow, .nav-toggle span { transition: none; }
  .faq summary::after { transition: none; }
  .nav-links, .nav-links li { transition: none; }
  .hero-video { display: none; }
}

/* 23. Sayfa geçişleri (View Transitions API — destek yoksa anında geçiş) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in .25s ease both; }
  .site-header { view-transition-name: header; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* 24b. Dil değiştirici */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; background: var(--mist); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.lang-switch a { text-decoration: none; color: var(--muted); font-weight: 600; }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 800; }
.lang-switch span { color: var(--ice); }
@media (max-width: 767px) { li.lang-switch { justify-content: center; align-self: center; } }

/* 24a. Foto slider rozetleri ve görseller */
.ba-slider img.ba-after { height: 100%; object-fit: cover; }
.ba-badge { position: absolute; top: 16px; padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; pointer-events: none; letter-spacing: .04em; }
.ba-badge-b { left: 16px; background: rgba(90,107,122,.9); }
.ba-badge-a { right: 16px; background: rgba(14,124,134,.92); }
.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.about-photo { display: block; border-radius: var(--radius-card); box-shadow: var(--shadow); }

/* 24. Mikro etkileşimler */
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .chip:active { transform: scale(.97); }
  .ba-slider input[type="range"]::-webkit-slider-thumb { transition: transform .15s ease; }
  .ba-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
  html.js .cards-grid > .reveal:nth-child(2), html.js .stats > .reveal:nth-child(2),
  html.js .timeline > .reveal:nth-child(2) { transition-delay: .06s; }
  html.js .cards-grid > .reveal:nth-child(3), html.js .stats > .reveal:nth-child(3),
  html.js .timeline > .reveal:nth-child(3) { transition-delay: .12s; }
  html.js .cards-grid > .reveal:nth-child(4), html.js .stats > .reveal:nth-child(4),
  html.js .timeline > .reveal:nth-child(4) { transition-delay: .18s; }
}
