/* =======================================================
   ZestyMoor Domowy Konsultant: CREATIVE_ARTISTIC STYLE
   Responsive, Artistic, Flexbox-Only, Brand-Guided CSS
   ======================================================= */

/* ========== 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F5F7FA;
  color: #24485D;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s cubic-bezier(.4,1.4,.6,1); }
ul, ol { list-style-position: inside; }
button { font-family: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* ========== FONT IMPORTS (for artistic style) ========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Lato:400,700&display=swap');

/* ========== COLOR PALETTE & CSS VARIABLES ========== */
:root {
  --primary: #24485D;
  --secondary: #F5F7FA;
  --accent: #4DBD72;
  --accent-dark: #388E59;
  --contrast-dark: #191E29;
  --creamy: #fff5e2;
  --rose: #ff5561;
  --yellow: #ffd600;
  --blue-accent: #508ec7;
  --shadow: 0 4px 24px 0 rgba(36,72,93,0.10);
  --radius: 22px;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 0;
}

/* ========== HEADER/NAV BAR ========== */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(36,72,93,0.06);
  position: relative;
  z-index: 300;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 76px;
}
header nav {
  display: flex;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
  position: relative;
  transition: background 0.18s, color 0.18s, box-shadow 0.28s;
}
header nav a:hover:not(.cta),
header nav a:focus-visible:not(.cta) {
  background: var(--accent);
  color: var(--primary);
}
header nav a.cta {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px 0 rgba(77,189,114,0.13);
  font-size: 17px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  border: 2px solid var(--accent-dark);
  transition: background 0.18s, color 0.18s, box-shadow 0.28s, border 0.18s;
}
header nav a.cta:hover, header nav a.cta:focus-visible {
  background: var(--accent-dark);
  border-color: var(--primary);
  color: #fff;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  font-size: 2.4rem;
  background: var(--accent);
  color: var(--primary);
  padding: 9px 18px;
  border-radius: 38px;
  margin-left: 12px;
  min-width: 44px;
  min-height: 44px;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible {
  background: var(--accent-dark);
  color: #fff;
}

/* ========== ARTISTIC HERO, SECTIONS, AND FLEX WRAPPERS ========== */
main {
  flex: 1 1 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s, transform 0.22s;
  border: 3px solid var(--accent);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(77,189,114,0.13), var(--shadow);
  transform: translateY(-5px) scale(1.015) rotate(-1.8deg);
  border-color: var(--accent-dark);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Feature item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: #fff;
  border-radius: calc(var(--radius) * 0.7);
  box-shadow: 0 2px 18px 0 rgba(36, 72, 93, 0.09);
  border-left: 5px solid var(--rose);
  color: var(--primary);
  font-family: 'Lato', Arial, sans-serif;
  max-width: 440px;
  width: 100%;
}
.testimonial-card blockquote {
  color: #222;
  font-size: 19px;
  line-height: 1.4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  padding-left: 8px;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--accent-dark);
  letter-spacing: 0.7px;
  font-size: 15px;
}
.testimonial-card h3 {
  font-size: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--rose);
  margin-bottom: 4px;
}

