/* === CSS RESET AND BASELINE === */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  line-height: 1.55;
  background: #F7F6EF;
  color: #1E3A5F;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #166352;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:hover, a:focus {
  color: #b44e29;
  text-decoration: underline;
}
ul, ol {
  list-style-position: outside;
  margin-left: 24px;
  margin-bottom: 16px;
}
li + li {
  margin-top: 8px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  letter-spacing: -0.5px;
  color: #1E3A5F;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #362b19;
}
blockquote {
  font-style: italic;
  background: #f9ecd0;
  color: #1E3A5F;
  border-left: 4px solid #b44e29;
  padding: 16px 20px 16px 28px;
  border-radius: 6px;
  margin-bottom: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fffefb;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 7px 0 rgba(49,39,18, 0.09);
  overflow: hidden;
}
th, td {
  border: 1px solid #dcccb5;
  padding: 16px 10px;
  text-align: left;
}
th {
  background: #1E3A5F;
  color: #fff9e9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 1px;
}

/* === VINTAGE RETRO COLOR PALETTE === */
:root {
  --primary: #1E3A5F;
  --secondary: #f3f6fb;
  --accent: #166352;
  --retro-red: #b44e29;
  --retro-yellow: #fbd464;
  --retro-blue: #4883B2;
  --retro-brown: #a19887;
  --retro-cream: #fffbed;
  --retro-green: #24947B;
  --white: #ffffff;
  --dark: #362b19;
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;600&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--retro-cream);
  color: var(--primary);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  text-transform: none;
  color: var(--primary);
}
h1, .cta-banner h2 {
  letter-spacing: -1.5px;
  text-shadow: 1px 2px 0 #ffe993;
}
h2, h3 {
  letter-spacing: 0.95px;
}
strong {
  font-weight: 700;
}
/* Decorative patterns */
.section {
  background: repeating-linear-gradient(
    135deg,
    #fffbed 0px, #fffbed 13px,
    #fbd464 13px, #fbd464 16px,
    #fffbed 16px, #fffbed 29px
  );
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 14px 0 rgba(48,34,18,0.07);
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  background: #fffbe8;
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(177, 120, 8, 0.05);
  border: 2px solid #fbd464;
  position: relative;
  margin-bottom: 16px;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  box-shadow: 0 2px 10px 0 rgba(30,58,95,0.08);
  position: sticky;
  top: 0;
  z-index: 500;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 18px;
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-navigation a {
  color: #fff7dd;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  padding: 8px 12px;
  position: relative;
}
.main-navigation a:not(.cta-button):hover,
.main-navigation a:not(.cta-button):focus {
  background: #fbd464;
  color: #1e3037;
}
.main-navigation a.cta-button {
  background: var(--accent);
  color: #fffaf3;
  font-weight: 700;
  font-size: 1.01rem;
  border-radius: 28px;
  padding: 11px 30px 11px 30px;
  margin-left: 16px;
  box-shadow: 0 2px 10px 0 rgba(22,99,82,0.06);
  letter-spacing: 1px;
  border: none;
  transition: background 0.15s, color 0.18s, box-shadow 0.22s;
}
.main-navigation a.cta-button:hover, 
.main-navigation a.cta-button:focus {
  background: #b44e29;
  color: #fffaef;
  box-shadow: 0 5px 24px 0 rgba(180,78,41,0.15);
}
header img[alt="IntenMonog Finanse"] {
  height: 40px;
  width: auto;
  margin-right: 20px;
}

/* === MOBILE NAVIGATION TOGGLE === */
.mobile-menu-toggle {
  display: block;
  font-size: 2.15rem;
  background: none;
  color: #fbd464;
  border: none;
  cursor: pointer;
  padding: 10px 15px 6px 15px;
  border-radius: 8px;
  margin-left: 12px;
  transition: box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fbd464;
  color: #1E3A5F;
  box-shadow: 0 4px 16px 0 rgba(254,212,82,0.14);
}
/* Hide mobile menu button on desktop */
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* === MOBILE MENU (HAMBURGER OVERLAY) === */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  width: 100vw;
  background: #1e3a5fcf;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.7,0,0.2,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #b44e29;
  color: #fff9e6;
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin: 16px 22px 0 0;
  cursor: pointer;
  padding: 5px 12px 2px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  z-index: 10010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fbd464;
  color: #3a2621;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: flex-start;
  margin-top: 14px;
  gap: 0;
}
.mobile-nav a {
  color: #fffaf2;
  padding: 18px 34px 14px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-align: left;
  border-bottom: 1px solid #ffecc8;
  width: 100%;
  background: transparent;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fbd464;
  color: #1E3A5F;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
  .main-navigation {
    display: flex;
  }
}
@media (max-width: 899px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}

