/* CSS RESET & NORMALIZATION */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  background: #fff;
  color: #242B35;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FONT FACES */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 24px;
  color: #242B35;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #242B35;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #242B35;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul li, ol li, blockquote, table, td, th {
  font-size: 1rem;
  color: #242B35;
}
strong, b {
  font-family: inherit;
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #242B35;
  border-left: 4px solid #4FB286;
  padding-left: 20px;
  margin-bottom: 8px;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #fff;
}

/* FLEX-BASED PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(36,43,53,0.05);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(79,178,134,0.08);
}
.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: center;
  gap: 20px;
  padding: 20px 28px;
  background: #F5F7FA;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(36,43,53,0.05);
  max-width: 540px;
  width: 100%;
  transition: box-shadow 0.2s;
}
.testimonial-card blockquote {
  color: #242B35;
}
.testimonial-card span {
  color: #4FB286;
  font-size: 1rem;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: #F5F7FA;
  margin-bottom: 60px;
  padding: 56px 0 56px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
}
.hero h1 {
  text-align: center;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 24px;
  color: #242B35;
}
.hero .cta-primary {
  align-self: center;
}

/* FEATURE GRIDS & LISTS */
.features .feature-grid,
.services-short .service-list,
section .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.features .feature-grid > div,
.services-short .service-list > div,
section .feature-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,43,53,0.04);
  flex: 1 1 220px;
  min-width: 220px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features .feature-grid > div:hover,
.services-short .service-list > div:hover,
section .feature-grid > div:hover {
  box-shadow: 0 4px 18px rgba(79,178,134,0.09);
  transform: translateY(-4px);
}

.features img, .services-short img, section .feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

/* CASE STUDY LIST (Realizacje) */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.case-study-list > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,43,53,0.04);
  flex: 1 1 320px;
  min-width: 280px;
  padding: 22px 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-study-list > div:hover {
  box-shadow: 0 8px 32px rgba(79,178,134,0.07);
  transform: translateY(-2px) scale(1.02);
}

/* BUTTONS & CTA */
.cta-primary, .cta-final .cta-primary {
  background: #4FB286;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 34px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(79,178,134,0.07);
  display: inline-block;
}
.cta-primary:hover, .cta-final .cta-primary:hover, .cookie-banner .cookie-accept:hover {
  background: #242B35;
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,43,53,0.10);
}

.cta-final {
  background: #F5F7FA;
  margin-bottom: 40px;
  padding: 45px 0;
}
.cta-final h2, .cta-final p {
  text-align: center;
}

/* LINKS */
a {
  color: #4FB286;
  transition: color 0.18s;
}
a:hover, .footer-nav a:hover {
  color: #242B35;
  text-decoration: underline;
}

/* MAIN NAVIGATION */
header {
  background: #fff;
  border-bottom: 1px solid #F5F7FA;
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 0 16px 0;
}
.main-nav > a img {
  height: 36px;
  margin-right: 10px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #242B35;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a.cta-primary {
  background: #4FB286;
  color: #fff;
  padding: 9px 22px;
  margin-left: 18px;
  box-shadow: 0 3px 12px rgba(79,178,134,0.09);
}
.main-nav a.cta-primary:hover {
  background: #242B35;
  color: #fff;
}
.main-nav a:hover:not(.cta-primary) {
  background: #F5F7FA;
  color: #4FB286;
}
/* Hide mobile toggle by default */
.mobile-menu-toggle {
  display: none;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.46,0.03,0.52,0.96);
  box-shadow: -6px 0 32px rgba(36,43,53,0.09);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #242B35;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 36px;
  transition: color 0.22s;
  z-index: 1002;
}
.mobile-menu-close:hover {
  color: #4FB286;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: #242B35;
  padding: 18px 0 8px 0;
  text-align: left;
  border-bottom: 1px solid #F5F7FA;
  transition: color 0.21s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #4FB286;
  background: #F5F7FA;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #F5F7FA;
  padding: 32px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
footer .content-wrapper > * {
  min-width: 180px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  font-size: 1rem;
  color: #4FB286;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #242B35;
}
.contact-details p, .contact-details a {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.6;
}
.contact-details a {
  text-decoration: underline;
  color: #4FB286;
  transition: color 0.16s;
}
.contact-details a:hover {
  color: #242B35;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
}
th, td {
  border-bottom: 1px solid #F5F7FA;
  text-align: left;
  padding: 13px 10px;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #242B35;
  background: #F5F7FA;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* NEWSLETTER CTA & BLOG HIGHLIGHT */
.newsletter-cta, .blog-highlight {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(36,43,53,0.04);
}
.latest-posts ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* GENERAL LISTS */
ul,
ol {
  margin-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
ul li strong, ol li strong {
  color: #242B35;
}

/* UTILITY CLASSES (FOR SPACING & FLEX) */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

/* MAP, CONTACT DETAILS ICONS */
.contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: sub;
  opacity: 0.8;
}
.map-location {
  text-align: center;
  margin: 18px 0;
}
.map-location em {
  color: #4FB286;
}

/* RESPONSIVE DESIGN (MOBILE FIRST) */
@media (max-width: 1024px) {
  .container {
    max-width: 90vw;
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .features .feature-grid,
  .services-short .service-list,
  section .feature-grid,
  .card-container,
  .content-grid,
  .case-study-list {
    flex-direction: column;
    gap: 20px;
  }
  footer .container, footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.45rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4FB286;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1001;
    transition: color 0.17s;
  }
  .mobile-menu-toggle:hover {
    color: #242B35;
  }
  .section, section {
    padding: 30px 0;
    margin-bottom: 36px;
  }
  .hero {
    padding: 32px 0;
    margin-bottom: 32px;
  }
  .features .feature-grid,
  .services-short .service-list,
  section .feature-grid,
  .card-container,
  .content-grid,
  .case-study-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 8px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 17px;
  }
  .container {
    max-width: 98vw;
    padding: 0 4px;
  }
  h1, .h1 {
    font-size: 1.35rem;
  }
  h2, .h2 {
    font-size: 1.12rem;
  }
  .hero .container {
    padding: 0 4px;
  }
  .testimonial-card {
    padding: 17px 11px;
  }
}

/* TABLE RESPONSIVENESS */
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th, td {
    padding: 10px 8px;
    border-bottom: none;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(36,43,53,0.04);
    padding: 12px 7px;
  }
  td:before {
    content: attr(data-label)":";
    display: block;
    font-weight: 700;
    color: #4FB286;
    margin-bottom: 2px;
  }
}

