/* CSS RESET & BASE STYLES */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #124678;
  background: #F5F7FA;
  min-height: 100vh;
  line-height: 1.5;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #124678;
  text-decoration: none;
  transition: color .3s;
}
a:hover, a:focus {
  color: #32A86B;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin: 1em 0;
}
li {
  margin-bottom: 0.5em;
}

/* Typography (Geometric/Structured) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #124678;
  margin-bottom: 0.7em;
}
h1 { font-size: 2rem; }
@media (min-width: 600px) { h1 { font-size: 2.5rem; } }
@media (min-width: 960px) { h1 { font-size: 3rem; } }
h2 { font-size: 1.5rem; }
@media (min-width: 600px) { h2 { font-size: 2rem; } }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
.subtitle {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.125rem;
  color: #2a5d92;
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
  color: #124678;
}

.table th, table thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
@media (min-width: 900px) { .content-wrapper { gap: 40px; } }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(18,70,120,0.05);
}
main > section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* Header & Navigation */
header {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(18,70,120,0.045);
  z-index: 500;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[alt^="Blinxar"] {
  max-height: 48px;
  min-width: 130px;
  margin-right: 32px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 8px 0;
  color: #124678;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.3s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #32A86B;
  border-bottom: 2px solid #32A86B;
}

/* Primary CTA Button */
.btn-primary {
  display: inline-block;
  background-color: #32A86B;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px 0 rgba(50,168,107,.09);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #124678;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 24px 0 rgba(18,70,120,0.10);
}

/* Link Button */
.btn-link {
  color: #32A86B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 2.5px solid #32A86B;
  background: none;
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 2px;
  margin-top: 10px;
  text-decoration: none;
}
.btn-link:hover, .btn-link:focus {
  color: #124678;
  border-bottom-color: #124678;
}

/* Hamburger (Mobile menu) */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #32A86B;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-left: 18px;
  transition: background .2s;
  z-index: 1101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #124678;
  color: #fff;
}

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

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 70, 120, 0.97);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.72,.01,.6,1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  margin: 24px 36px 6px 0;
  cursor: pointer;
  z-index: 1101;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #32A86B;
}
.mobile-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 40px 0 0 48px;
  gap: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  padding: 12px;
  border-radius: 6px;
  margin-right: 24px;
  min-width: 180px;
  transition: background 0.2s, color .2s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #32A86B;
  color: #fff;
}

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

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
}

/* Section, Card Spacing, Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(18,70,120,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 100%;
  position: relative;
  transition: box-shadow 0.15s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(50,168,107,.18);
  transform: translateY(-2px) 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 12px 0 rgba(50,168,107,.07);
  padding: 20px 26px;
  margin-bottom: 20px;
  max-width: 640px;
  font-size: 1.0625rem;
}
.testimonial-card p {
  flex: 1;
  margin-bottom: 0;
  color: #124678;
}
.testimonial-card strong {
  color: #32A86B;
  font-size: 1rem;
  min-width: 160px;
  text-align: right;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; gap: 10px; align-items: flex-start; }
  .testimonial-card strong { text-align: left; margin-top: 10px; }
}

/* Feature Grid (index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
  list-style: none;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #F5F7FA;
  border-radius: 12px;
  padding: 22px 24px 15px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0px 0.5px 10px 0 rgba(18,70,120, 0.045);
}
.feature-grid img {
  width: 38px; height: 38px; margin-bottom: 2px;
  filter: saturate(1.2) brightness(1.04);
}
.feature-grid strong {
  font-size: 1.05rem;
  color: #124678;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* FAQ (Cennik) */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.faq-list > div {
  background: #F5F7FA;
  border-radius: 12px;
  box-shadow: 0px 1.5px 10px 0 rgba(50,168,107,.04);
  padding: 20px 24px;
  flex: 1 1 260px;
  min-width: 200px;
}
.faq-list strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #124678;
}
.faq-list p {
  margin: 0.3em 0 0 0;
}

/* Table (Cennik) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: 0 .5px 8px 0 rgba(18,70,120,.04);
  border-radius: 10px;
  overflow: hidden;
}
thead {
  background: #124678;
  color: #fff;
}
th, td {
  padding: 16px 12px;
  min-width: 120px;
  font-family: 'Open Sans', Arial, sans-serif;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}
tbody tr:nth-child(odd) {
  background: #F5F7FA;
}
tbody tr:nth-child(even) {
  background: #fff;
}
table tr:hover {
  background: #eaf3fa; /* subtle highlight */
}

