:root {
  --green: #355f2e;
  --green-dark: #243e20;
  --green-soft: #5f7f4d;
  --cream: #f6f1e8;
  --cream-2: #eee6d8;
  --paper: #fffaf2;
  --text: #262820;
  --muted: #6d6a5f;
  --shadow: 0 18px 40px rgba(38, 40, 32, .12);
  --radius: 16px;
}

body {
  font-family: "Jost", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Jost", Arial, sans-serif;
  color: var(--green-dark);
}

section {
  padding: 70px 0;
  overflow: hidden;
}

.btn-primary {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
  box-shadow: 0 9px 18px rgba(53, 95, 46, .22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--green-dark) !important;
  border-color: var(--green-dark) !important;
  color: #fff !important;
}

.btn-light {
  background: rgba(255, 250, 242, .88);
  border-color: rgba(255,255,255,.9);
  color: var(--green-dark);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.btn-light:hover {
  background: #fff;
  color: var(--green-dark);
}

/*--------------------------------------------------------------
# Preloader / Back to top
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--cream);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--green);
  border-top-color: rgba(53, 95, 46, .16);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--green);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--green-dark);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Header / Navigation
--------------------------------------------------------------*/
#header {
  height: 86px;
  transition: all 0.35s;
  z-index: 997;
  background: rgba(255, 250, 242, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(38, 40, 32, .08);
}

#header.header-transparent {
  background: rgba(255, 250, 242, .90);
}

#header.header-scrolled {
  height: 72px;
  background: rgba(255, 250, 242, .98);
}

#header .container {
  max-width: 1180px !important;
}

#header .logo {
  position: relative;
  z-index: 3;
}

#header .logo img {
  max-height: 92px;
  margin-top: 8px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.16));
  transition: all .35s;
}

#header.header-scrolled .logo img {
  max-height: 70px;
  margin-top: 2px;
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--green);
}

.navbar a:after {
  content: "";
  position: absolute;
  left: 30px;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s ease;
}

.navbar .nav-call,
.navbar .nav-call:focus {
  margin-left: 24px;
  padding: 9px 18px;
  background: var(--green);
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(53, 95, 46, .22);
}

.navbar .nav-call:after {
  display: none;
}

.navbar .nav-call i {
  margin-right: 8px;
}

.navbar .nav-call:hover {
  background: var(--green-dark);
}

.mobile-nav-toggle {
  color: var(--green-dark);
  font-size: 30px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  #header,
  #header.header-scrolled {
    height: 78px;
    z-index: 10040;
  }

  #header .logo img,
  #header.header-scrolled .logo img {
    max-height: 70px;
    margin-top: 2px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgba(36, 62, 32, 0.84);
  transition: 0.3s;
  z-index: 10050;
}

.navbar-mobile .mobile-nav-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  color: #fff;
  z-index: 10060;
}

.navbar-mobile ul {
  display: block;
  position: fixed;
  top: 92px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10055;
  padding: 18px 0;
  background: #fffaf2;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 13px 22px;
  font-size: 17px;
  color: var(--text);
}

.navbar-mobile a:after {
  display: none;
}

.navbar-mobile .nav-call,
.navbar-mobile .nav-call:focus {
  display: inline-flex;
  margin: 14px 20px 0;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  width: 100%;
  min-height: 560px;
  padding: 150px 0 86px;
  position: relative;
  background: url(../img/hero-bg.webp) center center / cover no-repeat;
}

#hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(246,241,232,.10) 0%, rgba(246,241,232,.28) 44%, rgba(246,241,232,.94) 100%),
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.52) 0%, rgba(255,255,255,.32) 35%, rgba(255,255,255,.06) 62%);
  z-index: 1;
}

#hero:after {
  content: "";
  position: absolute;
  right: 8%;
  top: 135px;
  width: 330px;
  height: 330px;
  background: url(../img/nejenmyslivci-symbol.png) center / contain no-repeat;
  opacity: .28;
  filter: grayscale(1) blur(.25px);
  z-index: 2;
  pointer-events: none;
  transform: translateY(14%);
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

