/* =========================================================
   JCV Dental Znojmo — static single-page site
   Palette derived from the JCV logo (petrol/teal on white)
   ========================================================= */

/* Self-hosted Outfit (variable). latin-ext covers Czech diacritics. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal:        #4e9aa1;
  --teal-dark:   #3a787e;
  --teal-soft:   #eaf4f4;
  --navy:        #233f49;
  --ink:         #2c3a40;
  --muted:       #6f8389;
  --line:        #e3ecec;
  --bg:          #ffffff;
  --bg-alt:      #f6fafa;
  --shadow:      0 6px 24px rgba(35, 63, 73, .08);
  --radius:      14px;
  --maxw:        1080px;
  --nav-h:       66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Respect reduced-motion preference (a11y, non-negotiable) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 0 0 .4em; }
h3 { font-size: 1.15rem; margin: 0 0 .5em; }
p  { margin: 0 0 1rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---- section rhythm ---- */
section { padding: clamp(48px, 6vw, 88px) 0; scroll-margin-top: calc(var(--nav-h) + 10px); }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 0; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 50px; width: auto; display: block; mix-blend-mode: multiply; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }

.nav-toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle:hover { background: var(--teal-soft); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--teal-soft) 0%, #ffffff 70%);
  text-align: center;
  padding-top: clamp(54px, 7vw, 96px);
}
.hero-logo { width: clamp(150px, 22vw, 210px); height: auto; margin: 0 auto 22px; display: block; mix-blend-mode: multiply; }
.hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.2rem);
  margin: 0 0 .35em; letter-spacing: .01em;
}
.hero .lead { font-size: 1.15rem; color: var(--ink); max-width: 640px; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--teal);
  cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color:#fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-soft); }

/* =========================================================
   About — feature list
   ========================================================= */
.about-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-tile {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.bento-tile h3 { color: var(--navy); }
.bento-tile p { margin: 0; color: var(--muted); }
.bento-lead {
  grid-column: span 2; border-color: transparent;
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.bento-lead h3 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem); }
.bento-lead p { color: rgba(255,255,255,.88); font-size: 1.02rem; }
@media (max-width: 760px) {
  .about-bento { grid-template-columns: 1fr; }
  .bento-lead { grid-column: auto; }
}

/* =========================================================
   Services
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.service {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px;
}
.service h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* =========================================================
   Price list
   ========================================================= */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 24px; }
.price-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 14px;
}
.price-card h3 { color: var(--teal-dark); border-bottom: 2px solid var(--teal-soft); padding-bottom: 10px; }
.price-card .sub { color: var(--muted); font-size: .85rem; margin: -.2rem 0 .8rem; }

.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-name { flex: 1; }
.price-name .code { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.price-val { font-weight: 700; color: var(--navy); white-space: nowrap; }

.price-note { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 26px; }

/* =========================================================
   Implantology callout
   ========================================================= */
.callout {
  background: var(--navy); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); color: #d8e6e7;
}
.callout h2 { color: #fff; }
.callout p { color: #c2d6d8; }
.callout .brands { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.callout .chip {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* =========================================================
   Hours
   ========================================================= */
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hours-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.hours-card h3 { color: var(--teal-dark); }
.hours-card .tag { font-size: .82rem; color: var(--muted); margin: -.4rem 0 1rem; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { color: var(--ink); }
.hours-row .time { font-weight: 600; color: var(--navy); }

/* =========================================================
   Team
   ========================================================= */
.team { display: flex; justify-content: center; }
.team-card { text-align: center; max-width: 320px; }
.team-card img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--teal-soft); box-shadow: var(--shadow);
}
.team-card h3 { margin: 18px 0 2px; }
.team-card .role { color: var(--teal-dark); font-weight: 600; }

/* =========================================================
   Contact + footer
   ========================================================= */
.contact-box {
  text-align: center; max-width: 560px; margin: 0 auto;
}
.contact-box .name { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-box address { font-style: normal; color: var(--ink); line-height: 1.9; }
.contact-box .todo { color: var(--muted); font-size: .85rem; }


/* =========================================================
   Responsive — mobile nav
   ========================================================= */
@media (max-width: 820px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
}
