/* ------------ 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,
main, 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%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F2F7F2;
  color: #11331E;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after { box-sizing: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
}
button { cursor: pointer; }

/* Font Faces - fallback */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');

/* ------------ CSS VARIABLES ------------ */
:root {
  --color-primary: #217A3E;
  --color-primary-dark: #195D2F;
  --color-secondary: #F2F7F2;
  --color-secondary-dark: #11331E;
  --color-accent: #56B6A2;
  --color-accent-light: #A9F5E1;
  --color-white: #fff;
  --color-bg-gradient: linear-gradient(110deg, #F2F7F2 60%, #56B6A2 100%);
  --shadow-card: 0 4px 20px 0 rgba(33, 122, 62, 0.09);
  --shadow-card-hover: 0 10px 32px 0 rgba(33, 122, 62, 0.14);
  --radius: 16px;
  --transition-main: 0.3s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ------------ LAYOUT CLASSES ------------ */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-gradient);
  border-radius: var(--radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px) scale(1.012);
}

.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;
  background: #F6FBF6;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- General Typography ------------- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
  line-height: 1.22;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
}
p, ul, li, td, th, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary-dark);
  line-height: 1.6;
}
strong { font-weight: 700; }

blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  line-height: 1.45;
  margin: 0;
}

a { color: var(--color-primary); transition: color .2s; }
a:hover, a:focus { color: var(--color-accent); }

.cta-btn, .cta-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-primary) 70%, var(--color-accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  padding: 16px 30px;
  border-radius: 28px;
  transition: background var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
  box-shadow: 0 1px 6px 0 rgba(33,122,62,0.10);
  text-decoration: none;
  margin: 10px 0 0 0;
  letter-spacing: 0.5px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-primary-dark) 70%, var(--color-accent) 100%);
  box-shadow: 0 4px 16px 0 rgba(33,122,62,0.17);
  transform: scale(1.03);
}

button, input[type="submit"], input[type="button"], .mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  border-radius: 22px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
}
button:hover, .mobile-menu-close:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--color-accent);
}

input, textarea, select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #dbeee1;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
  box-shadow: 0 1px 2px rgba(33,122,62,0.05);
  transition: border var(--transition-main);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-accent);
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #F7FDFC;
  font-weight: 700;
  color: var(--color-primary-dark);
}
td {
  border-top: 1px solid #E6F2EB;
  color: var(--color-primary-dark);
}

/* ------------ HEADER / NAVIGATION ------------ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 14px 0 rgba(33,122,62,0.06);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 68px;
  padding-top: 6px;
  padding-bottom: 6px;
  position: relative;
}
header img {
  height: 43px;
  margin-right: 12px;
}
header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 1rem;
  padding: 7px 8px;
  border-radius: 6px;
  transition: background var(--transition-main), color var(--transition-main);
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent-light);
  color: var(--color-primary);
}
.cta-btn {
  margin-left: auto;
  margin-right: 8px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--color-primary);
  border-radius: 50%;
  padding: 8px 10px;
  border: none;
  margin-left: 10px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent-light);
}

/* ---------- HERO STYLES ----------- */
.hero {
  width: 100%;
  background: linear-gradient(105deg, #56B6A2 0%, #F2F7F2 90%);
  padding: 50px 0 32px 0;
  position: relative;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 16px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary-dark);
}

/* -------- FEATURES/GRIDS/STEPS --------- */
.features-grid, .steps-grid, .diety-grid, .tips-grid, .skladniki-grid, .team-list, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.features-grid > div,
.steps-grid > div,
.diety-grid > div,
.tips-grid > div,
.skladniki-grid > div,
.team-list > div {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 28px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.features-grid > div:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px) scale(1.01); }

.steps-grid > div {
  border-top: 4px solid var(--color-accent);
  box-shadow: var(--shadow-card);
}

.team-member-card {
  background: var(--color-bg-gradient);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 5px solid var(--color-accent);
}

.skladniki-grid > div {
  border-left: 5px solid var(--color-accent);
}

.tips-grid > div {
  background: var(--color-accent-light);
}

