/* RESET & BASE ---------------------------------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FCF8F6;
  color: #23252B;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}
strong {
  font-weight: 600;
}

/* BRAND COLORS & CUSTOM PROPS -------------------------------- */
:root {
  --color-primary: #23252B;
  --color-secondary: #E6B894;
  --color-accent: #F5F6F8;
  --color-warm: #FFDAB2;
  --color-brand-blue: #B5D5E6;
  --color-cta: #F2925F;
  --color-cta-hover: #F5B04B;
  --color-text: #23252B;
  --color-bg: #FCF8F6;
  --color-card-bg: #FFFDF8;
  --color-shadow: rgba(228, 174, 143, 0.15);
  --border-radius: 16px;
  --shadow-main: 0 2px 16px var(--color-shadow);
  --shadow-btn: 0 2px 8px rgba(242, 146, 95, 0.09);
  --transition: all 0.25s cubic-bezier(.4,.2,.3,1);
}

/* TYPOGRAPHY --------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5 { font-size: 1rem; }
p, li, blockquote, span {
  font-size: 1rem;
  color: var(--color-text);
  font-family: 'Roboto', Arial, sans-serif;
}
.subheadline {
  font-size: 1.25rem; color: var(--color-primary); opacity:0.8; margin-bottom: 20px;
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  opacity: 0.9;
  margin-bottom: 10px;
}
.testimonial-author {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
.confirmation {
  margin: 24px 0;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* STRUCTURE --------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

/*.section class is applied to all <section> containers*/
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  padding: 32px 24px;
  position: relative;
}
.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;
  background: #FFFDF8;
  border-radius: 20px;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(224,148,100,0.09);
  border: 1px solid #F9E1CC;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HERO & CTA BUTTONS ------------------------------------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--color-cta);
  border-radius: 32px;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: none;
  margin: 8px 0;
  text-align: center;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-cta-hover);
  box-shadow: 0 4px 16px rgba(242, 146, 95, 0.18);
  color: #fff;
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-warm);
  border-radius: 24px;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: none;
  margin: 8px 0 0 0;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #FFC080;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(255,180,120,0.17);
}

/* NAVIGATION & HEADER ------------------------------------ */
header {
  width: 100%;
  background: #FFFDF8;
  box-shadow: 0 2px 8px rgba(249, 225, 204, 0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0 16px;
  padding: 14px 20px 10px 20px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  border-radius: 20px;
  padding: 7px 17px;
  transition: background 0.16s;
  margin-bottom: 4px;
}
header nav a:not(.cta-primary):hover,
header nav a:not(.cta-primary):focus {
  background: var(--color-warm);
}
header nav a.cta-primary {
  margin-left: auto;
}
header img {
  width: 140px;
  min-width: 88px;
  display: flex;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* MOBILE MENU -------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  background: var(--color-warm);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 101;
  border: none;
  box-shadow: 0 2px 6px rgba(250,160,90,0.09);
  transition: background 0.17s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #FFC080;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFDF8;
  box-shadow: 0 2px 32px 0 #FCCCA1;
  z-index: 120;
  transform: translateX(110vw);
  transition: transform 0.35s cubic-bezier(.67,0,.23,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-warm);
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  box-shadow: 0 2px 8px rgba(250,160,90,.08);
  transition: background 0.17s;
  z-index: 124;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFC080;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 42px 0 0 0;
  padding: 4px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  color: var(--color-primary);
  background: none;
  padding: 14px 0;
  border-radius: 16px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  margin-left: 0;
  margin-bottom: 2px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-warm);
  color: var(--color-primary);
}

/* COOKIES BANNER && MODAL ------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #FFFDF8;
  box-shadow: 0 -2px 16px #F5BF81;
  padding: 18px 16px;
  gap: 24px;
  border-radius: 16px 16px 0 0;
  font-size: 1rem;
  color: var(--color-primary);
  transition: transform 0.32s cubic-bezier(.67,0,.23,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 0%;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  border: none;
  background: var(--color-warm);
  color: var(--color-primary);
  font-weight: 500;
  margin: 0;
  box-shadow: 0 1.5px 7px #f6e1c8;
  transition: var(--transition);
}
.cookie-btn.accept {
  background: var(--color-cta);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-cta-hover);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffe1bb;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--color-warm);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffe1bb44;
  color: var(--color-primary);
}
/* cookie modal/dialog */
.cookie-modal {
  position: fixed;
  z-index: 2600;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  width: 96vw;
  max-width: 430px;
  background: #FFFDF8;
  box-shadow: 0 8px 48px #E6B89444;
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.2s, transform 0.33s cubic-bezier(.67,0,.23,1);
  pointer-events: all;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,-50%) scale(0.91);
  pointer-events: none;
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.33rem;
  font-weight: 700;
  margin-bottom: 19px;
  color: var(--color-primary);
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  gap: 6px;
}
.cookie-modal-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
}
.cookie-modal-category .cookie-toggle {
  width: 34px;
  height: 18px;
  background: #E7D9C9;
  border-radius: 18px;
  position: relative;
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cookie-modal-category .cookie-toggle.checked {
  background: var(--color-brand-blue);
}
.cookie-modal-category .cookie-toggle.disabled {
  background: #FFEBD9;
  opacity: 0.7; cursor: not-allowed;
}
.cookie-modal-category .cookie-toggle .toggle-circle {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #DDA67044;
  transition: left 0.17s;
}
.cookie-modal-category .cookie-toggle.checked .toggle-circle {
  left: 18px;
}
.cookie-modal-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}

