/* ===============================================================
   CSS RESET & BASE STYLES
   =============================================================== */
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 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F6F4EC;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  background: #F6F4EC;
  color: #2D2323;
  font-size: 16px;
  line-height: 1.7;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #236624;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #003052;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===============================================================
   FONTS: Vintage Retro Feel
=============================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

:root {
  --color-primary: #003052;
  --color-secondary: #B78C43;
  --color-accent: #F4F8FB;
  --color-vintage-bg: #F6F4EC;
  --color-retro-orange: #EC9857;
  --color-retro-mint: #B2D7B7;
  --color-retro-yellow: #F9F5D7;
  --color-retro-blue: #5D99B1;
  --color-retro-red: #C24E46;
  --color-secondarygreen: #6DBE45; /* Brand secondary */
  --color-text: #27211D;
  --color-header: #003052;
  --color-footer: #39352B;
  --card-radius: 12px;
  --card-shadow: 0 4px 24px 0 rgba(46,17,9,0.08);
  --button-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  --transition-fast: 0.22s cubic-bezier(.46,.03,.52,.96);
  --transition-slow: 0.44s cubic-bezier(.22,.66,.4,1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-header);
  text-shadow: 1px 1px 0 #F9F5D7, 2px 2px 0 #B78C43;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
}
p { margin-bottom: 14px; }
strong { font-weight: bold; }

/* ===============================================================
   LAYOUT & CONTAINERS
=============================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--color-vintage-bg);
  border-radius: 20px;
  box-shadow: 0 3px 32px 0 rgba(50, 43, 35, 0.04);
}
@media (max-width: 600px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-retro-yellow);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .container { padding: 0 10px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials & Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F9F5D7;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(46,17,9,0.09);
  padding: 20px;
  margin-bottom: 20px;
  border: 2px dotted var(--color-secondary);
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #40381D;
  font-style: italic;
  padding-left: 8px;
  border-left: 4px solid var(--color-retro-orange);
  margin-bottom: 8px;
  background: none;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  color: #444;
  font-size: 1rem;
  font-weight: 700;
}

/* Feature section icons */
.content-wrapper ul li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 50%;
  box-shadow: 1px 2px 7px 0 rgba(46,17,9,0.06);
  background: #FFFDF7;
  padding: 4px;
}

/* List Style Retro */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 13px;
  padding-left: 0;
}
.content-wrapper ul li {
  font-size: 1.09rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  position: relative;
}
.content-wrapper ul li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  background: var(--color-retro-mint);
  box-shadow: 0 1px 5px 0 rgba(46,17,9,0.13);
  display: inline-block;
}
.content-wrapper ul li img + span {
  margin-left: 8px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px;
}

.featured-article {
  background: var(--color-retro-blue);
  color: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(51, 89, 153, 0.08);
  padding: 16px 16px 18px 16px;
  margin: 12px 0 8px 0;
}
.featured-article h3 {
  color: #fff;
  text-shadow: 1px 1px 0 #B2D7B7, 0 2px 5px rgba(0,0,0,0.07);
  margin-top:0;
}

/* Social Media Links */
.social-media-links {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.social-media-links a img {
  width: 36px;
  height: 36px;
  transition: filter var(--transition-fast);
  border-radius: 8px;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.10);
  background: #fff;
}
.social-media-links a:hover img {
  filter: grayscale(0.4) contrast(2) brightness(1.15);
}

