/* =======================================================
  VOLTÁRA SPARK - NATURE/ORGANIC THEME CSS
  MOBILE-FIRST | FLEXBOX-ONLY | NO GRID/COLUMNS
======================================================= */
/* ------- CSS RESET & NORMALIZE ------- */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* Set up base HTML5 elements */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  background: #F8F4E3; /* Secondary brand color as main bg */
  color: #273152; /* Brand primary */
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #37694E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #FFAD33;
  outline: none;
}
button,
input[type='button'],
input[type='submit'] {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #DDDCDB;
  padding: 10px 12px;
  background: #F8F4E3;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 8px;
}

/* ------- TYPOGRAPHY HIERARCHY ------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #273152;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.section h2, .content-wrapper h1, .content-wrapper h2 {
  color: #37694E; /* Rich earthy green for section headings */
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #232814;
}
b, strong {
  font-weight: bold;
}
.text-section {
  margin-bottom: 32px;
}

/* ------- CONTAINER & LAYOUT ------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: #FFFFFF;
  box-shadow: 0 4px 32px 0 rgba(39,49,82,0.07);
  position: relative;
  /* Subtle organic shadow */
}

/* ------- FLEXBOX LAYOUTS ------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: #FAF6E8;
  border-radius: 24px 40px 28px 32px/38px 22px 27px 28px; /* Organic, not uniform */
  box-shadow: 0 2px 12px 0 rgba(39,49,82,0.11);
  padding: 28px 24px 24px 24px;
  position: relative;
  min-width: 250px;
  flex: 1 1 250px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(39,49,82,0.15);
  transform: translateY(-4px) scale(1.025);
}
.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;
  align-items: center;
  gap: 20px;
  border-radius: 30px 18px 30px 44px / 35px 22px 29px 36px;
  background: #EAF5EC;
  color: #273152;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px 0 rgba(55, 105, 78, 0.10);
  font-size: 1.08em;
  position: relative;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #273152;
}
.testimonial-card span, .testimonial-card b {
  color: #334D33;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  letter-spacing: .01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 18px 38px 18px 32px;
  background: #F2EADB;
  padding: 18px 22px;
}

/* ------- ORGANIC/DECORATIVE ACCENTS ------- */
.section {
  /* Organic blob accents for bg using ::before on large screens */
  overflow: hidden;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -50px;
  left: -60px;
  width: 240px;
  height: 120px;
  background: #EAF5EC;
  opacity: 0.38;
  border-radius: 60% 60% 40% 85%;
  z-index: 0;
  pointer-events: none;
}

/* ------- MAIN NAVIGATION & HEADER ------- */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 4px 24px 0 rgba(39,49,82,0.06);
  border-radius: 0 0 24px 24px;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  font-family: 'Montserrat', sans-serif;
  padding: 14px 8px 10px 16px;
}
.main-nav img[alt="Voltára Spark"] {
  height: 36px;
  margin-right: 32px;
}
.main-nav a {
  color: #273152;
  padding: 7px 15px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  margin-right: 2px;
}
.main-nav a:not(.btn-primary):hover {
  background: #EAF5EC;
  color: #37694E;
}
.main-nav a.btn-primary {
  background: #37694E;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(55,105,78,0.07);
  border-radius: 999px;
  padding: 8px 28px;
  margin-left: auto;
  margin-right: 0;
  transition: background 0.13s, transform 0.13s, color 0.18s;
}
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary:focus {
  background: #4D925F;
  color: #FFFBEA;
  transform: translateY(-2px);
}

/* BURGER BUTTON */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #EAF5EC;
  color: #273152;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 102;
  border: none;
  transition: background .14s, color .14s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #37694E;
  color: #fff;
}

/* ------- MOBILE MENU ------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(55, 105, 78, 0.97);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.7,0,.24,1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: #FFAD33;
  color: #334D33;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 300;
  transition: background .16s, color .16s;
  box-shadow: 0 2px 12px 0 rgba(39,49,82,0.10);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #273152;
  color: #fff;
}
.mobile-nav {
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 20px;
  transition: background .13s, color .13s;
  margin-bottom: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFAD33;
  color: #273152;
}

/* ------- BUTTONS ------ */
.btn-primary {
  display: inline-block;
  background: #37694E;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 38px;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(39,49,82,0.11);
  transition: background 0.16s, transform 0.16s, color 0.14s;
  margin-bottom: 10px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #4D925F;
  color: #FFFBEA;
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  display: inline-block;
  background: #FFAD33;
  color: #273152;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  padding: 13px 32px;
  transition: background 0.15s, color 0.13s, transform 0.13s;
  margin-bottom: 10px;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #F8831A;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

/* ------- ORGANIC LIST ICONS ORGANIZATION ------- */
ul li > img, ol li > img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}

