/* ==========================================================================
   Notářská kancelář JUDr. Lucie Foukalové — styl webu
   Brand: oranžová #ed8b00, písmo TT Hoves
   ========================================================================== */

/* ---- Webfonty TT Hoves ---- */
@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/tt-hoves-regular-400.woff2") format("woff2"),
       url("../fonts/tt-hoves-regular-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/tt-hoves-demi-bold-600.woff2") format("woff2"),
       url("../fonts/tt-hoves-demi-bold-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/tt-hoves-extra-bold-800.woff2") format("woff2"),
       url("../fonts/tt-hoves-extra-bold-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Proměnné ---- */
:root {
  --orange: #ed8b00;
  --orange-dark: #cf7900;
  --ink: #1d1d1b;
  --ink-soft: #44443f;
  --line: #e2e2de;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --bg-tint: #ffffff;
  --maxw: 1140px;
  --radius: 0;
  --shadow: 0 10px 30px rgba(29, 29, 27, .08);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "TT Hoves", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

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

/* ---- Hlavička / navigace ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

.menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 600;
  border-radius: 0; white-space: nowrap;
}
.menu > li > a:hover,
.menu > li.current > a { color: var(--orange-dark); text-decoration: none; background: var(--bg-tint); }
.menu .btn-nav {
  background: var(--orange); color: #fff; padding: 13px 22px 9px; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.menu .btn-nav:hover { background: var(--orange-dark); color:#fff; }

/* Dropdown služby */
.has-sub > .sub-toggle { cursor: pointer; }
.has-sub .caret { display:inline-block; margin-left: 6px; border: solid var(--ink); border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); transition: transform .2s; vertical-align: middle; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .caret { transform: rotate(-135deg); }
.submenu a { display: block; padding: 9px 12px; border-radius: 0; color: var(--ink); font-weight: 400; font-size: .98rem; }
.submenu a:hover { background: var(--bg-tint); color: var(--orange-dark); text-decoration: none; }

/* ---- Tlačítka ---- */
.btn {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 600;
  padding: 14px 30px; border-radius: 0; border: 0; cursor: pointer; font-size: 1rem;
  transition: background .15s, transform .15s; font-family: inherit;
}
.btn:hover { background: var(--orange-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--orange-dark); border: 2px solid var(--orange); }
.btn-ghost:hover { background: var(--orange); color: #fff; }

/* ---- Hero ---- */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: center;
  padding: 72px 24px;
}
.hero .eyebrow { color: var(--orange-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stamp { justify-self: center; }
.hero-stamp img { width: min(320px, 80%); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Sekce ---- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--orange-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin-bottom: 10px; }

/* ---- Mřížka služeb ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f0d9b3; }
.card .card-icon { width: 40px; height: 40px; border-radius: 0; background: var(--bg-tint); color: var(--orange-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.card h3 { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card .more { margin-top: auto; color: var(--orange-dark); font-weight: 600; font-size: .92rem; }

/* ---- Info bloky (kontakt / hodiny / telefony) ---- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.info-box { background: #fff; border: 0; border-radius: 0; padding: 0; }
.info-box h3 { color: var(--ink); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px; }
.info-box p { margin: 0 0 6px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { color: var(--ink); }
.info-list .value { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---- Obsah podstránek (prose) ---- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose ul li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--orange); }
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.prose .checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px;
  border-radius: 0; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 14px no-repeat;
}
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--bg-tint); border-left: 4px solid var(--orange); border-radius: 0; color: var(--ink-soft); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Rozložení podstránky: obsah + boční formulář */
.page-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.aside-form { position: sticky; top: 96px; }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { color: var(--orange-dark); }

/* ---- Formulář ---- */
.form-card { background: #fff; border: 0; border-radius: 0; padding: 0; }
.section-soft .form-card { box-shadow: none; }
.form-note { display: inline-block; background: var(--bg-tint); color: var(--ink-soft); font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 0; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,139,0,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-consent { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* ---- CTA pruh ---- */
.cta-band { background: var(--orange); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 22px; }
.cta-band .btn { background: #fff; color: var(--orange-dark); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* ---- Patička ---- */
.site-footer { background: var(--ink); color: #d8d6cf; padding: 56px 0 28px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; }
.footer-links.cols2 { column-count: 2; column-gap: 56px; }
.site-footer h4 { color: #fff; font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer a { color: #d8d6cf; }
.site-footer a:hover { color: var(--orange); text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #a9a7a0; font-size: .95rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .88rem; color: #9a988f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Responsivita ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 56px; }
  .hero-stamp { order: -1; }
  .hero-stamp { margin-top: 12px; }
  .hero-stamp img { width: 190px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .aside-form { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px; gap: 2px; display: none;
  }
  .menu.open { display: flex; }
  .menu .btn-nav { display: flex; margin-top: 6px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 12px; min-width: 0; }
  .has-sub .caret { float: right; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 32px 22px; }
}


/* ---- Kontaktní box ve stylu vizitky (dle design manuálu) ---- */
#kontakt-form { scroll-margin-top: 90px; }
.vizitka { position: relative; }
.vizitka .vizitka-stamp { position: absolute; top: 0; right: 0; width: 86px; height: auto; }
.vizitka .v-name { font-weight: 800; font-size: 1.2rem; line-height: 1.2; margin: 0 0 2px; color: var(--ink); }
.vizitka .v-role { margin: 0 0 22px; color: var(--ink-soft); }
.vizitka .v-contact { font-weight: 600; margin: 0 0 22px; line-height: 1.5; }
.vizitka .v-contact a { color: var(--ink); }
.vizitka .v-contact a:hover { color: var(--orange-dark); }
.vizitka .v-addr { margin: 0; color: var(--ink-soft); line-height: 1.5; }
