/* ----- 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, 
main, 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;
}
body {
  line-height: 1.5;
  background: #F6F8FA;
  color: #22304F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
ol, ul {
  list-style: disc outside;
  margin: 0 0 16px 24px;
}
a {
  color: #6c7498;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #193265;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2A377B;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 16px; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p, address, li, blockquote { font-size: 1rem; line-height: 1.68; color: #22304F; }
strong { font-weight: 700; color: #2A377B; }
blockquote {
  font-style: italic;
  color: #22304F;
  border-left: 4px solid #2A377B;
  margin: 0 0 8px 0;
  padding-left: 16px;
  background: #F1F3F8;
}

/* ----- CONTAINER & LAYOUT ----- */
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(42, 55, 123, 0.04);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(42, 55, 123, 0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 28px rgba(42,55,123,0.13);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F1F3F8;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(42,55,123,0.08);
  max-width: 600px;
}
.testimonial-card blockquote {
  border: none;
  padding: 0;
  background: none;
  color: #22304F;
  font-size: 1.125rem;
  font-style: italic;
}
.testimonial-card footer {
  font-size: 1rem;
  color: #2A377B;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----- HEADER & NAVIGATION ----- */
header {
  background: #FFF;
  box-shadow: 0 2px 10px rgba(42,55,123,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 90;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
}
nav ul li a {
  color: #2A377B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F1F3F8;
  color: #1A234C;
}
.cta {
  display: inline-flex;
  align-items: center;
  background: #2A377B;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  margin-left: 20px;
  box-shadow: 0 1px 8px rgba(42,55,123,0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  text-decoration: none;
}
.cta.primary {
  background: #2A377B;
  color: #fff !important;
}
.cta.primary:hover, .cta.primary:focus {
  background: #22304F;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 14px rgba(42,55,123,0.18);
}
.cta:not(.primary) {
  background: #7d84a5;
  color: #2A377B;
  border: 1.5px solid #2A377B;
}
.cta:not(.primary):hover, .cta:not(.primary):focus {
  background: #F1F3F8;
  color: #22304F;
}

/* ----- MOBILE NAVIGATION ----- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2A377B;
  cursor: pointer;
  margin-left: 12px;
  z-index: 102;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  box-shadow: 0 8px 32px rgba(42,55,123,0.20);
  padding: 32px 30px 16px 30px;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,.2,.05,1.06), opacity 0.25s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2A377B;
  margin-bottom: 24px;
  cursor: pointer;
  z-index: 201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: #2A377B;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  text-align: left;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1F3F8;
  color: #1A234C;
}

/* ----- FOOTER ----- */
footer {
  background: #1C233F;
  color: #C6CCDE;
  padding: 40px 0 24px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0;
}
footer nav a {
  color: #FAC342;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  text-decoration: underline;
  color: #fff;
}
.brand-footer img {
  height: 46px;
  margin-bottom: 20px;
}
footer p {
  color: #C6CCDE;
  font-size: 0.95rem;
}

/* ----- COMPONENTS & UTILITIES ----- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  flex: 1 1 270px;
  background: #F6F8FA;
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: 0 1px 10px rgba(42, 55, 123, 0.06);
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.17s;
}
.service-list > div:hover, .service-list > div:focus {
  box-shadow: 0 2px 24px rgba(42,55,123,0.14);
}
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.event-card {
  background: #FFF;
  border: 1px solid #D7DDEC;
  border-radius: 10px;
  padding: 22px 18px;
  flex: 1 1 270px;
  min-width: 220px;
  box-shadow: 0 1px 8px rgba(42, 55, 123, 0.09);
  transition: box-shadow 0.17s;
  margin-bottom: 20px;
}
.event-card h3 {
  color: #2A377B;
  font-size: 1.18rem;
}
.event-card:hover, .event-card:focus {
  box-shadow: 0 3px 20px rgba(42,55,123,0.13);
}
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F3F8;
  border-radius: 10px;
  padding: 34px 14px;
  color: #6C7498;
  font-style: italic;
  margin: 18px 0;
}

/* Text alignment utility */
.text-center {text-align: center;}

/* ----- COOKIE CONSENT BANNER & MODAL ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 20px 24px 20px 24px;
  background: #22304F;
  color: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(42,55,123,0.22);
  gap: 16px;
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.22s;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner .accept {
  background: #FAC342;
  color: #2A377B;
  box-shadow: 0 1px 8px rgba(250,195,66,0.10);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #ffd56c;
}
.cookie-banner .reject {
  background: #F6F8FA;
  color: #2A377B;
  box-shadow: 0 1px 8px rgba(42,55,123,0.06);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e3e7f0;
}
.cookie-banner .settings {
  background: #22304F;
  color: #FAC342;
  border: 1px solid #FAC342;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f7fafd;
  color: #2A377B;
  border-color: #2A377B;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,48,79,0.64);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #22304F;
  padding: 40px 28px 28px 28px;
  border-radius: 18px;
  width: 96vw;
  max-width: 380px;
  box-shadow: 0 8px 36px rgba(42,55,123,0.20);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: fadeInScale 0.29s cubic-bezier(.77,.2,.05,1) 1;
}
@keyframes fadeInScale {
  from { transform: scale(0.97) translateY(28px); opacity:0; }
  to   { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  color: #2A377B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F6F8FA;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
}
.cookie-category label {
  flex: 1;
  color: #22304F;
}
.cookie-category .toggle {
  width: 42px;
  height: 24px;
  background: #D7DDEC;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-category .toggle[data-checked='true'] {
  background: #FAC342;
}
.cookie-category .toggle[data-disabled='true'] {
  background: #e4e8f1;
  cursor: not-allowed;
}
.cookie-category .toggle-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(42,55,123,0.11);
  position: absolute;
  left: 2px;
  top: 2px;
  transform: translateX(0px);
  transition: transform 0.20s;
}
.cookie-category .toggle[data-checked='true'] .toggle-inner {
  transform: translateX(18px);
}
.cookie-category .toggle[data-disabled='true'] {
  opacity: 0.7;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #2A377B;
  cursor: pointer;
}

/* ----- RESPONSIVE DESIGN (Mobile-First) ----- */
@media (max-width: 1140px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  header nav ul { gap: 12px; }
  .service-list, .event-list, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section { padding: 22px 6px; margin-bottom: 32px; }
  .container { padding: 0 5px; }
  nav ul { display: none; }
  .cta.primary { margin-left: 0; }
  .service-list, .event-list, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .card, .event-card, .service-list > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .brand-logo img { height: 32px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .container { padding: 0 2vw; }
  .cookie-modal { padding: 24px 7vw 22px 7vw; }
  .cookie-banner { padding: 12px 10px; font-size: 0.95rem; }
  footer { padding: 24px 0 14px 0; }
}

/* ----- VISUAL EFFECTS & MICRO-INTERACTIONS ----- */
.card, .event-card, .testimonial-card, .service-list > div {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .event-card:hover, .testimonial-card:hover, .service-list > div:hover {
  box-shadow: 0 3px 18px rgba(42,55,123,0.13);
  transform: translateY(-2px) scale(1.015);
}
.cta,.cookie-banner button {
  transition: background 0.13s, color 0.13s, box-shadow 0.14s, transform 0.11s;
}
.cta:active, .cookie-banner button:active {
  transform: scale(0.97);
}

/* Subtle focus visible for accessibility */
:focus-visible {
  outline: 2px solid #FAC342;
  outline-offset: 2px;
}

/* ----- MISC CLASSES FROM HTML ----- */
address {
  font-style: normal;
  color: #22304F;
  margin-bottom: 14px;
}

/* Hides outline on non-accessible focus */
button:focus:not(:focus-visible) {
  outline: none;
}

/* REMOVE unwanted input autofill background */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important; 
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #22304F !important;
}

/* Hide scroll for modal overlay */
body.cookie-modal-open {
  overflow: hidden !important;
}

/* ----- END OF LOKALNE INSPIRACJE CSS ----- */
