/* ==== CSS RESET & NORMALIZATION ==== */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #e2e8d5;
  color: #222822;
  font-family: 'Open Sans', Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #315254;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #417e3f;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.55;
}
strong {
  font-weight: 700;
}
input, button, textarea, select {
  font: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}

/* ==== FONT IMPORTS (Google Fonts Fallbacks) ==== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700&display=swap');

/* ==== COLOR VARIABLES ==== */
:root {
  --primary: #417e3f;
  --secondary: #315254;
  --dark: #222822;
  --accent: #e2e8d5;
  --white: #fff;
  --box-bg: #f6faf3;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .h1 {
  font-size: 2.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--secondary);
  margin-bottom: 16px;
}
h2, .h2 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 14px;
}
h3, .h3 {
  font-size: 1.32rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--secondary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-size: 1.1rem;
  color: var(--dark);
}
.section p, .content-wrapper p, .content-wrapper ul, .content-wrapper ol, .footer-contact p {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 18px;
}

/* ==== CONTAINER & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
main {
  flex: 1 1 auto;
  min-height: 60vh;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--box-bg);
  border: 2px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(65,126,63,0.07);
  overflow: hidden;
  position: relative;
  min-width: 290px;
  flex: 1 1 340px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px 18px 20px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px 6px 18px 6px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(49,82,84,0.08);
  margin-bottom: 20px;
  max-width: 460px;
  color: var(--dark);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(49, 82, 84, 0.15);
  transform: translateY(-5px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==== HERO SECTION ==== */
.hero {
  background-color: var(--primary);
  color: var(--white);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  padding: 44px 0 54px 0;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  align-items: center;
  gap: 16px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(49,82,84,0.18);
}
.hero p {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ==== HEADER & NAV ==== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(49,82,84,0.04);
  border-bottom: 4px solid var(--primary);
  z-index: 1003;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: 'Open Sans', Arial, sans-serif;
}
header nav a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  transition: border 0.17s, color 0.21s;
}
header nav a:hover,
header nav a:focus {
  color: var(--primary);
  border-color: var(--primary);
}
header img {
  max-height: 48px;
}

.cta-btn {
  font-family: 'Playfair Display', serif;
  padding: 11px 30px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 6px 24px 6px 24px;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 2px 6px rgba(65,126,63,0.09);
  transition: background 0.18s, transform 0.17s, box-shadow 0.18s;
  margin-left: 18px;
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--secondary);
  color: var(--accent) !important;
  transform: scale(1.04);
  box-shadow: 0 5px 18px rgba(49,82,84,0.12);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1202;
  background: var(--primary);
  color: var(--white);
  font-size: 2.1rem;
  border-radius: 12px;
  padding: 7px 16px 7px 14px;
  box-shadow: 0 2px 12px rgba(49,82,84,0.09);
  border: none;
  display: none;
  transition: background 0.18s, box-shadow 0.2s, transform 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
  background: var(--secondary);
}
@media (max-width: 1100px) {
  .cta-btn {
    margin-left: 0;
  }
  header .container {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
  header .container {
    gap: 12px;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 16px;
  }
}
@media (max-width: 768px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 40px rgba(49,82,84,0.19);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.49, 1.65, 0.49, 0.97);
  z-index: 1203;
  padding: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border-radius: 7px;
  padding: 6px 12px 5px 12px;
  margin-left: 22px;
  margin-bottom: 16px;
  align-self: flex-start;
  transition: background 0.17s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
  padding-left: 0;
}
.mobile-nav a {
  display: block;
  padding: 14px 30px 14px 32px;
  font-size: 1.15rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--secondary);
  border-left: 5px solid transparent;
  transition: background 0.18s, border-color 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  border-left: 5px solid var(--primary);
}
@media (max-width: 768px) {
  .mobile-menu {
    width: 100vw;
    min-width: 0;
    padding: 24px 0 0 0;
  }
  .mobile-nav a {
    font-size: 1.2rem;
    padding: 16px 22px 16px 28px;
  }
}

/* Mobile menu overlay background for click-out or dimming (optional) */
.mobile-menu--overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,40,34,0.26);
  z-index: 1202;
  display: none;
}
.mobile-menu.open ~ .mobile-menu--overlay {
  display: block;
}

/* ==== SECTIONS, CARDS, LISTS ==== */
.section {
  background: var(--box-bg);
  border-radius: 20px;
  margin-top: 0;
}
@media (max-width: 600px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
}

.card {
  background: var(--white);
  border-radius: 18px 6px 18px 6px;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 2px 10px rgba(65,126,63,0.08);
}
.card-content {
  gap: 6px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  font-size: 1rem;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--dark);
  min-width: 260px;
  max-width: 460px;
  margin-left: 0;
}
.testimonial-card strong {
  color: var(--secondary);
}

