/* =========================================================
   CSS RESET & BASE (Vintage Retro Feel)
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #F6E7CB;
  color: #2D3142;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-image: repeating-linear-gradient(135deg, rgba(202,210,197,0.16), rgba(202,210,197,0.16) 2px, transparent 2px, transparent 14px);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2D3142;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,
a:focus {
  color: #D2913D;
}
ul, ol {
  list-style-position: inside;
}

/* Vintage Display Font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #2D3142;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #FFF6EB;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-top: 28px; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }

p, ul, ol {
  margin-bottom: 18px;
  font-size: 1rem;
}

strong {
  color: #B08968;
  font-weight: bold;
}

blockquote {
  background: #FFF6EB;
  border-left: 6px solid #FFD966;
  color: #2D3142;
  font-size: 1.15rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 10px;
  padding: 14px 18px;
  border-radius: 10px 30px 30px 10px;
  margin-top: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(50,40,20,0.06);
}

/* =========================================================
   GENERAL CONTAINERS & LAYOUTS (Flexbox only!)
   ========================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF6EB;
  border-radius: 20px;
  box-shadow: 0 5px 24px rgba(202,210,197,0.14), 0 2px 8px rgba(240,180,80,0.12);
  border: 2px dashed #F9C846;
}

.section:last-child {
  margin-bottom: 0;
}

.text-image-section {
  display: flex;      
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.main, main {
  margin-top: 80px;
  margin-bottom: 40px;
}

/* Card Containers & Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FAF4EC;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(45,49,66,0.08);
  border: 1.5px solid #ECD6A7;
  padding: 22px 20px;
  min-width: 220px;
  flex: 1 0 230px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 32px rgba(45,49,66,0.16);
  border-color: #F9C846;
  z-index: 10;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px dotted #F9C846;
}
.feature-item:last-child {
  border-bottom: none;
}

.inspiration-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.inspiration-card {
  background: #F6E7CB;
  border-radius: 18px;
  padding: 32px 20px;
  box-shadow: 0 1px 8px rgba(45,49,66,0.09);
  border: 1.5px solid #E4B363;
  flex: 1 0 250px;
  transition: box-shadow 0.18s, border 0.16s;
}
.inspiration-card:hover {
  box-shadow: 0 6px 24px rgba(45,49,66,0.15);
  border: 2px solid #F9C846;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 26px 0 6px 0;
  align-items: center;
}

.before-after-descriptions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #FFF6EB;
  border-radius: 18px;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 2px 8px rgba(202,210,197,0.12);
  border-left: 6px solid #F9C846;
  flex: 1 0 215px;
  margin-bottom: 20px;
}
.team-member h3 { margin-bottom: 8px; }

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================================
   HEADER & NAV
   ========================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px 22px;
  background: #F9C846 url("../assets/vintage-pattern.png") repeat-x bottom;
  box-shadow: 0 2px 12px 0 rgba(45,49,66,0.04);
  position: relative;
  z-index: 200;
  border-bottom: 4px double #2D3142;
}
header img[alt="Kolorowy Akcent"] {
  height: 54px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  letter-spacing: 0.03em;
  font-weight: bold;
  color: #2D3142;
  border-radius: 6px;
  padding: 4px 10px;
  position: relative;
  transition: background 0.14s, color 0.17s, box-shadow 0.15s;
}
header nav a.active,
header nav a:focus,
header nav a:hover {
  background: #F9C846;
  color: #393D3F;
  text-shadow: 1px 1px 0 #FFF6EB;
  box-shadow: 0 2px 6px rgba(45,49,66,0.07);
}

.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F9C846;
  color: #2D3142 !important;
  padding: 0.7em 2.1em;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 26px;
  border: 2.2px solid #2D3142;
  margin-left: 18px;
  transition: background 0.15s, color 0.18s, box-shadow 0.17s, border 0.11s;
  box-shadow: 0 2px 10px rgba(202,210,197,0.13);
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 #FFF6EB;
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #2D3142;
  color: #F9C846 !important;
  border-color: #F9C846;
  box-shadow: 0 4px 22px rgba(45,49,66,0.11);
}
button.cta-primary {
  font-size: 1rem;
}

.mobile-menu-toggle {
  font-size: 2rem;
  color: #2D3142;
  background: #FFEABD;
  border-radius: 12px;
  border: 1.5px solid #F9C846;
  padding: 7px 14px 4px 14px;
  margin-left: 18px;
  cursor: pointer;
  display: none;
  transition: background 0.17s, box-shadow 0.17s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #F9C846;
  background: #2D3142;
  border-color: #2D3142;
}

/* ==================
   MOBILE MENU OVERLAY
   ================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF6EB;
  z-index: 998;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.54,.46,.82,.67);
  box-shadow: -8px 0 24px rgba(45,49,66,0.08);
  padding: 28px 28px 0 28px;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #2D3142;
  cursor: pointer;
  padding: 3px 12px;
  margin-bottom: 24px;
  transition: color 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #F9C846;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0;
  color: #2D3142;
  text-align: left;
  border-radius: 5px;
  width: 100%;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F9C846;
  color: #393D3F;
}

/* Hide nav for mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none!important;
  }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF6EB;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(45,49,66,0.11);
  border-left: 6px solid #F9C846;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  background: none;
  border: none;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #2D3142;
  font-size: 1.07rem;
  text-shadow: none;
  padding: 0;
}
.testimonial-card strong {
  color: #A47551;
}

/* Color contrast for testimonials (no transparency, always readable) */
.testimonial-card, .testimonial-card blockquote, .testimonial-card p {
  color: #2D3142;
  background: #FFF6EB;
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #2D3142;
  color: #FFF6EB;
  padding: 36px 16px 30px 16px;
  border-top: 5px double #F9C846;
  margin-top: 40px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
footer nav a {
  color: #F9C846;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.03rem;
  transition: color 0.16s;
  letter-spacing: 0.01em;
}
footer nav a:hover, footer nav a:focus {
  color: #FFF6EB;
}
.footer-contact {
  margin-top: 16px;
  color: #FFF6EB;
}
.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
}

