/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #202825;
  color: #F3F6ED;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* --- BRAND VARIABLES --- */
:root {
  --color-primary: #2C5337;
  --color-primary-dark: #244428;
  --color-secondary: #F3F6ED;
  --color-bg: #202825;
  --color-accent: #E8A842;
  --color-accent-neon: #FFD700;
  --color-footer-bg: #232826;
  --color-white: #FFFFFF;
  --color-black: #141C16;
  --shadow-main: 0 8px 32px rgba(18,32,30,0.15);
  --shadow-neon: 0 0 8px 2px #E8A842cc, 0 0 20px 4px #FFD70066;
  --radius-main: 16px;
  --radius-card: 12px;
  --radius-btn: 32px;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY HIERARCHY --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--color-accent-neon);
  margin-bottom: 16px;
  text-shadow: 0 2px 16px #E8A84290;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--color-accent);
}
section ul {
  padding-left: 0;
}
@media (max-width: 600px) {
 h1, .h1 { font-size: 1.55rem; }
 h2, .h2 { font-size: 1.2rem; }
 h3, .h3 { font-size: 1rem; }
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- GENERAL LAYOUT & SECTIONS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #232826;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}
@media (max-width: 700px) {
  .section {
    margin-bottom: 32px;
    padding: 22px 8px;
  }
}

main > section {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #232826;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-main);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 40px #E8A84244, var(--shadow-main);
}

.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;
}
@media (max-width:768px){
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #99a97b;
  color: var(--color-black);
  box-shadow: 0 4px 28px #11182022;
  padding: 20px;
  border-radius: 12px;
  min-width: 250px;
  max-width: 420px;
  margin-right: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-accent);
  position: relative;
}
.testimonial-card strong {
  color: var(--color-primary-dark);
}
.testimonial-card div {
  font-size: 1.2rem;
  color: var(--color-accent);
}
@media (max-width:600px){
  .testimonial-card {
    max-width: 100%;
    min-width: 180px;
    padding: 14px;
    margin-right: 0;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, #232826, #202825 80%);
  box-shadow: 0 10px 36px #11182009;
  padding: 0 0 6px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img[alt="Ogród i Narzędzie"] {
  height: 44px;
  margin-right: 28px;
  filter: drop-shadow(0 0 10px #E8A84288);
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-size: 1.07rem;
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  background: #233222;
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-black);
  padding: 10px 34px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-neon);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.13s;
  outline: none;
  margin-left: 18px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 5;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD700;
  color: #232826;
  box-shadow: 0 0 16px 6px #FFD70070;
  transform: translateY(-2px) scale(1.035);
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  background: none;
  color: var(--color-accent);
  font-size: 2rem;
  border: none;
  padding: 2px 12px;
  border-radius: 12px;
  display: none;
  z-index: 30;
  transition: background 0.1s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #211d0c33;
}
@media (max-width: 980px) {
  .main-nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #202825ee;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.7,.2,.4,1.1);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: all;
  box-shadow: 0 0 50px #E8A84266, 0 12px 36px #202825e9;
}
.mobile-menu-close {
  color: var(--color-accent);
  background: none;
  font-size: 2.3rem;
  margin: 26px 22px 14px 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #31280d33;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  padding: 0 32px 32px 0;
  width: 100%;
  margin-top: 14px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.2rem;
  padding: 13px 32px 13px 0;
  width: 100%;
  border-radius: 12px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-black);
}

