/* -------------------------------------------------------
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F2F4F9;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #2C2C2C;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #22436C;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,1,.5,1);
}
a:focus {
  outline: 2px solid #42A879;
  outline-offset: 2px;
}

/* -------------------------------------------------------
   BRAND FONTS
-------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #22436C;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #333;
}
strong { color: #22436C; font-weight: bold; }
ul, ol { margin-left: 24px; margin-bottom: 20px; }
li { margin-bottom: 8px; }

/* -------------------------------------------------------
   CONTAINER & LAYOUT (FLEXBOX ONLY)
-------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px 0 rgba(34,67,108,0.07), 0 1.5px 3px rgba(34,67,108,0.04);
}
@media (max-width: 900px) {
  .section { margin-bottom: 40px; padding: 24px 8px; }
}

/* -------------------------------------------------------
   PLAYFUL DYNAMIC STYLE
-------------------------------------------------------- */
body {
  background: #F2F4F9;
}
.hero {
  background: #42A879;
  color: #fff;
  min-height: 330px;
  border-radius: 0 0 52px 52px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  box-shadow: 0 10px 48px -16px #42A87955;
  animation: slideFadeDown 1.4s cubic-bezier(.43,1,.39,1) 0.1s backwards;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  text-shadow: 0 4px 24px rgba(34,67,108,0.12);
}
.hero p {
  color: #F6FFE8;
}
.hero .cta.primary {
  margin-top: 24px;
}
@media (max-width: 768px) {
  .hero { min-height: 210px; border-radius: 0 0 28px 28px; padding-bottom: 12px; }
  .hero h1 { font-size: 1.3rem; }
}

/* -------------------------------------------------------
   NAVIGATION HEADER & FOOTER
-------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(34,67,108,0.11);
  padding: 0;
  position: relative;
  z-index: 992;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  height: 84px;
}
header img {
  height: 46px; width: auto;
  margin-right: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #22436C;
  border-radius: 6px;
  padding: 7px 12px;
  transition: background 0.2s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: #42A87926;
  color: #22436C;
}
header .cta.primary {
  margin-left: 18px;
}
footer {
  background: #22436C;
  color: #fff;
  padding: 40px 0 21px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 72px;
  box-shadow: 0 -4px 36px 0 #22436C13;
}
footer p {
  color: white;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #fff;
  text-decoration: underline dotted 2.5px #42A87966;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.2s, text-decoration-color 0.2s;
}
footer nav a:hover { color: #42A879; text-decoration-color: #42A879; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.97rem;
}
.footer-contact img { width: 19px; height: 19px; margin-right: 7px; display:inline-block; vertical-align: middle; }
@media (max-width: 1000px) {
  footer .container { flex-direction: column; gap: 30px; align-items: flex-start; }
}
@media (max-width: 700px) {
  footer { padding: 28px 0 20px; border-radius: 20px 20px 0 0; }
}

/* -------------------------------------------------------
   CTA BUTTONS
-------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  background: #42A879;
  color: #fff;
  border: none;
  box-shadow: 0 3px 16px 0 #22436C19;
  cursor: pointer;
  transition: background 0.23s cubic-bezier(.46,1,.4,1),
              box-shadow 0.23s,
              transform 0.23s;
  margin-top: 4px;
  user-select: none;
}
.cta.primary {
  background: #42A879;
  color: #fff;
}
.cta.secondary {
  background: #22436C;
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #22436C;
  color: #fff;
  box-shadow: 0 8px 24px 0 #22436C29;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}

/* -------------------------------------------------------
   FEATURES BLOCK & CARDS (flex only)
-------------------------------------------------------- */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 18px;
}
.feature {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(34,67,108,0.07);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 240px;
  max-width: 100%;
  flex: 1 1 220px;
  transition: box-shadow 0.25s cubic-bezier(.37,1,.47,1),
              transform 0.15s cubic-bezier(.33,1,.53,1);
  margin-bottom: 20px;
  position: relative;
  animation: fadeUp 1.1s ease-in;
}
.feature img {
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%;
  background: #42A87910;
  padding: 7px;
  box-shadow: 0 2.5px 12px -2px #42A87922;
}
.feature h3 {
  color: #22436C; font-size: 1.2rem; margin-bottom: 10px;
}
.feature p {
  color: #22436C;
  font-size: 1rem;
  margin-bottom: 0;
}
.feature:hover {
  box-shadow: 0 12px 38px 0 #42A87920;
  transform: translateY(-2.5px) scale(1.07) rotate(2deg);
  z-index: 1;
}

