/* =========================
   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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
html { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F5FAEF; }
ul,ol { list-style: none; }
a { color: inherit; text-decoration: none; background-color: transparent; }
img { display: block; max-width: 100%; height: auto; border: 0; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }

/* =========================
   BRAND & COLORS
   ========================= */
:root {
  --color-primary: #256140;
  --color-secondary: #6DBC89;
  --color-accent: #F5FAEF;
  --color-bg: #F5FAEF;
  --color-dark: #22313F;
  --color-gray: #e0e7ef;
  --color-lightgray: #f3f6fb;
  --color-text: #22313F;
  --color-heading: #256140;
  --color-link: #256140;
  --color-link-hover: #6DBC89;
  --color-border: #d3dee6;
  --color-shadow: rgba(34,49,63,0.07);
  --transition-main: 0.25s cubic-bezier(.43,.33,.25,1);
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-heading);
}
h1 { font-size: 2.4rem; margin-bottom: 24px; line-height: 1.18; }
h2 { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.24; }
h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.3; }
h4, h5, h6 { font-size: 1rem; }
p {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 1rem;
}
ul, ol { margin-bottom: 16px; }
strong, b { font-weight: 700; }

@media (min-width:600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Visual hierarchy for corporate style */
.section h1, .section h2 { border-left: 4px solid var(--color-secondary); padding-left: 16px; }

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 16px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 4px;
    margin-bottom: 32px;
  }
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.logo img {
  width: 135px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-left: 32px;
}
.main-nav a {
  color: var(--color-link);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  transition: color var(--transition-main);
  font-size: 1rem;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-link-hover);
}
.cta-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 32px;
  padding: 12px 32px;
  margin-left: 32px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
  border: none;
  outline: none;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--color-shadow);
}
.cta-secondary {
  background: var(--color-bg);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 28px;
  font-size: 1rem;
  transition: background var(--transition-main), color var(--transition-main), border var(--transition-main);
  margin-top: 14px;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}

.mobile-menu-toggle {
  background: #fff;
  color: var(--color-primary);
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 2px 10px 0 10px;
  margin-left: 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 4px var(--color-shadow);
  display: none;
  z-index: 1201;
  transition: background var(--transition-main), border var(--transition-main);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  border: 1.5px solid var(--color-primary);
  background: var(--color-gray);
}

@media (max-width: 992px) {
  .main-nav { gap: 20px; }
  .cta-primary { margin-left: 16px; padding: 10px 16px; font-size: 0.95rem; }
}

@media (max-width: 820px) {
  .main-nav, .cta-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,63, 0.96);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.43,.33,.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 20px 0 0;
  font-size: 2.3rem;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  width: 42px; height: 42px;
  border: none;
  transition: background var(--transition-main);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  align-items: stretch;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-main), color var(--transition-main);
  text-align: left;
  letter-spacing: .5px;
  cursor: pointer;
  width: 100%;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 820px) {
  .mobile-menu {
    display: flex;
  }
}

/* =========================
   HERO & GENERAL SECTIONS
   ========================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  background: var(--color-bg);
}

/* =========================
   FLEX LAYOUT UTILS
   ========================= */
.features-grid, .services-list, .benefits-list, .topics-list, .team-section, .blog-articles-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features-grid .feature,
.benefits-list .benefit,
.topics-list .topic,
.services-list .service,
.team-section .team-member,
.blog-articles-grid article {
  background: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 13px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 350px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--color-gray);
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  margin-bottom: 20px;
  position: relative;
}
.features-grid .feature:hover,
.benefits-list .benefit:hover,
topics-list .topic:hover,
.services-list .service:hover,
.team-section .team-member:hover,
.blog-articles-grid article:hover {
  box-shadow: 0 8px 32px rgba(34,49,63,0.17);
  transform: translateY(-3px) scale(1.02);
}
.services-list .service,
.benefits-list .benefit,
.team-section .team-member,
.topics-list .topic,
.blog-articles-grid article {
  padding: 22px 16px;
  min-width: 180px;
}
/* Testimonials and special sections */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  color: var(--color-dark);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(34,49,63,0.11);
  padding: 26px 24px 20px 24px;
  min-width: 240px; max-width: 360px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #22313F;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 1.1em;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 0.97em;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: .1em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,49,63,0.18);
  transform: translateY(-2px) scale(1.02);
}

.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;
  }
  .features-grid, .services-list, .benefits-list, .topics-list, .team-section, .blog-articles-grid, .testimonials-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 13px;
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px; max-width: 340px;
  border: 1px solid var(--color-gray);
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(34,49,63,0.14);
  transform: scale(1.028);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Miscellaneous Section Spacing */
.section:not(:last-child) { margin-bottom: 60px; }
.section > .container { width: 100%; }

