/*
Theme Name: Dlouhá Lhota Modern Child
Template: astra
Version: 1.6.0
Description: Moderní, responzivní a přístupná child theme pro obecní web.
Text Domain: dlouha-lhota-modern-child
*/

:root {
  --dl-primary: #2a478d;
  --dl-primary-2: #20386f;
  --dl-primary-3: #182a55;
  --dl-accent: #2a478d;
  --dl-accent-soft: #dfe7f8;
  --dl-text: #14213d;
  --dl-muted: #52607a;
  --dl-muted-2: #8592ad;
  --dl-border: #dbe4f0;
  --dl-bg: #f7f9fc;
  --dl-bg-2: #eef3fb;
  --dl-white: #ffffff;
  --dl-radius: 26px;
  --dl-radius-sm: 18px;
  --dl-shadow: 0 22px 50px rgba(20, 33, 61, .14);
  --dl-shadow-soft: 0 10px 28px rgba(20, 33, 61, .08);
  --dl-shell: 1480px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dl-text);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body .site,
body #page { overflow-x: clip; background: transparent; }
a { color: var(--dl-accent); text-decoration: none; }
a:hover { color: var(--dl-primary-3); }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute; left: -9999px; }

.ast-container,
.site-content .ast-container,
.ast-plain-container.ast-no-sidebar #primary,
.ast-page-builder-template .site-content > .ast-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dl-shell,
.dl-topbar__inner,
.dl-header-main__inner,
.dl-footer-bottom__inner {
  width: min(var(--dl-shell), calc(100% - 40px));
  margin: 0 auto;
}

.dl-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, .88);
  border-bottom: 1px solid rgba(219, 228, 240, .9);
}
.dl-topbar {
  background: linear-gradient(90deg, var(--dl-primary-3) 0%, var(--dl-primary) 100%);
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dl-topbar__inner,
.dl-header-main__inner,
.dl-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dl-topbar__inner { padding: 10px 0; }
.dl-topbar__right { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.9); }

.dl-header-main {
  position: relative;
}
.dl-header-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(42,71,141,0), rgba(42,71,141,.18), rgba(42,71,141,0));
}
.dl-header-main__inner {
  padding: 16px 0;
  gap: 24px;
}
.dl-site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 0 auto;
}
.dl-logo-wrap img { max-height: 62px; width: auto; }
.dl-brand-text { display: flex; flex-direction: column; min-width: 0; }
.dl-brand-title {
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--dl-primary-3);
}
.dl-brand-subtitle {
  font-size: .92rem;
  color: var(--dl-muted);
}
.dl-header-main__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.dl-primary-nav { min-width: 0; }
.dl-menu,
.dl-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dl-menu li,
.dl-footer-menu li { margin: 0; }
.dl-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--dl-text);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dl-menu a:hover,
.dl-menu .current-menu-item > a,
.dl-menu .current_page_item > a {
  background: rgba(255,255,255,.96);
  box-shadow: var(--dl-shadow-soft);
  transform: translateY(-1px);
}
.dl-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--dl-primary) 0%, var(--dl-primary-2) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(42,71,141,.24);
  white-space: nowrap;
}
.dl-header-cta:hover { color: #fff; transform: translateY(-1px); }
.dl-menu-toggle {
  display: none;
  border: 1px solid var(--dl-border);
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
}
.dl-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dl-primary);
  margin: 4px auto;
}
.dl-mobile-panel {
  display: none;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--dl-border);
  padding: 10px 20px 18px;
}
.dl-menu--mobile { display: grid; gap: 6px; justify-content: stretch; }
.dl-menu--mobile a { justify-content: flex-start; }
.dl-mobile-cta { margin-top: 10px; }

.dl-front-page { margin-top: 0; }
.dl-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  color: #fff;
  background-image:
    linear-gradient(115deg, rgba(18, 28, 54, .80) 8%, rgba(32, 56, 111, .60) 42%, rgba(42, 71, 141, .46) 64%, rgba(18, 28, 54, .78) 100%),
    var(--dl-hero-image);
  background-size: cover;
  background-position: center center;
}
.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.15), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(223,231,248,.16), transparent 28%),
    linear-gradient(180deg, rgba(18,28,54,.18) 0%, rgba(18,28,54,.08) 100%);
  pointer-events: none;
}
.dl-hero::after {
  content: "";
  position: absolute;
  inset: auto -140px -180px auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 68%);
  filter: blur(16px);
}
.dl-hero--full { padding: 56px 0 78px; }
.dl-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.dl-hero__content {
  max-width: 820px;
  padding: 10px 0;
}
.dl-hero__badge,
.dl-chip,
.dl-widget-title,
.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dl-hero__badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
}
.dl-hero__title {
  margin: 16px 0 14px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.06;
  font-weight: 800;
  max-width: 14ch;
  color: #fff;
  text-wrap: balance;
}
.dl-hero__text {
  margin: 0;
  max-width: 64ch;
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  line-height: 1.8;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}
.dl-btn,
.dl-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dl-btn:hover,
.dl-card-link:hover { transform: translateY(-2px); }
.dl-btn--light {
  background: #fff;
  color: var(--dl-primary-3);
  box-shadow: var(--dl-shadow);
}
.dl-btn--ghost-light,
.dl-btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.dl-btn--outline {
  background: transparent;
  border: 1px solid rgba(42,71,141,.22);
  color: var(--dl-primary);
}