#hero h1 {
  color: var(--green-dark);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 22px;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

#hero p {
  color: #2f3129;
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions .btn {
  min-width: 180px;
  padding: 12px 24px;
  margin: 0 6px 8px;
  border-radius: 9px;
  font-weight: 700;
}

.quick-info-section {
  padding: 0;
  overflow: visible;
  background: var(--cream);
}

.quick-info {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr .9fr;
  background: rgba(255, 250, 242, .92);
  border: 1px solid rgba(53,95,46,.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--text);
  border-right: 1px solid rgba(53,95,46,.14);
}

.quick-info-item:last-child {
  border-right: 0;
}

.quick-info-item i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 18px;
}

.quick-info-item a {
  color: var(--text);
}

/*--------------------------------------------------------------
# Sortiment
--------------------------------------------------------------*/
.sortiment {
  background:
    radial-gradient(circle at 12% 20%, rgba(95,127,77,.10), transparent 27%),
    linear-gradient(180deg, var(--cream) 0%, #f9f5ed 100%);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-heading p {
  font-size: 21px;
  line-height: 1.45;
  color: #47493f;
  margin: 0;
}

.notice-card,
.category-card,
.contact-card {
  border-radius: var(--radius);
  background: rgba(255, 250, 242, .90);
  border: 1px solid rgba(53,95,46,.10);
  box-shadow: 0 12px 28px rgba(38,40,32,.10);
}

.notice-card {
  min-height: 100%;
  position: relative;
  display: flex;
  gap: 22px;
  padding: 30px 30px 22px;
  overflow: hidden;
}

.notice-card:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--green);
}

.notice-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.notice-card ul {
  margin: 0 0 14px;
  padding-left: 19px;
}

.notice-card li {
  margin-bottom: 6px;
}

.notice-icon {
  color: var(--green);
  font-size: 36px;
  line-height: 1;
  padding-top: 2px;
}

.category-card {
  width: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 18px 22px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(38,40,32,.16);
  border-color: rgba(53,95,46,.26);
  background: #fffdf8;
  outline: none;
}

.category-card i {
  font-size: 38px;
  color: var(--green);
  line-height: 1;
}

.category-icon {
  display: block;
  width: 150px;
  height: 92px;
  object-fit: contain;
  object-position: center;
  margin: -6px auto 2px;
  transition: transform .22s ease;
}

.category-card:hover .category-icon,
.category-card:focus .category-icon {
  transform: translateY(-3px) scale(1.04);
}

.category-card strong {
  display: block;
  font-size: 22px;
  color: var(--green-dark);
}

.category-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.btn-toggle-sortiment .hide-label {
  display: none;
}

.btn-toggle-sortiment[aria-expanded="true"] .show-label {
  display: none;
}

.btn-toggle-sortiment[aria-expanded="true"] .hide-label {
  display: inline;
}

/*--------------------------------------------------------------
# Gallery / Contact
--------------------------------------------------------------*/
.gallery-section {
  position: relative;
  background:
    linear-gradient(180deg, #f9f5ed 0%, rgba(246,241,232,.88) 100%),
    url(../img/footer-bg.webp) center center / cover no-repeat;
}

.gallery-grid {
  max-width: 620px;
}

.gallery-thumb {
  display: block;
  width: 100%;
  height: 144px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 10px 22px rgba(38,40,32,.12);
  cursor: pointer;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease, opacity .32s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.07);
  opacity: .92;
}

.contact-card {
  position: relative;
  padding: 42px 42px 38px;
  overflow: hidden;
  min-height: 100%;
}

.contact-card:after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 300px;
  height: 300px;
  background: url(../img/nejenmyslivci-symbol.png) center / contain no-repeat;
  opacity: .40;
  filter: grayscale(1);
  pointer-events: none;
}

.contact-card h2 {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 22px;
  z-index: 1;
}

.contact-card h3 {
  position: relative;
  font-size: 20px;
  color: var(--text);
  margin: 0 0 18px;
  z-index: 1;
}

.contact-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 17px;
}

.contact-list i {
  color: var(--green);
  width: 22px;
  text-align: center;
}

