/* =======================================================
   CSS RESET & BASE 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, 
main, 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;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22303A;
  background-color: #F7F9FA;
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
strong { font-weight: 700; }
ul, ol { margin-left: 20px; }

/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205072;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  font-weight: 700;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
p, li, address {
  font-size: 1rem;
  color: #22303A;
}


/* =============================
   PRIMARY LAYOUT STRUCTURE
============================= */
.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main {
  margin-top: 32px;
  margin-bottom: 48px;
  min-height: 60vh;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  background: #fff;
  border-bottom: 1px solid #E4E8ED;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1002;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
}

header img[alt='Vital45plus'] {
  height: 48px;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #205072;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #329D9C;
  transition: width .2s;
  position: absolute;
  bottom: -2px; left: 0;
}
nav a:hover, nav a:focus {
  color: #329D9C;
}
nav a:hover:after, nav a:focus:after {
  width: 100%;
}

.cta-btn {
  background: #205072;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 10px 28px;
  margin-left: 20px;
  margin-right: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  outline: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #329D9C;
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(50,157,156,0.1);
}

header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #205072;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  line-height: 1;
  z-index: 1003;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.16s;
}
header .mobile-menu-toggle:focus, header .mobile-menu-toggle:hover {
  background: #E4E8ED;
}

/* =============================
   MOBILE MENU OVERLAY
============================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.8, .2, .2, 1);
  box-shadow: 4px 0 24px rgba(32,80,114,0.10);
  padding: 0;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  color: #205072;
  font-size: 2rem;
  padding: 20px 16px 8px 16px;
  cursor: pointer;
  align-self: flex-end;
  margin-right: 0;
  z-index: 1;
  border-radius: 4px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E4E8ED;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #205072;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E4E8ED;
  color: #329D9C;
}

/* =============================
   HERO SECTION
============================= */
.hero {
  background: linear-gradient(112deg, #F6F5AE 0%, #fff  85%);
  padding: 48px 0 32px 0;
  margin-bottom: 60px;
}
.hero .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  gap: 20px;
}
.hero h1 {
  color: #205072;
  font-size: 2.35rem;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.hero .cta-btn {
  margin-top: 12px;
  font-size: 1.08rem;
}

/* =============================
   FLEX LAYOUTS & CARDS
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(32,80,114,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 290px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(50,157,156,0.10);
  transform: translateY(-2px) scale(1.012);
}

.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;
  padding: 20px;
  background: #F7F9FA;
  border-left: 5px solid #329D9C;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(32,80,114,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border-color 0.15s;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: #205072;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card strong {
  display: block;
  color: #22303A;
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 18px rgba(50,157,156,0.08);
  border-left-color: #205072;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 2px 8px rgba(32,80,114,0.06);
  min-width: 190px;
  margin-bottom: 20px;
  font-size: 1rem;
}

ul, li {
  list-style: none;
  padding-left: 0;
}
ul > li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  line-height: 1.6;
}
ul > li img {
  flex-shrink: 0;
  height: 28px;
  width: 28px;
  margin-top: 2px;
}

/* =============================
   BUTTONS & INTERACTIVE ELEMENTS
============================= */
button, .cta-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.15s;
  cursor: pointer;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #329D9C;
  outline-offset: 2px;
}