.dl-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(219,228,240,.96);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow-soft);
  padding: 24px;
}
.dl-card--glass {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px rgba(2,6,23,.22);
}
.dl-widget-title { color: var(--dl-muted); margin-bottom: 12px; }
.dl-widget-title--light,
.dl-eyebrow--light { color: rgba(255,255,255,.76); }
.dl-quick-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.08);
}
.dl-quick-note + .dl-quick-note { margin-top: 12px; }

.dl-contact-list,
.dl-utility-list,
.dl-link-list,
.dl-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dl-contact-list li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--dl-border);
}
.dl-contact-list li:first-child { border-top: 0; padding-top: 0; }
.dl-contact-list strong { color: var(--dl-primary); }
.dl-contact-list span,
.dl-link-list a,
.dl-footer-list,
.dl-content-body,
.dl-post-card p,
.dl-feature-card p,
.dl-info-card p,
.widget,
.widget p,
.widget li,
.dl-footer-text,
.dl-lead { color: var(--dl-muted); line-height: 1.82; }

.dl-section { padding: 70px 0; }
.dl-section--soft { background: linear-gradient(180deg, rgba(223,231,248,.44) 0%, rgba(248,250,252,.90) 100%); }
.dl-section-heading { margin-bottom: 26px; }
.dl-section-heading--compact { margin-bottom: 20px; }
.dl-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  color: var(--dl-primary-3);
  font-weight: 800;
}
.dl-home-grid,
.dl-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .7fr);
  gap: 28px;
  align-items: start;
}
.dl-grid { display: grid; gap: 20px; }
.dl-grid--3,
.dl-grid--archive,
.dl-grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-grid--sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dl-feature-card,
.dl-post-card,
.dl-link-card,
.widget {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.dl-feature-card:hover,
.dl-post-card:hover,
.dl-link-card:hover,
.widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow);
  border-color: rgba(42,71,141,.26);
}
.dl-feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(238,243,251,.96) 100%);
}
.dl-feature-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,71,141,.10) 0%, rgba(42,71,141,0) 70%);
}
.dl-feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(42,71,141,.18), rgba(20,33,61,.05)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(42,71,141,.10);
  margin-bottom: 18px;
}
.dl-feature-card h3,
.dl-post-card h3,
.dl-info-card h3,
.widget-title,
.dl-footer-card h3 { margin: 0 0 10px; color: var(--dl-primary-3); }
.dl-post-card h3 a { color: inherit; }
.dl-card-link {
  margin-top: 8px;
  color: var(--dl-primary);
  justify-content: flex-start;
  padding-left: 0;
  min-height: auto;
}
.dl-link-card {
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  color: var(--dl-primary-3);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(238,243,251,.95) 100%);
}
.dl-news-meta {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dl-muted-2);
}
.dl-post-thumb {
  display: block;
  margin: -24px -24px 18px;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(42,71,141,.12), rgba(42,71,141,.03));
}
.dl-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-post-card--latest {
  display: flex;
  flex-direction: column;
}
.dl-post-card--latest p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dl-post-card__footer {
  margin-top: auto;
  padding-top: 8px;
}
.dl-section-action {
  margin-top: 28px;
}
.dl-sidebar-stack,
.dl-rail-column { display: grid; gap: 18px; }
.dl-notice-text + .dl-notice-text { margin-top: 12px; }
.dl-event-card {
  background: linear-gradient(160deg, var(--dl-primary) 0%, var(--dl-primary-2) 100%);
  color: #fff;
  border-color: transparent;
}
.dl-event-card h3,
.dl-event-card li,
.dl-event-card a { color: #fff; }

.widget {
  background: rgba(255,255,255,.97);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  padding: 22px;
  box-shadow: var(--dl-shadow-soft);
}
.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
}
.widget ul { padding-left: 18px; }

.dl-page-hero {
  padding: 14px 0 14px;
  background: linear-gradient(135deg, rgba(24,42,85,.98) 0%, rgba(42,71,141,.94) 100%);
  color: #fff;
}
.dl-breadcrumbs,
.dl-breadcrumbs a { color: rgba(255,255,255,.86); font-size: .92rem; }
.dl-page-title {
  margin: 0 0 18px;
  color: var(--dl-primary-3);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}
.dl-content-grid { padding: 34px 0 74px; }
.dl-content-card { min-width: 0; }
.dl-content-body > *:first-child { margin-top: 0; }
.dl-content-body > *:last-child { margin-bottom: 0; }
.dl-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -4px 0 18px;
  color: var(--dl-muted);
  font-size: .95rem;
}
.dl-featured-image {
  margin: -24px -24px 24px;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
}
.dl-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.dl-post-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--dl-border);
}

