/* === 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;
}
html {
  height: 100%;
}
body {
  min-height: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #28623C;
  background: linear-gradient(135deg,#e5f0db 0%,#a9cf8d 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #28623C;
  text-decoration: none;
  transition: color .24s;
}
a:hover, a:focus {
  color: #1b3e2a;
  text-decoration: underline;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  border-radius: 0;
  background: none;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* === BRAND COLORS AS CSS VARIABLES === */
:root {
  --primary: #28623C;
  --secondary: #A9CF8D;
  --accent: #E5F0DB;
  --text-main: #28623C;
  --white: #fff;
  --black: #102013;
  --gray: #f7faf2;
  --shadow: 0 4px 24px 0 rgba(40,98,60,.10);
}

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
p {
  font-size: 1.0625rem;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 16px;
}
strong { font-weight: 700; }
small { font-size: 0.92em; }

/* === CONTAINER & SECTIONS === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none; /* transparent, gradient only in hero/cta for clear look */
  border-radius: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
}
@media (max-width: 992px) {
  .container { padding: 0 14px; }
  .section, main > section { padding: 28px 8px; }
}
@media (max-width: 600px) {
  .section, main > section { padding: 20px 4px; }
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 24px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}
.hero .container,
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--primary);
}
.hero h2 {
  font-size: 1.35rem;
  color: var(--black);
  margin-bottom: 10px;
  font-weight: 700;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.1rem; }
}

/* === NAVIGATION === */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 22px 0 rgba(40,98,60,.06);
  z-index: 20;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 16px 0 12px 0;
}
.main-nav .logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.0625rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .16s, color .16s;
}
.main-nav a.cta.primary-btn {
  color: var(--white);
  background: linear-gradient(90deg,var(--primary), var(--secondary));
  padding: 8px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow);
  margin-left: auto;
  transition: background .18s, color .18s, box-shadow .20s;
}
.main-nav a.cta.primary-btn:hover {
  background: linear-gradient(90deg,var(--secondary),var(--primary));
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(40,98,60,.24);
}
.main-nav a:hover:not(.cta) {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 1000px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 1rem; }
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 8px 14px;
  font-size: 2rem;
  z-index: 101;
  cursor: pointer;
  transition: background .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

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

/* === MOBILE MENU === */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.39,.58,.57,1.31), box-shadow .32s;
  box-shadow: 0 0 0 0 transparent;
  padding: 28px 20px 20px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 24px 0 rgba(40,98,60,.23);
}
.mobile-menu-close {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  margin-bottom: 20px;
  align-self: flex-end;
}
.mobile-menu-close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial,sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid #d8e8c6;
  transition: background .18s, color .18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: var(--secondary);
  background: var(--white);
  border-radius: 8px;
}

/* Prevent scrolling behind the menu */
body.menu-open {
  overflow: hidden;
}

/* === FEATURES SECTION === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 10px;
}
.feature-grid > li {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 24px 20px 16px 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  min-width: 215px;
  transition: box-shadow .2s, transform .2s;
  gap: 10px;
}
.feature-grid > li img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid > li:hover {
  box-shadow: 0 8px 32px 0 rgba(40,98,60,.11);
  transform: translateY(-2px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > li { min-width: unset; }
}

/* === SERVICES LIST === */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 14px;
  width: 100%;
}
.services-list li {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 20px 14px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.09rem;
  transition: box-shadow .2s, transform .2s;
}
.services-list li strong, .services-list h3 {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}
.services-list h3 span {
  font-size: .98em;
  font-weight: 600;
  color: var(--secondary);
  margin-left: 8px;
}
.services-list li:hover {
  box-shadow: 0 8px 32px 0 rgba(40,98,60,.12);
  transform: translateY(-2px) scale(1.025);
}

/* === TESTIMONIALS === */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(40,98,60,0.06);
  padding: 32px 24px 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 410px;
  width: 100%;
  transition: box-shadow .2s, background .24s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 17px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Open Sans', Arial,sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.testimonial-card:hover {
  background: var(--secondary);
  box-shadow: 0 6px 30px 0 rgba(40,98,60,.13);
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { max-width: 100%; }
}