/* === SECTION, CARD, FLEX LAYOUTS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffbe8;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(55,40,20,0.07);
  padding: 28px 22px 24px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(180,78,41,0.15);
  transform: translateY(-5px) scale(1.025);
}
.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 24px 18px 30px;
  background: #fffbed;
  box-shadow: 0 2px 12px 0 rgba(49,39,18,0.09);
  border-radius: 18px;
  margin-bottom: 20px;
  border: 2px dotted #b44e29;
  flex-direction: row;
  transition: border-color 0.18s, box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #fbd464;
  box-shadow: 0 5px 16px 0 rgba(249,231,133,0.13);
  background: #fffae9;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  margin: 0 0 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #2d2d2d;
}
.testimonial-card p {
  margin: 0 0 0 14px;
  font-size: 1rem;
  color: #55513B;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffbed;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(90,61,35,0.05);
  padding: 22px 18px 18px 18px;
  margin-bottom: 20px;
}

/* === FEATURES GRID (RETRO ICON CARDS) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: linear-gradient(135deg, #fffbe8 76%, #fbd464 100%);
  padding: 26px 24px 20px 24px;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(49,39,18,0.07);
  flex: 1 1 240px;
  min-width: 215px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border: 1.5px solid #dcccb5;
  transition: border-color 0.17s, box-shadow .21s;
}
.feature-grid > div:hover {
  border-color: #b44e29;
  box-shadow: 0 7px 28px rgba(180,78,41,0.12);
  background: #fff4d6;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
  filter: drop-shadow(0 2px 6px #fbd46440);
}

/* === TABLES OVERRIDE === */
table th, table td {
  font-size: 1rem;
}
table tr:nth-child(even) td {
  background: #f3f6fb;
}
table tbody tr:hover {
  background: #fbd46417;
  transition: background 0.17s;
}
table th {
  text-shadow: 1px 1.5px 0 #b44e2930;
}

/* === BUTTONS === */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff9e7;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 28px;
  font-size: 1.08rem;
  padding: 13px 36px 13px 36px;
  text-align: center;
  margin-top: 15px;
  box-shadow: 0 2px 10px 0 rgba(30,58,95,0.09);
  border: none;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  transition: background 0.23s, color 0.23s, box-shadow 0.2s, transform 0.2s;
}
.cta-button:hover, .cta-button:focus {
  background: #fbd464;
  color: #1E3A5F;
  box-shadow: 0 7px 28px 0 rgba(249,231,133,0.16);
  transform: translateY(-2px) scale(1.03);
}

/* === CARD / MIRCO INTERACTIONS === */
.card, .feature-grid > div, .text-section, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.18s, background 0.2s, transform 0.19s;
}
.card:active, .feature-grid > div:active, .cta-button:active {
  transform: scale(0.98);
}

