/* Marie Kršková – prototyp webu · Noví lidovci brand 2026 */

:root {
  --lidovci-yellow: #FFFA4B;
  --lidovci-black: #000000;
  --lidovci-white: #FFFFFF;
  --gray-muted: #888888;
  --gray-light: #f4f4f0;
  --gray-border: rgba(0, 0, 0, 0.12);
  --header-height: 72px;
  --scroll-anchor-offset: 20px;
  --thick-line: 8px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --font-heading: "Oswald", sans-serif;
  --font-heading-weight: 700;
  --font-body: "Inter", sans-serif;
  --max-width: 1400px;
  --transition: 0.25s ease;
  --transition-panel: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--scroll-anchor-offset));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--lidovci-black);
  background: var(--lidovci-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4,
.hero-subtitle,
.mobile-nav a,
.priority-item__label,
.news-item__title,
.contact-card__head,
.contact-card__name,
.site-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
}

h1, h2, h3, h4,
.hero-subtitle,
.mobile-nav a,
.priority-item__label,
.news-item__title,
.contact-card__head,
.contact-card__name,
.site-brand {
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
}

/* ── Utility ── */

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

.thick-line {
  height: var(--thick-line);
  background: var(--lidovci-black);
  border: none;
  margin: 0;
}

.thick-line--yellow {
  background: var(--lidovci-yellow);
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-solid {
  background: var(--lidovci-white);
  border-bottom-color: var(--gray-border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  flex-shrink: 1;
  min-width: 0;
}

.site-brand {
  display: block;
  font-size: clamp(0.8125rem, 2.2vw, 1.125rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--lidovci-black);
  white-space: nowrap;
}

.site-header:not(.is-solid) .site-brand {
  color: var(--lidovci-white);
}

.header-nav {
  display: none;
  gap: 1.75rem;
}

.header-nav a {
  color: var(--lidovci-white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition), background var(--transition);
}

.site-header.is-solid .header-nav a {
  color: var(--lidovci-black);
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a.is-active {
  color: var(--lidovci-black);
  background: var(--lidovci-yellow);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

.site-header:not(.is-solid) .header-nav a:hover,
.site-header:not(.is-solid) .header-nav a:focus-visible,
.site-header:not(.is-solid) .header-nav a.is-active {
  color: var(--lidovci-black);
}

.header-social {
  display: none;
  gap: 0.75rem;
  align-items: center;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--lidovci-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.site-header.is-solid .header-social a {
  color: var(--lidovci-black);
  border-color: var(--gray-border);
}

.header-social a:hover,
.header-social a:focus-visible {
  background: var(--lidovci-yellow);
  border-color: var(--lidovci-yellow);
  color: var(--lidovci-black);
}

.header-social svg {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lidovci-white);
  transition: transform var(--transition), opacity var(--transition), background 0.35s ease;
}

.site-header.is-solid .menu-toggle span {
  background: var(--lidovci-black);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lidovci-black);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav ul,
.mobile-nav__social {
  position: relative;
  z-index: 1;
}

.mobile-nav a {
  color: var(--lidovci-white);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.mobile-nav a:hover {
  color: var(--lidovci-yellow);
}

.mobile-nav a[href="#kontakt"] {
  color: var(--lidovci-yellow);
}

.mobile-nav a[href="#kontakt"]:hover {
  color: var(--lidovci-white);
}

.mobile-nav__social {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav__social a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--lidovci-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-nav__social a:hover {
  color: var(--lidovci-yellow);
}

.mobile-nav__social svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }

  .header-social {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("../orlicke-hory-lq.webp") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

.hero-content {
  color: var(--lidovci-white);
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.75rem);
  letter-spacing: 0.08em;
  color: var(--lidovci-yellow);
}

.hero-portrait-wrap {
  display: flex;
  justify-content: center;
}

.hero-portrait {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--thick-line);
  background: var(--lidovci-yellow);
}

@media (max-width: 767px) {
  .hero {
    align-items: center;
  }

  .hero-inner {
    align-items: center;
    justify-items: center;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-portrait-wrap {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-bottom: 5rem;
    gap: 3rem;
  }

  .hero-portrait-wrap {
    justify-content: flex-start;
  }

  .hero-portrait {
    width: 320px;
  }
}

/* ── Sections common ── */

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}

.section-title--center {
  text-align: center;
}

.section-title--with-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  width: 100%;
}

.section-title__mark {
  width: 1.72em;
  height: 1.72em;
  flex-shrink: 0;
}

/* ── O mně ── */

.about {
  background: var(--gray-light);
}

.about-panel {
  background: var(--lidovci-yellow);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.about-text {
  padding: 2.5rem 1.5rem;
}

.about-text .section-title {
  color: var(--lidovci-black);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin: 0 0 1.25rem;
  color: var(--lidovci-black);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0;
  background: var(--lidovci-yellow);
}

.about-photo img {
  display: block;
  width: auto;
  max-width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr minmax(220px, 34%);
    align-items: stretch;
  }

  .about-text {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-photo {
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 100%;
  }

  .about-photo img {
    max-width: 100%;
    max-height: 100%;
    object-position: bottom right;
  }
}

@media (min-width: 1024px) {
  .about-text {
    padding: 3.5rem 3rem;
  }
}

/* ── 3 Priority – akordeon ── */

.priorities {
  background: var(--gray-light);
  color: var(--lidovci-black);
}

.priorities .section-title {
  color: var(--lidovci-black);
}

.priorities-hint {
  text-align: center;
  color: var(--gray-muted);
  font-size: 0.9375rem;
  margin: -1rem 0 2rem;
}

.priority-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-anchor: none;
}

.priority-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  background: var(--lidovci-white);
  overflow: hidden;
  overflow-anchor: none;
  scroll-margin-top: calc(var(--header-height) + var(--scroll-anchor-offset));
  transition: box-shadow var(--transition), border-color var(--transition);
}

.priority-item.is-open {
  border-color: var(--lidovci-black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: stretch;
}

.priority-item__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  background: var(--lidovci-yellow);
  color: var(--lidovci-black);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: filter var(--transition), background var(--transition);
}

.priority-item__trigger-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.priority-item__trigger:hover,
.priority-item__trigger:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.priority-item.is-open .priority-item__trigger {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0.75rem 1.5rem;
  background: var(--lidovci-yellow);
  border-bottom: none;
  min-height: 100%;
  filter: none;
}

.priority-item.is-open .priority-item__trigger-main {
  flex: 1;
  flex-direction: column;
  margin-left: 0;
  justify-content: center;
  align-self: center;
  width: 100%;
}

.priority-item.is-open .priority-item__icon {
  display: none;
}

.priority-item.is-open .priority-item__label {
  flex: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

.priority-item.is-open .priority-item__chevron {
  transform: rotate(-135deg);
}

.priority-item.is-open .priority-item__panel-wrap {
  grid-column: 2;
  grid-row: 1;
}

.priority-item__icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
}

.priority-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.priority-item__label {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  letter-spacing: 0.06em;
}

.priority-item__chevron {
  position: absolute;
  top: calc(1.25rem + 23px);
  left: 1.5rem;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform var(--transition-panel);
}

/* Animovaný panel */
.priority-item__panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-panel);
}