/* === TIP & FAQ CARDS (PORADY) === */
.tip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.tip-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 14px;
  max-width: 320px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.tip-card:hover {
  box-shadow: 0 8px 32px 0 rgba(40,98,60,.15);
  transform: translateY(-2px) scale(1.025);
}
.faq-list h3 {
  color: var(--primary);
  margin-top: 20px;
  font-size: 1.17rem;
  font-weight: 700;
}
.faq-list p {
  margin-bottom: 16px;
}

/* === CARDS (GENERIC) & CARD-CONTAINER === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 14px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 30px 0 rgba(40,98,60,.10);
  transform: translateY(-1.5px) scale(1.01);
}

/* === CTA SECTIONS & BUTTONS === */
.cta, .primary-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 13px 34px;
  border-radius: 25px;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 18px 0 rgba(40,98,60,.11);
  cursor: pointer;
  border: none;
  outline: none;
  transition: background .21s, color .21s, box-shadow .22s, transform .14s;
}
.cta.primary-btn:hover, .primary-btn:focus {
  background: linear-gradient(90deg,var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 7px 28px 0 rgba(40,98,60,.21);
  transform: translateY(-2px) scale(1.045);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .logo img {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial,sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color .16s, text-decoration .16s;
}
.footer-nav a:hover {
  text-decoration: underline;
  color: var(--secondary);
}
.footer-contact {
  font-size: 1.04rem;
  margin-top: 7px;
  color: var(--accent);
  font-family: 'Open Sans', Arial,sans-serif;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* === FORM/CONTACT INFO === */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
  font-size: 1.11rem;
  color: var(--primary);
}
.contact-info a { color: var(--primary); text-decoration: underline; }
.contact-info a:hover { color: var(--secondary); }

/* === TEAM & VALUES (ABOUT US) === */
.brand-values, .team-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  font-size: 1.09rem;
  color: var(--primary);
}

/* === CUSTOM FLEX UTILS FROM INSTRUCTION === */
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === RESPONSIVE FLEX ADJUSTMENTS === */
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-grid, .testimonial-slider, .tip-cards {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  width: 100vw;
  left: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 -3px 25px 0 rgba(20,52,30,.16);
  padding: 18px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-size: 1.03rem;
  animation: slideInUp .6s cubic-bezier(.27,.77,.74,1.19);
}
@keyframes slideInUp {
  0% { transform:translateY(100%); opacity:0; }
  100% { transform:translateY(0); opacity:1; }
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(40,98,60,.09);
  transition: background .17s, color .17s, box-shadow .19s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover { background: var(--accent); }

.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-btn.reject:hover { background: var(--accent); }

.cookie-btn.settings {
  background: transparent;
  color: var(--accent);
  border: 1.3px solid #fff;
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(19,42,24,.36);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s;
}
@keyframes fadeIn {
  0% {opacity:0;} 100%{opacity:1;}
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(40,98,60,.19);
  max-width: 460px;
  width: 92vw;
  padding: 32px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn .3s cubic-bezier(.36,.47,.22,1.45);
}
@keyframes popIn {
  0% {transform: scale(.8); opacity:.2;} 100%{transform: scale(1); opacity:1;}
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 4px 15px;
  cursor: pointer;
  transition: background .12s, color .14s;
}
.cookie-modal .close-modal:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
  font-size: 1.06rem;
}
.cookie-cat:last-child {
  border-bottom: none;
}
.cookie-cat label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-cat input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
}
.cookie-cat input[disabled] {
  accent-color: var(--primary);
  cursor: not-allowed;
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

/* Disable scroll when modal open */
body.cookie-modal-open {
  overflow: hidden;
}

/* === THANK YOU / SUCCESS MESSAGE === */
.thankyou-message {
  background: var(--accent);
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 48px auto;
}

/* === UTILITIES === */
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center !important; }

/* === FOCUSED STATE === */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
}

/* === Miscellaneous Section-specific === */
@media (max-width: 600px) {
  .hero, .section, main > section {
    border-radius: 0;
  }
  .testimonial-card,
  .card, .services-list li,
  .feature-grid > li, .tip-card {
    padding: 14px 7px;
  }
}

/* === TRANSITIONS & MICRO-INTERACTIONS === */
.card, .testimonial-card, .tip-card, .feature-grid > li, .services-list li {
  transition: box-shadow .18s, background .15s, transform .15s;
}

/* === PRINT SUPPORT (OPTIONAL) === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