.opening-hours {
  position: relative;
  z-index: 1;
  max-width: 430px;
  border-top: 1px solid rgba(53,95,46,.12);
  padding-top: 18px;
}

.opening-hours div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 5px 0;
}

.opening-hours strong {
  color: var(--green-dark);
}

.gallery-modal-content {
  background: #10140f;
  border: 0;
  border-radius: 12px !important;
  overflow: hidden;
}

.gallery-modal-content img {
  max-height: 82vh;
  object-fit: contain;
  background: #10140f;
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.modal-content {
  border: 0;
  border-radius: 16px !important;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-header {
  border-bottom-color: rgba(53,95,46,.12);
}

.modal-title {
  color: var(--green-dark);
  font-weight: 800;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246,241,232,.80) 0%, rgba(246,241,232,.90) 100%),
    url(../img/footer-bg.jpg) center bottom / cover no-repeat;
  padding: 55px 0 34px;
  color: var(--text);
  font-size: 14px;
}

#footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(53,95,46,.04));
  pointer-events: none;
}

#footer .container {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 22px;
}

.footer-logo img {
  max-width: 230px;
  height: auto;
}

.footer-link {
  display: block !important;
  font-size: 18px;
  font-weight: bold;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  transition: .25s ease;
}

.footer-social a:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  color: #fff;
}

.footer-copy {
  color: rgba(38,40,32,.72);
  border-top: 1px solid rgba(53,95,46,.14);
  padding-top: 22px;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  #hero h1 {
    font-size: 42px;
  }

  #hero:after {
    width: 270px;
    height: 270px;
    right: 4%;
    opacity: .12;
  }

  .contact-card:after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 991px) {
  section {
    padding: 56px 0;
  }

  #hero {
    min-height: 520px;
    padding-top: 130px;
  }

  #hero:after {
    display: none;
  }

  #hero h1 {
    font-size: 36px;
  }

  #hero p {
    font-size: 19px;
  }

  .gallery-grid {
    max-width: 100%;
  }

  .quick-info {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .quick-info-item {
    border-right: 0;
    border-bottom: 1px solid rgba(53,95,46,.14);
  }

  .quick-info-item:last-child {
    border-bottom: 0;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .contact-card {
    padding: 34px 28px;
  }

  .navbar-mobile {
    z-index: 1000;
  }
  
  .navbar-mobile ul {
    z-index: 1001;
  }
  
  .navbar-mobile .mobile-nav-toggle {
    z-index: 1002;
  }
}

@media (max-width: 575px) {
  #header .logo img,
  #header.header-scrolled .logo img {
    max-height: 58px;
  }

  #hero {
    min-height: 500px;
    padding-top: 112px;
  }

  #hero h1 {
    font-size: 30px;
  }

  #hero p {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .quick-info {
    margin-top: -28px;
  }

  .quick-info-item {
    padding: 17px 18px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading p {
    font-size: 18px;
  }

  .notice-card {
    padding: 26px 22px 20px;
    gap: 14px;
  }

  .notice-icon {
    font-size: 28px;
  }

  .category-card {
    min-height: 168px;
  }

  .category-icon {
    width: 132px;
    height: 82px;
  }

  .gallery-thumb {
    height: 116px;
  }

  .contact-card h2 {
    font-size: 29px;
  }

  .opening-hours div {
    grid-template-columns: 70px 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

#kontakt,
#sortiment,
#fotogalerie {
  scroll-margin-top: 96px;
}

#header {
  height: 82px;
  overflow: visible;
}

#header.header-scrolled {
  height: 68px;
  overflow: visible;
}

#header .container {
  overflow: visible;
}

#header .logo img {
  max-height: 140px;
  transform: translateY(28px);
}

#header.header-scrolled .logo img {
  max-height: 100px;
  transform: translateY(20px);
}

.navbar .active:after,
.navbar .active:focus:after {
  transform: scaleX(0);
}

.navbar a:hover:after {
  transform: scaleX(1);
}

