/* ============================================================
   DataAds.cz — styly
   Design tokeny převzaté z původního webu (solidpixels):
   - písmo: Inter (převzato z webu tomasfaltejsek.com)
   - barvy: text #000/#0b0b0b, karty #f8efff, patička #0b0b0b
   - tlačítka: černá, radius 30px, uppercase
   ============================================================ */

/* ----- Fonty (self-hostované woff2 — bez přenosu IP na Google, GDPR) -----
   Inter (převzato z webu tomasfaltejsek.com); subsety latin + latin-ext (čeština).
   Generováno z Google Fonts, licence Inter: SIL OFL 1.1. */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400i-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-text: #000;
  --color-heading: #0b0b0b;
  --color-card: #f8efff;
  --color-footer: #0b0b0b;
  --color-btn: #000;
  --color-btn-hover: #303030;
  --font-base: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-quote: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1380px;
  --container-pad: 25px;
  --section-pad: clamp(50px, 8vw, 90px);
  --card-radius: 20px;
  --header-height: 115px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ----- Tlačítko ----- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--color-btn);
  color: #fff;
  border: 2px solid var(--color-btn);
  border-radius: 30px;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover, .btn:focus-visible {
  background: var(--color-btn-hover);
  border-color: var(--color-btn-hover);
}

/* ----- Hlavička ----- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-height);
}

.logo {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  line-height: 1;
}

.nav { flex: 1; }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 44px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-heading);
}

.nav__link:hover { text-decoration: underline; }

.nav__cta { display: none; }

.header__cta { font-size: 0.875rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 22px;
}

.nav-toggle__icon span {
  height: 2px;
  background: var(--color-heading);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.is-menu-open .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.is-menu-open .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- Sekce ----- */
.section {
  padding: var(--section-pad) 0;
}

.section h2 { text-align: center; }

.section__perex {
  max-width: 880px;
  margin: 0 auto 50px;
  text-align: center;
}

.section__subheading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 40px;
}

.section__cta {
  text-align: center;
  margin: 50px 0 0;
}

/* ----- Karty ----- */
.card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  padding: 35px 30px;
}

.card--center { text-align: center; }

.card__emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.375rem; }

/* ----- Hero ----- */
.hero {
  padding: calc(var(--header-height) + clamp(20px, 4vw, 60px)) 0 var(--section-pad);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.hero__text h1 { margin-bottom: 0.8em; }

.hero__email {
  margin: 1.6em 0 0.6em;
}

.hero__email a {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
}

.hero__cta { margin-top: 1.6em; }

.logos {
  list-style: none;
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding: 0;
  max-width: 1150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(25px, 5vw, 75px);
  align-items: center;
}

.logos img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  width: 100%;
}

/* ----- Proč my ----- */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  gap: 30px;
}

/* ----- Služby / schůzka / reference ----- */
.services,
.meeting-points,
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ----- Reference ----- */
.testimonials .card {
  display: flex;
  flex-direction: column;
}

.testimonials blockquote {
  margin: 0 0 24px;
  flex: 1;
}

.testimonials blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__author strong { display: block; line-height: 1.4; }
.testimonial__author span { font-size: 0.875rem; line-height: 1.4; }

/* ----- Rezervace ----- */
.booking__hint {
  text-align: center;
  margin: 40px 0 24px;
}

.booking iframe {
  display: block;
  border: 0;
  border-radius: var(--card-radius);
}

.booking__consent {
  max-width: 680px;
  margin: 0 auto;
}

.booking__consent .btn {
  margin-top: 10px;
}

.booking__alt {
  font-size: 0.875rem;
  margin-top: 8px;
}

/* ----- Kontakt ----- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact .card {
  padding: 50px 30px;
}

.contact__icon {
  margin-bottom: 20px;
}

.contact__icon svg {
  display: inline-block;
}

.contact__lines {
  line-height: 1.9;
}

.contact__lines a:hover { text-decoration: none; }

/* ----- Patička ----- */
.footer {
  background: var(--color-footer);
  color: #fff;
  text-align: center;
  padding: 40px var(--container-pad);
  font-size: 0.875rem;
}

.footer p { margin: 0; }
.footer__company { line-height: 1.8; }
.footer__links { margin-top: 14px; }
.footer__links a { text-decoration: underline; }
.footer__copy { margin-top: 14px; opacity: 0.65; }

/* ----- Právní stránky (zásady ochrany OÚ) ----- */
.legal-header {
  padding: 22px 0;
  border-bottom: 1px solid #eee;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-header__back {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-heading);
}

.legal-header__back:hover { text-decoration: underline; }

.legal {
  padding: clamp(40px, 6vw, 70px) 0 80px;
}

.legal__inner {
  max-width: 820px;
  margin: 0 auto;
}

.legal__updated {
  color: #666;
  margin-top: -0.4em;
  margin-bottom: 2.4em;
}

.legal h2 {
  font-size: 1.5rem;
  text-align: left;
  margin-top: 1.8em;
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 1.4em;
}

.legal ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.legal li { margin-bottom: 0.4em; }

.legal a { text-decoration: underline; }

/* ----- Animace při scrollu ----- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responzivita
   ============================================================ */

@media (max-width: 992px) {
  .header__cta { display: none; }
  .nav__cta { display: block; }
}

@media (max-width: 992px) and (min-width: 721px) {
  .nav__list { gap: 28px; }
}

@media (max-width: 720px) {
  :root { --header-height: 72px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 150;
    padding: 90px 35px 35px;
  }

  .is-menu-open .nav { transform: none; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .nav__cta { margin-top: 10px; }

  .nav-toggle {
    position: relative;
    z-index: 160;
  }

  .is-menu-open body { overflow: hidden; }

  .logo { font-size: 1.75rem; position: relative; z-index: 160; }

  .hero__grid { grid-template-columns: 1fr; }

  .benefits {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
  }

  .services,
  .meeting-points,
  .testimonials,
  .contact {
    grid-template-columns: 1fr;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    max-width: 420px;
  }

  .logos li:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}
