/* --------------------------------------------------------------------------
   0) Project palette
   -------------------------------------------------------------------------- */

:root {
  --project: #B87333;

  --accent-clay: #B87333;
  --accent-brick: #9E4B36;
  --accent-olive: #6F7D4F;
  --accent-sage: #A7B89A;
  --accent-sand: #D9C7A7;
  --accent-bluegray: #5C7480;

  --bg-body: #F9F5EE;
  --bg-soft: #F3EDE4;
  --bg-card: rgba(255,255,255,.86);

  --text-body: #221F20;
  --text-muted: #6F6862;
  --heading: #2B483B;

  --border-base: rgba(34,31,32,.10);

  --shadow-soft: 0 18px 55px rgba(34,31,32,.08);
  --shadow-card: 0 16px 45px rgba(34,31,32,.10);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --header-height: 92px;
}

/* Restore Bootstrap-like containers after default theme */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bs-gutter-x, .75rem);
  padding-right: var(--bs-gutter-x, .75rem);
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* --------------------------------------------------------------------------
   1) Base
   -------------------------------------------------------------------------- */

html,
body {
  background: var(--bg-body);
  color: var(--text-body);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--project);
}

img {
  max-width: 100%;
}

.text-muted {
  color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4,
.h1, .h2, .h3, .h4 {
  font-family: serif;
  color: var(--heading);
  /*letter-spacing: -0.035em;*/
}

h1 {
  font-size: 3.5rem;
  line-height: 1.5em;
}

.section,
.home-section {
  position: relative;
  padding: 5.5rem 0;
}

.section--soft,
.home-section--soft {
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(184,115,51,.06), transparent 62%),
    radial-gradient(900px 420px at 88% 12%, rgba(111,125,79,.07), transparent 62%),
    var(--bg-soft);
}

.bg-green {
  background: var(--heading);
}

.cit {
  font-family: serif;
  color: white;
  font-size: 3.5rem;
  font-style: italic;
  line-height: 1.5em;
}

.divider {
    width: 5em;
    height: 2px;
    background: #6F7D4F;
    margin-top: 1em;
    margin-bottom: 2em;
}
.divider.center {
    width: 5em;
    height: 2px;
    background: #6F7D4F;
    margin-top: 1em;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
}

/* Obal tabulky */
.content figure.table,
.ck-content figure.table {
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
}

/* Samotná tabulka */
#content figure.table table,
.ck-content figure.table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* Hlavička */
#content figure.table th,
.ck-content figure.table th {
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-base, #ddd);
}

/* Buňky */
#content figure.table td,
.ck-content figure.table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Zebra řádky */
#content figure.table tbody tr:nth-child(even),
.ck-content figure.table tbody tr:nth-child(even) {
    background: rgba(0,0,0,.03);
}

/* Hover */
#content figure.table tbody tr:hover,
.ck-content figure.table tbody tr:hover {
    background: rgba(0,0,0,.05);
}
/* --------------------------------------------------------------------------
   2) Header / navigation
   -------------------------------------------------------------------------- */

#site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  border: 0;
}

.site-nav,
#site-header .navbar {
  min-height: var(--header-height);
  background: transparent !important;
}

.navbar-brand img {
  max-height: 180px;
  width: auto;
}

.nav-link {
  position: relative;
  color: var(--text-body) !important;
  font-weight: 700;
  font-size: .95rem;
  padding-inline: .85rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--text-body) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-clay), var(--accent-olive));
}

.navbar-toggler {
  border-color: rgba(34,31,32,.16);
  background: rgba(255,255,255,.72);
  border-radius: 14px;
}

.header-phone {
  font-weight: 700;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   3) Buttons
   -------------------------------------------------------------------------- */

.btn {
  border-radius: 999px;
  font-weight: 800;
}

.btn-project,
.bg-project {
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-olive)) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(158,75,54,.22);
}

.btn-project:hover,
.bg-project:hover {
  color: #fff !important;
  filter: brightness(.97);
  transform: translateY(-1px);
}

.hero-btn-light,
.btn-outline-secondary {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(34,31,32,.14) !important;
  color: var(--text-body) !important;
  box-shadow: none;
}

.hero-btn-light:hover,
.btn-outline-secondary:hover {
  background: #fff !important;
  color: var(--text-body) !important;
}

/* --------------------------------------------------------------------------
   4) Hero
   -------------------------------------------------------------------------- */

/* hero styly zůstávají navázané na existující HTML */


/* --------------------------------------------------------------------------
   5) Homepage services
   -------------------------------------------------------------------------- */

.home-services {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(820px 360px at 12% 18%, rgba(184,115,51,.045), transparent 62%),
    radial-gradient(720px 340px at 86% 0%, rgba(111,125,79,.055), transparent 62%),
    var(--bg-body);
}

.section-kicker,
.kicker {
  color: var(--accent-clay);
  font-size: .95rem;
  font-weight: 800;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: .45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-clay), var(--accent-olive));
}

.h2-underline,
.section-title {
  position: relative;
  display: inline-block;
}

.h2-underline::after,
.section-title::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-clay),
    var(--accent-sand),
    var(--accent-olive)
  );
}

/* --------------------------------------------------------------------------
   7) Gallery / realizace
   -------------------------------------------------------------------------- */

.gallery-card,
.realization-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.gallery-card img,
.realization-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-card::after,
.realization-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 8px;
  border-radius: 0 999px 0 0;
  background: linear-gradient(90deg, var(--accent-clay), var(--accent-olive));
}

/* --------------------------------------------------------------------------
   8) CTA / contact panels
   -------------------------------------------------------------------------- */

