/* ============================================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FA;
  color: #2f3552;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #123669;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #2cb2a3;
}
ul, ol { list-style-position: inside; }
strong { font-weight: 700; }
/* Accessibility outline for focusable element */
:focus {
  outline: 2px solid #FED302;
  outline-offset: 2px;
}

/* ============================================================================
   SOFT PASTEL BRAND PALETTE (with slight variants)
============================================================================ */
:root {
  --primary: #123669;
  --secondary: #FED302;
  --accent: #F6F8FA;
  --pastel-pink: #ffdbe4;
  --pastel-blue: #d3ecff;
  --pastel-mint: #dff6ea;
  --pastel-lavender: #ede6f8;
  --pastel-yellow: #fff9d8;
  --heading: #123669;
  --text: #38405b;
  --white: #fff;
  --black: #1a1a1a;
  --shadow: rgba(42, 80, 175, 0.10);
}

/* ============================================================================
   TYPOGRAPHY (Font hierarchy & Soft Pastel Mood)
============================================================================ */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  background: var(--accent);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--heading);
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}
.text-section p { margin-bottom: 12px; }
.text-section ul,
.text-section ol {
  margin-bottom: 12px;
  margin-left: 0;
  padding-left: 0;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
dt { font-weight: 600; margin-top: 12px; }
dd { margin-left: 0; margin-bottom: 8px; }

@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  p, li, dd { font-size: 0.98rem; }
}

/* ============================================================================
   LAYOUT CONTAINERS & SECTIONS (including mandatory spacing/gap)
============================================================================ */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-blue);
  border-radius: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--pastel-mint);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  min-width: 270px;
  flex: 1 1 290px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-yellow);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 20px;
  color: #34363b;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .container { max-width: 100%; }
}
@media (max-width: 768px) {
  .section { padding: 24px 6px; }
  .content-wrapper { padding: 16px 10px; border-radius: 14px; margin-bottom: 18px; }
  .testimonial-card { flex-direction: column; gap: 10px; padding: 14px; }
  .card, .feature-item { min-width: 0; padding: 14px 10px; border-radius: 10px; }
  .content-grid, .card-container, .feature-list { gap: 12px; }
  .text-image-section { flex-direction: column; gap: 10px; }
}

/* Minimum margin between content cards/sections */
.card, .content-wrapper, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* ============================================================================
   HEADER, NAVIGATION, CTA BUTTONS, MOBILE MENU
