/* ============================
   Vintage Retro 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF7F1;
  color: #253028;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
* {box-sizing: border-box;}
a {color: #22543D; text-decoration: none; transition: color 0.2s;}
a:hover,
a:focus {text-decoration: underline; color: #287D4B;}
ul, ol {list-style: none;}
img {max-width: 100%; display: block; height: auto;}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 700;
  color: #22543D;
}

/* ===========
   Brand Colors for Vintage Retro
   =========== */
:root {
  --color-primary: #22543D;
  --color-secondary: #F3E5B1;
  --color-accent: #B05D2E;
  --color-offwhite: #FAF7F1;
  --color-dark: #332F21;
  --color-success: #13703B;
  --color-retro-red: #C1440E;
  --color-retro-blue: #3777BC;
  --color-retro-yellow: #F3C969;
  --color-retro-bg: #F3F5F0;
}

/* =============================
   Typography Scale (retro flavor)
   ============================= */
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.14;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--color-primary);
  text-shadow: 0 1px 0 #fff1d9, 0 2px 3px #e3e1c0;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-accent);
  text-shadow: 0 1px 0 #fff1d9, 0 1px 2px #e3e1c0;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-accent);
}
p {
  font-size: 1rem;
  color: #332F21;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
address {
  font-style: normal;
  color: var(--color-primary);
}

/* =======================
   Containers and Layout
   ======================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0;
}
.text-section {
  margin-bottom: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-retro-bg);
  border-radius: 18px;
  box-shadow: 0 6px 20px 0 #ead5b0a0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fffdfa;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 #e9dfbe86;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 320px;
  min-width: 260px;
}
.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;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFF8E6;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 #ded1a280;
  border-left: 6px solid var(--color-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: #332F21;
}
.testimonial-card strong {
  font-style: normal;
  font-size: 0.96rem;
  color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====================
   Header & Navigation
   ==================== */
header {
  background: #FFF4DC;
  border-bottom: 1.5px solid #f6ead7;
  box-shadow: 0px 2px 16px 0 #ebd6b360;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #B05D2E;
  text-transform: uppercase;
  padding: 3px 5px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: #F3C969;
  color: #22543D;
  text-decoration: none;
}
.cta {
  display: inline-block;
  background: var(--color-retro-red);
  color: #fffdfa;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 30px;
  padding: 10px 28px;
  box-shadow: 0 2px 12px 0 #c1440e35;
  margin-left: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.cta:hover,
.cta:focus {
  background: #D87727;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 #c1440e76;
  color: #fffdfa;
}
header img {
  height: 50px;
  margin-right: 12px;
}

/* =============================
    Mobile Navigation (Burger)
   ============================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-retro-red);
  color: #fffdfa;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s;
  z-index: 160;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F3C969;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #FFEDD9;
  box-shadow: 0px 0px 32px #b05d2e39;
  z-index: 200;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.92,.04,.37,1.01);
  padding-top: 40px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #c1440e;
  font-size: 2rem;
  align-self: flex-end;
  margin-right: 32px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #F3C969;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #B05D2E;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: 10px;
  text-transform: uppercase;
  background: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F3C969;
  color: #22543D;
  text-decoration: none;
}

@media (max-width: 1050px) {
  header nav {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav,
  .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {display: none !important;}
}

/* ================
   Section Spacing
   ================ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ================================
   Lists & Feature Retro Elements
   ================================ */
ul, ol {
  margin: 0 0 22px 0;
  padding: 0 0 0 24px;
}
ul li, ol li {
  font-size: 1rem;
  line-height: 1.60;
  margin-bottom: 8px;
  position: relative;
  padding-left: 0px;
}
ul li img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
}
ul li span {
  vertical-align: middle;
}

/* Retro Dots / List Markers */
ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #D87727;
  margin-right: 10px;
  position: relative;
  top: -1px;
}
ul li img + span, ol li img + span {
  margin-left: 2px;
}

/* Remove dot if icon used */
ul li img ~ span, ol li img ~ span {
  margin-left: 0px;
}
ul li img + span:before { display: none; }

