/* RESET & BASE TYPOGRAPHY --------------------------------------------------- */

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;
}

body {
  background: #F6F9FB;
  color: #21344B;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

a {
  color: #1CBAA8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #21344B;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #21344B;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.3rem;
  line-height: 1.18;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.22;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 13px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}

/* LAYOUT CONTAINER --------------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  max-width: 1000px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* SECTIONS / SPACING --------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(33,52,75,.04);
}

@media (max-width: 768px) {
  section {
    padding: 26px 10px;
    margin-bottom: 36px;
    border-radius: 7px;
  }
}

/* FLEX GRIDS / CARDS --------------------------------------------------- */
.feature-grid, .card-container, .content-grid, .blog-list, .offer-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid, .blog-list, .offer-list, .faq-list {
    flex-direction: column;
    gap: 14px;
  }
}

.card, .offer-item, .blog-post-preview, .faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,52,75,0.06);
  padding: 22px 22px 18px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.card:hover, .offer-item:hover, .blog-post-preview:hover, .faq-item:hover {
  box-shadow: 0 6px 20px rgba(28,186,168,0.11), 0 2px 8px rgba(33,52,75,0.08);
  z-index: 2;
}

/* .testimonial-card is not a card by markup, so style as card: */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F9FB;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(33,52,75,0.04);
  border: 1px solid #e0e5f0;
}
.testimonial-card p {
  color: #21344B;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #1CBAA8;
  font-weight: 600;
}

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  flex: 1 1 210px;
  background: none;
  border: none;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
}
@media (max-width: 700px) {
  .feature-item {
    flex: 1 1 100%;
    min-width: unset;
  }
}

/* SPECIALIZED LAYOUTS --------------------------------------------------- */
.offer-list {
  gap: 24px 28px;
}
.offer-item {
  border-left: 4px solid #1CBAA8;
  padding-left: 20px;
}

.blog-list {
  gap: 20px;
}
.blog-post-preview {
  border-left: 4px solid #21344B;
  padding-left: 20px;
}
.blog-post-preview a {
  color: #1CBAA8;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: underline;
}
.blog-post-preview a:hover {
  color: #21344B;
}

.faq-list {
  gap: 20px;
}
.faq-item {
  border-left: 4px solid #1CBAA8;
  padding-left: 20px;
}

/* BUTTONS --------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: 'Montserrat', 'Georgia', serif;
  background: #1CBAA8;
  color: #fff;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(28,186,168,0.07);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.18s, color 0.18s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #21344B;
  color: #fff;
  box-shadow: 0 3px 20px rgba(33,52,75,0.16);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  font-family: 'Montserrat', 'Georgia', serif;
  background: #fff;
  color: #1CBAA8;
  font-weight: 600;
  border: 1px solid #1CBAA8;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1CBAA8;
  color: #fff;
}

/* HEADER & NAVIGATION (Desktop) ------------------------------------------ */
header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(33,52,75,0.07);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 201;
  margin-bottom: 38px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 18px;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  color: #21344B;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s, background 0.18s;
  padding: 7px 10px;
  border-radius: 6px;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: #1CBAA8;
  background: #F6F9FB;
}

header img[alt="Volt Nieruchomości"] {
  height: 46px;
  width: auto;
  margin-right: 17px;
}

