/* Polish Horizon Office – Warm Friendly CSS Theme */
/* 1. 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {text-decoration: none; color: inherit;}
img,svg {vertical-align: middle; max-width: 100%; height: auto; border: 0;}
button {background: none; border: none; cursor: pointer; font-family: inherit;}
*, *:before, *:after {box-sizing: inherit;}

/* 2. BASE COLORS AND TYPOGRAPHY */
:root {
  --primary: #164F71;
  --secondary: #92B5C5;
  --accent: #F6F9FB;
  --white: #FFF;
  --black: #2D2D2D;
  --warm1: #FFE1C5;
  --warm2: #FFB289;
  --shadow-color: rgba(22, 79, 113, 0.08);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--accent);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.25rem; margin-bottom: 14px;}
h4 {font-size: 1.1rem; margin-bottom: 12px;}

p, ul li, ol li, .faq-item p {font-size: 1rem; color: var(--black);}

strong {font-weight: 600; color: var(--primary);}

/* 3. LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section {
  background: var(--white);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 32px var(--shadow-color);
  display: block;
}
section.hero {
  background: linear-gradient(120deg, var(--warm1) 0%, var(--accent) 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--shadow-color);
  padding: 48px 20px 36px 20px;
  margin-bottom: 60px;
}
.contact-short {
  background: var(--warm1);
  border: 2px solid var(--warm2);
}

/* 4. FLEXBOX UTILITY PATTERNS (MANDATORY CLASSES) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow-color);
  position: relative;
  padding: 28px 20px;
}
.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: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow-color);
  margin-bottom: 20px;
  font-style: italic;
  color: var(--black);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.features-grid > div {
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow-color);
  padding: 24px 18px 22px 18px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px var(--shadow-color), 0 0 0 2px var(--secondary);
  transform: translateY(-2px) scale(1.03);
}
.features-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-item {
  background: var(--accent);
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 22px 18px;
  flex: 1 1 260px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.post-item:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 30px var(--shadow-color);
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  flex: 1 1 260px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 18px 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.footer-nav a:hover {
  background: var(--warm1);
}
.footer-contact {
  text-align: center;
  padding-top: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}
.footer-brand { text-align: center; margin: 15px 0; }

/* 5. HEADER/NAVIGATION */
header {
  background: var(--white);
  box-shadow: 0 2px 12px var(--shadow-color);
  border-radius: 0 0 24px 24px;
  margin-bottom: 34px;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {height: 42px;}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 14px;
  transition: background 0.17s;
  display: flex;
  align-items: center;
}
.main-nav a:hover {
  background: var(--warm1);
}

.cta-btn {
  background: linear-gradient(90deg, var(--warm2) 0%, var(--primary) 80%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.10rem;
  border-radius: 18px;
  padding: 10px 34px;
  margin-left: 18px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: background 0.15s, box-shadow 0.13s, transform 0.133s;
  border: none;
  outline: none;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--primary) 15%, var(--secondary) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 79, 113, 0.16);
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger (mobile) */
.mobile-menu-toggle {
  font-size: 2rem;
  color: var(--primary);
  background: var(--warm1);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--warm2);
  outline: none;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  box-shadow: -4px 0 32px var(--shadow-color);
  transition: transform 0.36s cubic-bezier(0.88,0.08,0.41,1.04);
  will-change: transform;
  padding: 36px 24px 12px 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  background: transparent;
  align-self: flex-end;
  margin-bottom: 36px;
  border-radius: 12px;
  padding: 6px 12px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {background: var(--warm1);}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--white);
  border-radius: 14px;
  padding: 11px 14px;
  transition: background 0.15s, color 0.12s;
  margin-right: 18px;
  margin-bottom: 4px;
  box-shadow: 0 1px 6px var(--shadow-color);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* Hide mobile menu button on desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  nav.main-nav { display: flex !important; }
  .cta-btn {margin-left: 24px;}
}
@media (max-width: 1023px) {
  nav.main-nav, .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

/* 6. BUTTONS AND LINKS (GENERAL) */
button,
input[type='submit'] {
  font-family: var(--font-display);
  border: none;
  outline: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 14px;
  padding: 9px 25px;
  transition: background 0.16s, box-shadow 0.13s;
  cursor: pointer;
}
button:hover, button:focus,
input[type='submit']:hover, input[type='submit']:focus {
  background: var(--secondary);
  color: var(--primary);
}
a {
  transition: color 0.16s, background 0.13s;
}
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* 7. FORMS (minimal since forms are description only) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--secondary);
  background: var(--accent);
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

/* 8. LISTS AND DETAILS */
ul, ol {
  padding-left: 20px;
  margin-bottom: 6px;
  list-style: disc;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1.025rem;
  color: var(--black);
}
ul li strong {
  color: var(--primary);
}