/* Features list in "Dlaczego warto" (index) */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
section ul li {
  background: #fffdfa;
  border-radius: 10px;
  box-shadow: 0 1px 6px #ecd7bb3a;
  padding: 14px 20px;
  min-width: 180px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0px !important;
  font-size: 1.03rem;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
section ul li:before {
  display: none;
}
section ul li img {
  width: 28px;
  height: 28px;
}

/* =========================
   Footer Styles (Retro)
   ========================= */
footer {
  background: #1E3A2B;
  color: #fffae2;
  padding: 26px 0 20px 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-top: 2px solid #F3C969;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: #F3C969;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 3px 3px;
  border-radius: 8px;
}
footer nav a:hover,
footer nav a:focus {
  color: #fffdfa;
  text-decoration: underline;
  background: #B05D2E;
}
footer p {
  font-size: .95rem;
  color: #FFF8E6;
}

/* ======================
   Buttons & Interactions
   ====================== */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  background: var(--color-retro-red);
  color: #fffdfa;
  border-radius: 30px;
  font-size: 1rem;
  padding: 10px 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px #b05d2e51;
  transition: background 0.2s, transform 0.17s;
}
button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="button"]:focus,
input[type="submit"]:focus {
  background: #D87727;
  transform: scale(1.04);
}

/* ==============
   Card Patterns
   ============== */
.card {
  margin-bottom: 20px;
  border-radius: 14px;
  background: #FFF8E6;
  box-shadow: 0 2px 12px #e1b66b48;
  border: 2px solid #F3C96933;
}

/* ============================== 
   Testimonial (Retro Card Look)
   ============================== */
.testimonial-card {
  background: #FFF8E6;
  color: #28250E;
  border-left: 6px solid #B05D2E;
  margin-bottom: 20px;
  font-size: 1.07rem;
  font-style: italic;
  box-shadow: 0 2px 10px #f3c96945;
  padding: 24px 26px;
}

