/* 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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #22436B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E7683B;
  outline-offset: 2px;
}
button, input, select, textarea {
  font-family: inherit;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #22436B;
  --secondary: #E3E8EF;
  --accent: #E7683B;
  --accent-dark: #B14422;
  --electric-blue: #018AFF;
  --vibrant-yellow: #FFE94B;
  --offwhite: #FCFCFF;
  --black: #11151A;
  --shadow: rgba(36, 67, 107, 0.10);
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.15;
}

h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.22;
}

h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

p, li {
  font-size: 1rem;
  line-height: 1.7;
}
.tagline {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
  letter-spacing: .02em;
}
em {
  color: var(--accent-dark);
  font-style: italic;
}
strong {
  font-weight: bold;
  color: var(--primary);
}

/* --- GENERAL LAYOUT --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--offwhite);
  border-radius: 26px;
  box-shadow: 0 6px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1000px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
}

/* ===== HEADER, NAVIGATION, CTA ===== */
header {
  background: var(--secondary);
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 35px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  padding: 6px 4px;
  transition: color 0.2s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 5px;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: rgba(231, 104, 59,0.07);
}
header a.cta-button {
  min-width: 145px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 0.8em 2.2em;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background .2s, color .2s, transform .1s;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
}
header a.cta-button:hover, header a.cta-button:focus {
  background: var(--primary);
  color: var(--vibrant-yellow);
  transform: translateY(-2px) scale(1.04);
}
header img {
  height: 46px;
}
@media (max-width: 900px) {
  header nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: flex-start;
  }
  header nav {
    display: none;
  }
  header a.cta-button {
    font-size: 1rem;
    padding: 0.8em 1.3em;
  }
  header img {
    height: 40px;
  }
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1001;
  background: var(--accent);
  color: #fff;
  font-size: 2.3rem;
  border-radius: 12px;
  border: none;
  padding: 9px 18px 11px 18px;
  box-shadow: 0 2px 14px var(--shadow);
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--vibrant-yellow);
  transform: scale(1.06);
  outline: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 420px;
  background: var(--secondary);
  box-shadow: -8px 0 30px var(--shadow);
  transform: translateX(110%);
  transition: transform .42s cubic-bezier(.71,0,.23,1);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px 26px 34px 26px;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  align-self: flex-end;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  margin-bottom: 12px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  padding: 9px 0;
  color: var(--primary);
  border-radius: 8px;
  width: 100%;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== MAIN LAYOUT COMPONENTS ===== */
/* Feature grid and cards on home page */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 12px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px var(--shadow);
  flex: 1 1 260px;
  min-width: 215px;
  max-width: 320px;
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .2s, transform .17s;
  position: relative;
  margin-bottom: 20px;
  gap: 10px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px var(--accent);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img {
  height: 40px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
    justify-content: flex-start;
  }
  .feature-grid > div {
    min-width: 175px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 22px 10px 16px 10px;
  }
}

/* --- Card and grid utility classes (for future extensibility) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .15s;
}
.card:hover {
  box-shadow: 0 8px 32px var(--electric-blue);
  transform: translateY(-2px) scale(1.02);
}
.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) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- Testimonial card --- */
.testimonial-card {
  background: var(--vibrant-yellow);
  color: var(--black);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .16s;
}
.testimonial-card p {
  font-size: 1.12rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-author {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: 18px;
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px var(--accent);
  transform: scale(1.01);
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 8px;
    font-size: 0.98rem;
  }
  .testimonial-author {
    margin-left: 0;
  }
}

/* --- Features list --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
  padding: 0;
}

/* --- List Consistency --- */
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}
li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}
li strong {
  color: var(--accent);
}
ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.85;
}
@media (max-width: 600px) {
  li {
    padding-left: 16px;
    font-size: 0.97rem;
  }
  ul li:before {
    top: 10px;
    width: 8px;
    height: 8px;
  }
}

