/* ============================== */
/* CSS 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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.65;
  background: #F3F6F9;
  color: #222F3E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #FFC145;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}
strong, b {
  font-weight: 600;
}
hr {
  border: none;
  border-top: 1px solid #e3e8ee;
  margin: 32px 0;
}

/* ==================== */
/* TYPOGRAPHY SCALE     */
/* ==================== */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #274472;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #274472;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #274472;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #274472;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222F3E;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* ================ */
/* LAYOUT CONTAINER */
/* ================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
@media (min-width: 992px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(39,68,114,0.04);
}
/* Let individual pages still apply container inside section for max width */

/* ============================ */
/* HEADER, NAVIGATION & LOGO    */
/* ============================ */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(39,68,114,0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img[alt="Brillia Tide Nieruchomości"] {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0 8px 0;
  color: #274472;
  border-radius: 5px;
  background: none;
  transition: color .2s, background .18s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #f3f6f9;
  color: #FFC145;
}
.main-nav .btn-primary {
  margin-left: 18px;
  padding: 9px 22px;
}

.mobile-menu-toggle {
  display: none;
  background: #F3F6F9;
  color: #274472;
  font-size: 2.1rem;
  border: none;
  border-radius: 7px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e7ecf2;
  color: #FFC145;
  box-shadow: 0 2px 8px 0 rgba(39,68,114,0.05);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ================================ */
/* MOBILE MENU OVERLAY & NAVIGATION */
/* ================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,246,249,0.97);
  box-shadow: -4px 0 32px 0 rgba(39,68,114,0.09);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  transition: transform .36s cubic-bezier(0.7,0,0.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 14px 0;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #274472;
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 11px 6px 11px;
  transition: color .2s, background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e7ecf2;
  color: #FFC145;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 0 36px;
  margin-top: 6px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #274472;
  padding: 14px 0 12px 0;
  width: 100%;
  border-radius: 6px;
  font-weight: 500;
  transition: background .18s, color .2s;
  outline: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e9eef4;
  color: #FFC145;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
    pointer-events: none !important;
  }
}

/* ================= */
/* HERO SECTION      */
/* ================= */
.hero {
  position: relative;
  background: #F3F6F9;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 0 0 0 0;
  border-radius: 0;
  box-shadow: none;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.87);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 28px 0 rgba(39,68,114,0.045);
  gap: 18px;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero .content-wrapper {
    padding: 22px 10px;
  }
  .hero {
    min-height: 160px;
    margin-bottom: 32px;
  }
}

/* =========== */
/* SECTIONS    */
/* =========== */
section {
  margin-bottom: 60px;
  padding: 0;
}
section > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* =========== */
/* BUTTONS     */
/* =========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #274472;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 11px 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 5px 0 rgba(39,68,114,0.07);
  outline: none;
  transition: background .2s, box-shadow .15s, color .22s;
  min-width: 140px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFC145;
  color: #274472 !important;
  box-shadow: 0 6px 16px 0 rgba(39,68,114,0.13);
  text-decoration: none;
}

/* ================ */
/* FEATURED GRIDS   */
/* ================ */
.feature-grid, .service-list, .blog-list, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-block {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px 0 rgba(39,68,114,0.045);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 230px;
  padding: 26px 20px 22px 20px;
}
.feature-block img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-block p {
  font-size: 1rem;
}

/* ========================= */
/* CONTENT/CARD CONTAINERS   */
/* ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(39,68,114,0.045);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ========================= */
/* BLOG TEASERS & NEWSLETTER */
/* ========================= */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-teaser {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(39,68,114,0.045);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid #FFC145;
  margin-bottom: 20px;
}

.newsletter-box {
  background: #f9fafb;
  border: 1.5px solid #FFC145;
  border-radius: 11px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  gap: 14px;
}

/* ========================= */
/* TESTIMONIALS              */
/* ========================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #f5f7fa;
  color: #222f3e;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(39,68,114,0.045);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 460px;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card strong {
  color: #274472;
  font-weight: 500;
  font-size: 1.06rem;
}
.testimonial-card span {
  color: #FFC145;
  font-size: 1rem;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .testimonial-card p {
    margin-bottom: 0;
  }
}
@media (max-width: 640px) {
  .testimonial-card {
    padding: 13px;
    font-size: 0.98rem;
  }
}

/* ========================= */
/* TEXT-IMAGE SECTIONS       */
/* ========================= */
.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;
  }
}

