/* --- CSS RESET & NORMALIZATION --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
  cursor: pointer;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:root {
  --color-primary: #217346;
  --color-secondary: #70934B;
  --color-accent: #F5F3EE;
  --color-neutral-bg: #F6F8FA;
  --color-dark: #182C3A;
  --color-gray: #64748B;
  --color-white: #FFF;
  --shadow-card: 0 2px 12px 0 rgba(32,58,92,0.08);
  --radius-base: 16px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* ------------------ BASE STYLES ------------------ */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-accent);
  min-height: 100vh;
  font-size: 16px;
  word-break: break-word;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -1px;
}
h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.17; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, span, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong { font-weight: 700; }

/* Spacing utility for sections */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
}

/* Layout wrappers (flexbox enforced) */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-grid, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: var(--color-neutral-bg);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 24px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 10px 0 rgba(18, 44, 58, 0.07);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-secondary);
  font-size: 1.08rem;
  color: var(--color-dark);
}
.testimonial-card p {
  color: var(--color-dark);
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--color-gray);
  opacity: 0.95;
  font-style: normal;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  position: relative;
  margin-bottom: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* --------- HEADER STYLES & DESKTOP NAV --------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 10px 0 rgba(32, 58, 92, 0.06);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header > .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 72px;
  justify-content: space-between;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .13s;
  letter-spacing: 0.3px;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.primary-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 99px;
  font-size: 1.08rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(33, 115, 70, 0.07);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(33,115,70,.14);
}

header img[alt="Zelené Kouzlo"] {
  height: 48px;
  width: auto;
  margin-right: 14px;
}

/* --------- HERO SECTION --------- */
.hero {
  background: linear-gradient(90deg, #e5ece9 0%, #f6f8fa 70%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 36px 0 rgba(33, 115, 70, 0.08);
  padding: 54px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
}
.hero p {
  color: var(--color-gray);
  font-size: 1.11rem;
  margin-bottom: 14px;
}

/* --------- FOOTER --------- */
footer {
  background: #e5ece9;
  padding: 36px 0;
  box-shadow: 0 -2px 10px 0 rgba(32, 58, 92, 0.05);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
}
footer nav a {
  color: var(--color-primary);
  opacity: 0.75;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.2s;
}
footer nav a:hover,
footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer .contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  color: var(--color-dark);
  font-size: 1rem;
  opacity: 0.98;
}
footer .contact-footer img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ----------- CARDS & FEATURES ----------- */
.feature img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 10px;
}
.feature h3 {
  color: var(--color-secondary);
  margin-bottom: 6px;
  font-size: 1.18rem;
  font-family: 'Playfair Display', serif;
}
.feature p,
.feature ul {
  color: var(--color-gray);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ------------ LIST STYLES ------------- */
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--color-dark);
  font-size: 1rem;
  position: relative;
}
ul li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-right: 10px;
  vertical-align: middle;
}
ol li {
  list-style: decimal inside;
}
ul li img {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

/* ------------- CTA Section ------------ */
.section .primary-cta, .content-wrapper .primary-cta {
  margin-top: 12px;
}

/* ---------- MOBILE MENU / HAMBURGER --------- */
.mobile-menu-toggle {
  background: var(--color-accent);
  border-radius: 8px;
  font-size: 2rem;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
  transition: background 0.15s, box-shadow 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,44,58,0.87);
  transition: transform 0.38s cubic-bezier(.5,1,.37,1), opacity 0.25s;
  transform: translateX(-100vw);
  opacity: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  color: var(--color-white);
  font-size: 2.2rem;
  background: none;
  border: none;
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 2010;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  margin-top: 96px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 30px;
  padding-right: 30px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.28rem;
  font-weight: 600;
  padding: 13px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* ------------- COOKIE CONSENT BANNER ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 -2px 32px 0 rgba(24,44,58,0.20);
  border-radius: 16px 16px 0 0;
  padding: 22px 18px 20px 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  font-size: 1rem;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.24s, transform 0.38s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-content {
  max-width: 520px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-end;
}
.cookie-banner .accept-btn, .cookie-banner .reject-btn, .cookie-banner .settings-btn {
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  min-width: 130px;
  margin: 0;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.14s;
}
.cookie-banner .accept-btn {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-banner .accept-btn:hover,
.cookie-banner .accept-btn:focus {
  background: var(--color-secondary);
}
.cookie-banner .reject-btn {
  background: #dbe4de;
  color: var(--color-primary);
}
.cookie-banner .reject-btn:hover,
.cookie-banner .reject-btn:focus {
  background: var(--color-accent);
  color: var(--color-dark);
}
.cookie-banner .settings-btn {
  background: var(--color-gray);
  color: var(--color-white);
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: var(--color-secondary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,52,67,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--color-white);
  border-radius: 24px;
  padding: 34px 32px 30px 32px;
  box-shadow: 0 6px 32px 0 rgba(22, 36, 56, 0.13);
  max-width: 420px;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.9rem;
  color: var(--color-gray);
  background: none; border: none;
  transition: color 0.14s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 10px 0;
  gap: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.01rem;
  color: var(--color-dark);
  flex: 1 1 70%;
}
.cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 99px;
  background: #e0e8e1;
  position: relative;
  transition: background 0.19s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  position: absolute;
  left: 4px;
  width: 16px;
  height: 16px;
  background: #bcc8bb;
  border-radius: 50%;
  transition: left 0.19s, background 0.19s;
  top: 3px;
}
.cookie-toggle input:checked + span {
  left: 22px;
  background: var(--color-secondary);
}
.cookie-category .cookie-toggle[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 21px;
  min-width: 108px;
  margin: 0;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-white);
  transition: background 0.17s;
}
.cookie-modal-actions button.secondary {
  background: #dbe4de;
  color: var(--color-dark);
}
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus {
  background: var(--color-secondary);
}

/* ------------- ANIMATIONS -------------- */
.primary-cta, .feature, .card, .testimonial-card,
.mobile-menu, .cookie-banner, .cookie-modal-content {
  transition: box-shadow .25s, background .19s, border-color .18s, color .19s, transform .21s;
}
.primary-cta:active,
button:active {
  transform: scale(0.97);
}

/* ------------- MISC -------------- */
::-webkit-input-placeholder { color: #70888B; opacity: 1; }
::-moz-placeholder { color: #70888B; opacity: 1; }
:-ms-input-placeholder { color: #70888B; opacity: 1; }
::placeholder { color: #70888B; opacity: 1; }

/* ------------- RESPONSIVE DESIGN: MOBILE-FIRST -------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 90vw;
  }
  .feature {
    flex: 1 1 240px;
    min-width: 215px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.52rem; }
  .hero { padding: 36px 0 32px 0; border-radius: 0 0 28px 28px; }
  .section { padding: 32px 12px; margin-bottom: 36px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature { min-width: 0; }
  .content-wrapper, .text-section, .card-content {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  .primary-cta {
    font-size: 1rem;
    padding: 8px 16px;
  }
  footer .container {
    gap: 8px;
  }
  footer .contact-footer {
    gap: 12px;
    font-size: 0.96rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 6px;
    max-width: 99vw;
  }
  .section, .hero { padding-right: 2vw; padding-left: 2vw; }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 6px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    width: 100%;
  }
  .cookie-modal-content {
    padding: 22px 8px 18px 8px;
    min-width: 0;
    width: 94vw;
    max-width: 99vw;
  }
}

/* ------------- SCROLLBAR ------------ */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) #f3f4f6;
}
::-webkit-scrollbar {
  width: 8px;
  background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 15px;
}

/* -------------------- END --------------------- */