============================================================================ */
header {
  width: 100%;
  padding: 0;
  background: var(--pastel-pink);
  box-shadow: 0 2px 16px var(--shadow);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  color: var(--primary);
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background 0.25s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
.cta-button {
  font-family: 'Montserrat', 'Roboto', Arial;
  background: linear-gradient(90deg,#fceabb,#d3ecff 100%);
  border: none;
  border-radius: 32px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.04rem;
  padding: 12px 30px;
  box-shadow: 0 4px 12px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-left: 12px;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #ffdbe4 0%, #f6f8fa 100%);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(42, 80, 175,0.18);
}

/* Hamburger (mobile) menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 110;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-blue);
  color: var(--secondary);
}

/* Hide desktop nav & show mobile menu toggle on mobile */
@media (max-width: 900px) {
  header nav,
  header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ========================== */
/* MOBILE MENU & NAV OVERLAY  */
/* ========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(196,218,255,0.95);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.28,.84,.42,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 22px 24px 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--pastel-pink);
  color: var(--primary);
  border: none;
  border-radius: 32px;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.13rem;
  font-family: 'Montserrat', sans-serif;
  padding: 14px 8px;
  color: var(--primary);
  font-weight: 600;
  border-radius: 12px;
  background: var(--pastel-lavender);
  margin-bottom: 2px;
  transition: background .19s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--secondary);
}

/***** Overlay disables background scrolling *****/
body.menu-open {
  overflow-y: hidden;
  touch-action: none;
}

@media (min-width: 900px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============================================================================
   FOOTER
============================================================================ */
footer {
  background: var(--pastel-lavender);
  border-top: 1.5px solid var(--pastel-blue);
  padding: 30px 0 18px 0;
  margin-top: 40px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer nav {
  gap: 14px;
}
footer nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-size: 0.98rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.20s, color 0.20s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
}
footer .cta-button {
  margin-left: 0;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 12px;
  }
}

/* ============================================================================
   TESTIMONIALS CARD
============================================================================ */
.testimonial-card {
  font-size: 1.05rem;
  background: var(--pastel-yellow);
  color: #293441;
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 16px;
  border: 1.5px solid #f7eec7;
}
.testimonial-card .stars {
  margin-left: auto;
  font-size: 1.5em;
  color: #FED302;
}
.testimonial-card strong {
  color: #123669;
}

@media (max-width: 600px) {
  .testimonial-card { font-size: .99rem; padding: 10px 6px; }
}

/* ============================================================================
   FEATURE LIST, SPECIAL CARDS
============================================================================ */
.feature-item {
  background: var(--pastel-mint);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* ============================================================================
   FORM ELEMENTS (for kontakt.html etc)
============================================================================ */
input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
  border: 1.2px solid #cae2e0;
  padding: 9px 14px;
  background: var(--pastel-blue);
  color: var(--primary);
  margin-bottom: 16px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
}
button, input[type=submit] {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  box-shadow: 0 2px 10px var(--shadow);
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.16s;
}
button:hover, button:focus, input[type=submit]:hover, input[type=submit]:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* List styles */
ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 10px;
}

/* ============================================================================
   COOKIE BANNER & COOKIE MODAL
============================================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg,#ede6f8 0%,#ffdbe4 100%);
  box-shadow: 0 -2px 18px var(--shadow);
  z-index: 9998;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: transform .36s cubic-bezier(.38,.67,.52,.91), opacity .33s;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
#cookie-banner .cookie-text {
  flex: 2 1 180px;
  color: #333857;
  margin-right: 12px;
  line-height: 1.48;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 18px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  transition: background .2s, color .18s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #dff6ea 0%, #fff9d8 100%);
  color: #123669;
}
.cookie-btn.settings {
  background: var(--pastel-lavender);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--pastel-pink);
  color: #c54242;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 6px;
    font-size: 0.96rem;
  }
}

/* ======= Cookie Modal ======== */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(136, 146, 184, 0.26);
  align-items: center;
  justify-content: center;
  animation: fadeinbg .6s;
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeinbg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: linear-gradient(135deg, #fff9d8 0%, #d3ecff 100%);
  border-radius: 22px;
  box-shadow: 0 10px 40px var(--shadow);
  padding: 40px 32px 28px 32px;
  min-width: 320px; max-width: 96vw;
  display: flex; flex-direction: column; gap: 22px;
  animation: popin .42s;
}
@keyframes popin {
  from { transform: scale(0.87); opacity: 0; } to { transform: scale(1); opacity: 1;}
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.cookie-categories label {
  display: flex;
  gap: 14px;
  font-size: 1.04rem;
  font-family: 'Roboto', sans-serif;
  align-items: center;
}
.cookie-categories input[type=checkbox]:disabled + span {
  opacity: 0.65;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #d3ecff;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  margin-right: 3px;
  vertical-align: middle;
  transition: background .22s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  transition: left .22s, background .19s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: var(--secondary);
}

@media (max-width: 540px) {
  .cookie-modal-content {
    min-width: 0;
    padding: 18px 6px;
    border-radius: 14px;
  }
}

/* ============================================================================
   ANIMATIONS, MICRO-INTERACTIONS, HOVER/FOCUS
============================================================================ */
.card, .testimonial-card, .content-wrapper, .feature-item {
  transition: box-shadow 0.18s, transform 0.18s, background 0.22s;
}
.card:hover, .testimonial-card:hover, .content-wrapper:hover {
  box-shadow: 0 8px 30px 0 rgba(141,180,255,0.17);
  transform: translateY(-3px) scale(1.012);
}
.cta-button, .cookie-btn {
  transition: background .19s, color .15s, box-shadow .19s;
}
.cta-button:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* ============================================================================
   MISCELLANEOUS: STARS, BLOCKQUOTES, ETC.
============================================================================ */
.stars {
  letter-spacing: .15em;
  font-size: 1.2em;
  color: #FED302;
}
blockquote {
  background: var(--pastel-lavender);
  border-radius: 14px;
  padding: 24px 18px;
  font-style: italic;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 18px;
  color: var(--primary);
}

/* ============================================================================
   SCROLLBAR PASTEL
============================================================================ */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
  border-radius: 14px;
}
::-webkit-scrollbar-thumb {
  background: #e7e0fa;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #fedbfb;
}

/* ============================================================================
   ACCESSIBILITY, RESPONSIVE FONT (NO CLAMP), GENERAL BREAKPOINTS
============================================================================ */
html { font-size: 100%; }
@media (max-width: 430px) {
  html { font-size: 95%; }
}
@media (max-width: 350px) {
  html { font-size: 92%; }
}

/* ============================================================================
   END OF STYLE.CSS FOR FINVEXOLI SOFT-PASTEL
============================================================================ */