/* ----------------------------------------------------
   CSS RESET & BASELINE STYLES (Normalize + Reset)
---------------------------------------------------- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F5;
  color: #263238;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 16px;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #263238;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFB300;
  outline-offset: 2px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}

/* ----------------------------------------------------
   ELEGANT CLASSIC TYPOGRAPHY SCALE & HIERARCHY
---------------------------------------------------- */
h1, .h1 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #263238;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #263238;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #263238;
}
h4, .h4 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #263238;
}
p, li, td, th {
  font-family: 'Roboto', 'Georgia', serif;
  font-weight: 400;
  font-size: 1rem;
  color: #263238;
}
strong {
  font-weight: bold;
  color: #1a2328;
}
blockquote {
  font-style: italic;
  color: #6D6D6D;
  border-left: 4px solid #E4C278;
  padding-left: 16px;
  margin: 24px 0;
}
hr {
  border: none;
  border-top: 1px solid #DDD;
  margin: 32px 0;
}

/* ----------------------------------------------------
   CONTAINERS, GRIDS, FLEX & LAYOUT PATTERNS
---------------------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(38,50,56,0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(38,50,56,0.05);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(38,50,56, 0.10);
}
.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;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(38,50,56,0.06);
  background: #FAF7F2;
  margin-bottom: 24px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8F7F4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.04);
  padding: 20px 16px 24px 16px;
  flex: 1 1 220px;
  min-width: 220px;
  transition: box-shadow 0.18s, background 0.18s;
  margin-bottom: 20px;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(255,179,0,0.10);
  background: #FFFDEF;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
/* Utility for custom testimonial layout */
.testimonial-content {
  flex: 1;
}
.testimonial-rating {
  font-size: 1.3rem;
  color: #FFB300;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}
.testimonial-name {
  display: block;
  margin-top: 10px;
  font-family: 'Montserrat', serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: #263238;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.faq-item {
  background: #F8F7F4;
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(38,50,56,0.04);
  margin-bottom: 8px;
}

/* Case Studies */
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 -8px;
}
.case-study-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(38,50,56,0.05);
  padding: 24px 18px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.client-feedback {
  background: #FAF7F2;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

/* Blog/Poradnik snippets */
.blog-snippet {
  background: #FFFDEF;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(255,179,0,0.03);
}

/* Table styles (Cennik) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px 0;
  font-size: 0.98rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.03);
  overflow: hidden;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
th {
  background: #F5F5F5;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  color: #263238;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
}
tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------------------
   HEADER / MAIN NAVIGATION & BURGER MENU
---------------------------------------------------- */
header {
  padding: 0 0 0 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(38,50,56, 0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 20px 14px 18px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
}
.main-navigation a {
  color: #263238;
  opacity: 0.93;
  padding: 7px 10px;
  border-radius: 6px;
  position: relative;
  transition: color 0.18s, background 0.18s;
}
.main-navigation a.active, .main-navigation a:hover {
  background: #FFFDEF;
  color: #FFB300;
}
.main-navigation img {
  height: 32px;
  margin-right: 22px;
  vertical-align: middle;
}
.nav-cta {
  background: #263238;
  color: #fff !important;
  font-weight: 600;
  border-radius: 24px;
  padding: 10px 22px;
  margin-left: 18px;
  box-shadow: 0 2px 12px rgba(38,50,56,0.06);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  position: relative;
}
.nav-cta:hover, .nav-cta:focus {
  background: #FFB300;
  color: #263238 !important;
  box-shadow: 0 4px 18px rgba(255,179,0,0.05);
}

.mobile-menu-toggle {
  display: none;
  background: #FFFDEF;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
  border: none;
  color: #263238;
  box-shadow: 0 2px 8px rgba(38,50,56,0.07);
  transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #FFE399;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.45,.05,.55,1);
  box-shadow: 8px 0 36px rgba(38,50,56,0.10);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #FFFDEF;
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 2rem;
  color: #263238;
  margin: 16px 18px 8px 0;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFB300;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 22px;
  margin-left: 32px;
}
.mobile-nav a {
  color: #263238;
  font-family: 'Montserrat', serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 15px 0 15px 0;
  border-radius: 0;
  background: transparent;
  transition: color 0.18s, background 0.18s;
  width: 100%;
  display: block;
  min-width: 220px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFB300;
  background: #FFFDEF;
}

@media (max-width: 1100px) {
  .main-navigation {
    gap: 8px 12px;
    font-size: 0.97rem;
  }
  .main-navigation img {
    margin-right: 13px;
  }
  .nav-cta {
    padding: 9px 14px;
    margin-left: 8px;
  }
}
@media (max-width: 900px) {
  .main-navigation {
    gap: 6px 7px;
    font-size: 0.95rem;
    padding: 10px 8px 10px 8px;
  }
  .main-navigation img {
    height: 26px;
  }
}
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Ensure mobile menu covers content */
@media (max-width: 768px) {
  .mobile-menu {
    width: 100vw;
    height: 100vh;
  }
}

/* ----------------------------------------------------
   BUTTONS & CTA
---------------------------------------------------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFB300;
  color: #263238 !important;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 26px;
  padding: 12px 30px;
  margin: 14px 0 0 0;
  box-shadow: 0 2px 12px rgba(255,179,0,0.08);
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  min-width: 170px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #263238;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(38,50,56,0.13);
  transform: translateY(-2px) scale(1.028);
}

button:active, .cta-primary:active {
  transform: scale(0.97);
}

/* Generic button style for dialogs/cookie banner */
.button,
.cookie-btn {
  background: #263238;
  color: #fff;
  border: none;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 22px;
  padding: 10px 24px;
  margin: 0 10px 0 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.button:hover, .cookie-btn:hover {
  background: #FFB300;
  color: #263238;
}
/* Accent/Secondary for Accept button */
.button.accent, .cookie-btn.accent {
  background: #FFB300;
  color: #263238;
}
.button.accent:hover, .cookie-btn.accent:hover {
  background: #263238;
  color: #fff;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background: #263238;
  color: #fff;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  padding: 38px 20px 16px 20px;
  border-bottom: 1px solid #353e44;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-main img {
  height: 38px;
  margin-bottom: 10px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.90;
  font-family: 'Montserrat', serif;
  font-size: 1.01rem;
  transition: color 0.18s;
  padding: 2px 0;
}
.footer-menu a:hover {
  color: #FFB300;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.97rem;
  line-height: 1.44;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  vertical-align: -4px;
  margin-right: 8px;
}
.footer-bottom {
  padding: 11px 18px;
  background: #22292f;
  text-align: center;
  font-size: 0.95rem;
  color: #E4E4E4;
}

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

/* ----------------------------------------------------
   RESPONSIVE DESIGN (flex-only, mobile first)
---------------------------------------------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .case-study-list, .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .case-study-item {
    min-width: unset;
    width: 100%;
    flex: unset;
  }
}
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  .container {
    padding: 0 5px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .feature-grid, .case-study-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-item, .case-study-item {
    padding: 13px 10px;
  }
}
@media (max-width: 500px) {
  html, body {
    font-size: 14px;
  }
  .footer-main {
    padding: 15px 8px 12px 8px;
    gap: 12px;
  }
  .footer-bottom {
    padding: 6px 5px;
  }
}

/* ----------------------------------------------------
   SPACING UTILITIES
---------------------------------------------------- */
.mt-16 { margin-top: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }

/* ----------------------------------------------------
   COOKIE CONSENT BANNER
---------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #fff;
  color: #263238;
  box-shadow: 0 -4px 24px rgba(38,50,56,0.12);
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  padding: 22px 20px 22px 30px;
  transition: transform 0.25s, opacity 0.25s;
  border-radius: 16px 16px 0 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1;
  max-width: 680px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 15px 10px 15px 10px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-message {
    max-width: 100%;
  }
}
/* Cookie Modal Overlay & Dialog */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,50,56,0.26);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 48px rgba(38,50,56,0.18);
  max-width: 380px;
  width: 95vw;
  padding: 30px 26px 26px 26px;
  color: #263238;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: fadeDialogIn 0.38s cubic-bezier(.55, .03, .85, .86) both;
  position: relative;
}
@keyframes fadeDialogIn {
  from {opacity:0; transform: scale(0.92);}
  to {opacity:1; transform: scale(1);}
}
.cookie-dialog h2 {
  font-family: 'Montserrat', serif;
  font-size: 1.29rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #263238;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: 'Roboto', serif;
}
.toggle-switch {
  width: 42px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(38,50,56,0.09);
}
.toggle-switch input:checked + .toggle-slider {
  background: #FFB300;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-dialog .cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-dialog .button {
  font-size: 1rem;
}
.cookie-dialog .cookie-essential {
  font-size: 0.97rem;
  color: #6D6D6D;
  opacity: 0.8;
  pointer-events: none;
}
.cookie-dialog .cookie-close {
  position: absolute;
  top: 13px;
  right: 17px;
  font-size: 1.18rem;
  color: #263238;
  cursor: pointer;
  border: none;
  background: #FFFDEF;
  border-radius: 5px;
  padding: 2px 7px;
  transition: background 0.14s;
}
.cookie-dialog .cookie-close:hover { background: #FFB300; color: #fff; }

/* ----------------------------------------------------
   MISCELLANEOUS ELEMENTS
---------------------------------------------------- */
ul {
  margin-bottom: 18px;
}
li + li { margin-top: 6px; }
.text-section ul, .text-section ol {
  margin-bottom: 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8F7F4;
  border-radius: 10px;
  padding: 16px 12px;
  margin: 0 0 18px 0;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: -4px;
}
.map {
  background: #fff;
  border-radius: 9px;
  padding: 13px 10px;
  color: #263238;
  font-size: 0.97rem;
  box-shadow: 0 1px 6px rgba(38,50,56,0.04);
}

/* ----------------------------------------------------
   ACCESSIBILITY UTILS
---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

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

/* ----------------------------------------------------
   END OF STYLE.CSS
---------------------------------------------------- */
