/*
Theme Name: Zamkovka 2026
Theme URI: https://www.zamkovka.eu/
Author: Bohumil Hanus
Description: Modern WordPress theme for Zamkovka.eu / Oldřich Kočí.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zamkovka.eu
*/

:root {
  --ink: #050505;
  --muted: #6f6f68;
  --paper: #f4f1ea;
  --paper-2: #ebe7dc;
  --concrete: #d8d4c9;
  --clay: #ff6a21;
  --clay-dark: #c9460d;
  --white: #ffffff;
  --line: rgba(5, 5, 5, 0.14);
  --max: 1200px;
  --buffer: 60px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Sora",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  overflow-wrap: normal;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 22px clamp(18px, 3vw, 36px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  font-weight: 900;
}
.brand-text strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 0.95;
}
.brand-text small {
  display: none;
}
.custom-logo {
  width: auto;
  max-width: 240px;
  max-height: 54px;
}
.primary-nav {
  justify-self: center;
}
.primary-nav ul {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.button,
.menu-toggle,
.filter-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}
.primary-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--clay);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }
  &:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover {
  color: var(--clay);
}
.menu-toggle {
  display: none;
  width: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.16);
}
.menu-toggle span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--white);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
}
.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}

.site-main {
  overflow: clip;
}
.hero {
  position: relative;
  display: grid;
  min-height: 90vh;
  padding: clamp(138px, 14vw, 178px) clamp(18px, 5vw, 100px)
    clamp(42px, 6vw, 74px);
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.32) 56%,
      rgba(0, 0, 0, 0.64)
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38),
      transparent 38%,
      rgba(0, 0, 0, 0.76)
    );
}
.hero-copy {
  align-self: end;
  max-width: 1120px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}
.hero h1,
.page-hero h1,
.contact-intro h1,
.project-detail-hero h1 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(54px, 5rem, 62px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}
.lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.wpcf7-submit {
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 13px 20px 13px;
  outline: 0;
  border: 1px solid black;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border-radius: 0;
  background: transparent;
}

.wpcf7-submit:after,
.button:after {
  content: "";
  background-color: var(--clay);
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  transition: 0.2s;
}

.button:hover:after,
.wpcf7-submit:hover:after {
  top: 0px;
  left: 0px;
}

@media (min-width: 768px) {
  .button,
  .wpcf7-submit {
    padding: 13px 50px 13px;
  }
}

.button.primary {
  color: var(--ink);
}
.button.secondary {
  color: var(--ink);
  border: 1px solid #fff;
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}
.hero-proof span {
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(0, 0, 0, 0.26);
}
.hero-proof strong {
  color: var(--white);
  font-size: 30px;
  line-height: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
}

.preview-gallery img {
  width: 100%;
  height: 100%;
  transition: 0.2s;
  &:hover {
    scale: 1.02;
    transition: 0.4s;
  }
}
.detail-photo img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
}
.hero-placeholder,
.project-placeholder,
.map-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0
      0 / 30px 30px,
    linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%) 0
      0 / 30px 30px,
    linear-gradient(135deg, #34352f, #121310);
}
.hero .hero-placeholder {
  color: transparent;
}
.hero-caption {
  position: absolute;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 3px;
  max-width: 330px;
  padding: 16px;
  color: var(--ink);
  background: var(--clay);
  border-radius: 8px;
}
.slider-dots {
  display: none;
}
.slider-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}
.slider-dot.is-active {
  background: var(--clay);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  color: var(--ink);
  background: var(--clay);
}
.trust-strip div {
  min-height: 160px;
  padding: clamp(24px, 3vw, 32px) clamp(24px, 5vw, 74px);
  border-right: 1px solid rgba(0, 0, 0, 0.18);
}
.trust-strip strong,
.trust-strip span {
  display: block;
}
.trust-strip strong {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
}
.trust-strip span {
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.72);
}

.section,
.page-hero,
.project-detail-hero,
.contact-layout,
.map-band,
.archive-section {
  padding: clamp(58px, 8vw, 16px) clamp(18px, 4vw, 56px);
}
.page-hero,
.project-detail-hero,
.contact-layout {
  padding-top: clamp(138px, 15vw, 190px);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-heading {
  max-width: 940px;
  margin-bottom: 30px;
}
h2 {
  margin: 0 0 18px;
  max-width: 980px;
  font-size: clamp(42px, 4vw, 54px);
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.05;
}
.muted,
.project-card small,
.fact-label {
  color: var(--muted);
  font-size: 14px;
}
.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--clay-dark);
  font-weight: 900;
}

.service-grid,
.project-grid,
.equipment-grid,
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
}
.service-card,
.project-card,
.equipment-card,
.seo-card {
  border: 1px solid var(--line);
  border-left: none;
  background: transparent;
}

.contact-form,
.contact-card,
.facts,
.empty-card,
.quote-panel {
  border: 1px solid var(--line);
  background: transparent;
}

.service-card,
.equipment-card,
.seo-card {
  min-height: 300px;
  padding: clamp(24px, 3vw, 38px);
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--clay);
}
.service-card p,
.equipment-card p,
.seo-card p {
  color: var(--muted);
  font-size: 90%;
}

