/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F7F5EE;
  color: #2F4858;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol {
  padding-left: 24px;
  margin: 16px 0 20px 0;
}
li { margin-bottom: 8px; }
a { color: #143864; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #2F4858; text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #143864;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; margin-bottom: 20px; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: 0.01em; }

/* TYPOGRAPHY & SHAPE */
.cta-btn, button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(44,56,84,0.07);
  border: none;
  padding: 14px 32px;
  background: #143864;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus {
  background: #2F4858;
  box-shadow: 0 4px 12px rgba(44,56,84,0.13);
  transform: translateY(-2px) scale(1.04);
}
.text-link {
  font-weight: bold;
  color: #143864;
  position: relative;
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid #143864;
}
.text-link:hover, .text-link:focus { color: #2F4858; border-bottom: 2px solid #2F4858; }

/* CONTAINER AND GRID LAYOUTS */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid, .feature-grid, .service-grid, .team-member-cards, .testimonial-list, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  max-width: calc(33% - 24px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(44,56,84,0.07);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 24px rgba(44,56,84,0.13);
  transform: translateY(-3px) scale(1.03);
}
.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: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(44,56,84,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 540px;
  flex: 1 1 320px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-left: 6px solid #143864;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: #2F4858;
  margin-bottom: 8px;
}
.testimonial-card span, .testimonial-card div {
  font-size: 1rem;
  color: #143864;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.rating-summary {
  background: #F7F5EE;
  border-radius: 16px;
  padding: 18px 24px;
  margin: 24px 0 0 0;
  box-shadow: 0 2px 8px rgba(44,56,84,0.04);
  font-size: 1rem;
  color: #143864;
}

/* HERO & FEATURES */
.feature-grid, .service-grid, .team-member-cards {
  width: 100%;
  justify-content: flex-start;
}
.feature-grid > div, .service-grid > div, .team-member-cards > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,56,84,0.07);
  padding: 28px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.feature-grid > div:hover, .service-grid > div:hover, .team-member-cards > div:hover {
  box-shadow: 0 6px 24px rgba(44,56,84,0.14);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img, .service-grid img, .team-member-cards img {
  width: 44px; height: 44px; margin-bottom: 8px;
}

/* NAVIGATION */
header {
  background: #fff;
  border-bottom: 2px solid #F7F5EE;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(44,56,84,0.04);
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 16px 20px 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0;
  letter-spacing: 0.03em;
  position: relative;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #143864;
  border-radius: 2px;
  transition: width .2s;
  margin-top: 2px;
}
header nav a:hover:after, header nav a:focus:after { width: 100%; }
header .cta-btn {
  margin-left: auto;
  background: #143864;
  color: #fff;
}
header img[alt='CrestaPrawa'] { height: 42px; width: auto; margin-right: 12px; }

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #143864;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 6px 18px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s;
  z-index: 45;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #2F4858; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 2px 28px rgba(44,56,84,0.20);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.33,1.02,.35,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 60px;
}
.mobile-menu.open { display: flex; transform: translateX(0); animation: slideInMenu .37s cubic-bezier(.33,1.02,.35,1); }
@keyframes slideInMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: #143864;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 55;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #2F4858; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 38px;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #143864;
  padding: 10px 0;
  width: 100%;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.12s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F5EE;
  color: #2F4858;
}

