/* ================== CSS RESET & NORMALIZATION ================== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #232447;
  color: #F1F1EA;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  display: block;
}

main {
  flex: 1 0 auto;
}

section {
  width: 100%;
}
a {
  color: #B89874;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #ffeeba;
}

ul, ol {
  padding-left: 24px;
}

strong, b {
  color: #fff;
  font-weight: bold;
}

::-webkit-scrollbar {
  width: 10px;
  background: #232447;
}
::-webkit-scrollbar-thumb {
  background: #313259;
  border-radius: 5px;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; color: #B89874; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p {
  font-family: 'Lato', Arial, sans-serif;
  color: #F1F1EA;
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Typography scaling for mobile, tablet, desktop */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.98rem; }
}
@media (min-width: 769px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.4rem; }
  p  { font-size: 1.1rem; }
}

/* ================== LAYOUT UTILS ================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(49,50,89,0.85);
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 rgba(29, 31, 74, 0.18);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #2b2c50;
  margin-bottom: 20px;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 4px 20px 0 rgba(60,66,100, 0.13);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid rgba(184,152,116,0.04);
}

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

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F1F1EA;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(32,33,66,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 340px;
  color: #313259;
  border-left: 5px solid #B89874;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(184,152,116, 0.13);
  transform: translateY(-8px) scale(1.025);
}
.testimonial-card p {
  color: #232447;
  font-style: italic;
}
.testimonial-card span {
  color: #B89874;
  font-size: 0.98rem;
}

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

/* For lists with icons in / */
section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 4px;
}
section ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: rgba(35,36,71, 0.80);
  padding: 20px 16px;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(49,50,89, 0.08);
  min-width: 180px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 1px solid rgba(184,152,116,0.04);
}
section ul li img {
  height: 36px; width: 36px;
  margin-bottom: 6px;
}
section ul li h3 {
  color: #B89874;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* ================== HEADER ================== */
header {
  background: #232447;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 4px 24px 0 rgba(49,50,89, 0.13);
}
header .container {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
header img[alt="Porcelanowy Klimat"] {
  height: 48px;
  width: auto;
}

header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #F1F1EA;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 6px 2px;
  transition: color 0.16s;
}
header nav a:hover, header nav a:active {
  color: #B89874;
}
header .btn-primary {
  margin-left: 22px;
}
header .mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  header nav {
    gap: 15px;
  }
  header .container { height: 72px; }
  header img[alt="Porcelanowy Klimat"] { height: 36px; }
}
@media (max-width: 768px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  header .mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    z-index: 99;
    margin-left: auto;
    margin-right: 0;
    align-items: center;
    transition: color 0.15s;
  }
  header .container { height: 56px; }
}

/* ================== MOBILE MENU ================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: rgba(35,36,71, 0.98);
  box-shadow: 0 8px 32px 0 rgba(11,15,25,0.23);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105vw);
  transition: transform 0.35s cubic-bezier(.36,.56,.05,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.7rem;
  margin: 16px 20px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2200;
}
.mobile-menu-close:hover {
  color: #B89874;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 52px;
  align-items: center;
}
.mobile-nav a {
  color: #F1F1EA;
  font-size: 1.3rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 0;
  width: 80%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  background: none;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #313259;
  color: #B89874;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== HERO SECTION ================== */