.dl-site-footer { margin-top: 28px; }
.dl-footer-cta {
  padding: 46px 0;
  background: linear-gradient(135deg, var(--dl-primary-3) 0%, var(--dl-primary) 100%);
  color: #fff;
}
.dl-footer-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}
.dl-footer-cta h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.06;
  max-width: 18ch;
}
.dl-footer-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.dl-footer-main {
  padding: 34px 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}
.dl-footer-main__grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1fr;
  gap: 22px;
}
.dl-footer-card {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  padding: 22px;
  box-shadow: var(--dl-shadow-soft);
}
.dl-site-branding--footer { margin-bottom: 14px; }
.dl-footer-menu { justify-content: flex-start; gap: 6px; }
.dl-footer-menu a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--dl-bg-2);
  color: var(--dl-primary-3);
  font-weight: 700;
}
.dl-footer-bottom {
  border-top: 1px solid rgba(219,228,240,.9);
  background: rgba(255,255,255,.84);
}
.dl-footer-bottom__inner {
  padding: 16px 0;
  color: var(--dl-muted);
  font-size: .92rem;
}

@media (max-width: 1180px) {
  .dl-home-grid,
  .dl-content-grid,
  .dl-footer-main__grid {
    grid-template-columns: 1fr;
  }
  .dl-grid--3,
  .dl-grid--archive,
  .dl-grid--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .dl-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .dl-primary-nav,
  .dl-header-cta { display: none; }
  .dl-mobile-panel[hidden] { display: none !important; }
  .dl-mobile-panel:not([hidden]) { display: block; }
  .dl-header-main__inner { gap: 16px; }
  .dl-grid--sections,
  .dl-grid--3,
  .dl-grid--archive,
  .dl-grid--posts { grid-template-columns: 1fr; }
  .dl-footer-cta__inner,
  .dl-topbar__inner,
  .dl-footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dl-topbar__right { gap: 10px; }
}

@media (max-width: 640px) {
  .dl-shell,
  .dl-topbar__inner,
  .dl-header-main__inner,
  .dl-footer-bottom__inner {
    width: min(var(--dl-shell), calc(100% - 24px));
  }
  .dl-brand-title { font-size: 1.08rem; }
  .dl-brand-subtitle { display: none; }
  .dl-logo-wrap img { max-height: 52px; }
  .dl-hero--full { padding: 40px 0 52px; }
  .dl-hero__title { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .dl-section { padding: 54px 0; }
  .dl-card,
  .widget,
  .dl-footer-card { padding: 20px; }
}

#primary {
  margin: 0em 0;
}

.dl-topbar__left {
  line-height: 1.45;
}

.dl-topbar__left a,
.dl-topbar__left strong,
.dl-topbar__left span {
  color: #fff;
}

.dl-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}
.dl-topbar-link:hover { color: #fff; opacity: .92; }
.dl-topbar-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.dl-primary-nav .menu-item {
  position: relative;
}
.dl-primary-nav .sub-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--dl-border);
  border-radius: 10px;
  box-shadow: var(--dl-shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
  z-index: 50;
}
.dl-primary-nav .sub-menu .sub-menu {
  top: -10px;
  left: calc(100% + 8px);
}
.dl-primary-nav .menu-item:hover > .sub-menu,
.dl-primary-nav .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dl-primary-nav .sub-menu li { width: 100%; }
.dl-primary-nav .sub-menu a {
  display: flex;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.dl-primary-nav .sub-menu a:hover {
  background: var(--dl-accent-soft);
  box-shadow: none;
  transform: none;
}

.dl-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  color: #fff;
  background-image: linear-gradient(115deg, rgba(18, 28, 54, .80) 8%, rgb(32 56 111 / 10%) 42%, rgb(42 71 141 / 11%) 64%, rgb(18 28 54 / 17%) 100%), var(--dl-hero-image);
  background-size: cover;
  background-position: center center;
}
.dl-hero--full {
  padding: 42px 0 62px;
}
.dl-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.dl-home-info {
  padding: 24px 0 72px;
}
.dl-home-info__text {
  margin: 14px 0 0;
  max-width: 760px;
  color: rgba(255,255,255,.88);
}

@media (max-width: 921px) {
  .dl-primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 6px 0 0 12px;
    min-width: 0;
    box-shadow: none;
    border-radius: 10px;
  }
  .dl-mobile-panel .sub-menu {
    padding-left: 10px;
  }
}

/* v1.6 – náhledové obrázky rozcestníkových panelů */
.dl-feature-card__image {
  display: block;
  margin: -24px -24px 20px;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(135deg, rgba(42,71,141,.14), rgba(42,71,141,.04));
}
.dl-feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}
.dl-feature-card--with-image:hover .dl-feature-card__image img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}
.dl-feature-card--with-image::after {
  z-index: 0;
}
.dl-feature-card--with-image h3,
.dl-feature-card--with-image p,
.dl-feature-card--with-image .dl-card-link {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .dl-feature-card__image { aspect-ratio: 16 / 9; }
}