/* =========================================================
   COOKIE CONSENT BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #FAF4EC;
  border-top: 5px double #F9C846;
  box-shadow: 0 -2px 12px rgba(45,49,66,0.11);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px 18px 20px;
  font-size: 1rem;
  animation: banner-in 0.6s cubic-bezier(.64,.12,.45,1.05);
}
@keyframes banner-in {
  0% {transform: translateY(80px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  flex: 1 1 220px;
  color: #2D3142;
  font-size: 1.02rem;
}
.cookie-banner .cookie-btn {
  margin-left: 4px;
  margin-top: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F9C846;
  color: #2D3142;
  border: 2px solid #2D3142;
  border-radius: 20px;
  padding: 7px 19px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, border 0.13s;
}
.cookie-banner .cookie-btn.accept {
  background: #2D3142;
  color: #F9C846;
  border-color: #F9C846;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #F9C846;
  color: #2D3142;
  border-color: #2D3142;
}
.cookie-banner .cookie-btn.settings {
  background: #FFEABD;
  color: #2D3142;
  border-color: #2D3142;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #2D3142;
  color: #F9C846;
}
.cookie-banner .cookie-btn.reject {
  background: #FFF6EB;
  color: #A47551;
  border-color: #A47551;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #A47551;
  color: #FFF6EB;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(45,49,66,0.54);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  opacity:1;
  pointer-events:all;
}
.cookie-modal {
  background:#FFF6EB;
  border-radius:24px;
  box-shadow:0 10px 42px rgba(45,49,66,.13);
  max-width:480px;
  width:95%;
  padding:34px 28px 26px 28px;
  position:relative;
  animation: modal-in 0.5s cubic-bezier(.54,.46,.82,.67);
}
@keyframes modal-in {
  0%{transform:scale(0.92); opacity:0;}
  100%{transform:scale(1); opacity:1;}
}
.cookie-modal h2 {
  font-size:1.35rem;
  margin-bottom:18px;
  color:#2D3142;
}
.cookie-category {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}
.cookie-category label {
  font-size:1.05rem;
  color:#2D3142;
  font-family:'Montserrat', sans-serif;
}
.category-switch {
  width:46px;
  height:25px;
  background:#E9D8A6;
  border-radius:16px;
  display:flex;
  align-items:center;
  padding:2px 2px 2px 2px;
  transition:background .18s;
}
.category-switch input[type="checkbox"] {
  opacity:0;
  width:0;
  height:0;
  margin:0;
}
.category-switch .toggle {
  width:21px; height:21px;
  background: #F9C846;
  border-radius:50%;
  transition:transform 0.19s, background 0.18s;
  box-shadow:0 1px 4px rgba(50,40,20,0.10);
  position:relative;
}
.category-switch input:checked + .toggle {
  transform:translateX(21px);
  background: #2D3142;
}
.cookie-modal .modal-actions {
  display:flex;
  gap:16px;
  margin-top:18px;
  justify-content:flex-end;
}
.cookie-modal .modal-close {
  position:absolute;
  top:16px; right:15px;
  background: none;
  border: none;
  font-size:1.5rem;
  color:#2D3142;
  cursor:pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:hover,.cookie-modal .modal-close:focus {
  color:#F9C846;
}

/* =========================================================
   RESPONSIVE: MOBILE FIRST, DESKTOP OVERRIDES
   ========================================================= */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    gap: 8px;
  }
  header img[alt="Kolorowy Akcent"] {
    height: 40px;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .card-container, .content-grid, .before-after-descriptions, .inspiration-cards, .team-grid, .swatch-row {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
  }
  .team-member, .inspiration-card, .card {
    padding: 14px 10px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .container { padding: 0 2px; }
  .cookie-banner {
    flex-direction: column;
    gap: 7px;
    padding: 12px 5px 10px 5px;
  }
}

/* =========================================================
   VINTAGE/RETRO MICRO-ELEMENTS
   ========================================================= */
/* Retro corner details, subtle film grain overlay, and deco borders */
.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 140px; height: 25px;
  background: url('../assets/retro-corner-l.svg') no-repeat left bottom;
  opacity: 0.14;
  z-index: 1;
  pointer-events:none;
}
.section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 110px; height: 21px;
  background: url('../assets/retro-corner-r.svg') no-repeat right top;
  opacity: 0.15;
  z-index: 1;
  pointer-events:none;
}
.section > * { position: relative; z-index: 2; }