/* === FOOTER === */
footer {
  background: #1E3A5F;
  color: #fffbe8;
  padding: 38px 0 12px 0;
  border-top: 6px solid #fbd464;
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  flex-direction: row;
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 38px;
}
footer nav a {
  color: #feedd1;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #fbd464;
  color: #2c1816;
}
footer small {
  opacity: 0.88;
  color: #dcccb5;
  margin-top: 6px;
}
footer img[alt="IntenMonog Finanse"] {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
}
footer span {
  display: block;
  font-size: 0.95rem;
  color: #ccae7a;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
  }
  .content-wrapper, .footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 24px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px 16px 14px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .main-navigation a.cta-button, .cta-button {
    padding: 10px 14px;
    font-size: 1rem;
  }
  .container {
    padding: 0 6px !important;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 15px;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fbd464;
  color: #3a2621;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 28px 7vw 20px 7vw;
  box-shadow: 0 -3px 19px 0 rgba(180,78,41,0.1);
  z-index: 20050;
  font-size: 1.01rem;
  transition: bottom 0.22s, opacity 0.22s;
  opacity: 1;
}
.cookie-banner.hide {
  bottom: -120px;
  opacity: 0;
}
.cookie-banner .cookie-text {
  max-width: 500px;
}
.cookie-banner .cookie-actions {
  display: flex; flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--primary);
  color: #fff9ee;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  padding: 8px 28px;
  cursor: pointer;
  margin-right: 4px;
  box-shadow: 0 2px 7px 0 rgba(180,78,41,.04);
  transition: background 0.13s, color 0.22s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: #166352;
}
.cookie-btn.reject {
  background: #b44e29;
}
.cookie-btn.settings {
  background: #f3f6fb;
  color: var(--dark);
  border: 1.5px dashed #b44e29;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fbd464;
  color: #3a2621;
  box-shadow: 0 5px 16px 0 rgba(180,78,41,0.13);
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -80%) scale(0.94);
  background: #fffbed;
  color: #362b19;
  border-radius: 18px;
  padding: 36px 32px 24px 32px;
  z-index: 100000;
  box-shadow: 0 8px 38px 0 rgba(180,78,41,0.13);
  min-width: 300px;
  max-width: 98vw;
  width: 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.cookie-modal .cookie-settings-group {
  margin-bottom: 19px;
  border-bottom: 1px solid #e4bb83;
  padding-bottom: 11px;
}
.cookie-modal label, .cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-toggle {
  accent-color: #b44e29;
  width: 18px; height: 18px;
}
.cookie-modal .description {
  margin-bottom: 7px;
  color: #55513B;
  font-size: 0.98rem;
  font-weight: 400;
}
.cookie-modal .close-modal {
  background: transparent;
  color: #b44e29;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 12px; right: 20px;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #166352;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 17px;
}
@media (max-width: 600px) {
  .cookie-modal { min-width: 0; width: 98vw; padding: 20px 10px 14px 10px; }
}

/* === RETRO/NOSTALGIC PATTERNS & MICRO-DETAILS === */
.text-section, .feature-grid > div, .card, .testimonial-card {
  background-image: repeating-linear-gradient(-45deg,#fbd46411 0, #fffbed 15px,#fffbed 28px);
}
.text-section {
  border-width: 3px;
  border-style: double;
  border-color: #dcccb5;
}

/* === SPECIAL OVERRIDES === */
::-webkit-scrollbar {
  width: 9px;
  background: #fbd46438;
  border-radius: 14px;
}
::-webkit-scrollbar-thumb {
  background: #dcccb5;
  border-radius: 14px;
}
::-webkit-scrollbar-thumb:hover { background: #b44e29;}

input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* === Z-INDEX LAYERS === */
header { z-index: 500; }
.mobile-menu { z-index: 10000; }
.cookie-banner { z-index: 20050; }
.cookie-modal { z-index: 100000; }

/* === ACCESSIBILITY & CONTRAST (TESTIMONIALS) === */
.testimonial-card {
  background: #fffbe7;
  color: #2d2d2d;
  border-color: #b44e29;
}
.testimonial-card blockquote {
  color: #1E3A5F;
  font-weight: 500;
}
.testimonial-card p {
  color: #362b19;
}

/* === MISC RETRO ELEMENTS === */
h1, h2, h3 {
  text-shadow: 1px 1.5px 0 #fbd46471, 2px 3px 0 #fffbe8b6;
}
h1 {
  letter-spacing: -1.3px;
}
.section {
  border: 3px double #dcccb5;
}
hr {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(90deg,#fbd464 0 15px,#a19887 15px 28px,#fbd464 28px 43px);
  margin: 32px 0;
  border-radius: 3px;
}

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