.hero {
  background: linear-gradient(115deg, #232447 0%, #313259 100%);
  border-radius: 0 0 42px 42px;
  box-shadow: 0 10px 60px 0 rgba(49,50,89, 0.17);
  margin-bottom: 60px;
  padding: 0 0 56px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 330px;
  gap: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
}
.hero p {
  max-width: 800px;
  font-weight: 400;
  color: #F1F1EA;
}
.hero .btn-primary {
  margin-top: 16px;
}
@media (max-width: 768px) {
  .hero { padding-bottom: 28px; margin-bottom: 30px; border-radius: 0 0 24px 24px; }
  .hero .container { min-height: 200px; }
  .hero h1 { font-size: 1.5rem; }
}

/* "Thank You" Page Section */
.thank-you {
  margin-top: 48px;
  margin-bottom: 60px;
  padding: 40px 24px;
  background: rgba(49,50,89,0.92);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 28px 0 rgba(102, 121, 184, 0.14);
}
.thank-you h1 { margin-bottom: 18px; }

/* ================== BUTTONS ================== */
.btn-primary {
  background: #B89874;
  color: #232447;
  padding: 14px 42px;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 16px 0 rgba(184,152,116,0.13);
  cursor: pointer;
  letter-spacing: 0.03em;
  font-weight: 700;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.14s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff;
  color: #B89874;
  box-shadow: 0 6px 24px 0 rgba(234,192,120,0.17);
  transform: scale(1.035);
}

/* For cookie banner, settings, etc. */
.btn-secondary {
  background: none;
  color: #B89874;
  border: 2px solid #B89874;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  margin-right: 12px;
  transition: background 0.14s, color 0.14s, border 0.14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B89874;
  color: #313259;
  border-color: #fff;
}

.btn-tertiary {
  background: #313259;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 8px;
  transition: background 0.14s, color 0.14s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #B89874;
  color: #232447;
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ FOOTER ============ */
footer {
  background: #313259;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -2px 30px 0 rgba(49,50,89, 0.11);
  color: #fff;
  padding: 32px 0 12px 0;
  margin-top: 58px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.80;
  transition: opacity 0.13s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  color: #B89874;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  color: #B89874;
}
.footer-brand img {
  height: 30px;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.footer-contact img {
  height: 18px;
  margin-right: 5px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer nav, .footer-brand, .footer-contact {
    margin-bottom: 0;
  }
}
@media (max-width: 520px) {
  .footer-contact span {
    display: block;
    margin-top: 2px;
  }
}

/* ============ CARDS ============ */
.card, section ul li, .testimonial-card {
  will-change: transform, box-shadow;
}
.card:hover, section ul li:hover {
  box-shadow: 0 8px 36px 0 rgba(184,152,116,0.12);
  border-color: #B89874;
  z-index: 2;
  transform: translateY(-5px) scale(1.018);
}

/* ============ HIGHLIGHTED TOPICS (Blog) ============ */
.highlighted-topics {
  margin-top: 16px;
  padding: 18px 22px;
  background: rgba(184,152,116, 0.10);
  border-radius: 10px;
}
.highlighted-topics h3 {
  color: #B89874;
  margin-bottom: 10px;
}
.highlighted-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.highlighted-topics ul li {
  font-size: 1rem;
  padding: 6px 16px;
  background: #313259;
  border-radius: 8px;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
}

/* ============ MAP/CONTACT ============ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(49,49,89,0.09);
  border-radius: 12px;
  padding: 16px 14px;
}
.map {
  margin-top: 20px;
  background: rgba(35,36,71, 0.80);
  border-radius: 12px;
  padding: 14px 14px 18px 14px;
  color: #F1F1EA;
}

/* ============ COOKIE CONSENT BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #313259;
  color: #F1F1EA;
  box-shadow: 0 -2px 14px 0 rgba(49,50,89,0.22);
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  z-index: 3000;
  gap: 22px;
  font-family: 'Lato', Arial, sans-serif;
  animation: fadeInUp 0.6s cubic-bezier(.42,0,.19,1);
}
.cookie-banner .cookie-text {
  flex: 2 1 240px;
  font-size: 1rem;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 8px 14px 8px;
  }
  .cookie-banner .cookie-actions { width: 100%; justify-content: flex-start; }
}

/* Modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed; top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(35,36,71, 0.94);
  z-index: 4000;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  color: #313259;
  border-radius: 22px;
  box-shadow: 0 10px 60px 0 rgba(49,50,89, 0.18);
  max-width: 360px;
  width: 88vw;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInUp 0.33s cubic-bezier(.42,0,.19,1);
}
.cookie-modal h3 {
  color: #B89874;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  margin-left: 6px;
}
.cookie-category input[type=checkbox] {
  accent-color: #B89874;
  width: 20px;
  height: 20px;
}
/* Essential cookies always active */
.cookie-category .category-essential {
  color: #666;
  font-style: italic;
}
/* Modal close button */
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #313259;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover { color: #B89874; }
/* Save/Accept buttons in modal */
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ================== RESPONSIVE ADAPTATION ================== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 760px; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 600px) {
  .container { max-width: 99vw; }
  .section      { margin-bottom: 35px; padding: 26px 4vw; border-radius: 12px; }
  .card         { padding: 16px 8px; border-radius: 10px; margin-bottom: 14px; }
  .testimonial-card { border-radius: 8px; min-width: 180px; max-width: 95vw; }
  section ul li   { border-radius: 8px; min-width: auto; padding: 14px 8px; }
}
@media (max-width: 410px) {
  .footer-brand img { height: 22px; }
  .footer-contact { font-size: 0.93rem; }
}

/* ================== MICRO-INTERACTIONS ================== */
.btn-primary, .btn-secondary, .testimonial-card, .card, section ul li, .mobile-menu, .cookie-banner {
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, transform 0.16s;
}

.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

/* ================== UTILITY CLASSES ================== */
.text-section { margin-bottom: 20px; }
.text-section ul {
  margin-top: 8px; margin-bottom: 8px;
  gap: 10px;
}
.text-section ul li {
  background: none;
  padding: 3px 0;
  border: none;
  box-shadow: none;
  color: #B89874;
  font-weight: 500;
}

/* Spacing utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ================== END OF CSS ================== */