.priority-item.is-open .priority-item__panel-wrap {
  grid-template-rows: 1fr;
}

.priority-item__panel-inner {
  overflow: hidden;
}

.priority-item__panel {
  position: relative;
  padding: 1.5rem;
  background: var(--lidovci-white);
}

.priority-item.is-open .priority-item__panel {
  border-top: none;
}

.priority-item__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.priority-item__content p {
  margin: 0 0 1.125rem;
  font-size: 1rem;
  line-height: 1.65;
}

.priority-item__content p:last-child {
  margin-bottom: 0;
}

.priority-item__watermark {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: min(140px, 35vw);
  height: min(175px, 40vw);
  opacity: 0.07;
  pointer-events: none;
}

.priority-item__watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .priority-item.is-open {
    grid-template-columns: 80px 1fr;
  }

  .priority-item__trigger {
    padding: 1.5rem 2rem;
  }

  .priority-item__chevron {
    top: calc(1.5rem + 23px);
    left: 2rem;
  }

  .priority-item.is-open .priority-item__trigger {
    padding: 1.5rem 0.75rem 2rem;
  }

  .priority-item.is-open .priority-item__label {
    font-size: 1.375rem;
  }

  .priority-item__panel {
    padding: 2rem 2.5rem 2.5rem;
  }

  .priority-item__watermark {
    right: 1.5rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(200px, 25vw);
    height: min(250px, 30vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .priority-item__panel-wrap {
    transition: none;
  }

  .priority-item__chevron {
    transition: none;
  }
}

/* ── Social feed ── */

.social-feed {
  background: var(--lidovci-white);
  border-top: 1px solid var(--gray-border);
}

.social-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: var(--thick-line) solid var(--lidovci-black);
}