/* Industries Cards */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.industries-grid > div {
  flex: 1 1 245px;
  min-width: 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 #22436C12;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.18s;
  position: relative;
}
.industries-grid > div:hover {
  box-shadow: 0 12px 36px 0 #42A87925;
  transform: scale(1.04) rotate(-1deg);
  z-index: 1;
}
.industries-grid img {
  width: 44px; height: 44px; margin-bottom: 7px;
  background: #42A87914;
  border-radius: 50%;
}
.industries-grid strong {
  font-size: 1.07rem;
  margin-bottom: 5px;
}

/* News Cards */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  margin-top: 11px;
}
.news-list article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px #22436C16;
  padding: 24px 18px;
  flex: 1 1 255px;
  margin-bottom: 20px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.21s, transform 0.13s cubic-bezier(.34,1,.59,1);
}
.news-list article:hover {
  box-shadow: 0 12px 38px 0 #22436C13;
  transform: scale(1.03) rotate(-3deg);
}

/* Card Container & Section Spacing - mandated */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 14px 0 #22436C13;
  padding: 20px 18px;
}
.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;
}

/* Testimonials */
.testimonials-preview {
  background: #fffbe7;
  border-radius: 16px;
  padding: 36px 0 16px 0;
  margin-bottom: 68px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 28px 20px 27px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 #22436C11;
  color: #22436C;
  margin-bottom: 24px;
  position: relative;
  max-width: 560px;
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #22436C;
  font-size: 1rem;
}
.testimonial-card strong {
  font-size: 0.96rem;
  color: #42A879; margin-left: auto;
}

/* CTA Final Section */
.cta-final {
  background: #42A879;
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 40px 0 #22436C18;
  text-align: center;
}
.cta-final h2,
.cta-final p {
  color: #fff;
}
.cta-final .cta.primary {
  margin-top: 20px;
  background: #fff;
  color: #42A879;
  border: 2.5px solid #fff;
}
.cta-final .cta.primary:hover,
.cta-final .cta.primary:focus {
  background: #22436C;
  color: #fff;
  border-color: #22436C;
}
@media (max-width: 768px) {
  .cta-final { padding: 26px 6px !important; }
  .cta-final h2 { font-size: 1.1rem; }
  .cta-final p { font-size: 1rem; }
}

/* Partners Logos (opinie.html) */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.partners-logos img {
  width: 92px;
  height: auto;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 5px 22px 0 #22436C19;
  padding: 8px 12px;
}