/* CTA Buttons (links and buttons) */
.cta-button {
  display: inline-block;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  border-radius: 24px;
  padding: 0.95em 2.1em;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 2px 12px var(--shadow);
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.11s;
  margin-top: 6px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--vibrant-yellow);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* ================= FOOTER =================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 32px;
}
footer .container {
  flex-direction: row;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
footer nav a {
  color: var(--vibrant-yellow);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.93;
  padding: 5px 0;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer img {
  height: 44px;
  margin-bottom: 0;
}
.contact-details {
  font-size: 0.98rem;
  opacity: 0.83;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-left: 5px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer nav {
    gap: 18px;
  }
}

/* ================== FORMS (Contact page, future proof) ================== */
input, textarea, select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  background: #fff;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
label {
  font-weight: bold;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 7px;
  display: block;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.section, .feature-grid > div, .card, .testimonial-card  {
  animation: fadeInUp 0.5s ease-in both;
}

/* --- Miscellaneous Styling for Vibrance/Energy --- */
.section {
  border-left: 9px solid var(--accent);
  background: linear-gradient(90deg, var(--secondary) 70%, #FFF5EA 100%);
}
@media (max-width: 500px) {
  .section {
    border-left: 5px solid var(--accent);
  }
}

/* --- Make sure all to have enough spacing/margin --- */
main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* =================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 22px 18px 24px 18px;
  box-shadow: 0 -4px 38px var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  opacity: 0.97;
  animation: fadeInUp .5s ease-in;
}
.cookie-banner p {
  flex: 4 1 360px;
  margin-bottom: 3px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cta {
  padding: 0.65em 1.3em;
  border-radius: 16px;
  font-weight: 800;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-top: 0;
  cursor: pointer;
  transition: background .17s, color .18s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--accent-dark);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--electric-blue);
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 5px 18px 7px;
    font-size: 0.999rem;
  }
  .cookie-banner .cookie-buttons {
    gap: 10px;
  }
}

/* =============== COOKIE PREFERENCES MODAL ================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,67,107,0.62);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeInUp .3s;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  box-shadow: 0 8px 40px var(--shadow);
  padding: 40px 32px 36px 32px;
  min-width: 320px;
  max-width: 97vw;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: fadeInUp .5s;
}
.cookie-modal h3 {
  margin-bottom: 0;
  font-size: 1.36rem;
}
.cookie-modal label {
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 5px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px; right: 18px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--accent-dark);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  margin-bottom: 0; 
}

.cookie-switch {
  appearance: none;
  width: 48px;
  height: 24px;
  background: var(--secondary);
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
  border: 1px solid var(--accent);
}
.cookie-switch:checked {
  background: var(--accent);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 20px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
  box-shadow: 0 2px 6px var(--shadow);
}
.cookie-switch:checked:before {
  left: 25px;
}
.cookie-category .category-disabled {
  font-size: 0.96rem;
  color: var(--black);
  opacity: .57;
  margin-left: 4px;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 18px 4vw 12px 5vw;
    min-width: 0;
    max-width: 98vw;
  }
}

/* ======================== ICONS & IMAGES =========================== */
img[alt^="Telefon"], img[alt^="E-mail"], img[alt^="Adres"], img[alt^="Godziny otwarcia"] {
  height: 22px;
  width: 22px;
  margin-right: 10px;
  margin-top: -2px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  img[alt^="Telefon"], img[alt^="E-mail"], img[alt^="Adres"], img[alt^="Godziny otwarcia"] {
    height: 18px;
    width: 18px;
    margin-right: 8px;
  }
}

/* =================== RESPONSIVE TYPOGRAPHY ===================== */
@media (max-width: 800px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.42rem;
  }
}
@media (max-width: 600px) {
  h1, .h1 {
    font-size: 1.32rem;
  }
  h2, .h2 {
    font-size: 1.10rem;
  }
  h3, .h3 {
    font-size: 1.04rem;
  }
}

/* === Accessibility - Focus ring for buttons/links === */
a:focus, .cta-button:focus, button:focus {
  outline: 2.5px solid var(--electric-blue);
  outline-offset: 2px;
  z-index: 2;
}

/* =================== UTILITIES & OVERRIDES ==================== */
.hide {
  display: none !important;
}

/* =================== PRINT ===================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #222;
  }
}

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