/* 9. FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  border-radius: 24px 24px 0 0;
  margin-top: 44px;
  padding: 38px 0 8px 0;
  box-shadow: 0 -2px 12px var(--shadow-color);
}
.footer-nav a {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  transition: background 0.17s, color 0.16s;
}
.footer-nav a:hover {
  background: var(--warm2);
  color: var(--primary);
}
.footer-contact {
  color: var(--accent);
  font-size: 1rem;
}
.footer-brand img {height: 44px;}

/* 10. TESTIMONIALS (emphasis on contrast & spacing) */
.testimonial-card {
  background: var(--warm1);
  border-left: 6px solid var(--primary);
  color: var(--black);
  box-shadow: 0 3px 14px var(--shadow-color);
  font-size: 1.11rem;
  font-style: normal;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 18px;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-left: 12px;
}

/* 11. MISC & ANIMATIONS */
section:not(.hero):not(.contact-short):hover {
  box-shadow: 0 6px 32px var(--shadow-color);
  transition: box-shadow 0.18s;
}

.icon {
  width: 26px; height: 26px; margin-right: 8px; border-radius: 6px;
}

/* 12. SPACING/ALIGNMENT PATTERNS */
.section {margin-bottom: 60px; padding: 40px 20px;}
.card-container{display:flex;flex-wrap:wrap;gap:24px;}
.card{margin-bottom:20px;position:relative;}
.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;}
.feature-item{display:flex;flex-direction:column;align-items:flex-start;gap:15px;}

/* 13. RESPONSIVE */
@media (max-width: 797px) {
  .container {max-width: 100vw; padding: 0 10px;}
  .content-grid, .features-grid, .card-container, .post-grid, .faq-list {
    flex-direction: column;
    gap: 20px !important;
    align-items: stretch;
  }
  .features-grid > div, .post-item, .faq-item {
    flex: 1 1 100%;
    min-width: 70vw;
  }
  .footer-nav {flex-direction: column; gap: 14px;}
  .footer-contact {font-size: 0.98rem;}
  .card {padding: 18px 10px;}
}
@media (max-width: 768px) {
  .text-image-section{flex-direction:column;align-items:center;gap:22px;}
  section, section.hero{padding: 30px 8px; border-radius: 16px;}
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.12rem;}
  nav.main-nav, .cta-btn {display: none !important;}
  .footer-brand img {height: 32px;}
}
@media (max-width: 480px) {
  body, .footer-contact {font-size: 15px;}
  h1 {font-size: 1.25rem;}
  h2 {font-size: 1rem;}
  .logo img {height: 32px;}
}

/* 14. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--shadow-color);
  z-index: 3000;
  padding: 20px 20px 20px 28px;
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  color: var(--black);
  opacity: 1;
  transition: opacity 0.33s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner .cookie-text {
  flex: 2 1 380px;
  color: var(--black);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex: 1 1 120px;
  align-items: center;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border-radius: 14px;
  padding: 9px 21px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.15s;
}
.cookie-btn.accept {background: var(--primary);}
.cookie-btn.reject {background: var(--secondary); color: var(--primary);}
.cookie-btn.settings {background: var(--warm1); color: var(--primary);}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--warm2);
  color: var(--black);
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    left: 2vw; right: 2vw;
    padding: 15px 10px 10px 10px;
    font-size: 15px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 11px;
    align-items: stretch;
    width: 100%;
  }
}

/* 15. COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,79,113,0.16);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 23px;
  box-shadow: 0 8px 48px rgba(22,79,113,.20);
  width: 98vw; max-width: 370px;
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: popup-in 0.42s cubic-bezier(.81,.13,.21,.9);
}
@keyframes popup-in {
  0%   {transform: scale(0.93) translateY(32px); opacity: 0;}
  100% {transform: none; opacity: 1;}
}
.cookie-modal-content h2 {font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.01em;}
.cookie-modal-section {
  margin-bottom: 15px;
  padding: 9px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
  border-radius: 50%;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.05rem;
}
.cookie-category.essential label {
  opacity: 0.6;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.5rem;
  color: var(--secondary);
  background: transparent;
  border-radius: 8px;
  padding: 5px 10px;
  transition: background 0.15s;
}
.cookie-modal-content .cookie-modal-close:hover{
  background: var(--warm1);
  color: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 400px){
  .cookie-modal-content {padding: 14px 4vw;}
}

/* 16. MICRO-INTERACTIONS */
.card, .features-grid > div, .post-item, .faq-item, .cta-btn, button, .cookie-btn {
  transition: box-shadow 0.13s, transform 0.12s, background 0.12s;
}
.card:focus-within, .features-grid > div:focus-within, .post-item:focus-within, .faq-item:focus-within {
  box-shadow: 0 6px 26px var(--secondary);
}
.card:hover, .post-item:hover, .faq-item:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 28px var(--shadow-color);
}

/* 17. Z-INDEX UTILS */
header, .cookie-banner, .cookie-modal  {z-index: 1000;}
.mobile-menu {z-index: 1300;}

/* 18. EXTRAS FOR ICON-TEXT (address/phone/email rows) */
.content-wrapper img[alt="Adres"],
.content-wrapper img[alt="Telefon"],
.content-wrapper img[alt="Email"] {
  width: 20px; height: 20px; margin: 0 6px -5px 0; opacity: 0.78;
}

/* 19. PRINT */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu {display: none !important;}
  body {background: #fff;}
  section, .card, .features-grid>div, .post-item {box-shadow: none !important; background: #fff !important;}
}