.cookie-modal .cookie-description {
  font-size: .97rem;
  opacity: 0.95;
  margin: 0 0 10px 0;
}

.cookie-modal .cookie-close-btn {
  position: absolute;
  right: 18px; top: 18px;
  background: var(--color-warm);
  color: var(--color-primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  border: none;
  box-shadow: 0 1px 6px #ecd8c2;
}
.cookie-modal .cookie-close-btn:hover {
  background: #FFC080;
}

/* FOOTER ------------------------------------------------- */
footer {
  width: 100%;
  background: #FFFDF8;
  border-top: 1px solid #F9E1CC;
  padding: 34px 20px 18px 20px;
  margin-top: 46px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
footer nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.92;
  padding: 7px 16px;
  border-radius: 15px;
  transition: background 0.17s;
}
footer nav a:hover {
  background: var(--color-warm);
}
footer .text-section {
  font-size: .98rem;
  opacity: 0.75;
  color: var(--color-primary);
}

/* CARDS, LISTS, BLOCKS ------------------------------------ */
ul, ol {
  color: var(--color-primary);
  padding-left: 24px;
  margin-bottom: 0;
  margin-top: 0;
}
li {
  margin-bottom: 10px;
  line-height: 1.6;
  list-style-type: disc;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Feature grid and cards */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(181,213,230, .12);
  padding: 30px 22px;
  min-width: 220px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  text-align: center;
  transition: box-shadow 0.15s, transform 0.14s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px rgba(228,174,143,0.19);
  transform: translateY(-4px) scale(1.02);
}
.features-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  background: #FFFDF8;
  border-radius: 13px;
  box-shadow: 0 1px 4px rgba(255,205,142,0.09);
}

/* TESTIMONIALS ------------------------------------------- */
.testimonial-card {
  background: #FFFDF8;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(224,148,100,0.09);
  border: 1px solid #F9E1CC;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: var(--color-primary);
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card blockquote {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.testimonial-card .testimonial-author {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.testimonial-card img[alt="Ocena"] {
  width: 20px; height: 20px; min-width: 20px;
  margin-right: 2px;
  display: inline-block;
}

/* MISC INTERFACE & UTILS --------------------------------- */
::-webkit-input-placeholder { color: #AD7147; }
::-moz-placeholder { color: #AD7147; }
:-ms-input-placeholder { color: #AD7147; }
::placeholder { color: #AD7147; }

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid #F2925F;
  outline-offset: 2px;
  background: #FFF4EB;
}

/* SPACING & FLEX WRAPPER --------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RESPONSIVE DESIGN -------------------------------------- */
@media (max-width: 1040px) {
  .container {
    max-width: 97vw;
  }
  .features-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header nav {
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: .95rem;
    padding: 12px 10px 8px 10px;
  }
}
@media (max-width: 820px) {
  .features-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  .features-grid > div {
    min-width: 46vw;
    max-width: 98vw;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 7vw; }
  .content-wrapper { gap: 20px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
  section, .section {
    padding: 30px 6vw;
    margin-bottom: 44px;
  }
  .features-grid { gap: 14px; }
  .features-grid > div { padding: 16px 8px; }
  .card-grid { gap: 12px; }
  .testimonial-card {
    padding: 17px 6px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  footer { padding: 28px 5vw 12px 5vw; }
  footer nav { gap: 6px; flex-direction: column; margin-bottom: 9px; }
}
@media (max-width: 618px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.11rem; }
  .container {
    padding: 0 3vw;
  }
  .features-grid > div {
    min-width: 95vw !important; max-width: 99vw;
    padding: 12px 4px;
  }
  .testimonial-card { padding: 12px 2px; font-size: .99rem; }
}

/* MOBILE NAVIGATION -------------------------------------- */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* DECO & MICRO-ANIMATIONS ------------------------------- */
.cta-primary, .cta-secondary, .cookie-btn, .mobile-menu-close, .mobile-menu-toggle {
  transition: var(--transition);
}
.card, .features-grid > div, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.2s, transform 0.2s, background 0.23s, opacity 0.18s;
}
.features-grid > div:hover, .card:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 6px 36px #E6B89433;
}
.testimonial-card:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 36px #FFDAB266;
}

/* COOKIE CONSENT OVERRIDES FOR MOBILE ------------------- */
@media (max-width: 450px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 15px 8px;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    width: 100%;
  }
}

/* PRINT --------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #1a1a1a; }
  section, .section, .container { padding: 0 !important; margin: 0 !important; }
}
