/* --------------------------------------
   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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  background: #FAF6F0;
  color: #332a1e;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
a {
  color: #1E3A56;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #D67629;
}
ul, ol {
  padding-left: 24px;
}
strong, b {
  font-weight: bold;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: #1E3A56;
  margin-bottom: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.42rem; margin-bottom: 16px; }
h4 { font-size: 1.18rem; margin-bottom: 8px; }
p { font-size: 1.05rem; margin-bottom: 16px; }

/* --------------------------------------
   RETRO-VINTAGE COLOR PALETTE & FONTS
   -------------------------------------- */
:root {
  --retro-dark: #2E1910;
  --retro-primary: #1E3A56;
  --retro-secondary: #23A296;
  --retro-light: #F4F7FA;
  --retro-cream: #FAF6F0;
  --retro-brown: #BC925D;
  --retro-orange: #D67629;
  --retro-mint: #BFE0D6;
  --retro-red: #B64B3A;
  --retro-yellow: #F3C969;
  --retro-border: #DED6C8;
  --brand-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --brand-font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  background-color: var(--retro-cream);
  color: #332a1e;
  font-family: var(--brand-font-body);
}
a.cta-button, .cta-button {
  font-family: var(--brand-font-display);
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--retro-dark);
  background: var(--retro-yellow);
  border: 2px solid var(--retro-brown);
  border-radius: 12px;
  padding: 12px 32px;
  margin-top: 20px;
  box-shadow: 0 2px 0 #cbb68d;
  transition: background 0.16s, box-shadow 0.2s, color 0.15s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
a.cta-button:hover, .cta-button:hover, a.cta-button:focus {
  background: var(--retro-orange);
  color: #fff;
  box-shadow: 0 6px 20px 0 #d6762964;
}

/* --------------------------------------
   LAYOUT: CONTAINERS
   -------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section,
.map-location {
  background: #fffaf6;
  border-radius: 15px;
  border: 1px solid var(--retro-border);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 32px 0 #7f756415;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/*
  --------------------------------------
  FLEX LAYOUT - GRIDS & SECTIONS
  --------------------------------------
*/
.feature-grid, .service-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  justify-content: flex-start;
}
.feature {
  background: #F4F7FA;
  border-radius: 12px;
  padding: 28px 24px 24px 24px;
  min-width: 240px;
  flex: 1 1 240px;
  box-shadow: 0 3px 12px 0 #bfa27023;
  border: 1.5px solid var(--retro-border);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
  gap: 10px;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
.feature:hover {
  box-shadow: 0 8px 22px 0 #d6762945;
  border: 1.5px solid var(--retro-orange);
  transform: translateY(-3px) scale(1.02);
}
.service-list {
  gap: 24px;
}
.service {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid var(--retro-border);
  padding: 24px 18px;
  min-width: 220px;
  box-shadow: 0 3px 12px 0 #bfa27026;
  margin-bottom: 20px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, border 0.15s;
}
.service img {
  width: 40px;
  height: 40px;
}
.service a {
  font-family: var(--brand-font-display);
  color: var(--retro-orange);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 8px;
  text-decoration: underline;
  transition: color 0.15s;
  letter-spacing: 1px;
}
.service a:hover {
  color: var(--retro-brown);
}
.service:hover {
  box-shadow: 0 8px 28px 0 #d6762954;
  border: 1.5px solid var(--retro-orange);
}

/* Testimonial Section */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--retro-border);
  box-shadow: 0 3px 16px 0 #bfa27026;
  color: #392A1C;
  font-family: var(--brand-font-body), serif;
  font-size: 1.08rem;
  padding: 20px 28px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 240px;
  max-width: 400px;
  transition: box-shadow 0.13s, border 0.13s;
}
.testimonial-card p {
  color: #392A1C;
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--retro-orange);
  font-family: var(--brand-font-display);
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1rem;
}
.testimonial-card:hover {
  border: 1.5px solid var(--retro-orange);
  box-shadow: 0 6px 38px 0 #bfa27033;
}

/* Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  background: #FFF;
  border: 1.5px solid var(--retro-border);
  box-shadow: 0 1px 9px 0 #bfa27015;
  padding: 24px;
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow 0.17s, border 0.17s;
}
.card:hover {
  border: 1.5px solid var(--retro-orange);
  box-shadow: 0 6px 22px 0 #d6762936;
}

/* Content Grid & Text-Image Section */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------------
   HEADER & NAVIGATION (Desktop)
   -------------------------------------- */
