/* ===========================
   CSS RESET & BASE STYLES
=========================== */
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;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ===========================
   BRAND & VARIABLE DEFINITIONS
=========================== */
:root {
  --color-primary: #2E5E36;
  --color-primary-dark: #204423;
  --color-secondary: #F5F3ED;
  --color-secondary-dark: #EDEBE3;
  --color-accent: #B07D18;
  --color-accent-light: #E1AA48;
  --color-bg: #FFFFFF;
  --color-text: #22282A;
  --color-text-inverse: #FFFFFF;
  --color-shadow: rgba(60, 70, 65, 0.07);

  --font-display: 'Nunito', 'Montserrat', Arial, sans-serif;
  --font-body: 'Lato', 'Open Sans', Arial, sans-serif;
}

/* ===========================
   HTML/BODY BASE
=========================== */
html {
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}


/* ===========================
   TYPOGRAPHY / HEADINGS
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
p, ul, ol {
  font-size: 1.08rem;
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--color-text);
}
strong {
  font-weight: 700;
  color: var(--color-primary-dark);
}
blockquote {
  font-style: italic;
  line-height: 1.6;
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
  margin-bottom: 8px;
}
cite {
  font-size: 0.98rem;
  color: var(--color-accent);
  font-style: normal;
  margin-left: 10px;
}

/* ========== STRUCTURE ========== */
main {
  min-height: 72vh;
  background: var(--color-bg);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  max-width: 880px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
.hero {
  background: var(--color-secondary-dark);
  padding: 40px 0 30px 0;
}
.hero .content-wrapper {
  text-align: center;
}

/* ===========================
   NAVIGATION & HEADER
=========================== */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 2px 25px var(--color-shadow);
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0 18px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.main-nav a {
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.025em;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background: var(--color-accent-light);
  color: var(--color-bg);
  outline: none;
}
.main-nav img {
  width: 42px;
  height: 42px;
  margin-right: 6px;
}

.cta-btn {
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 7px var(--color-shadow);
  border: 2px solid var(--color-primary);
  margin-left: 10px;
  font-size: 1.08rem;
  text-transform: uppercase;
  transition: background 0.21s, color 0.21s, border 0.21s, box-shadow 0.21s, transform 0.13s;
  will-change: transform;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px var(--color-shadow);
  outline: none;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 18px;
  padding: 8px 12px;
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  background: var(--color-secondary-dark);
  border-radius: 10px;
  border: 2px solid var(--color-primary-dark);
  z-index: 120;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent-light);
  color: var(--color-bg);
  outline: none;
  box-shadow: 0 4px 12px var(--color-shadow);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.24);
  z-index: 200;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  transition: transform 0.35s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 12px;
  border: 2px solid var(--color-accent);
  position: absolute;
  right: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  outline: none;
}
.mobile-nav {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-left: 42px;
  padding-right: 24px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-secondary-dark);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-light);
  color: var(--color-bg);
  border-radius: 9px;
  outline: none;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 0.98rem;
  }
  .main-nav a {
    padding: 7px 10px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    padding-top: 0;
  }
}


/* ===========================
   LAYOUT UTILITIES (Flexbox patterns)
=========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px var(--color-shadow);
  position: relative;
  padding: 28px 24px 24px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px var(--color-shadow);
  z-index: 2;
  transform: translateY(-3px) scale(1.017);
}
.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;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px var(--color-shadow);
  margin-bottom: 20px;
  border-left: 7px solid var(--color-accent-light);
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ===========================
   REUSABLE COMPONENTS
=========================== */
ul, ol {
  margin-bottom: 24px;
  margin-left: 0;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 1.11rem;
  color: var(--color-text);
  line-height: 1.6;
}
ul li img {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
}

hr {
  border: none;
  border-bottom: 2px solid var(--color-secondary-dark);
  margin: 40px 0 32px 0;
}

/* Buttons (except for nav/cta) */
button, .button {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 1.06rem;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.18s, color 0.18s, border 0.19s, transform 0.13s, box-shadow 0.21s;
  outline: none;
  margin-right: 12px;
  margin-bottom: 6px;
}
button:last-child, .button:last-child { margin-right: 0; }
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary-dark);
  transform: scale(1.055) translateY(-1px);
  outline: none;
  box-shadow: 0 4px 18px var(--color-shadow);
}

/* Responsive images */
img {
  border-radius: 8px;
  box-shadow: none;
}


/* ===========================
   CARDS & TESTIMONIALS
=========================== */
.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.testimonial-card {
  background: #fff;
  border-left: 7px solid var(--color-accent-light);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.03rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow 0.11s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px var(--color-shadow);
  border-left: 7px solid var(--color-accent);
}