/* FOOTER */
footer {
  padding: 38px 0 24px 0;
  margin-top: 40px;
  border-top: 2px solid #F7F5EE;
  background: #fff;
}
.footer-navigation {
  display: flex; gap: 22px; margin-bottom: 17px; flex-wrap: wrap;
}
.footer-navigation a {
  font-size: 1rem;
  color: #143864;
  font-weight: 500;
  text-decoration: none;
}
.footer-navigation a:hover, .footer-navigation a:focus { color: #2F4858; text-decoration: underline; }
.footer-contact-short {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-bottom: 14px;
  font-size: 1rem;
  color: #2F4858;
}
.footer-contact-short img { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
.footer-legal {
  font-size: 0.97rem;
  color: #8d939b;
  margin-top: 8px;
}

/* FAQ ACCORDION (simple expansion style) */
.faq-accordion { flex-direction: column; }
.faq-accordion > div {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 22px 22px 16px 22px;
  box-shadow: 0 2px 8px rgba(44,56,84,0.09);
  transition: box-shadow 0.2s, transform .15s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 16px rgba(44,56,84,0.15);
  transform: translateY(-2px) scale(1.015);
}
.faq-accordion h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: #143864;
  font-family: 'Merriweather', serif;
}
.faq-accordion p {
  margin-bottom: 0;
  color: #2F4858;
}

/* OTHER UTILS / SECTIONS */
input[type="text"] {
  border-radius: 12px;
  border: 2px solid #E7E7EF;
  font-size: 1rem;
  padding: 11px 18px;
  width: 100%;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: #2F4858;
  transition: border .18s;
}
input[type="text"]:focus { outline: none; border-color: #143864; }
.category-filters {
  display: flex;
  gap: 13px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.category-filters button {
  background: #F7F5EE;
  color: #143864;
  border-radius: 14px;
  border: 2px solid #143864;
  font-weight: 600;
  padding: 7px 19px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.category-filters button:hover, .category-filters button.active {
  background: #143864;
  color: #fff;
}
.map {
  display: flex; align-items: center; gap: 14px;
  background: #F7F5EE; border-radius: 14px; padding: 16px 20px; margin-top: 8px;
}
.map img { width: 24px; height: 24px; margin-right: 6px; }

.text-section { margin-bottom: 18px; }
.contact-details ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-details img { width: 18px; height: 18px; margin-right: 7px; vertical-align: middle; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2F4858;
  color: #fff;
  z-index: 120;
  box-shadow: 0 -2px 16px rgba(44,56,84,.16);
  padding: 24px 12px 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: bannerIn 0.45s cubic-bezier(.33,1.02,.35,1) .08s;
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { color: #fff; font-size: 1rem; margin: 0 0 5px 0; }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #fff;
  color: #143864;
  border-radius: 12px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 7px 22px;
  box-shadow: 0 2px 6px rgba(44,56,84,0.11);
  margin-bottom: 0;
  font-size: 1rem;
  transition: background .19s, color .19s;
}
.cookie-banner button.accept {
  background: #143864; color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #2F4858; color: #fff;
}
.cookie-banner button.reject { background: #fff; color: #143864; }
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #ffd2d0; color: #143864;
}
.cookie-banner button.settings { background: #F7F5EE; color: #143864; }
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus{
  background: #2F4858; color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  background: rgba(30,40,55,.62);
  position: fixed; z-index: 199;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center; justify-content: center;
  animation: fadeIn .24s linear;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(44,56,84,0.16);
  min-width: 330px;
  max-width: 96vw;
  padding: 36px 28px 24px 28px;
  color: #2F4858;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 200;
  animation: inScale .15s cubic-bezier(.68,-0.55,.27,1.65);
}
@keyframes inScale {
  from { transform: scale(.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  font-family: 'Merriweather', serif;
  color: #143864;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .category input[type="checkbox"] {
  width: 24px; height: 24px;
  accent-color: #143864;
}
.cookie-modal .category .essential {
  font-weight: 600;
  color: #143864;
  padding-left: 2px;
}
.cookie-modal .close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: #143864;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 201;
  transition: color 0.19s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus { color: #2F4858; }
.cookie-modal .cookie-save-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal button {
  background: #143864;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal button.secondary { background: #fff; color: #143864; border: 1px solid #143864; }
.cookie-modal button.secondary:hover { background: #F7F5EE; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container { max-width: 94vw; }
  .feature-grid > div, .service-grid > div, .team-member-cards > div {
    flex: 1 1 208px; max-width: 100%;
  }
}
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; gap: 16px 12px; }
  .footer-contact-short { gap: 12px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 0 6px; }
  .section { margin-bottom: 38px; padding: 28px 6px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  .card, .feature-grid > div, .service-grid > div, .team-member-cards > div {
    padding: 20px 11px; min-width: 92vw; max-width: 100vw; border-radius: 16px;
  }
  .card-container, .card-grid, .feature-grid, .service-grid, .team-member-cards, .content-grid, .faq-accordion, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: unset; max-width: 100vw; border-radius: 14px; font-size: 1rem; flex-direction: column;
  }
  .testimonial-list { gap: 20px; }
  header .container { flex-direction: row; gap: 8px; padding: 12px 6px; }
  header nav { display: none; }
  header .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .mobile-menu { padding-top: 40px; }
  .mobile-menu.open { display: flex; }
  .footer-navigation { font-size: .96rem; gap: 14px; }
  .footer-contact-short { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-legal { font-size: .93rem; }
  .testimonial-card { padding: 15px 8px; }
}
@media (max-width:530px) {
  .cookie-modal { padding: 22px 7vw; min-width: 0; }
}
@media (max-width:440px) {
  .cookie-modal { padding: 12px 1vw; }
}

/* VISUAL GEOMETRIC DECORATIONS - ANGULAR/RECT SHAPES */
.card, .feature-grid > div, .service-grid > div, .team-member-cards > div, .testimonial-card, .faq-accordion > div, .cookie-modal {
  /* geometric/modern rectangle-round corners + shadow already covered */
  border-style: solid;
  border-width: 0 0 0 6px;
  border-color: #F7F5EE;
  /* just to underscore structure on light background */
}
.card:hover, .feature-grid > div:hover, .service-grid > div:hover {
  border-color: #143864;
}
hr { margin: 28px 0; border: none; border-top: 1.5px dashed #2F4858; }

/* SHAPE BUTTONS & INPUTS */
button, .cta-btn, input[type="text"], .category-filters button {
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(44,56,84,0.07);
}

/* MICRO-INTERACTIONS */
.cta-btn, .card, .feature-grid > div, .service-grid > div, .team-member-cards > div, .testimonial-card, .faq-accordion > div, .category-filters button {
  transition: box-shadow .20s, transform .18s, border-color .19s, background .13s, color .13s;
}
.cookie-banner, .cookie-modal {
  transition: all 0.24s cubic-bezier(.33,1.02,.35,1);
}

/* ENSURE MINIMUM SPACING */
.section + .section { margin-top: 0; }
.card:not(:last-child), .feature-grid > div:not(:last-child), .service-grid > div:not(:last-child), .team-member-cards > div:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) { margin-bottom: 14px; }

/* VISUAL HIERARCHY */
.section > .container > .content-wrapper > h1, .section > .container > .content-wrapper > h2 {
  margin-bottom: 14px;
  font-family: 'Merriweather', serif;
  color: #143864;
}

/* Hide elements visually while keeping accessible (utility class) */
.visually-hidden { position: absolute !important; clip: rect(1px 1px 1px 1px); padding:0 !important; border:0 !important; height:1px !important; width:1px !important; overflow: hidden; }

/* Hide mobile menu overlay by default */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* Custom geometric bullet points for ul (desktop only) */
ul { list-style-type: none; }
ul > li:before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: #143864;
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
  margin-top: -2px;
}
@media (max-width:420px) {
  ul > li:before { width: 8px; height: 8px; margin-right: 7px; }
}
ol { list-style: decimal inside; }

/* Strong elements for geometric accent */
strong { color: #143864; font-weight: 700; }

/* Accessibility high contrast for testis/reviews */
.testimonial-card, .testimonial-card blockquote, .testimonial-card span, .testimonial-card div { color: #2F4858; background: #fff; }

/* VISUAL FOCUS/ACTIVE STATES */
:focus {
  outline: 2.5px solid #E1EAFA;
  outline-offset: 0.5px;
}

/* -- End -- */