/* ---------------------------------------------------
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #1f2b23;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus,
a:active {
  outline: 2px solid #295944;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------
   CSS CUSTOM PROPERTIES (FALLBACKS)
--------------------------------------------------- */
:root {
  --color-primary: #295944;
  --color-secondary: #7BB661;
  --color-accent: #F5FAF3;
  --color-text: #1f2b23;
  --color-muted: #61705c;
  --color-light: #fff;
  --color-shadow: rgba(41, 89, 68, 0.07);
  --border-radius: 12px;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---------------------------------------------------
   TYPOGRAPHY & HEADINGS
--------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, serif);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, span, strong {
  font-family: var(--font-body, sans-serif);
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 18px;
  color: var(--color-text);
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-secondary);
  border-left: 3px solid var(--color-secondary);
  margin: 28px 0 22px 0;
  padding: 10px 18px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
}

/* ---------------------------------------------------
   LAYOUT CONTAINERS & SPACING
--------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* custom gap for cards, wrapper, etc. */
.card-container, .features-list, .service-list, .tip-list, .testimonial-list, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Main Content Grid Layouts (Flex Only!) */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card {
  background: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Testimonials as distinctive cards */
.testimonials {
  background: var(--color-accent);
  padding-top: 24px;
  padding-bottom: 36px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px 18px 26px;
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 480px;
  color: var(--color-text);
}
.testimonial-card p {
  color: var(--color-text);
  font-size: 1.1rem;
  font-family: var(--font-display);
  text-align: center;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  text-align: center;
}

/* Project Descriptions (Realizacje) */
.project-descriptions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.project-highlights {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 20px 22px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 1px 5px var(--color-shadow);
}
.project-highlights h3 {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Section specific responsive padding */
.hero {
  background: linear-gradient(to bottom, #F5FAF3 0%, #fff 100%);
  padding-top: 60px;
  padding-bottom: 56px;
  min-height: 350px;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
}

/* Cards & Features */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.features-list li, .service-list li, .tip-list li {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 24px 20px 18px 20px;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features-list img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.service-list li {
  background: var(--color-light);
}

.tip-list li {
  background: var(--color-accent);
  border-left: 4px solid var(--color-secondary);
  box-shadow: 0 1px 7px var(--color-shadow);
}

.brand-values ul, .service-categories ul, .project-highlights ul {
  padding-left: 22px;
  margin-bottom: 0;
}
.brand-values ul li, .service-categories ul li, .project-highlights ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  color: var(--color-text);
}

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

/**** Contact Info ****/
.contact-info,
.opening-hours {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.contact-info img,
.opening-hours img {
  width: 22px;
  margin-right: 4px;
}

/**** Footer ****/
footer {
  background: #F5FAF3;
  border-top: 1px solid #e2e8dd;
  padding: 36px 0 24px 0;
  margin-top: 48px;
  font-size: 0.98rem;
  color: var(--color-muted);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-muted);
  font-weight: 500;
  transition: color var(--transition);
  font-size: 0.99rem;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
  margin-top: 12px;
}

/* ---------------------------------------------------
   BUTTONS
--------------------------------------------------- */
.button,
.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 30px;
  font-size: 1.08rem;
  border-radius: var(--border-radius);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform 0.15s cubic-bezier(0.4,0,0.2,1);
  margin: 0 0 0 18px;
  outline: none;
}
.button:not(.primary) {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
  margin-left: 0;
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}
.button:not(.primary):hover, .button:not(.primary):focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.button:active {
  transform: scale(0.98);
}

/* ---------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8dd;
  padding: 20px 0 14px 0;
  margin-bottom: 0;
  z-index: 40;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
header a img {
  max-height: 50px;
  height: 50px;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-left: 34px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.01rem;
  opacity: 0.89;
  transition: color var(--transition), opacity var(--transition);
  padding: 8px 0;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  background: var(--color-accent);
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 62;
}

/***** MOBILE MENU OVERRLAY *****/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41, 89, 68, 0.98);
  z-index: 1112;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.33,1,0.68,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 0 0;
  font-size: 2.3rem;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 25;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
  margin: 60px 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 0;
  transition: color var(--transition), background var(--transition);
  border-radius: 8px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hamburger visible on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .button.primary {
    display: none;
  }
}

/* Mobile Menu full screen */
@media (max-width: 768px) {
  .mobile-menu .mobile-nav {
    margin: 60px 16px 0 18px;
  }
}

/* ---------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 14px;
  }
  .features-list, .service-list, .card-container, .testimonial-list {
    gap: 18px;
  }
  .content-wrapper, .content-grid {
    gap: 18px;
  }
  .footer-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .project-descriptions {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 32px;
  }
  .section {
    margin-bottom: 40px;
    padding: 24px 8px;
  }
  .features-list, .service-list, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    min-width: unset;
    width: 100%;
    max-width: unset;
    padding: 16px 8px 14px;
  }
  .project-descriptions {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .footer-contact {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.13rem;
  }
  .footer-brand {
    font-size: 0.92rem;
  }
}
/* ---------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
--------------------------------------------------- */
.card, .features-list li, .service-list li, .tip-list li, .testimonial-card {
  transition: box-shadow var(--transition), transform 0.16s cubic-bezier(0.4,0,0.2,1);
}
.card:hover, .features-list li:hover, .service-list li:hover, .tip-list li:hover {
  box-shadow: 0 4px 20px var(--color-shadow);
  transform: translateY(-3px) scale(1.02);
}

/* ---------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1.5px solid #c3cfc4;
  box-shadow: 0 -4px 16px var(--color-shadow);
  width: 100vw;
  z-index: 1125;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 18px 16px;
  gap: 24px;
  animation: cookie-slidein 0.7s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__message {
  font-size: 1rem;
  color: var(--color-text);
  flex: 1 1 auto;
  margin-right: 12px;
}
.cookie-banner__controls {
  display: flex;
  gap: 16px;
  flex-direction: row;
  align-items: center;
}
.cookie-banner__button, .cookie-modal__button {
  padding: 9px 21px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 1px 8px var(--color-shadow);
  outline: none;
}
.cookie-banner__button.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner__button.accept:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner__button.reject {
  background: transparent;
  border: 1.2px solid var(--color-primary);
}
.cookie-banner__button.reject:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner__button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner__button.settings:hover, .cookie-modal__button:focus {
  background: #d7efce;
  color: var(--color-primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 17px 8px;
  }
  .cookie-banner__message {
    margin-right: 0;
  }
  .cookie-banner__controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }
}
.cookie-modal-overlay {
  position: fixed;
  background: rgba(41,89,68,0.48);
  z-index: 1400;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.3s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  max-width: 390px;
  width: 94vw;
  box-shadow: 0 4px 36px rgba(41, 89, 68, 0.17);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-slidein 0.22s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modal-slidein {
  from { transform: translateY(40px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-modal__close {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 14px;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal__close:hover {
  color: var(--color-primary);
}
.cookie-modal__title {
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal__category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-modal__category-label {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal__category.essential .cookie-modal__category-label {
  color: var(--color-muted);
  text-decoration: underline dotted;
}
.cookie-modal__button {
  margin-top: 10px;
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal__button:hover, .cookie-modal__button:active {
  background: var(--color-primary);
}

/* ---------------------------------------------------
   MISCELLANEOUS & ACCESSIBILITY
--------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #F5FAF3;
}
::-webkit-scrollbar-thumb {
  background: #e5eee0;
  border-radius: 8px;
}
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide <br> on mobile in contact-info */
@media (max-width: 340px) {
  .contact-info br {
    display: none;
  }
}

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