.filters-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0 0 0;
  align-items: flex-start;
}
.search-bar {
  flex: 2 0 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-group h3 {
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: 1.1rem;
}
.filter-group ul li {
  padding: 6px 0;
  color: var(--color-primary-dark);
  border-bottom: 1px solid #E6F2EB;
}
.filter-group ul li:last-child {
  border-bottom: none;
}

/* ----------- TESTIMONIALS --------------*/
.testimonials-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.testimonial-card blockquote {
  color: #165A2E;
  font-style: italic;
  margin-right: 18px;
  margin-bottom: 8px;
}
.testimonial-info .author {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ----------- FORMS + NEWSLETTER ------------*/
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin: 18px 0;
}
form button[type="submit"], form button:not([type]), form input[type="submit"], form input[type="button"] {
  align-self: flex-start;
  min-width: 140px;
}

/* --------- FAQ --------- */
.faq .faq-item {
  background: #F7FDFC;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(86,182,162,0.086);
  padding: 20px 16px;
  margin-bottom: 18px;
}
.faq-contact {
  margin-top: 16px;
}

/* ----------- CALLOUT/ FEATURED/ THANK YOU --------------*/
.callout, .featured-recipe, .thank-you {
  width: 100%;
  background: linear-gradient(98deg, #56B6A2 0%, #F2F7F2 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 0;
  margin: 30px 0 0 0;
}

.callout .cta-btn, .featured-recipe .cta-btn, .thank-you .cta-btn {
  margin-top: 20px;
  background: linear-gradient(90deg, var(--color-accent) 70%, var(--color-primary) 100%);
}

.success-details {
  margin-top: 14px;
  color: var(--color-primary-dark);
  font-size: 1rem;
}

/* ----------- FOOTER --------------*/
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 12px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
footer nav a:hover {
  background: rgba(86,182,162,0.10);
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
}
.footer-contact a { color: #fff; text-decoration: underline; }
.footer-contact a:hover { color: var(--color-accent-light); }
.copyright {
  color: rgba(255,255,255,0.65);
  font-size: 0.94rem;
  font-family: var(--font-body);
  margin-top: 8px;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  .features-grid > div, .team-member-card, .skladniki-grid > div, .steps-grid > div, .tips-grid > div,
  .diety-grid > div {
    flex: 1 1 170px;
    min-width: 160px;
  }
}
@media (max-width: 820px) {
  .features-grid, .steps-grid, .diety-grid, .tips-grid, .skladniki-grid, .team-list, .testimonials-list {
    gap: 16px;
  }
  header .container, .footer-contact {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 5vw; }
  .section { padding: 28px 5vw; margin-bottom: 36px; }
  .hero { margin-bottom: 36px; padding: 35px 0 18px 0; }
  .content-wrapper, .features-grid, .steps-grid, .diety-grid, .tips-grid, .skladniki-grid, .team-list, .testimonials-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .filters-section { flex-direction: column; gap: 14px; }
  .callout, .featured-recipe, .thank-you { padding: 20px 0; }
  header nav { display: none; }
  .cta-btn { margin-left: 0; margin-right: 0; }
  .mobile-menu-toggle {
    display: inline-block;
  }
  footer .container {
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 520px) {
  h1, .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .cta-btn { font-size: 0.98rem; padding: 11px 18px; }
  .section, .thank-you, .callout, .featured-recipe { padding: 16px 2vw; }
  form { padding: 10px 8px; }
}

/* ------------ MOBILE MENU STYLES ------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1200;
  background: rgba(17, 51, 30, 0.90);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: #fff;
  border: none;
  margin: 24px 18px 8px 0;
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(86,182,162,0.16); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px 20px 34px;
  width: 90vw;
  max-width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -1px 0 16px 2px rgba(33,122,62,0.09);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 12px 6px;
  border-radius: 6px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

@media (min-width: 769px) {
  .mobile-menu { display: none; }
  .mobile-menu-toggle { display: none; }
}
/* Ensure no menu overlaps page content on smaller screens */
body.mobile-menu-open {
  overflow: hidden;
}

/* ---------- COOKIE BANNER AND MODAL ----------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  box-shadow: 0 -3px 18px 0 rgba(33,122,62,0.07);
  z-index: 1301;
  padding: 21px 8vw 20px 8vw;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  border-top: 2.5px solid var(--color-accent);
  animation: cookieSlideIn 0.38s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-primary-dark);
  font-size: 1rem;
  flex: 1;
  margin-right: 18px;
}
.cookie-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .cookie-setting-btn {
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 10px 20px;
  box-shadow: 0 1.5px 8px 0 rgba(86,182,162,0.07);
  margin: 0;
  transition: background 0.16s, transform 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-primary);
  transform: translateY(-1px) scale(1.02);
}
.cookie-banner .cookie-setting-btn {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: 1.2px solid var(--color-accent);
  font-size: 0.98rem;
  font-weight: 600;
}
.cookie-banner .cookie-setting-btn:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}
/* Responsive cookie banner */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 17px 4vw 18px 4vw;
    gap: 14px;
  }
  .cookie-btn-group { flex-wrap: wrap; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,122,62,0.14);
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.active { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 98vw;
  width: 380px;
  box-shadow: 0 12px 24px 0 rgba(33,122,62,0.14);
  padding: 34px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
}
.cookie-category-label {
  font-weight: 600;
  font-family: var(--font-display);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 22px;
  height: 22px;
}
.cookie-category input[disabled] {
  opacity: .48;
}
.cookie-modal-close {
  position: absolute;
  right: 13px; top: 9px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  padding: 0 5px 0 5px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.cookie-modal button.cancel {
  background: #fff;
  color: var(--color-primary-dark);
  border: 1.1px solid var(--color-accent);
}
.cookie-modal button.cancel:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}
.cookie-modal button.save:hover,
.cookie-modal button.save:focus {
  background: var(--color-primary);
}

/* ------------- UTILITIES -------------- */
.mt-20 { margin-top: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ------------- EXTRAS -------------- */
::-webkit-input-placeholder { color: #97BAB1; }
::-moz-placeholder { color: #97BAB1; }
:-ms-input-placeholder { color: #97BAB1; }
::placeholder { color: #97BAB1; }

/* Shadow for overlays */
.overlay {
  background: rgba(17, 51, 30, 0.32);
  position: fixed;
  z-index: 1450;
  left: 0; top: 0; right: 0; bottom: 0;
}

/* Remove any accidental horizontal scrolling */
html, body {
  overflow-x: hidden;
}