/* ==== FOOTER ==== */
footer {
  background: var(--secondary);
  color: var(--accent);
  padding: 24px 0 6px 0;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
}
footer img {
  max-height: 40px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--accent);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
}
.footer-contact {
  font-size: 0.98rem;
}
footer .copyright {
  width: 100%;
  text-align: right;
  font-size: 0.9rem;
  margin-top: 10px;
  color: #c7d3c1;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  footer .container {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer .copyright {
    text-align: left;
  }
}

/* ==== FORMS & FIELDS (for consistency on kontakt.html or future forms) ==== */
input, textarea, select {
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--accent);
  color: var(--dark);
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(65, 126, 63, 0.12);
}
label {
  font-weight: bold;
  margin-bottom: 8px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--secondary);
  border-top: 4px solid var(--primary);
  box-shadow: 0 -2px 18px rgba(49,82,84,0.11);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 24px;
  font-size: 1rem;
  animation: slideInBanner 0.36s cubic-bezier(0.38,1.18,0.76,1.03);
}
@keyframes slideInBanner {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
.cookie-banner__message {
  flex: 1 1 0;
  color: var(--dark);
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 10px 27px;
  border-radius: 20px 6px 20px 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 2px 9px rgba(65,126,63,0.11);
  transition: background 0.18s, color 0.18s, transform 0.17s;
  margin-right: 3px;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #b82b2b;
  color: var(--white);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--accent);
  transform: scale(1.03);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #910f1d;
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 14px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    gap: 11px;
  }
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(49,82,84,0.4);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.17s;
}
@keyframes overlayFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  box-shadow: 0 6px 48px rgba(65,126,63,0.19);
  border: 3px solid var(--primary);
  border-radius: 18px;
  width: 98%;
  max-width: 400px;
  padding: 34px 28px 26px 28px;
  z-index: 2101;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popupBounceIn 0.22s cubic-bezier(.48,1.89,.41,.87);
  position: relative;
}
@keyframes popupBounceIn {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  95% { transform: scale(1.025) translateY(-5px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  color: var(--secondary);
  font-size: 1.55rem;
  border-radius: 6px;
  padding: 2px 10px 3px 10px;
  transition: background 0.13s, color 0.18s;
  border: none;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--box-bg);
}
.cookie-cat--essential input[type=checkbox] {
  accent-color: var(--primary);
}
.cookie-cat label {
  font-weight: 600;
  letter-spacing: 0.01em;
  user-select: none;
}
.cookie-cat small {
  color: #666;
  font-size: 0.93em;
  font-weight: 400;
  margin-left: 7px;
}
.cookie-cat--essential label::after {
  content: ' (vždy povoleno)';
  color: var(--primary);
  font-size: 0.97em;
  font-weight: 600;
  margin-left: 1px;
}
.cookie-modal .cookie-btn {
  margin-top: 7px;
  width: 100%;
}

/* ==== UTILITY CLASSES ==== */
.d-none { display: none !important; }
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.rounded { border-radius: 14px !important; }
.shadow {
  box-shadow: 0 4px 20px rgba(65, 126, 63, 0.12) !important;
}

/* ==== FLEXBOX RESPONSIVE RULES ==== */
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .hero {
    padding: 30px 0 34px 0;
  }
}

/* ==== GEOMETRIC/STRUCTURED GEOMETRY & ANGULARITY ==== */
.section, .card, .testimonial-card, .cookie-modal, .cookie-banner {
  /* Geometric angular corners */
  border-radius: 20px 6px 20px 6px;
}
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal__close {
  font-family: 'Playfair Display', serif;
  /* Emphasize geometric UI via button shape */
  border-radius: 6px 24px 6px 24px;
}
h1, h2, h3, .cta-btn { letter-spacing: 0.02em; }
p, ul, ol, dl { letter-spacing: 0.01em; }

/* Decorative geometric lines on section titles */
h2:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 5px;
  background: var(--primary);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 10px;
}
h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
h3:before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 7px;
}
h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}

@media (max-width:600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
}

/* ==== ANIMATIONS, INTERACTIONS ==== */
.card, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.19s, transform 0.18s, background 0.16s, color 0.16s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(65,126,63,0.13);
  transform: translateY(-6px) scale(1.013);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ==== LISTS, DLs, ETC. ==== */
dt {
  font-weight: 700;
  color: var(--secondary);
  margin-top: 20px;
  font-size: 1.13rem;
}
dd {
  margin-bottom: 18px;
  margin-left: 0;
  color: var(--dark);
}

/* ==== CONTACT PAGE ==== */
.contact-details {
  background: var(--box-bg);
  border-left: 6px solid var(--primary);
  border-radius: 12px 2px 14px 2px;
  padding: 24px 16px;
  margin-bottom: 12px;
  color: var(--secondary);
  box-shadow: 0 2px 10px rgba(65,126,63,0.07);
}

/* ==== PRINT STYLES ==== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal__overlay, footer, .mobile-menu-toggle { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
.footer-contact p, .footer-contact a {
  color: white;
}
/* END OF STYLESHEET */