/* TRANSITIONS */
a, .cta-primary, .main-nav a, .footer-nav a, .mobile-nav a, .mobile-menu-close, .mobile-menu-toggle {
  transition: color 0.21s, background 0.21s, box-shadow 0.22s;
}

/* SCROLLBAR - minimalist, subtle */
::-webkit-scrollbar { width: 9px; background: #F5F7FA; }
::-webkit-scrollbar-thumb { background: #E4E6EA; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  border-top: 2px solid #4FB286;
  box-shadow: 0 -6px 30px rgba(36,43,53,0.09);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 40px 22px 28px;
  font-size: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.3,0,0.6,1), opacity 0.22s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-message {
  color: #242B35;
  font-size: 1rem;
  flex: 2 1 auto;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-accept, .cookie-decline, .cookie-settings {
  padding: 8px 24px;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  background: #4FB286;
  color: #fff;
  font-weight: 600;
  transition: background 0.18s, color 0.19s;
}
.cookie-decline {
  background: #F5F7FA;
  color: #242B35;
  font-weight: 600;
  border: 1px solid #E4E6EA;
}
.cookie-decline:hover {
  background: #E4E6EA;
  color: #4FB286;
}
.cookie-settings {
  background: transparent;
  color: #4FB286;
  border: 1px solid #4FB286;
}
.cookie-settings:hover {
  background: #4FB286;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 12px 18px 12px;
    gap: 18px;
    font-size: 0.98rem;
  }
  .cookie-banner-actions {
    gap: 7px;
    flex-wrap: wrap;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(36, 43, 53, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 11px;
  max-width: 460px;
  width: 96vw;
  box-shadow: 0 8px 32px rgba(36,43,53,0.14);
  padding: 40px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalIn 0.33s cubic-bezier(0.48,0.06,0.67,0.99);
}
@keyframes cookieModalIn {
  0% { transform: translateY(60px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #242B35;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: #4FB286;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #242B35;
}
.cookie-category input[type=checkbox] {
  accent-color: #4FB286;
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.cookie-category.essential label {
  font-weight: 600;
  color: #4FB286;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .cookie-modal {
    padding: 24px 6vw 16px 6vw;
    font-size: 0.97rem;
    min-width: 0;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 9px;
  }
}

/* MICROINTERACTIONS */
.cta-primary, .main-nav a, .footer-nav a, .mobile-nav a, .cookie-accept, .cookie-decline, .cookie-settings {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, transform 0.13s;
}
.cta-primary:active, .main-nav a:active, .footer-nav a:active, .mobile-nav a:active, .cookie-accept:active, .cookie-decline:active, .cookie-settings:active {
  transform: scale(0.98);
}

/* MISC */
::-moz-selection {
  background: #4FB286;
  color: #fff;
}
::selection {
  background: #4FB286;
  color: #fff;
}

/* END */
