/* === CSS RESET & NORMALIZE === */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
a { color: inherit; background-color: transparent; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1.5px solid #E5E2DD; }

/* === FONT IMPORT (Montserrat and Roboto) === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500&display=swap');

:root {
  --primary: #295B4B;
  --primary-dark: #1e4537; /* for press states */
  --secondary: #F5F3F1;
  --secondary-emphasis: #e9e5e0;
  --white: #FFFFFF;
  --black: #14261F;
  --accent: #D6A65D;
  --accent-dark: #B17818;
  --shadow-card: 0 6px 28px rgba(41,91,75,0.10);
  --radius-medium: 18px;
  --radius-small: 10px;
  --radius-circle: 50%;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-size-xs: 14px;
  --font-size-sm: 16px;
  --font-size-md: 18px;
  --font-size-lg: 24px;
  --font-size-xl: 32px;
  --font-size-xxl: 48px;
}

body {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* === GEOMETRIC STRUCTURED LAYOUT === */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  min-width: 270px;
  flex: 1 1 250px;
}
.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: var(--white);
  color: var(--primary);
  padding: 20px;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 18px rgba(41,91,75,0.07);
  margin-bottom: 20px;
  min-width: 280px;
  flex: 1 1 260px;
  font-size: var(--font-size-md);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: 0 2px 14px rgba(41,91,75,0.08);
  padding: 22px 16px;
  min-width:220px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(41,91,75,0.06);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px 18px;
}
header img[alt="Regeneracja Pro"] {
  height: 44px;
  width: auto;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: var(--font-size-sm);
  color: var(--primary);
  padding: 5px 0 5px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
}
.main-nav .cta-btn {
  margin-left: 20px;
}

/* === CTA BUTTONS === */
.cta-btn, .mobile-nav .cta-btn {
  background: var(--primary);
  color: var(--white) !important;
  border: 0;
  border-radius: var(--radius-medium);
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(41,91,75,0.08);
  transition: background 0.22s, box-shadow 0.18s, transform 0.12s;
  position: relative;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 8px 28px rgba(214,166,93,0.16);
  transform: translateY(-2px) scale(1.021);
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 34px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 18px;
  z-index: 201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(41,91,75,0.96);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.46,.04,.56,.86);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  color: var(--white);
  border: 0;
  font-size: 38px;
  padding: 10px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  letter-spacing: 0.025em;
  border-radius: var(--radius-small);
  transition: background 0.16s, color 0.16s;
  width: 100vw;
  display: block;
  line-height: 1.2;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav .cta-btn {
  background: var(--white);
  color: var(--primary);
  margin: 0 28px 0 0;
  width: auto;
}


/* === MAIN CONTENT TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: var(--font-size-xxl); margin-bottom: 18px; }
h2 { font-size: var(--font-size-xl); margin-bottom: 14px; }
h3 { font-size: var(--font-size-lg); margin-bottom: 8px; }
h4 { font-size: var(--font-size-md); }
p, li, span {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.7;
  font-size: var(--font-size-md);
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* Unordered List Icons (Geometric Accent) */
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}
ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: var(--font-size-md);
  padding-left: 0;
}

/* TABLES (CENNIK TABLE) */
table {
  width: 100%;
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: 0 1px 10px rgba(41,91,75,0.06);
  margin-bottom: 26px;
  overflow: hidden;
}
th {
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--primary);
  background: var(--secondary);
}
tr:first-child th {
  border-top: none;
}
td, th {
  border-bottom: 1px solid #e0dfda;
}
tr:last-child td { border-bottom: none; }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--secondary);
  color: var(--primary);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-small);
  box-shadow: 0 1px 12px rgba(214,166,93,0.085);
  margin-bottom: 24px;
  transition: box-shadow 0.18s;
  font-style: italic;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 24px rgba(214,166,93,0.12), 0 1.5px 6px rgba(41,91,75,0.09);
}
.testimonial-card p {
  color: var(--black);
}
.testimonial-card span {
  font-style: normal;
  font-size: var(--font-size-sm);
  color: var(--primary);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 0 0;
  font-size: var(--font-size-sm);
  margin-top: 90px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: var(--white);
  opacity: 0.86;
  font-family: var(--font-display);
  transition: color 0.16s, opacity 0.18s;
  font-size: var(--font-size-sm);
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
  opacity: 1;
}
.company-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.company-info img {
  height: 18px;
  width: auto;
  margin: 0 6px -3px 0;
  display: inline-block;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.footer-social li img {
  height: 30px;
  width: 30px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s, transform 0.12s;
  cursor: pointer;
}
.footer-social li img:hover, .footer-social li img:focus {
  filter: brightness(0.8) sepia(1) saturate(5) hue-rotate(-30deg);
  transform: scale(1.12);
}

/* === BLOG & SEARCH === */
input[type="search"] {
  padding: 12px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--white);
  font-size: var(--font-size-md);
  transition: border 0.18s, box-shadow 0.14s;
  box-shadow: 0 0 0 rgba(41,91,75,0);
  max-width: 380px;
}
input[type="search"]:focus {
  outline: none;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(41,91,75,0.11);
}

