/* LegalAdvisors.cz — shared stylesheet
   Visual language preserved from the Framer original:
   blue rounded blocks, serif display, pill buttons, dot section labels.
   Fixes applied: 1200px container, 68ch measure, accordion services,
   testimonial cards, visible form fields, styled language switcher. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201F, U+2026;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201F, U+2026;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #4a6bb0;
  --blue-dark: #3d5a97;
  --blue-tint: rgba(74, 107, 176, 0.08);
  --ink: #12161c;
  --muted: #5b6470;
  --paper: #ffffff;
  --line: rgba(18, 22, 28, 0.12);
  --line-on-blue: rgba(255, 255, 255, 0.35);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1200px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(4rem, 9vw, 7.5rem);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-blue :focus-visible {
  outline-color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Section label (blue dot) ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.on-blue .section-label {
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.55rem 0.55rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn .btn-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.btn .btn-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
}
.btn-primary .btn-icon {
  background: #fff;
  color: var(--blue);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: #eef1f7;
}
.btn-light .btn-icon {
  background: var(--blue);
  color: #fff;
}
.btn-ghost {
  padding: 0.55rem 0.4rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.btn-ghost:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(18, 22, 28, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.25rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--ink);
  padding-block: 0.4rem;
}
.site-nav a:hover {
  color: var(--blue);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.lang-switch a,
.lang-switch span {
  text-decoration: none;
  padding: 0.25rem 0.15rem;
}
.lang-switch .active {
  font-weight: 700;
  color: var(--ink);
}
.lang-switch a:not(.active) {
  color: var(--muted);
}
.lang-switch a:not(.active):hover {
  color: var(--blue);
}
.lang-switch .sep {
  color: var(--line);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 5;
  }
  .header-cta {
    display: none;
  }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 1rem;
}
.hero-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  margin-bottom: 0.5em;
}
.hero-quote {
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 890 / 1100;
}
.hero-caption {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-caption strong {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 860px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-media img {
    aspect-ratio: 4 / 3;
    object-position: top;
  }
}

/* ---------- Generic section ---------- */
.section {
  padding-top: var(--section-gap);
}
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 22ch;
}

/* ---------- Services accordion ---------- */
.services-list {
  max-width: 62rem;
  margin: 2rem auto 0;
  border-top: 1px solid var(--line);
}
.service {
  border-bottom: 1px solid var(--line);
}
.service h3 {
  margin: 0;
  font-family: var(--font-body);
}
.service-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: 0;
  padding: 1.4rem 0.25rem;
  font: inherit;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.service-trigger:hover {
  color: var(--blue);
}
.service-icon {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: transform 0.25s ease, background-color 0.25s ease,
    color 0.25s ease;
}
.service-icon svg {
  width: 1rem;
  height: 1rem;
}
.service-trigger[aria-expanded="true"] .service-icon {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.service-panel > div {
  overflow: hidden;
}
.service-panel p {
  font-style: italic;
  color: var(--muted);
  padding: 0 0.25rem 1.6rem;
  margin: 0;
}
.service.is-open .service-panel {
  grid-template-rows: 1fr;
}

/* ---------- About ---------- */
.about-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.about-card .section-title {
  margin-inline: auto;
}
.about-text {
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  max-width: var(--measure);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.94);
}
.about-text strong {
  color: #fff;
}

/* ---------- Stories ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}
.story-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.story-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--ink);
  flex: 1;
}
.story-card blockquote p {
  max-width: none;
  margin: 0;
}
.story-card figcaption {
  font-weight: 600;
  color: var(--blue);
}
@media (max-width: 980px) {
  .stories-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why us ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  justify-items: center;
  gap: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 6rem);
  margin-top: 3.5rem;
  text-align: center;
}
.benefit h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5em;
}
.benefit p {
  margin-inline: auto;
  max-width: 34ch;
  color: var(--muted);
}
@media (max-width: 720px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.contact-card .section-title {
  max-width: none;
}
.contact-form {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field.span-2 {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.95rem;
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-on-blue);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #ffd2d2;
}
.field-error {
  font-size: 0.875rem;
  color: #ffd2d2;
  min-height: 1.2em;
  margin: 0;
}
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.form-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: #fff;
  flex: none;
}
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status[data-state="error"] {
  color: #ffd2d2;
}
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-field.span-2 {
    grid-column: auto;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.05fr 1.25fr;
  gap: 2.5rem 2rem;
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-weight: 600;
  max-width: 30ch;
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-col a {
  text-decoration: none;
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--blue);
}
.footer-col address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}
.footer-col address .office-name {
  font-style: italic;
}
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
/* Header layout fix */
.logo,
.site-nav a { white-space: nowrap; }
.site-nav li { flex: none; }
.header-inner { gap: clamp(0.75rem, 1.8vw, 1.5rem); }
.site-nav ul { gap: clamp(0.75rem, 1.6vw, 1.75rem); flex-wrap: nowrap; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; order: 5; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .header-cta { display: none; }
}
@media (min-width: 1181px) {
  .site-nav ul {
    background: rgba(18, 22, 28, 0.05);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.5rem;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .site-nav a:hover {
    background: #fff;
    color: var(--blue);
  }
  .lang-switch {
    position: relative;
    padding-left: 1.25rem;
  }
  .lang-switch::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.35rem;
    background: var(--line);
  }
}
/* Hero nadpis: mensi a opticky zarovnany */
.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  max-width: 18ch;
}
/* Hlavicka: vzdusnejsi rozestupy */
.header-inner { gap: clamp(1rem, 3vw, 2.75rem); }
.site-nav ul { gap: clamp(0.9rem, 2vw, 2rem); }
.site-nav a { font-size: 0.95rem; }
.lang-switch { margin-left: 0.25rem; }
/* Tlacitka: nikdy nelamat text */
.btn { white-space: nowrap; flex: none; }
.btn .btn-label { white-space: nowrap; }
.hero-actions .btn { flex: none; }

/* ---------- Legal pages ---------- */
.legal-page {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 1rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: var(--measure);
  margin-bottom: 1rem;
}
.legal-page h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2.5rem 0 0.75rem;
  max-width: var(--measure);
}
.legal-page p {
  color: var(--ink);
  max-width: var(--measure);
}
/* Dlouhe URL a e-maily nesmi rozbit layout na uzkych displejich */
.legal-page p,
.legal-page li,
.legal-page a,
.footer-legal {
  overflow-wrap: break-word;
}
.legal-page ul {
  margin: 0 0 1em;
  padding-left: 1.35rem;
  max-width: var(--measure);
  display: grid;
  gap: 0.45rem;
}
.legal-page li {
  color: var(--ink);
}
.legal-page a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}
.legal-page code {
  font-size: 0.95em;
  background: var(--blue-tint);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.legal-page .updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Footer legal block ---------- */
.footer-legal {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 80ch;
}
.footer-legal a {
  color: inherit;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--blue);
}

/* ---------- Contact form note ---------- */
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: var(--measure);
}
.form-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 28px rgba(18, 22, 28, 0.12);
  padding: 1.25rem 0;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-copy {
  flex: 1 1 24rem;
  min-width: 0;
}
.cookie-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.cookie-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 0.6rem 1.4rem;
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  background: #eef1f7;
}
.cookie-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-underline-offset: 0.2em;
  white-space: nowrap;
}
.cookie-link:hover {
  color: var(--blue);
}
@media (max-width: 720px) {
  .cookie-inner {
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cookie-link {
    text-align: center;
  }
}
