/* =======================
   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, main, menu, nav, section {
  display: block;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FDF7F2;
  color: #2E3A5A;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "onum";
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
}
ul, ol, menu {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

/*========== GLOBAL LAYOUTS ==========*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/*---------- FLEXBOX PATTERNS ----------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(245, 166, 35, 0.11);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(57,75,117,0.13);
  transform: translateY(-5px) scale(1.01);
}
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(57,75,117,0.075);
  flex-direction: column;
  min-width: 250px;
  max-width: 500px;
  border-left: 6px solid #F5A623;
  transition: box-shadow 0.19s;
}
.testimonial-card p {
  font-size: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #394B75;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 15px;
  color: #A47E29;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive grid for .feature-grid, .brand-list, .team-member-list */
.feature-grid, .brand-list, .team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .brand-list > div, .team-member-list > .text-section {
  flex: 1 1 260px;
  min-width: 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(245, 166, 35, 0.09);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.feature-grid > div:hover, .brand-list > div:hover, .team-member-list > .text-section:hover {
  box-shadow: 0 8px 28px 0 rgba(245,166,35,0.17);
  transform: scale(1.02);
}
.brand-list img, .feature-grid img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.location-map {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF9F4;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px 0 rgba(245,166,35,0.04);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* =======================
   TYPOGRAPHY
   ======================= */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #394B75;
  margin-bottom: 8px;
}
h1 {
  font-size: 34px;
  margin-bottom: 20px;
}
h2 {
  font-size: 26px;
  margin-top: 20px;
  margin-bottom: 16px;
}
h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 16px;
  margin-bottom: 8px;
}
p, li, ul, ol {
  font-size: 16px;
  color: #2E3A5A;
}
strong {
  color: #F5A623;
  font-weight: 600;
}
.thank-you-message {
  font-size: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2E3A5A;
  margin-bottom: 18px;
  font-weight: 500;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(245,166,35,0.08);
  padding: 0;
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  gap: 14px;
}
.logo img {
  height: 46px;
  border-radius: 10px;
  transition: box-shadow 0.2s;
}
.logo:hover img {
  box-shadow: 0 2px 12px 0 rgba(245,166,35,0.13);
}
.main-nav {
  display: flex;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #394B75;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: #FFF8EF;
  color: #F5A623;
}
.cta-btn {
  background: #F5A623;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 22px;
  padding: 10px 27px;
  box-shadow: 0 2px 12px 0 rgba(245,166,35,0.13);
  letter-spacing: 0.015em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.16s, transform 0.13s;
  outline: none;
  display: inline-block;
}
.cta-btn:focus, .cta-btn:hover {
  background: #F59E00;
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 6px 26px 0 rgba(245,166,35,0.19);
}

/*========== MOBILE MENU TOGGLE =========*/
.mobile-menu-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #F5A623;
  color: #fff;
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(245,166,35,0.09);
  transition: background 0.14s;
  z-index: 31;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F59E00;
}

/* Hide menu button by default on desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/*========== MOBILE MENU OVERLAY =========*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF9F3;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 14px 40px 0 rgba(57,75,117,0.125);
  padding-top: 48px;
  overflow-y: auto;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 19px;
  right: 20px;
  font-size: 30px;
  background: #F5A623;
  color: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F59E00;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
  gap: 22px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 21px;
  color: #2E3A5A;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 8px 10px 0;
  border-radius: 10px;
  min-width: 200px;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
  margin-right: 18px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #FFC97A;
  color: #394B75;
}

/* Hide .main-nav and .cta-btn on mobile */
@media (max-width:1023px) {
  .main-nav, .cta-btn {
    display: none;
  }
  header .container {
    padding-right: 12px;
    padding-left: 12px;
  }
}
@media (min-width:1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: #FFF9F4;
  border-top: 2px solid #FFE6BE;
  padding-top: 16px;
  padding-bottom: 18px;
  font-size: 15px;
}
footer .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
  justify-content: center;
}
footer nav a {
  color: #7683a4;
  font-size: 15px;
  text-decoration: underline;
  border-radius: 8px;
  transition: color 0.13s, background 0.12s;
  padding: 5px 10px;
}
footer nav a:focus,footer nav a:hover {
  color: #F5A623;
  background: #fff5e4;
}
footer p {
  color: #B7A377;
  font-size: 14px;
}

/* ========== HERO ========= */
section:first-of-type {
  background: #FFE8C6;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 2px 22px 0 rgba(245,166,35,0.19);
}
section:first-of-type h1, section:first-of-type p {
  color: #2E3A5A;
}
section:first-of-type .cta-btn {
  margin-top: 18px;
}

/* ========== OFFER/FEATURE LISTS ========= */
ul, ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