/* ===============================================================
   HEADER & NAVIGATION
=============================================================== */
header {
  width: 100%;
  background: var(--color-retro-mint);
  border-bottom: 4px solid var(--color-secondary);
  padding: 0 0 5px 0;
  box-shadow: 0 2px 15px 0 rgba(46,17,9,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  position: relative;
  z-index: 10;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #39352B;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 7px;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
header nav a:not(.cta-btn):hover,
header nav a:not(.cta-btn):focus {
  background: var(--color-retro-yellow);
  color: #C24E46;
  text-decoration: none;
}
.cta-btn {
  background: linear-gradient(90deg, var(--color-retro-orange), #EDD37B 60%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 12px 28px;
  margin-left: 10px;
  box-shadow: var(--button-shadow);
  border: 2px solid #ec9857;
  transition: transform 0.13s, box-shadow 0.13s, background var(--transition-fast);
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #EDD37B, var(--color-retro-orange) 80%);
  color: #fff;
  text-shadow: 0 1px 5px #c24e4615;
  transform: translateY(-1px) scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(236,152,87,0.13);
  border-color: #B78C43;
  outline: none;
}

/* Logo in header */
header img {
  width: 146px;
  height: auto;
  margin-right: 6px;
  display: block;
}
@media (max-width: 500px) {
  header img {
    width: 108px;
  }
}

/* =========================
   MOBILE NAVIGATION
========================= */
.mobile-menu-toggle {
  display: none;
  background: #fff3e9;
  color: #993300;
  font-size: 2.2rem;
  border: 2px solid #b78c43;
  border-radius: 10px;
  padding: 2px 14px 2px 14px;
  margin-left: 18px;
  box-shadow: 0 2px 16px 0 rgba(150,80,22,0.08);
  transition: background var(--transition-fast);
  z-index: 51;
}
.mobile-menu-toggle:active {
  background: #F9F5D7;
}

@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #F6F4ECee;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  color: #C24E46;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #C24E46;
  margin: 28px 0 10px 16px;
  padding: 4px 18px 1px 18px;
  align-self: flex-start;
  box-shadow: 0 1px 8px 0 rgba(194,78,70,0.05);
  transition: background var(--transition-fast);
}
.mobile-menu-close:active {
  background: #ffede9;
}
.mobile-nav {
  margin-top: 26px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 35px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #003052;
  padding: 14px 0;
  margin-right: 12px;
  background: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-bottom: 1px dotted #d8ab59;
  width: 85vw;
  transition: color var(--transition-fast), background var(--transition-fast);
  border-radius: 0 16px 16px 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #f9f5d7;
  color: #b78c43;
}

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

/* ===============================================================
   MAIN CONTENT & SECTIONS
=============================================================== */
main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin: 0 auto 32px auto;
  min-height: 70vh;
  width: 100%;
}
section {
  box-sizing: border-box;
  background: #fffbe6;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 24px 0 rgba(185,144,98,0.065);
  overflow: visible;
}

/* Vintage Patterns on Sections */
section {
  border-bottom: 10px double #b78c43;
  background-image: repeating-linear-gradient(135deg, #f9f5d7 0 11px, #fffbe6 11px 22px);
  background-blend-mode: lighten;
}
/* Remove pattern from footers and some info wrappers*/
footer section,
footer .section,
.content-wrapper.text-section,
.featured-article {
  background-image: none !important;
  border-bottom: none !important;
}

/* Overwrite background for some content wrappers */
.content-wrapper {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* CTA Color Splash */
.cta-btn {
  background: linear-gradient(90deg, #EC9857, #6DBE45 60%);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 13px;
  padding: 14px 36px;
  margin-top: 6px;
  margin-bottom: 8px;
  box-shadow: 0 5px 15px 0 #ecc89744;
  border: 2px solid #EC9857;
  transition: background 0.22s, color 0.22s, transform 0.13s, box-shadow 0.13s;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #6DBE45 0%, #EC9857 90%);
  color: #fff;
  transform: scale(1.042) rotate(-2deg);
  box-shadow: 0 8px 38px 0 #ecc89733;
  border-color: #B78C43;
  outline: none;
}

/* Micro-interactions */
section, .card, .testimonial-card, .feature-item, .cta-btn {
  transition: box-shadow 0.22s, background 0.22s, border 0.2s, transform 0.14s;
}
.section:hover, section:hover {
  box-shadow: 0 9px 45px 0 #ecc89745;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 48px 0 rgba(236,152,87,0.12);
  transform: translateY(-1.5px) scale(1.013);
}

/* ===============================================================
   FOOTER
=============================================================== */
footer {
  background: var(--color-footer);
  color: #f5e9c9;
  padding: 34px 0 18px 0;
  border-top: 6px solid var(--color-secondary);
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: #fff9da;
  text-shadow: 0 1px 8px #00305205;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  border-radius: 7px;
  padding: 4px 0 4px 7px;
  background: none;
  transition: background 0.2s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #b78c43;
  color: #fff;
}
footer .text-section {
  color: #ffe8b0;
  font-size: 0.98rem;
}
footer .text-section img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 7px;
  opacity: 0.91;
}
footer .social-media-links {
  margin-top: 9px;
}
footer a {
  color: #ffe8b0;
  word-break: break-all;
}
footer a:hover, footer a:focus {
  color: #EC9857;
}
footer img {
  width: 102px;
  height: auto;
  margin-bottom: 16px;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}

/* ===============================================================
   COOKIE CONSENT BANNER & MODAL
=============================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FAECDB;
  color: #231f20;
  box-shadow: 0 -4px 36px 0 #B78C430F;
  border-top: 3px solid #B78C43;
  padding: 22px 18px 22px 18px;
  z-index: 9998;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform .48s cubic-bezier(.44,.08,.3,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-left: auto;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff0cf;
  color: #003052;
  border: 2px solid #B78C43;
  border-radius: 9px;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 22px;
  margin: 0 2px;
  min-width: 120px;
  box-shadow: 0 1px 12px 0 #f9f5d7cc;
  transition: background 0.18s, color 0.18s, border 0.19s;
}
.cookie-btn.accept {
  background: #EC9857;
  color: #fff;
  border-color: #B78C43;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #6DBE45;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff5e2;
  color: #C24E46;
  border-color: #C24E46;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fad5ce;
  color: #003052;
}
.cookie-btn.settings {
  background: #fff;
  color: #B78C43;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFE6BA;
  color: #fff;
  border-color: #6DBE45;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    font-size: 0.94rem;
  }
  .cookie-banner__actions {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: flex-start;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,15,8,0.31);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  transition: background 0.19s;
}
.cookie-modal.hide {
  display: none !important;
}
.cookie-modal__content {
  background: #FFFBEB;
  border-radius: 18px;
  padding: 34px 30px 28px 30px;
  min-width: 310px;
  min-height: 230px;
  width: 95vw;
  max-width: 410px;
  box-shadow: 0 8px 48px 0 #b78c4330;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: #f5ceb8;
  color: #C24E46;
  border: 2px solid #C24E46;
  border-radius: 7px;
  font-size: 1.55rem;
  font-weight: bold;
  padding: 0 9px;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 7px 0 #c24e4612;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #ffe6ba;
  color: #003052;
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: #003052;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-weight: bold;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #b78c43;
  width: 22px; height: 22px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
}
/* Always enabled (essential) style */
.cookie-category.essential label:after {
  content: ' (Zawsze włączone)';
  font-weight: normal;
  font-size: 0.95em;
  color: #6DBE45;
  margin-left: 2px;
}

/* Cookie modal actions */
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 510px) {
  .cookie-modal__content {
    padding: 22px 10px 19px 10px;
    min-width: 0;
    width: 96vw;
  }
  .cookie-modal__close {
    right: 8px;
    top: 6px;
  }
}

/* ===============================================================
   GENERAL ELEMENTS - Typography, Spacing, Patterns
=============================================================== */
::-webkit-scrollbar { width: 10px; background: #f2eee8;}
::-webkit-scrollbar-thumb { background: #b78c43b0; border-radius: 20px;}

hr {
  border: none;
  border-top: 2px dashed var(--color-secondary);
  margin: 24px 0;
}

/* Retro pattern for titles */
h1, h2, h3 {
  letter-spacing: -0.5pt;
  position: relative;
}
h1:before, h1:after, h2:before, h2:after, h3:before, h3:after {
  content: '';
  display: inline-block;
  height: 6px;
  width: 36px;
  background: repeating-linear-gradient(90deg, #F9F5D7 0px, #B78C43 8px, #F9F5D7 16px);
  border-radius: 4px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  opacity: 0.28;
}
h1:after, h2:after, h3:after {
  margin: 0 0 0 10px;
}
h1:before, h2:before, h3:before {
  margin: 0 10px 0 0;
}
@media (max-width: 600px) {
  h1:before,h1:after,h2:before,h2:after,h3:before,h3:after { width: 18px; }
}

/* Code for interactive focus */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #B78C43;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFD;
}

/* ===============================================================
   RESPONSIVE LAYOUTS FOR FLEX
=============================================================== */
.content-grid, .card-container, .feature-item, .section {
  width: 100%;
}
@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 16px 3vw;
    margin-bottom: 34px;
  }
}

/* Ensure no overlapping */
.content-wrapper, .section, section {
  margin-bottom: 60px !important;
}
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px !important;
}

/* Remove outline for click, keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ===============================================================
   UTILITIES & ACCESSIBILITY
=============================================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===============================================================
   PRINT FRIENDLY (OPTIONAL)
=============================================================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important;}
  body { background: #fff; color: #111;}
  section, .section { background: #fff; box-shadow: none; border: none;}
}

/* ------------------ END OF VINTAGE RETRO BRAND CSS ---------------- */