.cta-band,
.contact-panel {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 260px at 12% 16%, rgba(184,115,51,.08), transparent 62%),
    radial-gradient(620px 280px at 90% 12%, rgba(111,125,79,.08), transparent 62%),
    rgba(255,255,255,.78);
  border: 1px solid rgba(34,31,32,.08);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   9) Footer / bottom CTA
   -------------------------------------------------------------------------- */

#site-footer {
  background: var(--bg-body);
  color: var(--text-footer);
  border-top: 1px solid var(--border-base);
  padding: 24px 0;
}
 
.footer-cta,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-cta {
  padding: 4.5rem 0 2.25rem;
}

.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr .95fr;
  gap: 2.4rem;
  align-items: stretch;
}

.footer-card {
  min-height: 220px;
}

.footer-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--heading);
}

.footer-about h2 {
  color: var(--accent-clay);
}

.footer-colors h2 {
  color: var(--accent-olive);
}

.footer-card p {
  max-width: 360px;
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.7;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(34,31,32,.16);
  background: rgba(255,255,255,.72);
  color: var(--text-body);
  font-size: .92rem;
  font-weight: 800;
}

.footer-link-btn:hover {
  background: #fff;
  color: var(--accent-clay);
}

/* prostřední blok */

.footer-colors {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) 1fr;
  gap: 1.6rem;
  align-items: center;
  padding-left: 2rem;
  border-left: 1px solid rgba(34,31,32,.08);
  border-right: 1px solid rgba(34,31,32,.08);
}

.footer-colors img {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  filter: drop-shadow(0 20px 35px rgba(34,31,32,.12));
}

/* kontakt */

.footer-contact ul {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.45rem;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .6rem;
  align-items: start;
  color: var(--text-body);
  font-size: .95rem;
}

.footer-contact li > span:first-child {
  color: var(--text-body);
  opacity: .82;
}

.footer-contact a:hover {
  color: var(--accent-clay);
}

.footer-main-btn {
  min-height: 54px;
  padding-inline: 1.25rem;
}

/* spodní patička */

.footer-bottom {
  padding: 1.45rem 0 2rem;
  background: rgba(255,255,255,.58);
  border-top: 1px solid rgba(34,31,32,.06);
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-logo img {
  max-width: 148px;
  height: auto;
  display: block;
}

.footer-nav {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 1.7rem;
}

.footer-nav a {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-body);
}

.footer-nav a:hover {
  color: var(--accent-clay);
}

.footer-copy {
  margin: .75rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   10) CMS content
   -------------------------------------------------------------------------- */

.cms-content {
  max-width: 780px;
  line-height: 1.7;
  color: var(--text-body);
}

.cms-content > * + * {
  margin-top: 1.2em;
}

.cms-content h2,
.cms-content h3 {
  margin-top: 1.8em;
  font-weight: 900;
  color: var(--heading);
}

.cms-content a {
  color: var(--accent-bluegray);
  text-decoration: underline;
}

.cms-content a:hover {
  color: var(--accent-clay);
}

.cms-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   11) Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
  .hero-copy {
    transform: none;
  }
}

@media (min-width: 1600px) {
  .hero-copy {
    transform: none;
  }
}

@media (max-width: 1199.98px) {
  .hero-copy {
    transform: none;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-intro {
    max-width: 640px;
  }

  .services-intro p {
    max-width: 520px;
  }

  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-colors {
    padding-left: 0;
    border-left: 0;
    border-right: 0;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 82px;
  }

  #site-header {
    background: rgba(249,245,238,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(34,31,32,.06);
  }

  .navbar-brand img {
    max-height: 52px;
  }

  .navbar-collapse {
    padding: 1rem 0;
  }

  .hero-stage {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero-slider {
    position: relative;
    height: clamp(360px, 74vw, 560px);
  }

  .hero-content {
    position: relative;
    inset: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
    background: var(--bg-body);
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(249,245,238,.18) 0%,
        rgba(249,245,238,.36) 72%,
        rgba(249,245,238,.92) 100%
      );
  }

  .hero-copy {
    max-width: none;
    padding-right: 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
    line-height: .96;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-top: 1.6rem;
  }

  .hero-features span {
    padding-left: 38px;
    font-size: .8rem;
  }

  .hero-features span::before {
    width: 28px;
    height: 28px;
  }

  .hero-brush {
    width: 52vw;
    right: -14vw;
    top: 70px;
  }

  .section,
  .home-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .home-services {
    padding: 3.5rem 0;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 260px;
  }

  .services-benefits {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 1.5rem;
  }

  .footer-cta {
    padding: 3.25rem 0 1.75rem;
  }

  .footer-colors {
    grid-template-columns: 1fr;
  }

  .footer-colors img {
    max-width: 320px;
    justify-self: start;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-logo img {
    margin-inline: auto;
  }

  .footer-nav {
    gap: 1rem 1.25rem;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-features {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   12) Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide {
    animation: none;
    opacity: 0;
  }

  .hero-slider .slide-1 {
    opacity: 1;
  }

  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   13) Cookie/preferences button
   -------------------------------------------------------------------------- */

#open_preferences_center {
  position: fixed;
  right: 0;
  bottom: 75px;
  z-index: 1001;
  width: 70px;
  height: 62px;
  padding-top: 2px;
  border-radius: 30px 0 0 30px;
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-olive));
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  box-shadow: 0 10px 30px rgba(158,75,54,.24);
}

#open_preferences_center:hover {
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-bluegray));
  color: #fff;
}