/* ==========================================================
   Dantų implantacijos klinika – stiliai
   Spalvos ir šriftai keičiami :root bloke.
   ========================================================== */

:root {
  --ink: #1c2b39;          /* pagrindinis tekstas */
  --muted: #5a6978;        /* antrinis tekstas */
  --blue: #2b5f8e;         /* pagrindinė spalva */
  --blue-dark: #1f4a72;
  --blue-soft: #eaf2f8;    /* švelnus melsvas fonas */
  --sand: #f7f4ee;         /* šiltas neutralus fonas */
  --line: #dde5ec;
  --white: #ffffff;
  --star: #c9962b;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --wrap: 1120px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75em;
}

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: var(--radius);
  font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Antraštė ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--blue); color: var(--white);
  font: 600 .85rem/1 var(--sans); letter-spacing: .06em;
}
.brand-name { font: 600 1rem/1.2 var(--serif); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.nav .nav-phone {
  font-weight: 600; color: var(--blue);
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius);
}

.nav-toggle { display: none; }

/* ---------- Pradžia ---------- */
.hero { background: var(--sand); padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }

.rating { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--muted); font-size: .92rem; }
.rating-score { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.rating-stars { color: var(--star); letter-spacing: .08em; }

.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: 0 1px 2px rgba(28,43,57,.04), 0 12px 32px -18px rgba(28,43,57,.18);
}
.card-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-phone { display: block; font: 600 1.6rem/1.2 var(--serif); color: var(--ink); text-decoration: none; margin-bottom: 20px; }
.card-phone:hover { color: var(--blue); }

.hours { margin: 0 0 20px; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 500; text-align: right; }

.card-address { margin-bottom: 6px; }
.card-link { font-weight: 500; text-decoration: none; }

/* ---------- Sekcijos ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--blue-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lead { color: var(--muted); }

/* Paslaugos */
.services {
  list-style: none; margin: 0; padding: 0; counter-reset: svc;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.services li {
  counter-increment: svc; padding: 32px 32px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.services li::before {
  content: counter(svc, decimal-leading-zero);
  display: block; margin-bottom: 18px;
  font: 500 .85rem/1 var(--sans); color: var(--blue); letter-spacing: .08em;
}
.services p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Apie mus */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.about-photo { margin: 0; }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: #d6e3ee; color: var(--muted);
  display: grid; place-items: center; font-size: .9rem;
}
.checks { list-style: none; padding: 0; margin: 28px 0 32px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.doctor { border-top: 1px solid #c9d8e5; padding-top: 20px; }
.doctor-name { font: 600 1.2rem/1.3 var(--serif); margin: 0; }
.doctor-role { color: var(--muted); margin: 0; }

/* Gydymo eiga */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 56px; }
.steps li::after {
  content: ""; position: absolute; top: 18px; left: 48px; right: -24px; height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.step-no {
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-weight: 600; font-size: .95rem;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Kainos */
.prices { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); }
.prices th, .prices td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; }
.prices th { font-weight: 400; }
.prices td { text-align: right; font-weight: 600; white-space: nowrap; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: .92rem; margin-top: 20px; }

/* Atsiliepimai */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reviews blockquote {
  margin: 0; padding: 32px; background: var(--sand); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between;
}
.reviews blockquote p { font: 400 1.08rem/1.6 var(--serif); }
.reviews footer { color: var(--muted); font-size: .92rem; }
.reviews footer::before { content: "— "; }
.reviews-more { margin-top: 28px; }
.reviews-more a { font-weight: 500; text-decoration: none; }

/* Kontaktai */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-list { margin: 32px 0 0; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #c9d8e5; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; }

.contact-form {
  background: var(--white); padding: 36px; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.contact-form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c8d3dd; border-radius: var(--radius); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,95,142,.15); }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .92rem; }

.call-panel {
  background: var(--white); padding: 36px; border-radius: var(--radius); border: 1px solid var(--line);
}
.call-panel h3 { margin-bottom: .4em; }
.call-panel p { color: var(--muted); }
.call-number {
  display: block; margin: 24px 0 20px;
  font: 600 clamp(1.7rem, 3.4vw, 2.2rem)/1.2 var(--serif); color: var(--ink); text-decoration: none;
}
.call-number:hover { color: var(--blue); }
.call-panel .call-hours { margin: 16px 0 0; font-size: .92rem; }

.map { margin-top: 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--ink); color: #b9c5d0; padding: 48px 0; font-size: .92rem; }
.site-footer a { color: #dfe7ee; text-decoration: none; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: end; }
.footer-inner p { margin: 0 0 .4em; }
.footer-brand { font: 600 1.05rem/1.3 var(--serif); color: var(--white); }
.footer-copy { text-align: right; }

/* ---------- Juodraščio režimas (?juodrastis) ---------- */
.draft [data-todo] { outline: 2px dashed #d9912b; outline-offset: 6px; position: relative; }
.draft [data-todo]::after {
  content: attr(data-todo); position: absolute; top: -14px; right: 0; z-index: 5;
  background: #d9912b; color: #fff; font: 500 11px/1.4 var(--sans); padding: 2px 8px; border-radius: 3px;
}

/* ---------- Planšetė ---------- */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps li:nth-child(3)::after { display: none; }
}

/* ---------- Mobilus ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }

  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }

  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-phone { margin-top: 12px; text-align: center; }

  .hero { padding: 56px 0 64px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { padding: 24px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }

  .services { grid-template-columns: 1fr; }
  .services li { padding: 24px 20px; }

  .about-photo { max-width: 360px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 58px; }
  .steps li::after { display: none; }

  .reviews { grid-template-columns: 1fr; }
  .reviews blockquote { padding: 24px; }

  .prices th, .prices td { padding: 14px 16px; }
  .contact-form, .call-panel { padding: 24px; }
  .call-panel .btn { display: block; text-align: center; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .map iframe { height: 300px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