/* =========================================================
   SELECTS, INPUTS (if used in modals)
   ========================================================= */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 9px;
  border: 1.6px solid #CAB87B;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #FFF6EB;
  color: #2D3142;
  transition: border 0.16s, box-shadow 0.14s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #F9C846;
  box-shadow: 0 0 6px #E4B363;
}

/* =========================================================
   HOVER & ACCESSIBILITY STATES
   ========================================================= */
:focus {
  outline: 2.5px solid #F9C846 !important;
  outline-offset: 2.5px;
}

::-webkit-input-placeholder { color: #A47551; }
::-moz-placeholder { color: #A47551; }
:-ms-input-placeholder { color: #A47551; }
::placeholder { color: #A47551; }

/* =========================================================
   SCROLLBAR (retro style)
   ========================================================= */
body::-webkit-scrollbar {
    width: 11px;
    background: #FFEABD;
}
body::-webkit-scrollbar-thumb {
    background: #F9C846;
    border-radius: 10px;
    border: 2px solid #FFEABD;
}
body::-webkit-scrollbar-thumb:hover {
    background: #2D3142;
}

/* =========================================================
   MISCELLANEOUS CLASS SUPPORT
   ========================================================= */
.section, .card, .testimonial-card, .inspiration-card, .team-member {
  margin-bottom: 20px;
}
/* Prevent overlapping everywhere */
.card, .inspiration-card, .team-member, .testimonial-card {
  z-index: 2;
}

/* Patterned horizontal border for section headers (deco bar) */
h2::after {
  content: '';
  display: block;
  margin: 12px 0 8px 0;
  width: 80px;
  border-bottom: 3px dashed #F9C846;
  opacity: 0.8;
}


/* END */