.social-feed-header .section-title {
  margin-bottom: 0;
}

.social-feed-header .header-social a {
  color: var(--lidovci-black);
}

.social-feed-header .header-social a:hover {
  color: var(--lidovci-black);
  background: var(--lidovci-yellow);
  border-color: var(--lidovci-black);
  border-radius: var(--radius-sm);
}

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.social-post {
  aspect-ratio: 1;
  background: var(--lidovci-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-muted);
  font-size: 0.875rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.social-post:hover {
  border-color: var(--lidovci-black);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.social-post svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.social-post__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── Aktuality ── */

.news {
  background: var(--lidovci-yellow);
}

.news .section-title {
  color: var(--lidovci-black);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  background: var(--lidovci-white);
  padding: 1.5rem 2rem;
  border: 1px solid var(--gray-border);
  border-left: var(--thick-line) solid var(--lidovci-black);
  border-radius: var(--radius-md);
}

.news-item__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-muted);
  margin-bottom: 0.5rem;
}

.news-item__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.news-item__excerpt {
  margin: 0;
  font-size: 1rem;
}

.news-placeholder {
  padding: 3rem 2rem;
  text-align: center;
  border: 1px dashed var(--gray-border);
  border-radius: var(--radius-md);
  color: var(--lidovci-black);
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.5);
}

/* ── Poděkování ── */

.thanks {
  background: var(--lidovci-white);
  color: var(--lidovci-black);
  text-align: center;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.thanks .section-title {
  color: var(--lidovci-black);
}

.thanks-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.7;
  padding: 1.5rem 2rem;
  background: var(--lidovci-yellow);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
}

/* ── Kontakt ── */

.contact {
  background: var(--lidovci-black);
  color: var(--lidovci-white);
}

.contact .section-title {
  color: var(--lidovci-white);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-card__head {
  padding: 0.875rem 1.25rem;
  background: var(--lidovci-yellow);
  color: var(--lidovci-black);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.contact-card__body {
  padding: 1.5rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card__name {
  margin: 0;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
}

.contact-fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-fact__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.contact-fact__value {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.contact-fact__link {
  color: var(--lidovci-yellow);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition);
}

.contact-fact__link:hover {
  color: var(--lidovci-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.contact-person {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-person:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-person__name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--lidovci-white);
}

.contact-person__role {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-person .contact-placeholder {
  margin: 0;
}

.contact-social {
  display: flex;
  gap: 0.625rem;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--lidovci-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.contact-social a:hover {
  background: var(--lidovci-yellow);
  border-color: var(--lidovci-yellow);
  color: var(--lidovci-black);
}

.contact-social svg {
  width: 18px;
  height: 18px;
}

.contact-placeholder {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card:first-child {
    grid-column: 1 / -1;
  }

  .contact-card:first-child .contact-card__body {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
    column-gap: 2rem;
  }

  .contact-card__name {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .contact-card:first-child .contact-fact:nth-of-type(1) {
    grid-column: 2;
  }

  .contact-card:first-child .contact-fact:nth-of-type(2) {
    grid-column: 3;
    align-self: end;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card:first-child {
    grid-column: auto;
  }

  .contact-card:first-child .contact-card__body {
    display: flex;
    flex-direction: column;
  }

  .contact-card__name {
    align-self: auto;
  }
}

/* ── Footer ── */

.site-footer {
  position: relative;
  background: var(--lidovci-yellow);
  color: var(--lidovci-black);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--gray-border);
}

.footer-scribble-decor {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 72px;
  height: 72px;
  pointer-events: none;
  z-index: 0;
}

.mobile-nav__scribble-decor {
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: auto;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.footer-scribble-decor svg,
.mobile-nav__scribble-decor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.footer-scribble__path,
.mobile-nav__scribble-path {
  fill: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-logo .site-brand {
  font-size: clamp(0.9375rem, 2.5vw, 1.25rem);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.footer-nav a:hover {
  background: var(--lidovci-white);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--gray-muted);
  margin: 0;
}

.footer-copy a {
  color: var(--lidovci-black);
  text-decoration: underline;
  font-weight: 600;
}

/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

}
