/* === CSS RESET & VARIABLES === */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F4F9F4;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C332C;
  font-size: 16px;
  font-weight: 400;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #276F52;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1b563d;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
strong, b {
  font-weight: 700;
}

:root {
  --color-primary: #276F52;
  --color-primary-dark: #184c33;
  --color-secondary: #A19986;
  --color-accent: #F4F9F4;
  --color-contrast-text: #2C332C;
  --color-light: #FFF;
  --color-warm1: #F9F6F2;
  --color-warm2: #FEEFD8;
  --color-shadow: rgba(39, 111, 82, 0.09);
  --shadow-soft: 0 4px 20px var(--color-shadow);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Lora', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --transition-base: 0.3s cubic-bezier(.29,.59,.36,1);
}


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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-warm1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
  color: #2C332C;
  font-size: 18px;
}
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.6;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-body);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
  line-height: 1.22;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-contrast-text);
  margin-bottom: 8px;
}
p, ul, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-contrast-text);
  margin-bottom: 8px;
}
ul li + li,
ol li + li {
  margin-top: 7px;
}


/* === BUTTONS === */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(39, 111, 82, 0.16);
  transition: background var(--transition-base), transform 0.22s;
  margin-top: 8px;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(39, 111, 82, 0.13);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 30px;
  cursor: pointer;
  margin-left: 12px;
  transition: background var(--transition-base), transform 0.2s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #8E8373;
  transform: scale(1.04);
}
.button-tertiary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 13px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  transition: background var(--transition-base), color var(--transition-base);
}
.button-tertiary:hover, .button-tertiary:focus {
  background: var(--color-warm2);
  color: var(--color-primary-dark);
}


/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px rgba(39, 111, 82, 0.07);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img[alt="EterOgród"] {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
/* Desktop main nav */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: #a2a5a4;
  font-size: 1rem;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-warm2);
  color: var(--color-primary-dark);
}
.main-nav .button-primary {
  margin-left: 22px;
}
.mobile-menu-toggle {
  display: none;
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, var(--color-warm1) 70%, var(--color-accent) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.hero .container {
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero p {
  max-width: 540px;
  font-size: 1.1rem;
  margin: 0 auto 18px auto;
}


/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 50px 0 28px 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -2px 28px rgba(39, 111, 82, 0.08);
}
footer .container {
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0.95;
  transition: opacity 0.18s;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  background: rgba(244, 249, 244, 0.14);
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.contact-info span {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
  font-family: var(--font-body);
  opacity: 0.96;
}
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 2px;
  opacity: 0.85;
}
footer p {
  margin-top: 20px;
  font-size: 0.97rem;
  opacity: 0.86;
}

/* === RESPONSIVE FLEXBOX & MOBILE-FIRST === */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid {
    gap: 20px;
  }
  .feature-item {
    max-width: 48%;
    min-width: 160px;
    flex: 1 1 160px;
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2.1rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    align-items: center;
    z-index: 20;
    margin-left: 8px;
  }
  footer .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .container {
    padding: 0 8px;
  }
  .hero .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.35rem;
  }
  .button-primary, .button-secondary, .button-tertiary {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 13px 10px;
  }
}


/* === MOBILE MENU (HAMBURGER NAVIGATION) === */
.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1002;
  transition: left 0.38s cubic-bezier(.42,.69,.45,1);
  box-shadow: -2px 0 45px rgba(39,111,82,0.12);
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  left: 0;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1003;
  padding: 7px 2px 7px 7px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-warm2);
  color: var(--color-primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 80px 28px 24px 28px;
}
.mobile-nav a {
  background: none;
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 14px 8px 14px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition-base), color var(--transition-base);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-warm2);
  color: var(--color-primary-dark);
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-close,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1300;
  background: var(--color-light);
  box-shadow: 0 -4px 32px rgba(39,111,82,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 22px 8px 22px 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.33s, opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-contrast-text);
  margin-right: 8px;
  max-width: 520px;
  line-height: 1.5;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 19px 8px;
  }
}

/* Cookie buttons use the same base button styles:*/
.cookie-banner .button-primary,
.cookie-banner .button-secondary,
.cookie-banner .button-tertiary {
  min-width: 110px;
  font-size: 1rem;
  padding: 10px 19px;
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1320;
  background: rgba(44,51,44, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.24s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(39,111,82, 0.18);
  width: 95vw;
  max-width: 400px;
  padding: 36px 26px 30px 26px;
  position: relative;
  z-index: 1322;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInUp 0.46s cubic-bezier(.29,.61,.51,1);
}
@keyframes fadeInUp {
  0% { opacity:0;transform:translateY(36px); }
  100% {opacity:1;transform:translateY(0);}
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ece7da;
  font-size: 1.03rem;
  font-family: var(--font-body);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-weight: 500;
  color: #2C332C;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #eaeace;
  border-radius: 12px;
  outline: none;
  position: relative;
  margin-left: 12px;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-primary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px; left: 3px;
  transition: left 0.18s, background 0.09s;
  box-shadow: 0 2px 8px rgba(39,111,82,0.13);
}
.cookie-toggle:checked::before {
  left: 17px;
  background: #fff;
}
.cookie-modal .button-primary, .cookie-modal .button-tertiary {
  margin-top: 16px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.4rem;
  padding: 5px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--color-warm2);
  color: var(--color-primary-dark);
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.button-primary, .button-secondary, .button-tertiary {
  transition: background var(--transition-base), color var(--transition-base), transform 0.18s;
}
.card, .feature-item, .testimonial-card, .section, .cookie-modal {
  transition: box-shadow 0.27s cubic-bezier(.33,.73,.36,1);
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 6px 32px rgba(39,111,82,0.18);
}

/* === UTILITIES === */
.mt-2 { margin-top: 8px !important;}
.mt-3 { margin-top: 16px !important;}
.mt-4 { margin-top: 24px !important;}
.mb-2 { margin-bottom: 8px !important;}
.mb-3 { margin-bottom: 16px !important;}
.mb-4 { margin-bottom: 24px !important;}
.pt-2 { padding-top: 8px !important;}
.pt-3 { padding-top: 16px !important;}
.pt-4 { padding-top: 24px !important;}
.text-center { text-align: center !important; }

/* === FORM CONTROLS (future expansions, e.g. contact forms) === */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #dadada;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--color-accent);
  box-sizing: border-box;
  color: #222;
  transition: border 0.18s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid var(--color-primary);
  outline: none;
  background: #fff;
}

/* === ADJUSTMENTS FOR MISCELLANEOUS HTML === */
.section ul, .section ol {
  margin-bottom: 10px;
  margin-left: 12px;
  padding-left: 18px;
}
.section ul li {
  margin-bottom: 6px;
  list-style: disc inside;
  color: var(--color-contrast-text);
}

/* === VISUAL SEPARATORS === */
hr {
  border: 0;
  border-top: 1.5px solid #e4dfd6;
  margin: 22px 0;
}

/* === ACCESSIBILITY & FOCUS STATES === */
a, button, input, textarea, select {
  outline-color: var(--color-primary);
  outline-width: 2px;
  outline-offset: 1px;
}

/* === OVERFLOW GUARD === */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}

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