/* ========================= */
/* TEXT SECTION              */
/* ========================= */
.text-section {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.text-section img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================= */
/* LISTS                     */
/* ========================= */
ul, ol {
  font-size: 1rem;
  color: #222f3e;
  font-family: 'Roboto', Arial, sans-serif;
  padding-left: 24px;
  margin-bottom: 12px;
}
ul li:not(:last-child), ol li:not(:last-child) {
  margin-bottom: 8px;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
footer {
  background: #f3f6f9;
  color: #222f3e;
  font-size: 0.96rem;
  padding: 38px 0 16px 0;
  border-top: 1.5px solid #e5e9ef;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #555c67;
  padding: 5px 0;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .15s, border-bottom .18s;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #274472;
  border-bottom: 1px solid #FFC145;
}
footer p {
  font-size: 0.96rem;
  color: #888a92;
}

/* ========================= */
/* COOKIE CONSENT BANNER     */
/* ========================= */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 2px solid #FFC145;
  box-shadow: 0 -4px 32px 0 rgba(39,68,114,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 19px 3vw 14px 3vw;
  transition: transform .3s cubic-bezier(0.7,0,0.2,1), opacity .25s;
  gap: 12px;
}
.cookie-banner.hide {
  transform: translateY(180%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #222F3E;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: center;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  margin: 0 2px;
  cursor: pointer;
  transition: background .17s, color .15s, box-shadow .15s;
  min-width: 110px;
}
.cookie-banner .accept {
  background: #274472;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #FFC145;
  color: #274472;
}
.cookie-banner .reject {
  background: #f5f7fa;
  color: #274472;
  border: 1.3px solid #274472;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e9eef4;
  color: #274472;
}
.cookie-banner .settings {
  background: #FFC145;
  color: #274472;
  font-weight: 500;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #ffe7b2;
  color: #274472;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(39,68,114,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4010;
  opacity: 1;
  transition: opacity .23s;
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 48px 0 rgba(39,68,114,0.19);
  max-width: 410px;
  width: 93vw;
  padding: 38px 30px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 10px;
  color: #274472;
  font-weight: 600;
  font-size: 1.25rem;
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.cookie-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222F3E;
}
.cookie-setting label {
  font-size: 1rem;
  margin-right: 8px;
}
.cookie-setting input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #274472;
}
.cookie-setting input[disabled] {
  opacity: 0.45;
}
.cookie-modal .modal-actions {
  width: 100%;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 13px;
  right: 17px;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: #274472;
  cursor: pointer;
  border-radius: 7px;
  padding: 5px 8px 5px 8px;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: #f5f7fa;
  color: #FFC145;
}

@media (max-width: 400px) {
  .cookie-modal {
    padding: 16px 5vw 14px 5vw;
  }
}

/* ================ */
/* ANIMATIONS       */
/* ================ */
a, .btn-primary, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  transition: color 0.18s, background 0.17s, box-shadow 0.17s, border-color 0.17s;
}
.hero .btn-primary, .newsletter-box .btn-primary, .content-wrapper .btn-primary {
  transition: background 0.19s, color 0.22s, box-shadow 0.18s;
}
.card, .blog-teaser, .testimonial-card, .newsletter-box, .feature-block {
  transition: box-shadow .19s, transform .15s;
}
.card:hover, .blog-teaser:hover, .testimonial-card:hover, .newsletter-box:hover, .feature-block:hover {
  box-shadow: 0 8px 28px rgba(39,68,114,0.12);
  transform: translateY(-4px) scale(1.015);
}

/* ================ */
/* RESPONSIVE RULES */
/* ================ */
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    gap: 17px;
  }
  section {
    margin-bottom: 32px;
    padding: 0;
  }
  .section {
    padding: 19px 6px;
    border-radius: 10px;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero .content-wrapper {
    padding: 14px 2.5vw;
    font-size: 0.98rem;
  }
  .feature-block, .blog-teaser, .card {
    padding: 16px 7px;
    min-width: 0;
    font-size: 0.97rem;
  }
}

/* ======= FOCUS RINGS ======== */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid #FFC145 !important;
  outline-offset: 2px;
}

/* ============= UTILITIES ============== */
.d-none { display: none !important; }
.align-center { text-align: center !important; }
.mt-24 { margin-top: 24px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-60 { margin-bottom: 60px !important; }

/* ======= OTHER ELEMENTS ========== */
::-webkit-input-placeholder { color: #b1b6be; }
:-ms-input-placeholder { color: #b1b6be; }
::placeholder { color: #b1b6be; }

/*  Hide scroll for mobile menu when open */
body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}

/* ====== Z-INDEX STACKING ======= */
header { z-index: 1030; }
.mobile-menu { z-index: 2001; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4010; }

/* ============ MANDATORY SPACING ============== */
.card-container, .feature-grid, .content-grid, .service-list, .blog-list {
  gap: 24px;
}
.card, .blog-teaser, .feature-block, .testimonial-card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.testimonial-card {
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
  align-items: flex-start;
  flex-direction: column;
}
.text-image-section{
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  display: flex;
}
@media (max-width: 768px){
  .text-image-section{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================ */
/* END OF STYLE.CSS             */
/* ============================ */