.navbar a:focus:after,
.navbar a:active:after,
.navbar .active:after,
.navbar .active:focus:after,
.navbar .active:active:after {
  transform: scaleX(0);
}

#hero {
  min-height: 620px;
  padding: 118px 0 150px;
}

#hero .hero-container {
  transform: translateY(20%);
}

#hero:before {
  background:
    linear-gradient(180deg, rgba(246,241,232,.08) 0%, rgba(246,241,232,.24) 48%, rgba(246,241,232,.96) 100%),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.50) 0%, rgba(255,255,255,.32) 35%, rgba(255,255,255,.07) 66%);
}

.quick-info-section {
  position: relative;
  height: 0;
  padding: 0;
  background: transparent !important;
  overflow: visible;
  z-index: 20;
}

.quick-info {
  width: 100%;
  max-width: none;
  margin: -52px auto 0;
  grid-template-columns: 1fr 1.45fr .95fr;
}

.quick-info-item {
  min-width: 0;
  white-space: nowrap;
}

.quick-info-item span,
.quick-info-item a {
  line-height: 1.28;
}

.sortiment {
  padding-top: 94px !important;
}

.gallery-section {
  background:
    linear-gradient(180deg, #f9f5ed 0%, rgba(246,241,232,.80) 100%),
    url(../img/footer-bg.webp) center bottom / cover no-repeat;
}

.modal-dialog:not(.modal-xl) .modal-content {
  border-radius: 20px !important;
}

.modal-dialog:not(.modal-xl) .modal-header {
  padding: 24px 28px 18px;
}

.modal-dialog:not(.modal-xl) .modal-body {
  padding: 26px 28px 30px;
  font-size: 17px;
  line-height: 1.65;
}

.modal-dialog:not(.modal-xl) .modal-body p {
  margin-bottom: 18px;
}

#footer {
  background:
    linear-gradient(180deg, rgba(246,241,232,.24) 0%, rgba(246,241,232,.32) 100%),
    url(../img/footer-bg.webp) center bottom / cover no-repeat;
}

#footer:before {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(53,95,46,.02));
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  margin: 0;
  line-height: 1;
}

.footer-social a i {
  display: block;
  line-height: 100%;
}

@media (max-width: 991px) {
  #header,
  #header.header-scrolled {
    height: 78px;
    z-index: 10040;
  }

  #header .logo img,
  #header.header-scrolled .logo img {
    max-height: 120px;
    margin-top: -4px;
  }

  #header.header-scrolled .logo img {
    transform: translateY(28px);
  }

  #hero {
    min-height: 500px;
    padding: 156px 0 122px;
  }

  #hero .hero-container {
    transform: none;
  }

  .quick-info-section {
    height: 0;
    padding: 0;
    overflow: visible;
    background: transparent !important;
  }

  .quick-info {
    width: auto;
    max-width: 560px;
    margin: -68px auto 0;
    grid-template-columns: 1fr;
  }

  .quick-info-item {
    white-space: normal;
  }

  .sortiment {
    padding-top: 300px !important;
  }
}

@media (max-width: 575px) {
  #header .logo img,
  #header.header-scrolled .logo img {
    max-height: 90px;
    margin-top: 26px;
    transform: none;
  }

  #hero {
    min-height: 470px;
    padding-top: 152px;
    padding-bottom: 108px;
  }

  .quick-info {
    margin-top: -54px;
  }

  .contact-card:after {
    display: none;
  }

  .sortiment {
    padding-top: 280px !important;
  }
}

@media (max-width: 991px) {
  #navbar.navbar-mobile {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(36, 62, 32, .78);
    overflow: auto;
    padding: 96px 16px 16px;
  }

  #navbar.navbar-mobile ul {
    display: block !important;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: calc(100vh - 112px);
    padding: 24px 0;
    background: #fffaf2;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  #navbar.navbar-mobile li {
    display: block;
  }

  #navbar.navbar-mobile a,
  #navbar.navbar-mobile a:focus {
    display: block;
    padding: 14px 24px;
    font-size: 18px;
  }

  #navbar.navbar-mobile .mobile-nav-toggle {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 10001;
    color: #fff;
  }
}