header {
  background: var(--retro-primary);
  border-bottom: 6px solid var(--retro-brown);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img[alt="UltraAxis Ubezpieczenia"] {
  height: 54px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  color: var(--retro-light);
  font-family: var(--brand-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 7px 14px;
  border-radius: 8px;
  position: relative;
  background: transparent;
  transition: background 0.16s, color 0.18s;
  text-shadow: 0 1px 1px #1E3A5688;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-dark);
}
header .cta-button {
  margin-left: 28px;
}

/* --------------------------------------
   MOBILE MENU BUTTON AND OVERLAY
   -------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  font-size: 2.3rem;
  padding: 5px 22px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-brown);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 93vw;
  max-width: 400px;
  height: 100vh;
  background: #fff7ed;
  box-shadow: -5px 0 28px #BC925D66;
  z-index: 250;
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(.63,.01,.74,.98);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 24px 32px;
  gap: 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--retro-orange);
  color: white;
  border: none;
  font-size: 2rem;
  border-radius: 6px;
  align-self: flex-end;
  padding: 3px 14px;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px #bfa27023;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--retro-primary);
  font-family: var(--brand-font-display);
  font-size: 1.16rem;
  letter-spacing: 2px;
  padding: 12px 4px;
  border-radius: 7px;
  background: transparent;
  transition: background 0.15s, color 0.17s;
  font-weight: 700;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0 0 0 0;
  background: #24190b55;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-menu.open + .mobile-menu-overlay {
  visibility: visible;
  opacity: 1;
}

/* --------------------------------------
   FOOTER
   -------------------------------------- */
footer {
  background: var(--retro-primary);
  color: var(--retro-light);
  border-top: 5px solid var(--retro-brown);
  padding: 30px 0 20px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
footer .footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer .footer-nav a {
  color: var(--retro-light);
  font-family: var(--brand-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1.5px;
  border-radius: 4px;
  background: transparent;
  padding: 7px 10px;
  transition: background 0.15s, color 0.15s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-dark);
}
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
}
.contact-footer img {
  width: 18px;
  height: 18px;
  margin-bottom: -3px;
  margin-right: 6px;
}
footer p {
  color: #fff7ed;
  margin-top: 8px;
  font-size: .95rem;
  letter-spacing: 1px;
}

/* --------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------- */
@media (max-width: 1200px){
  .container { max-width: 98vw; }
}
@media (max-width: 1000px) {
  .container { max-width: 98vw; padding: 0 9px; }
  .feature-grid, .service-list, .testimonial-list, .card-container { gap:16px; }
  section { padding: 33px 7px; }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .testimonial-list { flex-direction: column; gap:18px; }
  .feature, .service, .testimonial-card { min-width: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  header .main-nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 220;
  }
  .feature-grid, .service-list, .testimonial-list, .card-container, .content-grid { flex-direction: column; gap:20px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  section { margin-bottom: 36px; padding: 24px 5px; }
}
@media (max-width: 600px) {
  body { font-size: .98rem; }
  .feature, .service, .testimonial-card, .card {
    min-width: unset;
    padding: 15px 9px;
    font-size: .98rem;
  }
  h1 { font-size: 1.6rem; }
}

/* --------------------------------------
   MICRO-INTERACTIONS, HOVER, SHADOWS
   -------------------------------------- */
a, button, .cta-button,
.feature, .service, .testimonial-card, .card,
footer .footer-nav a {
  transition: background 0.17s, color 0.16s, box-shadow 0.12s, border 0.14s, transform 0.15s;
}

/* --------------------------------------
   RETRO NOSTALGIC ELEMENTS & PATTERNS
   -------------------------------------- */
body {
  /* Subtle retro patterns using border+shadows */
  background-image:
    repeating-linear-gradient(120deg, #F6EEDC 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-120deg, #F6EEDC 0 2px, transparent 2px 16px);
}
section, .text-section, .map-location, .feature, .service, .testimonial-card, .card {
  box-shadow: 0 0.5px 2.5px #dec8b26c, 0 6px 32px 0 #7f756415;
}

/* Retro dividing lines under h1/h2, ornaments */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--retro-orange);
  margin: 8px 0 0 0;
}

/* Vintage fonts for headings */
h1, h2, h3 {
  font-family: var(--brand-font-display), 'Arial Black', Arial, sans-serif !important;
  font-weight: 900;
  text-transform: none;
}
h3, h4, h5, h6 {
  color: #A25517;
}

/* --------------------------------------
   COOKIE CONSENT BANNER (FIXED BOTTOM)
   -------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FAE2C5;
  color: #2E1910;
  box-shadow: 0 -4px 16px #bfa27032;
  border-top: 3px solid #D67629;
  font-family: var(--brand-font-body);
  font-size: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 4vw;
  transition: transform 0.38s;
}
.cookie-consent-banner.hide {
  transform: translateY(160%);
}
.cookie-consent-banner p {
  margin: 0 18px 0 0;
  font-size: 1rem;
  color: #543E0A;
  flex: 1 1 55vw;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  font-family: var(--brand-font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid var(--retro-brown);
  background: var(--retro-yellow);
  color: #392A1C;
  padding: 8px 18px;
  cursor: pointer;
  margin-right: 0px;
  transition: background 0.15s, color 0.15s, border 0.13s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-orange);
  color: #fff;
  border-color: var(--retro-orange);
}
.cookie-btn.settings {
  background: #fff4e5;
  color: #AA7C14;
  border-style: dashed;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-brown);
  color: #fff;
  border-color: #d3b184;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 49%;
  transform: translate(-50%,-52%) scale(0.95);
  width: 92vw;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 14px 52px 0 #bc925d61;
  border-radius: 13px;
  border: 2px solid var(--retro-orange);
  padding: 32px 22px 20px 22px;
  z-index: 3500;
  animation: fadeinmodal 0.55s cubic-bezier(.37,.01,.59,.99);
  flex-direction: column;
  gap: 18px;
}
@keyframes fadeinmodal {
  from { opacity: 0; transform: translate(-50%,30%) scale(0.89); }
  to { opacity: 1; transform: translate(-50%,-52%) scale(1);
  }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal h2 {
  color: var(--retro-dark);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: #332a1e;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-category-row input[type=checkbox] {
  accent-color: #23A296;
  width: 19px; height: 19px;
}
.cookie-modal .modal-btn-group {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 20px;
  background: var(--retro-brown);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  border-radius: 99px;
  cursor: pointer;
  padding: 3px 10px;
  z-index: 1;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-orange);
}

@media (max-width: 600px){
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 6vw;
  }
}
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #321c1230;
  z-index: 3002;
  animation: fadeinmodal 0.35s;
}
.cookie-overlay.show { display: block; }

/* --------------------------------------
   FORM ELEMENTS (Calculator variants)
   -------------------------------------- */
input, select, textarea {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  padding: 10px;
  border-radius: 7px;
  border: 1.5px solid var(--retro-border);
  background: #FFFDF6;
  color: #2E1910;
  margin-bottom: 18px;
  width: 100%;
  outline: none;
  transition: border 0.14s, box-shadow 0.13s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid var(--retro-orange);
  box-shadow: 0 2px 12px 0 #d6762917;
}

.calculator-widget {
  background: #fffaf6;
  border: 2px dashed var(--retro-brown);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
}

/* --------------------------------------
   SPECIALS
   -------------------------------------- */
.next-steps {
  margin-top: 24px;
  text-align: center;
}
.next-steps a.cta-button {
  margin-top: 20px;
}

/* Accessibility/Contrast fixes for testimonials */
section .testimonial-card {
  background: #fff;
  color: #392A1C;
}

/* Hide visually but keep for screen readers */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* --------------------------------------
   MISCELLANEOUS
   -------------------------------------- */
::-webkit-scrollbar { width: 9px; background: #DED6C8; }
::-webkit-scrollbar-thumb { background: #F3C969; border-radius: 7px; }


/* Vintage outlining for logo */
header img[alt="UltraAxis Ubezpieczenia"] {
  filter: drop-shadow(0 1px 0 #fffce3) drop-shadow(0 3px 8px #aa7c1466);
}

/* --------------------------------------
   END
   -------------------------------------- */
