/* ================================================
   Dental Clinic by Kuzma - shared styles
   Design: cisty, lehky, moderni, cernobily
   ================================================ */

:root {
  --black: #111111;
  --ink: #1a1a1a;
  --gray-900: #222222;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #d6d6d6;
  --gray-200: #e8e8e8;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --accent: #111111;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 16px;
}

.lead { font-size: 1.12rem; color: var(--gray-700); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--black);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
}
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.32em; color: var(--gray-500); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; list-style: none; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--black);
  transition: width 0.28s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--black); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

/* Language switch */
.lang {
  display: inline-flex;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
}
.lang button, .lang a {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang button.is-active, .lang a.is-active { background: var(--black); color: var(--white); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--black); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--gray-100), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--gray-200), var(--gray-100));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  color: var(--gray-500);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat__num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.stat__label { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Section head ---------- */
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--black); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 0.96rem; }

/* ---------- Split / features ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-list { list-style: none; margin-top: 26px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}
.feature-list h4 { font-size: 1.02rem; margin-bottom: 2px; }
.feature-list p { color: var(--gray-700); font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--gray-100); }
.step__n { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gray-500); }
.step h4 { margin: 12px 0 8px; }
.step p { color: var(--gray-700); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gray-200), var(--gray-100));
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn--ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--black); }
.cta-band .btn--solid { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gray-200), var(--gray-100));
  overflow: hidden;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { font-size: 1.05rem; }
.member span { color: var(--gray-500); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-list { list-style: none; display: grid; gap: 26px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ic svg { width: 22px; height: 22px; stroke: var(--black); }
.info-list h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gray-500); margin-bottom: 4px; }
.info-list p, .info-list a { font-size: 1.05rem; color: var(--ink); }
.info-list a:hover { text-decoration: underline; }

.form { display: grid; gap: 16px; background: var(--gray-100); padding: 32px; border-radius: var(--radius-lg); }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.98rem;
  background: var(--white);
  transition: border-color 0.2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--black); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-content: center; }
.form__note { font-size: 0.82rem; color: var(--gray-500); }

.map-embed {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.page-hero h1 { margin-bottom: 12px; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); }
.breadcrumb a:hover { color: var(--black); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255,255,255,0.72); padding: 64px 0 32px; }
.footer a { color: rgba(255,255,255,0.72); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer__brand .brand__name, .footer__brand .brand__sub { color: var(--white); }
.footer__brand p { margin-top: 16px; font-size: 0.92rem; max-width: 280px; }
.footer h5 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 0.94rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 4px 22px;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--gray-300); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gray-500); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--gray-700); margin: 0; }

/* ---------- Footer credit ---------- */
.footer__credit {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 8px;
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
}
.footer__credit a { color: var(--white); font-weight: 600; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .burger { display: flex; }
  /* collapse nav, show items only when open */
  .nav { gap: 0; }
  .nav__links, .nav .lang { display: none; }
  .nav.is-open {
    position: absolute;
    top: 74px; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }
  .nav.is-open .nav__links a { font-size: 1.05rem; padding: 6px 0; }
  .nav.is-open .lang { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .hero { padding: 60px 0 72px; }
  .page-hero { padding: 56px 0 32px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 24px; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { width: 100%; }
}
