/* =========================================================
   Metelka & Nykšová advokáti — site styles
   ========================================================= */

/* -------- Self-hosted fonts -------- */
/* Montserrat — variable font (váhy 400–600), self-hosted woff2. latin + latin-ext kvůli české diakritice (č ř š ž ě ů…) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-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: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-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;
}
/* Cormorant Garamond — variable font (váhy 600–700), self-hosted woff2. latin + latin-ext */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cormorant-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;
}

/* -------- Design tokens -------- */
:root {
  --color-slate:        #3a3f4b;
  --color-slate-deep:   #313641;
  --color-slate-dark:   #2b2f38;
  --color-slate-soft:   #4a4f5b;
  --color-blue:         #a8d4dd;
  --color-blue-soft:    #c6e2e8;
  --color-bg:           #f7f6f3;
  --color-card:         #ffffff;
  --color-border:       #e2e1dc;
  --color-text:         #5a5d65;
  --color-text-strong:  #2b2f38;
  --color-text-muted:   #8a8d94;
  --color-on-dark:      #cfd1d6;
  --color-on-dark-muted:#8b8e96;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius-sm: 2px;
  --radius-md: 4px;

  --shadow-card: 0 1px 2px rgba(20, 22, 28, .04);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text-strong);
  margin: 0 0 .6em;
  letter-spacing: .005em;
}

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover, a:focus-visible { color: var(--color-text-strong); }

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

button { font: inherit; cursor: pointer; }

ul { list-style: none; padding: 0; margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   UTILITY BAR
   ========================================================= */
.utility-bar {
  background: var(--color-slate-deep);
  color: var(--color-on-dark);
  font-size: 14px;
}

.utility-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.utility-bar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-on-dark-muted);
}

.utility-bar__icon {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.utility-bar__link {
  color: var(--color-on-dark);
}
.utility-bar__link:hover { color: var(--color-blue); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--color-blue);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__logo {
  height: 65px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.site-nav__link:hover,
.site-nav__link--active {
  border-bottom-color: var(--color-text-strong);
}

/* plovoucí tlačítko „zavolat" — jen na mobilu (viz @media) */
.call-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-slate-deep);
  color: var(--color-on-dark);
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.call-fab:hover { background: var(--color-slate); }
.call-fab svg { width: 24px; height: 24px; }

/* mobile menu button — hidden on desktop */
.site-header__menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.site-header__menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text-strong);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.site-header__menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 160px 0 210px;
  min-height: 480px;
  display: flex;
  align-items: center;
}

/* Variant bez překrývajících hero-cards (např. home s dočasně vypnutými kartami) */
.hero--compact {
  padding-bottom: 160px;
}

.hero__bg {
  position: absolute;
  inset: -40px;
  background-image: url("../img/hero-law.webp");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__intro {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================================================
   WHY US
   ========================================================= */
.why {
  background: var(--color-blue);
  color: var(--color-on-dark);
  padding: 80px 0;
}

.why__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.why__heading {
  color: #fff;
  font-size: 48px;
  line-height: 1.25;
  margin: 0;
}

.why__logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.why__text {
  color: var(--color-text-strong);
  line-height: 1.85;
  font-size: 16px;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.why__text:last-child { margin-bottom: 0; }

/* =========================================================
   PRACTICE AREAS
   ========================================================= */
.practice {
  background: var(--color-bg);
  padding: clamp(80px, 10vw, 120px) 0;
}

.practice__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.practice__head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.practice__head::before {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: var(--color-text-muted);
  margin-bottom: 28px;
}

.practice__heading {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-blue);
  padding: 44px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,22,28,.06);
  border-color: #d4d3cd;
  border-top-color: var(--color-blue);
}

.practice-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-strong);
  margin-bottom: 24px;
}
.practice-card__icon svg { width: 100%; height: 100%; }

.practice-card__photo {
  display: block;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 0 24px;
}

.practice-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--color-text-strong);
}

.practice-card__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.practice-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.practice-card--person .practice-card__text {
  text-align: center;
}

/* 404 — Stránka nenalezena */
.nf-text {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}
.nf-back {
  text-align: center;
}

/* =========================================================
   PROSE (textové stránky — O nás apod.)
   ========================================================= */
.prose {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.85;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--color-bg);
  padding: clamp(80px, 10vw, 120px) 0;
}

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__label {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact__value {
  font-size: 20px;
  color: var(--color-text-strong);
  text-decoration: none;
}
a.contact__value:hover { color: var(--color-slate); text-decoration: underline; }

.contact__value--address {
  font-size: 17px;
  line-height: 1.6;
}

.contact__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.contact__identity {
  margin-bottom: 36px;
}

.contact__company {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 16px;
}

.contact__company-meta {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.contact__map,
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

.contact__map {
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-blue);
  overflow: hidden;
}

.contact__map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-blue-soft);
  color: var(--color-slate);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-slate-dark);
  color: var(--color-on-dark);
  padding: 24px 0;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-footer__col--brand {
  align-self: center;
}

.site-footer__logo {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
  margin: 0;
}

.site-footer__about {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-on-dark-muted);
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  color: var(--color-on-dark-muted);
}
.site-footer__list a:hover { color: var(--color-blue); }

/* =========================================================
   BACK TO TOP (desktop only)
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-slate-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
  z-index: 50;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #8cbfca;
}
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .back-to-top { display: none !important; }
}

/* =========================================================
   CREDIT BAR
   ========================================================= */
.credit-bar {
  background: var(--color-blue);
  color: var(--color-slate-dark);
}

.credit-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .why__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .utility-bar { font-size: 12px; }
  .utility-bar__inner { gap: 12px; padding: 8px var(--gutter); }
  .utility-bar__contact { gap: 14px 18px; }
  .utility-bar__item:nth-child(3) { display: none; } /* address hides on small screens */

  /* Mobile nav */
  .site-header__menu-toggle { display: inline-flex; }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-blue);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    border-top: 1px solid rgba(0,0,0,.06);
  }
  .site-header__nav.is-open {
    max-height: 320px;
    padding: 8px var(--gutter) 18px;
  }
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-left: 22px;
  }

  /* horní tmavý utility bar se na mobilu skrývá — telefon je v plovoucím FAB */
  .utility-bar { display: none; }
  .call-fab { display: inline-flex; }

  .site-header__inner { position: relative; padding-left: var(--gutter); }
  .site-header__logo { height: 50px; }

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

  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .utility-bar__contact { flex-direction: column; gap: 6px; align-items: flex-start; }
}