/* Ensure testimonial text is always dark for readability */
.testimonial-card p,
.testimonial-card strong { color: #332F21 !important; }

/* ===================
   Responsive Layouts
   =================== */
@media (max-width: 890px) {
  .container {
    max-width: 700px;
    padding: 0 10px;
  }
  h1 {font-size: 1.8rem;}
  h2 {font-size: 1.3rem;}
}
@media (max-width: 768px) {
  .container {max-width: 98vw;}
  section {padding: 32px 0;}
  .card-container, .content-grid, .section ul {flex-direction: column; gap: 16px;}
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { padding: 18px 12px; }
  .card { padding: 20px 14px; }
  footer .container {
    align-items: flex-start;
  }
}


/* ============
   Retro Patterns
   ============ */
body {
  /* Diagonal stripes subtle vintage background */
  background-color: #faf7f1;
  background-image: repeating-linear-gradient(135deg, #faf7f1, #faf7f1 20px, #f3e5b1 22px, #faf7f1 36px);
}

.section {
  background-color: #fffdfa;
  border-radius: 22px;
  border: 2.5px dashed #eed591;
  background-image: repeating-linear-gradient(90deg, #fffdfa, #fffdfa 48px, #f3e5b1 52px, #fffdfa 96px);
}

/* ===========
   Forms (Contact)
   =========== */
input,
select,
textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 2px solid #eed591;
  padding: 12px 12px;
  margin-bottom: 19px;
  background: #fffdfa;
  color: #332f21;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px #e9ba6b1a;
  transition: border-color 0.18s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #B05D2E;
  outline: none;
}

/* ===============================
   Cookie Consent Banner & Modal
   =============================== */
.cookie-banner {
  position: fixed;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff8e6;
  color: #332f21;
  border-top: 3px solid #F3C969;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 -2px 24px #eed591b4;
  z-index: 2200;
  gap: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  animation: banner-slide-in 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  max-width: 100vw;
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner__info {
  font-size: 1rem;
  flex: 1 1 auto;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner__button,
.cookie-banner__reject {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-retro-red);
  color: #fffdfa;
  border: none;
  border-radius: 24px;
  padding: 9px 22px;
  margin: 0 2px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 7px #b05d2e28;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #D87727;
}
.cookie-banner__reject {
  background: #C1440E;
}
.cookie-banner__reject:hover, .cookie-banner__reject:focus {
  background: #a8320e;
}
.cookie-banner__settings {
  background: #F3C969;
  color: var(--color-primary);
  box-shadow: 0 1px 3px #f3c96944;
  border: none;
  border-radius: 24px;
  padding: 9px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner__settings:hover,
.cookie-banner__settings:focus {
  background: #FFFCED;
  color: var(--color-dark);
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cookie-banner__actions { flex-wrap: wrap;gap:10px; }
}

/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #1e3a2bcc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4500;
  animation: modal-slide-in 0.4s cubic-bezier(.71,-0.21,.29,1.37);
}
@keyframes modal-slide-in {
  from {opacity:0;transform:scale(0.96);} to{opacity:1;transform:none;}
}
.cookie-modal__box {
  background: #fffdfa;
  border-radius: 22px;
  padding: 38px 26px 28px 26px;
  box-shadow: 0 8px 32px #eed591e7;
  max-width: 410px;
  width: 90vw;
  font-family: 'Roboto', Arial, sans-serif;
  color: #332F21;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #C1440E;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-retro-red);
}
.cookie-category label {
  font-size: 1.08rem;
}
.cookie-modal__save {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-retro-red);
  color: #fffdfa;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 7px #a04b1e32;
  transition: background 0.2s, color 0.2s;
  align-self: flex-end;
}
.cookie-modal__save:hover, .cookie-modal__save:focus {
  background: #D87727;
}

/* =============================
   Small Elements & Micro Effects
   ============================= */
::-webkit-scrollbar {
  width: 8px;
  background: #F9F1D9;
}
::-webkit-scrollbar-thumb {
  background: #edd994;
  border-radius: 10px;
}

hr {
  border: 0;
  border-top: 2px dashed #B05D2E;
  margin: 34px 0 28px 0;
}

/* ===================
   Icons (retro effect)
   =================== */
section ul li img, address img {
  filter: sepia(0.62) hue-rotate(-18deg) saturate(1.22) contrast(0.98); /* vintage icon style */
}

/* ======================
   Utility: Hide only
   ====================== */
.sr-only {
  position: absolute;
  left: -12000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===============
   Animations
   =============== */
.cta, button, .card, .testimonial-card, .cookie-banner, .cookie-modal__box {
  transition: box-shadow 0.18s, background 0.22s, color 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 32px #cc9e1e23;
  transform: translateY(-3px) scale(1.014);
}
.card:active {
  box-shadow: 0 2px 10px #cc9e1e23;
  transform: none;
}

/* =================
   Custom Patterns
   ================= */
@media (max-width: 540px) {
  .container {padding: 0 6px;}
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1rem;  }
  .section, .card, .card-container, .testimonial-card {padding-left:4px; padding-right:4px;}
}

/* ======================
   Contact Elements
   ====================== */
address a {
  color: var(--color-retro-blue);
  text-decoration: underline;
  font-weight: 500;
  margin-right: 10px;
  font-size: 1.02em;
}
address a:hover {
  color: var(--color-retro-red);
}
address img {
  width: 18px;
  vertical-align: middle;
  margin-right: 3px;
}

.text-section > div a {
  display: inline-block;
  background: var(--color-retro-blue);
  color: #fffdfa;
  border-radius: 18px;
  padding: 8px 20px;
  margin-right: 8px;
  text-decoration: none;
}
.text-section > div a:hover {
  background: var(--color-retro-yellow);
  color: var(--color-primary);
}

/* Social icons contact */
.text-section > div a img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}
.text-section > div a:last-child {margin-right: 0;}

/* ===============
   Accessibility
   =============== */
:focus {
  outline: 2.5px dashed #F3C969;
  outline-offset: 2px;
}

@media (max-width:410px) {
  .footer nav {gap: 6px;}
  .section {padding-left:2px; padding-right:2px;}
}