/* ========== TYPOGRAPHY, HEADINGS, ARTISTIC SCALE ========== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(36, 72, 93, 0.05);
  font-weight: 800;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; color: var(--rose); text-transform: none; }
h2 { font-size: 2.0rem; margin-bottom: 14px; position: relative; }
h2::after {
  content: '';
  display: block;
  margin-top: 10px;
  margin-left: 0;
  width: 46px;
  height: 5px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--rose) 0%, var(--accent) 100%);
  opacity: 0.6;
}
h3 { font-size: 1.25rem; color: var(--accent-dark); }
h4, h5 { font-size: 1rem; }
p {
  font-family: 'Lato', Arial, sans-serif;
  color: #333;
  font-size: 1.08rem;
  line-height: 1.82;
  margin-bottom: 10px;
}
úl, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-left: 24px;
  margin-bottom: 16px;
  line-height: 1.7;
}
ul > li, ol > li {
  margin-bottom: 7px;
  position: relative;
  padding-left: 1.8em;
}
ul > li::before {
  content: '▹';
  color: var(--accent-dark);
  font-size: 1em;
  position: absolute;
  left: 0;
  top: 0.2em;
  font-weight: bold;
}
ol > li::before { display: none; }
strong { color: var(--accent-dark); }

/* ========== CTA BUTTON ========== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px 0 rgba(255,85,97,0.13), 0 1px 8px 0 rgba(36,72,93,0.08);
  border: 2px solid var(--rose);
  letter-spacing: 0.5px;
  transition: background 0.21s, color 0.21s, box-shadow 0.18s, border 0.2s, transform 0.17s;
  cursor: pointer;
  text-shadow: 0 1px 5px rgba(255,255,255,0.14);
}
.cta:hover, .cta:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fffbe5;
  transform: scale(1.016) rotate(-1.5deg);
  box-shadow: 0 6px 25px 0 rgba(56,142,89,0.17), 0 1px 18px 0 rgba(36,72,93,0.10);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 0 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -3px 18px 0 rgba(36,72,93,0.10);
  position: relative;
  z-index: 50;
}
footer .container {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}
footer > .container > .content-wrapper > div {
  flex: 2 1 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer img {
  height: 54px;
  margin-bottom: 10px;
}
footer nav {
  flex: 3 1 500px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 14px;
  align-items: flex-start;
}
footer nav a {
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 19px;
  border-radius: 30px;
  opacity: 0.9;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus-visible {
  background: var(--accent);
  color: var(--primary);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 991px) {
  .container, footer .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  header .container, footer .content-wrapper,
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  section {
    padding: 32px 4vw;
  }
  .container, footer .container {
    padding: 0 4vw;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }
  footer nav {
    gap: 10px;
    font-size: 0.97em;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.25rem; }
  .cta { font-size: 1rem; padding: 11px 20px; }
  section { padding: 22px 2vw; }
  .testimonial-card { max-width: 100%; padding: 14px; }
}

/* ========== MOBILE MENU STYLES & ANIMATIONS ========== */
.mobile-menu {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,42,49,0.98);
  transform: translateX(100vw);
  transition: transform 0.45s cubic-bezier(.69,-0.01,.32,1.13);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 12px 0;
  background: var(--rose);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  box-shadow: 0 2px 10px rgba(255,85,97,0.18);
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus-visible {
  background: var(--accent-dark);
}  
.mobile-nav {
  margin-top: 20px;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  padding: 13px 0;
  width: 100%;
  border-radius: 16px;
  transition: background 0.18s, color 0.18s;
  min-height: 44px;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: var(--accent);
  color: var(--primary);
  padding-left: 7px;
}

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

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 10001;
  background: var(--creamy);
  color: var(--primary);
  box-shadow: 0 -3px 22px 0 rgba(36,72,93,0.06);
  padding: 24px 32px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: bannerUp 0.36s cubic-bezier(.71,-0.07,.25,1.16);
}
@keyframes bannerUp {
  from { transform: translateY(100%) scale(0.85); opacity:0.2; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1.08rem;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 20px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 30px;
  font-weight: 700;
  margin: 0 2px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(36,72,93,0.09);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent-dark);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus-visible {
  background: var(--accent-dark);
  color: #fffbd2;
  border-color: var(--primary);
}
.cookie-btn.settings {
  background: var(--rose);
  color: #fff;
  border: 2px solid var(--rose);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus-visible {
  background: #fff;
  color: var(--rose);
  box-shadow: 0 2px 11px rgba(255,85,97,0.18);
}
.cookie-btn.reject {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus-visible {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 6vw;
    gap: 16px;
  }
  .cookie-buttons {
    margin-left: 0;
  }
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 20000;
  background: rgba(36,72,93, 0.32);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s cubic-bezier(.69,-0.01,.32,1.13);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  color: var(--primary);
  padding: 36px 32px 28px 32px;
  border-radius: 30px;
  box-shadow: 0 6px 36px 0 rgba(77,189,114,0.15), 0 1px 28px 0 rgba(36,72,93,0.10);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: 93vw;
  gap: 18px;
  animation: modalIn 0.32s cubic-bezier(.69,-0.01,.32,1.13);
}
@keyframes modalIn {
  0% { transform: scale(0.86) translateY(52px); opacity:0.2; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  margin-bottom: 2px;
  color: var(--rose);
  font-size: 1.17rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1.04rem;
  font-family: 'Lato', Arial, sans-serif;
}
.category-toggle {
  width: 36px; height: 20px;
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.13s;
}
.category-toggle input { display: none; }
.category-toggle span {
  display: block;
  position: absolute;
  top: 1px; left: 1px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.13s, background 0.17s;
}
.category-toggle input:checked + span {
  left: 15px;
  background: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 24px;
  background: var(--rose);
  color: #fff;
  border-radius: 999px;
  border: none;
  font-size: 1.6rem;
  padding: 4px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus-visible {
  background: var(--accent-dark);
}

@media (max-width: 600px) {
  .cookie-modal { min-width: 90vw; padding: 16px 8vw 12px 8vw; }
}

/* ========== ARTISTIC/CREATIVE ACCENTS & MICRO-EFFECTS ========== */
section, .card, .testimonial-card, .cta, .cookie-btn, .cookie-modal, .mobile-nav a {
  box-shadow: var(--shadow);
}
h1, h2, h3, .cta, .cookie-btn, .mobile-nav a {
  text-transform: none;
  letter-spacing: 0.5px;
}
.cta svg {
  margin-right: 8px;
}
.card, .testimonial-card {
  position: relative;
}
.card:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  left: -15px;
  top: 12px;
  width: 40px;
  height: 10px;
  border-radius: 26px;
  background: linear-gradient(90deg, var(--blue-accent), var(--rose), var(--accent));
  opacity: 0.23;
  z-index: 0;
  pointer-events: none;
}
.card:after, .testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.21;
  z-index: 0;
  pointer-events: none;
}

/* ========== FORM/INPUTS ========== */
input, textarea {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  width: 100%;
  outline: none;
  background: #fff;
  transition: border 0.2s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 2px 10px rgba(77,189,114,0.10);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ========== UTILITY SPACING CLASSES ========== */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-44 { margin-bottom: 44px !important; }
.mt-20 { margin-top: 20px !important; }
.pt-10 { padding-top: 10px !important; }

/* ========== Z-INDEX UTILITIES ========== */
.z-top { z-index: 11000; position: relative; }

/* ========== MISC: ARTISTIC DECOR (svg shape example) ========== */
.artistic-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.13;
}

/* ========== OVERRIDES FOR SYSTEM LINKS, HOVER ETC ========== */
a:hover, a:focus-visible { color: var(--rose); text-decoration: underline; }

/* ========== HIDE FOR PRINT ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