/* ===========================
   FORMS, FOOTER, ADDRESS
=========================== */
footer {
  width: 100%;
  background: var(--color-primary-dark);
  color: var(--color-bg);
  padding: 52px 0 20px 0;
  position: relative;
}
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-nav a {
  color: var(--color-accent-light);
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-bg);
  text-decoration: underline;
  outline: none;
}
footer address {
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: normal;
  font-size: 0.98rem;
  color: var(--color-secondary-dark);
  margin-bottom: 12px;
  letter-spacing: 0.025em;
}
.footer-logo {
  margin: 22px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo img {
  width: 51px;
  height: 51px;
  filter: drop-shadow(0 2px 10px var(--color-shadow));
  border-radius: 0;
}


/* ===========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 4500;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  box-shadow: 0 -2px 32px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  gap: 16px;
  animation: cookieBannerSlideIn 0.6s cubic-bezier(.6,1.2,.24,1) 1;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.04rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner .button, .cookie-banner button {
  min-width: 108px;
  font-size: 1.06rem;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-banner .button[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-bg);
  outline: 2px solid var(--color-accent-light);
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(41,41,41, 0.62);
  z-index: 4600;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  border-radius: 24px;
  max-width: 432px;
  width: 95vw;
  padding: 38px 34px 28px 34px;
  box-shadow: 0 7px 36px var(--color-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: cookieModalSlideDown 0.4s cubic-bezier(.42,1.5,.45,.99) 1;
}
@keyframes cookieModalSlideDown {
  from { transform: translateY(-80px) scale(0.94); opacity: 0.1; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  font-size: 2rem;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-primary);
  color: var(--color-bg);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  width: 100%;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 22px;
  height: 22px;
}
.cookie-category label {
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.cookie-category.essential label::after {
  content: "(zawsze włączone)";
  font-size: 0.88rem;
  color: var(--color-accent);
  margin-left: 7px;
}

/* ===========================
   GEOMETRIC/STRUCTURED SHAPES
=========================== */
.section, .card, .testimonial-card, .hero {
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
.card, .testimonial-card {
  border: 1.5px solid var(--color-secondary-dark);
}
/* Geometric block backgrounds near headings */
h2::before, .hero h1::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 14px;
  background: var(--color-accent-light);
  margin-right: 13px;
  border-radius: 4px 8px 2px 8px;
  vertical-align: middle;
}
.hero h1::before {
  height: 17px;
  background: var(--color-primary);
}

/* Accent angular underline for main headings */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  background: var(--color-accent-light);
  margin-top: 10px;
  border-radius: 2px 7px 7px 2px;
}


/* ===========================
   INTERACTIVITY & GENERAL TRANSITIONS
=========================== */
a, button, .button, .cta-btn {
  transition: 
    color 0.18s, background 0.22s, border 0.17s, 
    box-shadow 0.20s, transform 0.17s;
}
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
  z-index: 3;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 1020px) {
  .content-wrapper { max-width: 92vw; }
  .container { max-width: 97vw; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 900px) {
  .section { padding: 28px 8px; }
  .hero { padding: 29px 0 21px 0; }
}
@media (max-width: 768px) {
  .section { margin-bottom: 38px; padding: 25px 5px; }
  .hero { padding: 24px 0 13px 0; }
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.15rem; }
  .card-container, .content-grid { gap: 12px; }
  .testimonial-card { padding: 14px; font-size: 0.99rem; }
  .container, .content-wrapper { padding-left: 8px; padding-right: 8px; }
  .footer-logo img { width: 36px; height: 36px; }
  .footer-nav { gap: 12px; }
  .footer-logo { margin-top: 13px; }
  footer { padding: 31px 0 11px 0; }
  .cookie-modal { max-width: 99vw; padding: 23px 9px 17px 9px; }
  .cookie-banner { padding: 17px 3px 12px 3px; }
}
@media (max-width: 650px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 520px) {
  .container, .content-wrapper { padding-left: 2vw; padding-right: 2vw; }
  .footer-logo img { width: 27px; height: 27px; }
  h1, h2, h3 { text-align: left !important; }
  .hero .content-wrapper { text-align: left; }
}

/* Flex direction switches for text-image sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ===========================
   ACCESSIBILITY
=========================== */
button[disabled], .button[disabled], .cta-btn[disabled], .cookie-banner button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==============================
  GEOMETRIC BUTTON SHAPES (Angular)
============================== */
.cta-btn, button, .button {
  border-radius: 16px 28px 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-style: solid;
  border-width: 2px;
}

/* ===========================
   GEOMETRIC SPACING (useful margins)
=========================== */
.section + .section {
  margin-top: 18px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 22px !important;
}
.feature-item + .feature-item {
  margin-top: 11px;
}

/* Utility helpers (if needed) */
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ===========================
   PRINT
=========================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  .section { box-shadow: none !important; }
}

/* ===== END OF STYLE.CSS ===== */