/* =============================
   FOOTER
============================= */
footer {
  background: #F7F9FA;
  border-top: 1px solid #E4E8ED;
  padding: 42px 0 32px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer img[alt='Vital45plus'] {
  height: 42px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.98rem;
  color: #205072;
}
footer nav a {
  color: #329D9C;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .18s;
}
footer nav a:hover,footer nav a:focus { color: #205072; }

footer address {
  font-style: normal;
  text-align: center;
  color: #22303A;
  font-size: 0.96rem;
  margin-top: 12px;
  line-height: 1.7;
}
footer address img {height: 23px; width: auto; vertical-align: middle; margin: 0 3px 0 0;}

/* =============================
   TEXT & UTILITY CLASSES
============================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.text-section h3 {
  margin-top: 10px;
}

hr {
  border: none;
  border-top: 1px solid #e4e8ed;
  margin: 18px 0;
}

/* =============================
   SPACING UTILITIES
============================= */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.pt-32 { padding-top: 32px; }

/* =======================================================
   COOKIE CONSENT BANNER + MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  border-top: 2px solid #329D9C;
  box-shadow: 0 -2px 20px rgba(32,80,114,0.09);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 22px 20px 22px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  animation: banner-in 0.5s cubic-bezier(.6,.2,.4,1) both;
}
@keyframes banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 300px;
  color: #22303A;
  margin-right: 12px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: #205072;
  color: #fff;
  transition: background 0.16s, color 0.16s;
  margin: 0;
  cursor: pointer;
  outline: none;
}
.cookie-btn.secondary {
  background: #E4E8ED;
  color: #205072;
}
.cookie-btn.accent {
  background: #329D9C;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #329D9C;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #205072;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,80,114,0.37);
  z-index: 3200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-in .32s ease both;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(32,80,114,0.16);
  max-width: 370px;
  width: 95vw;
  padding: 30px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modal-in .35s cubic-bezier(.7, .35, .3, 1);
}
@keyframes modal-in {
  0% { transform: scale(.96) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #205072;
  margin-bottom: 2px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  cursor: pointer;
}
.cookie-modal .cookie-toggle {
  width: 38px; height: 20px;
  border-radius: 18px; border: none;
  background: #e4e8ed;
  position: relative;
  margin-left: 4px;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #329D9C;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.cookie-modal .cookie-toggle[aria-checked="true"]::before {
  transform: translateX(18px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-close {
  background: none;
  border: none;
  color: #22303A;
  font-size: 1.7rem;
  position: absolute;
  top: 16px; right: 18px;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1;
  transition: background 0.13s;
  z-index: 3;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #F6F5AE;
}

/* =============================
   MEDIA QUERIES — RESPONSIVE
============================= */
@media (max-width: 1024px) {
  .container { max-width: 97vw; }
  header .container {
    gap: 10px;
  }
}

@media (max-width: 920px) {
  .container { max-width: 99vw; }
  nav { gap: 16px; }
  footer .container { gap: 18px; padding: 0 3vw; }
}

@media (max-width: 900px) {
  .section {
    padding: 30px 6vw;
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 4vw;
  }
  nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 4px;
  }
  header .mobile-menu-toggle {
    display: inline-block;
  }
  .section, .card, .hero {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .content-wrapper { gap: 14px; }
  .card-container, .content-grid {
    gap: 16px;
  }
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .testimonial-card { flex-direction: column; gap: 10px;}
}

@media (max-width: 650px) {
  .hero {
    padding: 32px 0 18px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .testimonial-card {
    padding: 14px 9px;
  }
  .section {
    padding: 24px 2vw;
    margin-bottom: 32px;
  }
  .card {
    padding: 18px 10px;
  }
}

@media (max-width: 600px) {
  .section { padding: 15px 0px; margin-bottom: 22px; }
  .hero { padding-top: 20px; }
  .testimonial-card { font-size: .97rem; padding: 11px 4px; }
  .feature-item { padding: 13px 7px 7px 7px; }
}
@media (max-width: 480px) {
  .hero h1    { font-size: 1.07rem; }
  h1          { font-size: 1.1rem; }
  h2          { font-size: .98rem; }
  .footer      { font-size: .93rem; }
  address      { font-size: .91rem; }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* =============================
   ANIMATIONS & MICRO-INTERACTIONS
============================= */
a, .cta-btn, .cookie-btn, button {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.15s, transform 0.15s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 22px 0 rgba(32,80,114,0.23);
  transform: translateY(-2px) scale(1.012);
}
.cta-btn:active, .cookie-btn:active, button:active {
  transform: scale(.98);
}

/* =============================
   Z-INDEX
============================= */
header { z-index: 1002; }
.mobile-menu { z-index: 2004; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3200; }

/* =============================
   VISUAL DETAILS & ACCENTS
============================= */
::-webkit-scrollbar {
  width: 10px;
  background: #e4e8ed;
}
::-webkit-scrollbar-thumb {
  background: #329D9C;
  border-radius: 20px;
}

/* Bold accent underline for features */
.feature-item strong, ul > li strong {
  color: #205072;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* Accent circle for list icons */
ul > li img {
  background: #F6F5AE;
  border-radius: 50%;
  padding: 4px;
  border: 1.5px solid #E4E8ED;
}

/* =============================
   FORMS (for kontakt page etc.)
============================= */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #E4E8ED;
  padding: 8px 10px;
  margin-bottom: 18px;
  background: #fff;
  width: 100%;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #329D9C;
  outline: none;
  background: #F6F5AE;
}

/* =============================
   ACCESSIBILITY
============================= */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid #329D9C;
  outline-offset: 2px;
}

/* =============================
   PRINT OPTIMIZATION
============================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none!important; }
  body { background: #fff; color: #111; }
  a { text-decoration: underline; }
}