/* MOBILE NAVIGATION --------------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1CBAA8;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 6px;
    margin-left: 8px;
    transition: background 0.19s;
    z-index: 210;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #e3f5f3;
    color: #21344B;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,52,75, 0.37);
  z-index: 240;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  transition: opacity 0.27s, transform 0.33s;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu > nav, .mobile-nav {
  width: 85vw;
  max-width: 320px;
  background: #fff;
  height: 100vh;
  box-shadow: -4px 0 18px rgba(33,52,75,.11);
  display: flex;
  flex-direction: column;
  padding: 44px 0 0 0;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.19,1,.22,1);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #21344B;
  font-size: 2rem;
  cursor: pointer;
  z-index: 242;
}
.mobile-nav a {
  width: 100%;
  padding: 14px 32px;
  color: #21344B;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.1rem;
  border-bottom: 1px solid #f3f7fc;
  transition: background 0.15s, color 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6F9FB;
  color: #1CBAA8;
}

@media (max-width: 500px) {
  .mobile-menu > nav, .mobile-nav {
    max-width: 94vw;
    padding-top: 33px;
  }
}

@media (max-width: 1024px) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }
}

/* Hide mobile toggle on desktop, show on mobile */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* FOOTER --------------------------------------------------- */
footer {
  background: #21344B;
  color: #fff;
  padding: 32px 0;
  font-size: 0.98rem;
  margin-top: 44px;
}
footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 52px;
  width: 100%;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fff !important;
  opacity: 0.93;
  transition: opacity 0.13s;
  margin-bottom: 0;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer .text-section p {
  color: #fff;
  opacity: 0.86;
  margin-bottom: 0px;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* FORM ELEMENTS --------------------------------------------------- */
input, textarea, select {
  font-family: 'Roboto', 'Verdana', sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid #c9d2e4;
  background: #F6F9FB;
  margin-bottom: 18px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1CBAA8;
  background: #fff;
}
label {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: #21344B;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ICON ALIGNS --------------------------------------------------- */
.text-section img[alt^='Adres'],
.text-section img[alt^='Telefon'],
.text-section img[alt^='E-mail'],
.text-section img[alt^='Godziny'],
.text-section img[alt] {
  display: inline-block;
  width: 1.1em;
  min-width: 18px;
  margin-right: 7px;
  margin-bottom: -3px;
  vertical-align: middle;
}

/* MISC UTILITY --------------------------------------------------- */
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 32px !important; }

/* ANIMATION CLASSES ---------------------------------------- */
.fade-in {
  animation: fadeIn 0.7s ease forwards;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* COOKIE CONSENT BANNER ------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #21344B;
  box-shadow: 0 -1px 10px rgba(33,52,75,0.09);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 16px 22px 16px;
  transition: transform 0.45s cubic-bezier(0.33,1,0.68,1), opacity 0.28s;
  opacity: 0.98;
  flex-wrap: wrap;
  gap: 18px 26px;
}
.cookie-banner.hide {
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
}
.cookie-banner__text {
  font-size: 1rem;
  max-width: 480px;
  font-family: 'Georgia', serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #1CBAA8;
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 0.98rem;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
  background: #21344B;
  color: #fff;
}
.cookie-banner__btn--secondary {
  background: #fff;
  color: #1CBAA8;
  border: 1px solid #1CBAA8;
  margin-left: 8px;
}
.cookie-banner__btn--secondary:hover {
  background: #1CBAA8;
  color: #fff;
}

/* COOKIE MODAL --------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(33,52,75, 0.47);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal__window {
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px 24px 24px;
  min-width: 310px;
  max-width: 94vw;
  box-shadow: 0 7px 42px rgba(33,52,75,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn .38s;
  position: relative;
}
.cookie-modal__title {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #21344B;
  margin-bottom: 8px;
}
.cookie-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #21344B;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #1CBAA8;
}
.cookie-category.disabled {
  opacity: 0.7;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  width: 100%;
  margin-top: 19px;
  padding-left: 0;
  padding-right: 0;
}

/* Responsive for cookie modal */
@media (max-width: 600px) {
  .cookie-modal__window {
    padding: 18px 6px 18px 6px;
    min-width: unset;
  }
}

/* RESPONSIVE GENERAL -------------------------------------------------- */
@media (max-width: 650px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.14rem; }
  section { padding: 18px 3px; }
  .container { padding: 0 4px; }
  .btn-primary { padding: 9px 18px; font-size: 0.98rem; }
  .btn-secondary { padding: 8px 14px; font-size: 0.99rem; }
}

/* ========================================================== */
/* ELEGANT-CLASSIC THEME: DETAILS ----------------------------*/
body {
  background: #F6F9FB;
}
section {
  background: #fff;
  border: 1px solid #e3e9f3;
  box-shadow: 0 2px 12px rgba(33,52,75,.03);
}
.card, .offer-item, .blog-post-preview, .faq-item {
  background: #FAFAFA;
}
.feature-item, .text-section, .content-wrapper {
  background: none;
  border: none !important;
  box-shadow: none !important;
}

/* Typography refinement for classic elegance */
h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "liga", "clig", "kern";
  word-spacing: 0.04em;
}
p, li, ul, ol {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.05rem;
}

/* Add subtle elegant divider */
.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e4ea;
}

/* SHADOW AND BORDER RADIUS TWEAKS FOR THEME */
.card, .offer-item, .blog-post-preview, .faq-item, .testimonial-card {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,52,75,0.055);
}

/* Microinteraction for buttons */
.btn-primary:active {
  background: #178c7e;
  color: #fff;
}
.btn-secondary:active {
  background: #f7f7f7;
  color: #1CBAA8;
}

/* Subtle transitions for cards */
.card, .offer-item, .blog-post-preview, .faq-item, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .offer-item:hover, .blog-post-preview:hover, .faq-item:hover, .testimonial-card:hover {
  box-shadow: 0 7px 32px rgba(33,52,75,0.11);
  transform: translateY(-5px) scale(1.018);
}

/* List in Offers/Features: classic dots */
ul {
  list-style: disc inside none;
}

/* Table styles (if exists) for classic look */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #fff;
}
th, td {
  border-bottom: 1px solid #e4e4e4;
  padding: 14px 10px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #21344B;
}
th {
  background: #f4f6fb;
  font-weight: 700;
}

/* Accessibility: Focus rings & contrasts ---------------------*/
a, button, [tabindex]:not([tabindex="-1"]) {
  outline: none;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .cookie-banner__btn:focus-visible {
  outline: 2px solid #1CBAA8;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #b6ede7;
}

/* Hide elements visually (for accessibility only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* UTILITY: Z-index stacking for overlays and nav ----------- */
header { z-index: 201; }
.mobile-menu { z-index: 240; }
.cookie-modal { z-index: 99999; }
.cookie-banner { z-index: 9999; }

/* END OF CSS --------------------------------------------------------- */