/* Footer */
footer {
  margin-top: 50px;
  background: #124678;
  color: #fff;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px 0 rgba(50, 168, 107, 0.10);
}
footer section {
  padding: 40px 0 10px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
}
footer img {
  max-height: 48px;
  margin-bottom: 18px;
}
footer .text-section {
  color: #fff;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 8px;
}
footer a, footer a:visited {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
footer a:hover, footer a:focus {
  color: #32A86B;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 800px) {
  footer .content-wrapper { flex-direction: column; gap: 18px; }
}

/* Misc Content */
.text-section {
  font-size: 1.0625rem;
  color: #234670;
  margin-bottom: 12px;
  max-width: 680px;
}
.text-section p, .text-section ul, .text-section ol {
  margin-bottom: 1em;
}
.text-section ul {
  padding-left: 1.2em;
  margin-left: 0;
}
.text-section li {
  margin-bottom: 0.35em;
  color: #235268;
}

/* Responsive Layouts */
@media (max-width: 991px) {
  .card-container, .content-grid, .feature-grid, .faq-list, .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 720px) {
  .container { padding: 0 10px; }
  .section { padding: 24px 6px; }
  main > section { padding-top: 16px; }
  header img[alt^="Blinxar"] { max-height: 38px; min-width: 95px; margin-right: 10px; }
}

/* Margins for adequate spacing between ALL content cards/sections */
.card, .testimonial-card, .feature-grid li, .faq-list > div {
  margin-bottom: 20px;
}
main > section {
  margin-bottom: 60px !important;
}

/* Z-index stacking for overlays */
.mobile-menu { z-index: 1100; }
.mobile-menu-toggle { z-index: 1101; }
.mobile-menu-close { z-index: 1101; }

/* Micro-interactions (buttons, cards) */
button, .btn-primary, .btn-link {
  transition: background 0.2s, color .2s, transform 0.2s, box-shadow 0.2s;
}
a, .btn-link { outline: none; }

/* Geometric Buttons & Elements */
.btn-primary,.btn-link, .btn-secondary, .cookie-btn {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px 0 rgba(18,70,120,0.07);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  padding: 22px 18px 18px 18px;
  background: #fff;
  border-top: 3.5px solid #32A86B;
  box-shadow: 0 -2px 24px 0 rgba(18,70,120,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2100;
  animation: cookieSlideUp 0.6s cubic-bezier(.6,.03,.35,.99);
  gap: 18px;
}
@keyframes cookieSlideUp {
  0% { opacity: 0; transform: translateY(64px); }
  90% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #124678;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  min-width: 120px;
  padding: 10px 16px;
  background: #32A86B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(50,168,107,.04);
}
.cookie-btn.secondary { background: #124678; }
.cookie-btn.outline {
  background: #fff;
  color: #32A86B;
  border: 2px solid #32A86B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #124678;
  color: #fff;
}
.cookie-btn.outline:hover, .cookie-btn.outline:focus {
  background: #32A86B;
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(18,70,120,0.55);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.21s linear;
}
@keyframes fadeInCookieModal {
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 44px 0 rgba(18,70,120,0.19);
  max-width: 430px;
  width: 95%;
  padding: 34px 26px 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: scaleModal .25s cubic-bezier(.6,.02,.4,1);
}
@keyframes scaleModal {
  0% { opacity: 0; transform: scale(.8); }
  80% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  color: #124678;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #32A86B;
}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  color: #124678;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #124678;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #32A86B;
  width: 21px; height: 21px;
  cursor: pointer;
}
.cookie-category .essential { color: #aaa; font-style: italic; }

/* Utility */
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }

/* Geometric Accent Decorations (optional for geometric style) */
.geometric-accent {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #32A86B;
  clip-path: polygon(100% 0,0 0, 100% 100%);
  margin-right: 6px;
}

/* Focus visible styling for accessibility */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-link:focus-visible {
  outline: 2.5px solid #32A86B;
  outline-offset: 1.5px;
}

/* Hide visually but keep for accessibility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive tweaks for very small screens */
@media (max-width: 480px) {
  .btn-primary, .btn-link, .cookie-btn {
    width: 100%;
    min-width: 1px;
    padding: 10px 3px;
    font-size: 1rem;
  }
  .cookie-modal { padding: 18px 7px; }
}

/* Ensure adequate spacing for all cards/sections */
.section, .card, .card-container, .testimonial-card, .feature-grid li, .faq-list > div, main > section, .cookie-banner {
  margin-bottom: 20px;
}

/* END OF STYLE */