/* --- HERO/BANNER STYLES --- */
section:first-of-type {
  background: linear-gradient(110deg, #2c5337 30%, #232826 100%);
  box-shadow: 0 8px 40px #20282588;
}
section:first-of-type .container {
  padding-top: 16px;
  padding-bottom: 16px;
}
section:first-of-type .cta-btn {
  margin-top: 16px;
}

/* --- FEATURES & OFFER LISTS --- */
.content-wrapper ul { 
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 12px 4px;
  font-size: 1.13rem;
}
.content-wrapper ul li img {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 2px #E8A842aa);
}

/* --- CARDS --- */
.card {
  background: #1F2725;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px #E8A84220, var(--shadow-main);
  transition: box-shadow 0.2s, transform 0.18s;
  border: 1.5px solid #222c25;
}
.card:hover {
  box-shadow: 0 8px 40px #E8A84251;
  border-color: var(--color-accent);
}

/* --- BUTTONS & INTERACTIVES --- */
button, .cta-btn {
  transition: background 0.18s, color 0.17s, box-shadow 0.17s, transform 0.15s;
}

/* --- TESTIMONIALS --- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.testimonial-card {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 420px;
  background: #99a97b;
  color: var(--color-black);

  border-left: 5px solid var(--color-accent);
  box-shadow: 0 2px 24px #16201022, 0 0 1px #eee;
  margin-bottom: 20px;
  margin-right: 24px;
}
.testimonial-card:last-child { margin-right: 0; }

@media (max-width:800px){
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .testimonial-card {
    margin-right: 0;
    max-width: 100%;
  }
}

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-secondary);
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.contact-info img {
  width: 22px; height: 22px;
}

.map-location {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161b19;
  border-radius: 12px;
  min-width: 120px; min-height: 120px;
}
.map-location img {
  width: 100px;
  height: 100px;
  opacity: 0.6;
}

.client-logos img {
  height: 48px; width: auto;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-secondary);
  padding: 42px 0 22px 0;
  box-shadow: 0 -6px 26px #16201831;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 0.98rem;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: 12px;
  transition: color 0.14s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-black);
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.social-links a img {
  width: 36px; height: 36px;
  filter: drop-shadow(0 0 4px #E8A84255);
  transition: filter 0.18s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: drop-shadow(0 0 12px #FFD700cc);
}

@media (max-width: 870px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.25rem; }
  h2, .h2 { font-size: 1.08rem; }
  .container {padding-left: 6px; padding-right: 6px;}
}

@media (max-width: 580px) {
  .main-nav { gap: 6px; }
  .footer-nav { gap: 6px; }
  .container {padding-left: 2px; padding-right: 2px;}
  .cta-btn{padding:9px 20px; font-size:1rem;}
}

/* --- SPACE/ALIGNMENT ENFORCEMENT --- */
section, .card, .testimonial-card, .content-wrapper > *, .feature-item, .card-container > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child,
.card-container > *:last-child,
.feature-item:last-child { margin-bottom: 0; }

/* --- MICROLEVEL STYLING --- */
ul li strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: linear-gradient(90deg, #232826 92%, #E8A842 100%);
  color: var(--color-secondary);
  padding: 22px 30px 22px 12px;
  box-shadow: 0 -6px 26px #11182081;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  font-size: 1.05rem;
  border-top: 2px solid var(--color-accent);
  animation: cookie-fade-in 0.5s cubic-bezier(.41,.52,.44,.89);
}
@keyframes cookie-fade-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.cookie-btn {
  padding: 7px 24px;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-accent); color: var(--color-black);
  margin-left: 4px;
  margin-right: 4px;
  box-shadow: 0 2px 12px #E8A84270;
  transition: background 0.16s, color 0.14s, box-shadow 0.14s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFD700; color: #141c16;
  transform: scale(1.06);
}
.cookie-btn.secondary {
  background: #232826;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-accent);
  box-shadow: none;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #262f21; color: var(--color-accent);
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; gap: 12px; font-size: .96rem; align-items: flex-start; padding: 14px 8px 22px 6px;}
  .cookie-banner .cookie-actions { margin-left: 0; flex-wrap: wrap; gap: 8px;}
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  background: #1B211Eee;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: cookie-modal-fade-in 0.35s cubic-bezier(.41,.52,.44,1);
}
@keyframes cookie-modal-fade-in {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #232826;
  color: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 6px 48px #FFD70033, 0 1px 16px #23282699;
  padding: 28px 38px 28px 32px;
  max-width: 410px;
  min-width: 290px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.05rem;
  position: relative;
  animation: cookie-modal-popup 0.23s cubic-bezier(.41,.52,.74,.89);
}
@keyframes cookie-modal-popup {
  from { transform: scale(.85); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 1.05rem;
}
.cookie-modal .toggle {
  width: 42px;
  height: 22px;
  background: #393f37;
  border-radius: 14px;
  display: inline-block;
  position: relative;
  margin-left: auto;
}
.cookie-modal .toggle input {
  display: none;
}
.cookie-modal .toggle .slider {
  position: absolute;top:2px;left:2px;width:18px;height:18px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: left 0.15s, background 0.18s;
}
.cookie-modal .toggle input:checked + .slider {
  left: 22px; background: #FFD700;
}
.cookie-modal .essential {
  color: #bbb; font-size: .96rem; padding-left: 12px;
}
.cookie-modal .cookie-modal-actions {
  display: flex; gap: 16px; margin-top: 16px; justify-content: flex-end;
}
.cookie-modal .close-modal-btn {
  position: absolute; top: 10px; right: 12px; background:none;
  color: var(--color-accent); font-size:1.45rem; border:none; padding: 0 7px; border-radius:8px;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus { background: #1c1a0936; }
@media (max-width: 600px) {
  .cookie-modal {
    max-width: 96vw;
    padding: 13px 8px 20px 8px;
    font-size: .97rem;
  }
}

/* --- ANIMATIONS & HOVER FX --- */
.cta-btn,
button,
.card,
.testimonial-card,
footer a,
.main-nav a,
.footer-nav a,
.social-links a img {
  transition:color 0.18s, background 0.16s, box-shadow 0.19s, transform 0.15s;
}
.cta-btn:active { box-shadow: 0 2px 9px #E8A84299 inset; }

.card,
.testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:active {
  box-shadow: 0 0 6px #E8A84299;
}

.testimonial-card:active {
  box-shadow: 0 0 8px #23282699;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-32 { margin-bottom: 32px; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; background: #232826; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 8px; }

/* --- FORM ELEMENTS --- */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #333f37;
  padding: 7px 12px;
  font-size: 1rem;
  background: #f3f6ed;
  color: #1e2821;
  margin-bottom: 12px;
  font-family: var(--font-body);
  outline: none;
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px #E8A84233;
}

/* --- End of CSS --- */