/* ----- MAP PLACEHOLDER (Kontakt page) ----- */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F2EADB;
  border-radius: 20px 44px 26px 28px;
  padding: 18px 20px;
  margin-top: 12px;
}
.map-placeholder img {
  width: 54px;
  height: 54px;
}

/* ----- FOOTER ----- */
footer {
  background: #273152;
  color: #EAF5EC;
  padding: 36px 0 16px 0;
  margin-top: 60px;
  border-radius: 35px 35px 0 0/35px 36px 0 0; /* organic */
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 21px;
}
.footer-nav a {
  color: #EAF5EC;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 18px;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.13s, color 0.1s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #EAF5EC;
  color: #273152;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
}
.footer-contact img[alt='Voltára Spark'] {
  width: 54px;
  height: 54px;
}
.footer-contact address {
  font-size: 1rem;
  line-height: 1.7;
  color: #EAF5EC;
  font-style: normal;
  margin-top: 4px;
}
.footer-contact address a {
  color: #FFAD33;
  font-weight: 600;
}
.footer-contact address img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ------------------------------------------------
        COOKIE CONSENT BANNER & MODAL
------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #273152;
  color: #F8F4E3;
  padding: 22px 8px 22px 24px;
  box-shadow: 0 -4px 24px rgba(39,49,82,0.16);
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 400;
  flex-wrap: wrap;
  font-size: 1.05rem;
  transition: transform .22s, opacity .2s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 230px;
}
.cookie-banner .cookie-btn {
  background: #FFAD33;
  color: #334D33;
  border-radius: 999px;
  font-size: 1rem;
  padding: 10px 26px;
  margin: 0 8px 0 0;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.15s, color .13s;
}
.cookie-banner .cookie-btn:last-child {
  background: #EAF5EC;
  color: #273152;
  font-weight: 500;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #37694E;
  color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.88);
  opacity: 0;
  z-index: 999;
  min-width: 315px;
  max-width: 96vw;
  background: #FFFFFF;
  border-radius: 36px 52px 38px 42px;
  box-shadow: 0 12px 54px 0 rgba(39,49,82,0.24);
  padding: 36px 26px 28px 26px;
  transition: opacity .21s, transform .22s;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  color: #273152;
  font-size: 1.22rem;
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 11px;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #37694E;
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 110px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #EAF5EC;
  color: #273152;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  border: none;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover {
  background: #273152;
  color: #fff;
}

/* ----------- GENERAL RESPONSIVE ----------- */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 740px;
  }
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 10px;
  }
}
/* HIDE MAIN NAVIGATION ON MOBILE, SHOW BURGER */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 16px;
    padding: 0 2px;
  }
  .card-container, .content-grid, .footer-contact {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature-item {
    min-width: 180px;
    padding: 15px 10px 14px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 8px;
    margin-bottom: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .mobile-menu {
    padding-top: 40px;
  }
  .map-placeholder {
    flex-direction: column;
    gap: 10px;
    padding: 11px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 6px 14px 8px;
  }
}
/* Extra mobile (xs) 500px */
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .card, .feature-item { min-width: 122px; }
  .cookie-modal {
    padding: 16px 5px 14px 8px;
  }
}

/* -------------- MICRO-INTERACTIONS -------------- */
section a, .card, .testimonial-card, .btn-primary, .btn-secondary, .cookie-btn {
  transition: box-shadow .13s, background .15s, color .14s, transform .14s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 4px 0 rgba(39,49,82,0.06);
}
main a:focus {
  outline: 2px solid #FFAD33;
}

/* -------------- MISC UX -------------- */
::-webkit-input-placeholder { color: #99AAB5; }
::-moz-placeholder { color: #99AAB5; }
:-ms-input-placeholder { color: #99AAB5; }
::placeholder { color: #99AAB5; }

/* Loader Spinner/Modal z-index for interactions, if needed */
.modal-backdrop,
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(39,49,82,0.25);
  z-index: 550;
  display: none;
}
.modal-backdrop.open,
.cookie-modal-backdrop.open {
  display: block;
}

/* --- VISUAL HIERARCHY & SPACING ENFORCED --- */
.section > *,
.content-wrapper > * {
  margin-bottom: 20px;
}
.section > *:last-child,
.content-wrapper > *:last-child {
  margin-bottom: 0;
}
.card:not(:last-child),
.feature-item:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* --- ORGANIC SHAPE HELPER CLASSES (for custom images/icons if any) --- */
.organic-shape {
  border-radius: 62% 48% 70% 50% / 60% 65% 55% 60%;
  overflow: hidden;
}

/* --- Hide certain outline decorations on click for accessibility --- */
*:focus:not(:focus-visible) { outline: none; }

/* ============== END ============== */