/* Contact section */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.contact-details a {
  font-weight: bold; color: #42A879;
  text-decoration: underline dotted 2px #42A87955;
}
.contact-map {
  border-radius: 18px;
  margin-top: 15px;
  background: #EDF6F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 32px 0 #22436C19;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 32px;
  z-index: 2000;
  min-height: 78px;
  border-radius: 24px 24px 0 0;
  font-size: 1rem;
  animation: slideUp 0.7s cubic-bezier(.43,1,.39,1);
}
.cookie-banner p { color: #22436C; font-size: 1rem; }
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn,
.cookie-settings-btn {
  padding: 10px 22px;
  border-radius: 21px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  background: #42A879;
  color: #fff;
  box-shadow: 0 3px 14px 0 #42A87924;
  margin-right: 0;
  margin-top: 1px;
  transition: background 0.2s, color 0.16s, box-shadow 0.2s;
}
.cookie-btn.reject {
  background: #fff;
  color: #22436C;
  border: 2px solid #22436C;
}
.cookie-btn.accept:active,
.cookie-btn.accept:hover {
  background: #22436C; color: #fff;
}
.cookie-btn.reject:active,
.cookie-btn.reject:hover {
  background: #42A879; color: #fff;
}
.cookie-settings-btn {
  background: #22436C;
  color: #fff;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #42A879; color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0; z-index: 2001;
  background: rgba(34,67,108,0.26);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -6px 32px 1.5px #22436C22;
  margin-bottom: 0;
  min-width: 320px; max-width: 480px;
  width: 97%;
  padding: 38px 24px 34px 24px;
  font-size: 1.04rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: slideUpModal 0.29s cubic-bezier(.44,1,.54,1);
}
.cookie-category {
  background: #F2F4F9;
  border-radius: 10px;
  padding: 12px 12px 12px 28px;
  margin-bottom: 9px;
  display: flex; flex-direction: row;
  align-items: center;
}
.cookie-category strong { margin-right: 9px; color: #22436C; }
.cookie-toggle {
  margin-left: auto;
  font-size: 1.07rem;
}
.cookie-switch {
  margin-left: 12px;
  width: 40px;
  height: 24px;
  border-radius: 14px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-block;
}
.cookie-switch[data-checked="true"] {
  background: #42A879;
}
.cookie-switch:before {
  content: "";
  width: 22px; height: 22px;
  position: absolute; left: 1px; top: 1px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px #22436C26;
  transition: transform 0.2s;
}
.cookie-switch[data-checked="true"]:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

/* -------------------------------------------------------
   MOBILE MENU (hamburger)
-------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #42A879;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 13px;
  padding: 5px 19px 5px 15px;
  cursor: pointer;
  z-index: 1005;
  transition: background 0.18s;
  box-shadow: 0 2px 8px #42A87919;
}
.mobile-menu-toggle:focus {
  background: #22436C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #22436C;
  color: #fff;
  z-index: 2002;
  transform: translateX(-100vw);
  transition: transform 0.41s cubic-bezier(.68,1.35,.73,1);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
  padding: 6px 12px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { color: #42A879; background: #fff2; border-radius: 15px; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 38px 32px 0 32px;
  justify-content: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.24rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 13px 0 13px 7px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(66,168,121,0.02);
  transition: background 0.16s,color 0.2s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover { background: #42A879; color: #fff; text-decoration: underline; }
/* Show/hide nav for mobile/desktop layout */
@media (max-width: 980px) {
  header nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
}
@media (max-width: 980px) {
  .mobile-menu {
    display: flex;
  }
}

/* -------------------------------------------------------
   SPACING & FLEX SECTIONS (MANDATORY)
-------------------------------------------------------- */
.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; }

/* Responsive: Mobile First */
@media (max-width: 900px) {
  .features, .industries-grid, .news-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .features .feature,
  .industries-grid > div,
  .news-list article {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .section { margin-bottom: 32px; padding: 19px 5px; border-radius: 10px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 18px 10px; gap: 10px; }
  .content-wrapper { gap: 17px; }
  .industries-grid, .features, .news-list { gap: 14px; }
  header .container { height: 62px; }
}
@media (max-width: 500px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 17px 6px; }
  .cookie-modal { width: 99vw; border-radius: 0; min-width: 0; padding: 22px 8px 16px 8px; }
}

/* -------------------------------------------------------
   MICRO-ANIMATIONS & PLAYFUL VISUALS
-------------------------------------------------------- */
@keyframes slideFadeDown {
  from { opacity: 0; transform: translateY(-40px) scaleY(1.03); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30%); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(70px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* UI fun accent circles */
.hero:before {
  content: "";
  position: absolute;
  top: -60px;
  right: 10%;
  width: 140px; height: 140px;
  background: rgba(242,244,249,0.23);
  opacity: 0.7;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero:after {
  content: "";
  position: absolute;
  bottom: -38px; left: 8%;
  width: 93px; height: 93px;
  background: rgba(66,168,121,0.18);
  opacity: 1;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 600px) {
  .hero:before, .hero:after { display: none; }
}

/* -------------------------------------------------------
   UTILITY CLASSES & POLISH CHAR SETUP
-------------------------------------------------------- */
html {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
/* Animate cta, nav, cards */
.cta, .feature, .testimonial-card, .card, .industries-grid > div, .news-list article {
  will-change: transform, box-shadow;
}

/* Clearfix */
.clearfix:after { content: ""; display: table; clear: both; }

/* Thank you message (thanks.php) */
.thank-you-message {
  font-size: 1.15rem;
  color: #42A879;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Hide visually */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* -------------------------------------------------------
   END OF STYLE.CSS - SILKEN RUSH BROKERS
-------------------------------------------------------- */