ul {
  padding-left: 0;
}
ul > li, ol > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.7;
}
ul > li:before, ol > li:before {
  content: '';
  display: inline-block;
  background: #F5A623;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Remove icon bullets if inner li contains <img> at the very start */
ul > li > img {
  margin-left: -24px;
  margin-right: 10px;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}
ul > li > img ~ strong {
  margin-left: 3px;
}
ul > li:has(img:first-child) {
  padding-left: 0;
}
ul > li:has(img:first-child)::before {
  display: none !important;
}


/* ========== BUTTONS, INPUTS & INTERACTIONS ========== */
button {
  font-family: inherit;
  background: #F5A623;
  color: #fff;
  padding: 10px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.17s, transform 0.14s, box-shadow 0.17s;
  margin-right: 8px;
}
button:focus, button:hover {
  background: #F59E00;
  transform: scale(1.04);
  box-shadow: 0 6px 20px 0 rgba(245,166,35,0.14);
}

/* =======================
   RESPONSIVE DESIGN
   ======================= */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid, .brand-list, .team-member-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper, .section {
    padding: 25px 5px;
    gap: 14px;
  }
  .feature-grid, .brand-list, .team-member-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .brand-list > div, .team-member-list > .text-section {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    padding: 14px 10px;
    gap: 8px;
  }
  .section {
    margin-bottom: 36px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }
  .brand-list img { width: 37px; height: 37px; }
  .feature-grid img { width: 33px; height: 33px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
}
@media (max-width: 480px) {
  .testimonial-card p { font-size: 15px; }
  .brand-list > div, .feature-grid > div, .team-member-list > .text-section {
    padding: 11px 5px;
  }
  .main-nav a, .mobile-nav a {
    font-size: 15px;
  }
}

/* ========== FORMATTED LISTS ========= */
.brand-list, .team-member-list {
  margin-top: 6px;
}

/* ========== MICRO-INTERACTIONS/TRANSITIONS ========== */
a, .cta-btn, button {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* ========== TESTIMONIALS ========== */
section:has(.testimonial-card) {
  background: #FFF9F4;
  border-radius: 26px;
  box-shadow: 0 2px 18px 0 rgba(245,166,35,0.04);
  padding: 32px 0;
}

.testimonial-card {
  color: #2E3A5A;
  background: #fff;
  font-size: 16px;
  box-shadow: 0 2px 16px 0 rgba(57,75,117,0.10);
  border-left: 6px solid #F5A623;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #FFF6EB;
  color: #2E3A5A;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 2px 20px 0 rgba(245,166,35,0.21);
  padding: 22px 16px 20px 18px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  font-size: 15px;
  max-width: 95vw;
  margin: 0 auto;
  animation: slideUpCookie 0.34s cubic-bezier(0.77,0,0.18,1) 1;
}
@keyframes slideUpCookie {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-size: 15px;
  border-radius: 14px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #F5A623;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.13s;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #F59E00;
  transform: scale(1.04);
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #F5A623;
  border: 2px solid #F5A623;
  margin-left: 3px;
}
.cookie-banner .cookie-settings-btn:focus,
.cookie-banner .cookie-settings-btn:hover {
  background: #FFF0CD;
  border-color: #F59E00;
  color: #F59E00;
}

/*================ COOKIE MODAL (Popup) ================*/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top:0; right:0; bottom:0;
  background: rgba(57,75,117,0.25);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 33px 0 rgba(245,166,35,0.19);
  padding: 38px 22px 26px 22px;
  max-width: 390px;
  width: 90vw;
  color: #2E3A5A;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: cookieModalIn 0.21s cubic-bezier(0.77,0,0.18,1) 1;
  position: relative;
}
@keyframes cookieModalIn {
  0% { transform: scale(0.88) translateY(38px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute; right: 17px; top: 16px;
  font-size: 27px;
  background: #F5A623;
  color: #fff;
  border: none;
  border-radius: 11px;
  width: 32px; height: 32px;
  display: flex; justify-content:center; align-items: center;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F59E00;
}
.cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:16px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #FFE6BE;
  padding-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F5A623;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 2px solid #F5A623;
  outline: none;
}
.cookie-modal .category-desc {
  font-size: 14px;
  color: #968270;
  margin-bottom: 6px;
}
.cookie-modal .always-enabled {
  color: #8B670A;
  font-size: 14px;
  font-style: italic;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal button {
  font-size: 15px;
  border-radius: 12px;
  padding: 8px 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F5A623;
  color: #fff;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #F59E00;
}

/* ====== ICON STYLING ====== */
img[alt^='icon-'],
img[alt^='Telefon'], img[alt^='E-mail'], img[alt^='Adres'], img[alt^='Kurier'], img[alt^='Dostawa'] {
  width: 22px !important;
  height: 22px !important;
  border-radius: 8px;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 1px 4px 0 rgba(245,166,35,0.09);
}

/* ========== CUSTOM UI SPACING (CONSISTENT GAPS) ========== */
.card, .testimonial-card, .brand-list > div, .feature-grid > div, .team-member-list > .text-section, .location-map {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}
.card-container, .feature-grid, .brand-list, .team-member-list, .content-grid {
  gap: 24px;
}

/* ========== COLOR UTILITIES ========== */
.bg-primary   { background: #394B75 !important; color: #fff !important; }
.bg-accent    { background: #F5A623 !important; color: #fff !important; }
.bg-secondary { background: #FFF9F4 !important; }
.color-accent { color: #F5A623 !important; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #FFF7E9;
}
::-webkit-scrollbar-thumb {
  background: #FFD37E;
  border-radius: 10px;
}

/* ========== FOCUS & ACCESSIBILITY ========== */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

/* ========== UTILITY SPACING ========== */
.mt-16 { margin-top: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }

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