.orange-band {
  color: var(--ink);
  background: var(--clay);
}
.orange-band .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.orange-band .eyebrow {
  color: var(--ink);
}
.orange-band p {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.orange-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.orange-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.process-band {
  margin: 0;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}
.process-band .section-inner {
  max-width: var(--max);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}
.steps li {
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--clay);
}
.steps span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.preview-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 210px;
  gap: 1rem;
}
.preview-gallery .project-image:first-child {
  grid-row: span 2;
}
.project-image,
.detail-photo,
.map-placeholder {
  min-height: 180px;
  overflow: hidden;
  background: var(--concrete);
}
.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.project-card {
  display: grid;
  gap: 10px;
  padding: 0;
  transition: opacity 0.18s ease;
  align-content: start;
}
.project-card:hover {
  opacity: 0.86;
}
.project-card.featured {
  grid-column: span 2;
}
.project-card .project-image {
  max-height: 250px;
  aspect-ratio: 3/2;
}
.project-card.featured .project-image {
  max-height: none;
}
.project-meta {
  padding: 20px clamp(18px, 2vw, 28px) 0;
  color: var(--clay-dark);
  font-weight: 900;
  font-size: 13px;
}
.project-card h3 {
  padding: 0 clamp(18px, 2vw, 28px);
  font-size: 24px;
  line-height: 1.12;
}
.project-card small {
  padding: 0 clamp(18px, 2vw, 28px) 24px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max);
  margin: -48px auto 0;
  padding: 0 clamp(18px, 4vw, 56px) 28px;
}
.filter-button {
  border: 1px solid var(--line);
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.filter-button.is-active {
  background: var(--clay);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
.project-detail-hero .lead,
.contact-intro .lead,
.page-hero .lead {
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 112px;
}
.facts span {
  display: block;
}
.fact-label {
  display: block;
  font-weight: 800;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}
.detail-gallery .detail-photo:first-child {
  grid-row: span 2;
  min-height: 500px;
}
.quote-panel,
.empty-card {
  padding: 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.contact-cards {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contact-card {
  display: block;
  padding: 18px;
}
.contact-card strong,
.contact-card span {
  display: block;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
}
form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}
form input,
form select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(5, 5, 5, 0.18);
  border-radius: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
form textarea {
  min-height: 145px;
  resize: vertical;
}
.form-notice {
  margin: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--clay);
  font-weight: 800;
}
.form-notice.error {
  color: var(--white);
  background: var(--clay-dark);
}
.full {
  grid-column: 1 / -1;
}
.map-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 0;
}
.map-placeholder {
  min-height: 330px;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.site-footer {
  color: var(--ink);
  background: var(--clay);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  max-width: var(--max);
  min-height: 110px;
  margin: 0 auto;
  padding: var(--buffer) 0;
  h3 {
    margin: 0;
    color: var(--white);
    font-size: 20px;
  }
}
.footer-inner a {
  display: inline-block;
  color: var(--ink);
}

.footer-logo img {
  margin-bottom: 2rem;
}

footer .menu {
  padding: 0;
  margin: 1em 0 0;
  list-style: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}

footer a {
  margin-left: 0;
  &:hover {
    text-decoration: underline;
    color: var(--white);
  }
}

iframe {
  border: 0;
  background: var(--concrete);
  padding: 1rem;
}

.site-footer span {
  display: block;
  color: rgba(0, 0, 0, 0.72);
}
.post-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(138px, 15vw, 190px) clamp(18px, 4vw, 56px)
    clamp(58px, 8vw, 108px);
}
.post-content > *:first-child {
  margin-top: 0;
}

.equipment-card img {
  margin-bottom: 2rem;
}
.equipment-card h3 {
  font-size: clamp(18px, 2.3vw, 22px);
}

/* Pagination Navigation */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 0;
}

.pagination-nav a,
.pagination-nav span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 0;
}

.pagination-nav a::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100%;
  height: 100%;
  background: var(--clay);
  z-index: -1;
  transition: 0.2s;
}

.pagination-nav a:hover::after {
  top: 0;
  left: 0;
}

.pagination-nav a:hover {
  color: var(--white);
}

.pagination-nav .page-numbers.current,
.pagination-nav span.page-numbers {
  color: var(--ink);
  background: transparent;
  cursor: default;
  pointer-events: none;
  position: relative;
}

.pagination-nav .page-numbers.current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clay);
  z-index: -1;
}

.pagination-nav .page-numbers.current {
  color: var(--white);
  margin: 0 1rem;
}

.pagination-nav .dots {
  color: var(--ink);
  cursor: default;
  border: none;
  padding: 0;
  background: transparent;
}

.bigger {
  font-size: 130%;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .service-grid,
  .equipment-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-inner,
  .split,
  .contact-layout,
  .map-band,
  .project-detail-hero,
  .orange-band .section-inner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 80px;
  }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .menu-open .primary-nav {
    display: block;
  }
  .primary-nav ul {
    display: grid;
    gap: 4px;
  }
  .phone-pill {
    grid-column: 1 / 2;
    grid-row: 2;
    width: max-content;
  }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .trust-strip,
  .steps,
  .project-grid,
  .detail-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .project-card.featured {
    grid-column: span 2;
  }
  .facts {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }
  .brand-text strong {
    font-size: 20px;
  }
  .hero {
    padding-top: 224px;
  }
  .hero h1,
  .page-hero h1,
  .contact-intro h1,
  .project-detail-hero h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 0.92;
  }
  .lead {
    font-size: 17px;
  }
  .hero-proof,
  .service-grid,
  .equipment-grid,
  .seo-grid,
  .trust-strip,
  .steps,
  .project-grid,
  .detail-gallery,
  .preview-gallery,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .hero-caption {
    display: none;
  }

  .trust-strip div {
    min-height: 150px;
    border-right: 0;
  }
  .project-card.featured,
  .preview-gallery .project-image:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .project-card.featured .project-image,
  .detail-gallery .detail-photo:first-child {
    min-height: 300px;
  }
  .footer-inner {
    display: grid;
  }
  .footer-inner a {
    margin: 8px 14px 0 0;
  }
}