/* Blog 
-------------------*/
.blog-featured {
  background: var(--color-gray);
  padding: 32px 26px;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
}
.blog-featured h2 {
  color: var(--color-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0;
  letter-spacing: .08em;
  font-weight: 700;
}
.blog-featured h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.blog-articles-grid {
  gap: 22px;
}
.blog-articles-grid article {
  background: #fff;
}
.blog-articles-grid article a {
  color: var(--color-link);
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.blog-articles-grid article a:hover,
.blog-articles-grid article a:focus {
  color: var(--color-secondary);
  text-decoration: none;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #22472b;
  padding: 32px 12px 24px 12px;
  color: #e6f5df;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
  margin: 0 32px 0 0;
}
.footer-nav a {
  color: #e6f5df;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0;
  transition: color var(--transition-main);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 340px;
}
.footer-contact img {
  width: 38px;
  height: auto;
}
.footer-contact p,
.footer-contact a  {
  color: #e6f5df;
  font-size: 0.98em;
  line-height: 1.44;
}
.footer-contact a {
  text-decoration: underline;
}
@media (max-width: 920px) {
  footer { flex-direction: column; gap: 18px; align-items: flex-start; }
  .footer-contact { margin-top: 14px; }
}

/* =========================
   FORMS & INPUTS
   ========================= */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border var(--transition-main);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(34,49,63,0.09);
  border-top: 1.5px solid var(--color-secondary);
  z-index: 1400;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 24px 28px;
  gap: 24px;
  font-size: 1rem;
  flex-wrap: wrap;
  opacity: 1;
  transition: transform 0.35s var(--transition-main), opacity .35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner-message {
  max-width: 500px;
  color: var(--color-dark);
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 6px var(--color-shadow);
  margin: 0 0 0 2px;
  transition: background var(--transition-main), color var(--transition-main);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #e0e7ef;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ccdbe1;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 8px 10px 8px;
    gap: 12px;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 1600;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,49,63,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 26px 24px 26px;
  border-radius: 18px;
  min-width: 340px;
  max-width: 95vw;
  box-shadow: 0 8px 64px rgba(34,49,63,0.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 14px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-gray);
  border-radius: 7px;
  padding: 10px 16px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 21px; height: 21px;
  margin-right: 8px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category.essential label:after {
  content: '(zawsze włączone)';
  margin-left: 8px;
  color: #767e89;
  font-size: .95em;
  font-style: italic;
  font-weight: 400;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  border-radius: 50%;
  z-index: 2;
  width: 38px; height: 38px;
  transition: background .19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-gray);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .cookie-modal-content { min-width: 90vw; padding: 18px 4vw 14px 4vw; font-size: .98em; }
}

/* =========================
   UTILITY & STATE CLASSES
   ========================= */
.hide { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.gap-20 { gap: 20px !important; }
.text-center { text-align: center !important; }

/* =========================
   MEDIA QUERIES RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .container { padding: 0 4px; }
  header { padding: 10px 8px; }
  h1 { font-size: 2rem; }
  .footer-nav { margin: 0 0 14px 0; }
}

/* =========================
   SMOOTH ANIMATIONS
   ========================= */
a, button, .cta-primary, .cta-secondary, .main-nav a, .mobile-nav a, .cookie-btn {
  transition: color .18s, background .18s, border .18s, box-shadow .18s, transform .18s;
}
.section, .card, .testimonial-card, .feature, .benefit, .topic {
  transition: box-shadow .23s, transform .19s, background .19s;
}

/* =========================
   ICONS and small visuals
   ========================= */
.feature img, .benefit img, .contact-info img, .team-member img, .service-category img {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  display: block;
  border-radius: 8px;
  background: var(--color-accent);
  object-fit: contain;
}

/* Contact Details */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  padding: 9px 0;
  color: var(--color-text);
}
.contact-info a { color: var(--color-primary); font-weight: 500; text-decoration: underline; }
.map-embed h2 { margin-bottom: 5px; }

/* =========================
   ADDITIONAL STYLES
   ========================= */
.text-section ul {
  margin-bottom: 12px;
  padding-left: 24px;
}
.text-section ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 16px;
  color: var(--color-text);
}
.text-section ul li:before {
  content: '';
  display: inline-block;
  width: 7px; height:7px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-right: 7px;
  position: absolute;
  left: 0; top: 9px;
}
ol {
  padding-left: 25px;
}

.company-story {
  background: var(--color-gray);
  border-radius: 10px;
  padding: 18px 14px;
  margin-top: 12px;
}

/* Card/grid spacing for minimum 20px gap */
.card, .feature, .team-member, .benefit, .service, .service-category, .topic {
  margin-bottom: 20px;
}

/* Hide horizontal scroll */
body { overflow-x: hidden; }

/* =========================
   THANK YOU PAGE
   ========================= */
.thank-you h1 {
  margin-top: 30px;
  text-align: center;
}

/* =========================
   END CSS
   ========================= */