/* === MAP EMBED PLACEHOLDER === */
.map-embed div {
  border-radius: var(--radius-small);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-md);
  color: var(--accent-dark);
  letter-spacing: 0.015em;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 -4px 24px rgba(41,91,75,.15);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  border-radius: 22px 22px 0 0;
  animation: cookieSlideIn 0.6s cubic-bezier(.49,.31,.29,1.17);
}
@keyframes cookieSlideIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: var(--radius-small);
  padding: 10px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-sm);
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(214,166,93,0.085);
  transition: background 0.17s, color 0.14s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-btn.reject {
  background: var(--white);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(214,166,93,0.14);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-medium);
  box-shadow: 0 2.5px 28px rgba(41,91,75,0.19);
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 94vw;
  transform: translate(-50%,-50%) scale(0.93);
  z-index: 1100;
  padding: 40px 28px 34px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .16s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  font-size: var(--font-size-lg);
  margin-bottom: 12px;
}
.cookie-modal p {
  font-size: var(--font-size-sm);
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
  font-size: var(--font-size-md);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.cookie-category .always {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-left: 8px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--accent-dark);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}

/* === GLOBAL BUTTONS === */
button, .button, [type="button"], [type="submit"] {
  border: none;
  border-radius: var(--radius-small);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  letter-spacing: 0.018em;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: background 0.16s, color 0.12s, box-shadow 0.11s, transform 0.11s;
}
button:disabled, [type="button"][disabled] {
  background: var(--secondary-emphasis);
  color: var(--primary);
  opacity: .65;
  cursor: not-allowed;
}

/* === MICROINTERACTIONS === */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.18s, color 0.14s, border 0.18s, transform 0.13s, box-shadow 0.15s;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) { .container { max-width: 980px; } }
@media (max-width: 900px) { .container { max-width: 768px; } }
@media (max-width: 768px) {
  h1 { font-size: var(--font-size-xl); }
  h2 { font-size: var(--font-size-lg); }
  .container { padding-left: 8px; padding-right: 8px; }
  .section { padding: 28px 8px; margin-bottom: 38px; }
  .content-wrapper, .text-section, .company-info { gap: 16px; }
  .card-container, .content-grid { gap: 14px; }
  .feature-item, .card, .testimonial-card { min-width: 200px; padding: 15px 10px; }
}
@media (max-width: 740px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  header .container { flex-wrap: nowrap; }
}
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .footer-menu { gap: 12px; font-size: var(--font-size-xs); }
  .footer-social li img { height: 22px; width: 22px; }
  .section { padding: 14px 0; }
  .company-info { font-size: 13px; }
}
@media (max-width: 900px) {
  .content-wrapper, .content-grid, .card-container, .footer-menu, .footer-social {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .cta-btn { font-size: 13px; padding: 10px 10px; }
  .cookie-banner { padding: 14px 2px; }
}

/* --- Focus and Keyboard Accessibility --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --- Utility classes for extra geometric accent --- */
.geometric-accent {
  background: var(--accent);
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  height: 9px;
  width: 42px;
  border-radius: 2px;
  margin-bottom: 12px;
}
/* Example: Place <div class="geometric-accent"></div> before headings for accent if needed */


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