/* =============================================================
   Crepidi Meble Monochrome Sophisticated Flex CSS
   Brand Colors:
     --black: #111;
     --dark: #222;
     --white: #fff;
     --gray-light: #f6f6f6;
     --gray: #eaeaea;
     --gray-mid: #b0b0b0;
     --accent: #F6F4EF;
     --primary-brand: #20413B;
     --secondary-brand: #D0B28C;
   Brand Fonts:
     --display: 'Montserrat', Arial, Helvetica, sans-serif;
     --body: 'Open Sans', Arial, Helvetica, sans-serif;
   ============================================================= */

:root {
  --black: #111;
  --dark: #222;
  --white: #fff;
  --gray-light: #f6f6f6;
  --gray: #ececec;
  --gray-mid: #b0b0b0;
  --accent: #F6F4EF;
  --primary-brand: #20413B;
  --secondary-brand: #D0B28C;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 32px rgba(34,34,34,0.09), 0 1.5px 6px rgba(34,34,34,0.09);
  --shadow-light: 0 2px 8px rgba(34,34,34,0.07);

  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-xxl: 48px;
}

/* ===================== CSS RESET / NORMALIZE ===================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-xxl); margin-bottom: 16px; }
h2 { font-size: var(--fs-xl); margin-bottom: 12px; }
h3 { font-size: var(--fs-lg); margin-bottom: 12px; font-weight: 500; }
h4, h5, h6 { font-size: var(--fs-md); margin-bottom: 8px; font-weight: 500; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: 600; color: var(--black); }
a { color: var(--primary-brand); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--black); }
ul, ol {padding-left: 24px;}
ul li, ol li { margin-bottom: 6px; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm);}

/* ---------------- General Spacing and Containers --------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

main > section:not(:first-child) {
  margin-top: 8px;
}

/* =================== FLEX LAYOUTS =================== */
.features, .services, .about-short, .testimonials, .cta-contact, .about, .faq, .policy, .contact-info, .cta-section, .thank-you {
  margin-bottom: 60px;
  padding: 40px 0;
}

.feature-grid, .feature-list, .usp-grid, .tip-categories, .problem-solution-grid, .visit-details, .company-values, .step-list, .contact-details-list, .services-list, .project-highlights, .faq-list, .contact-quick-list  {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 24px;
  flex: 1 1 280px;
  transition: box-shadow .15s;
}
.card:hover {
  box-shadow: var(--shadow);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px;
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 540px;
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-meta {
  font-size: var(--fs-sm);
  color: var(--black);
  font-family: var(--display);
}
.testimonial-meta span {
  color: var(--secondary-brand);
  font-size: 20px;
  letter-spacing: 1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================= NAVIGATION =================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(34,34,34,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}
.logo-link img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--display);
  color: var(--black);
  font-weight: 500;
  font-size: var(--fs-md);
  transition: color .18s;
  position: relative;
}
.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-brand);
  transition: width .18s;
  position: absolute;
  bottom: -4px;
  left: 0;
}
.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  background: var(--primary-brand);
  color: var(--white) !important;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-md);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  outline: none;
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--black);
  color: var(--secondary-brand) !important;
  box-shadow: 0 2px 8px rgba(32,65,59,0.13);
}

/* ================= MOBILE MENU ================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-brand);
  font-size: 30px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 2002;
  transition: color .18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary-brand);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(34,34,34,.12);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  justify-content: flex-start;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--primary-brand);
  font-size: 36px;
  margin: 30px 24px 12px 0;
  cursor: pointer;
  z-index: 2003;
  transition: color .18s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 36px;
  margin-top: 40px;
}
.mobile-nav a {
  color: var(--dark);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .13s;
}
.mobile-nav a:hover {
  background: var(--gray-light);
  color: var(--primary-brand);
}

/* ================== HERO SECTION ==================== */
.hero {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray);
  padding: 55px 0 50px;
}
.hero h1 {
  color: var(--primary-brand);
  margin-bottom: 12px;
}
.hero p {
  color: var(--dark);
  font-size: var(--fs-lg);
}

/* =================== FEATURES ====================== */
.features h2, .about-short h2, .about h2 {
  color: var(--black);
}
.feature-grid li, .feature-list li, .usp-grid li {
  flex: 1 1 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  min-width: 200px;
  transition: box-shadow .16s, transform .12s;
}
.feature-grid li:hover,
.feature-list li:hover,
.usp-grid li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .feature-list img, .usp-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ================= SERVICES/USŁUGI =================== */
.services-list li,
.services ul li {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 22px 21px 20px;
  margin-bottom: 20px;
  font-size: var(--fs-md);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.services-list .service-price, .services ul li span {
  color: var(--primary-brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing:0.01em;
}


/* =================== ABOUT ======================= */
.company-values li {
  flex: 1 1 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 18px 18px;
  margin-bottom: 0;
  font-size: var(--fs-md);
}

/* =================== TESTIMONIALS ================== */
.testimonials h2 {
  color: var(--black);
}
.testimonials .testimonial-card {
  margin-bottom: 24px;
  max-width: 510px;
}

/* =================== CONTACT INFO ================== */
.contact-info ul, .contact-quick-list {
  gap: 18px;
}
.contact-details-list li, .contact-quick-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: var(--fs-md);
  margin-bottom: 0;
}
.contact-details-list img, .contact-quick-list img {
  margin-right: 8px;
  width: 22px;
  height: 22px;
}
.visit-details li {
  flex: 1 1 220px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-light);
}

/* =================== CTA / THANK YOU SECTION ================== */
.cta-section, .cta-contact, .thank-you {
  background: var(--primary-brand);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 44px 0;
  box-shadow: var(--shadow-light);
}
.cta-section h2, .cta-contact h2, .thank-you h1 {
  color: var(--secondary-brand);
  margin-bottom: 10px;
}
.cta-section p, .cta-contact p, .thank-you p {
  color: var(--accent);
}
.cta-section .cta-btn, .cta-contact .cta-btn, .thank-you .cta-btn {
  background: var(--secondary-brand);
  color: var(--primary-brand)!important;
  margin: 20px 0 0 0;
}
.cta-section .cta-btn:hover, .cta-contact .cta-btn:hover, .thank-you .cta-btn:hover {
  background: var(--white);
  color: var(--primary-brand)!important;
  border: 1.5px solid var(--primary-brand);
}

/* =================== FAQ ================== */
.faq-list li {
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 20px 18px;
  margin-bottom: 16px;
  font-size: var(--fs-md);
}

/* =================== POLICY PAGES ================== */
.policy {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 64px;
  padding: 38px 0 45px 0;
}
.policy h1, .policy h2 {
  color: var(--primary-brand);
}
.policy ul, .policy ol {
  padding: 0 22px 0 30px;
}
.policy ul li, .policy ol li {
  margin-bottom: 5px;
}

/* =================== FOOTER ===================== */
footer {
  background: var(--black);
  color: var(--gray-mid);
  padding: 38px 0 14px 0;
}
.footer-logo img {
  height: 48px; width: auto;
  margin-bottom: 14px;
}
.footer-menu, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 9px;
  align-items: center;
}
.footer-menu a {
  color: var(--secondary-brand);
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  transition: color .15s;
}
.footer-menu a:hover { color: var(--accent);
  text-decoration: underline;
}
.footer-contact span {
  color: var(--gray-mid);
  font-family: var(--body);
  font-size: 15px;
}
.footer-copy { color: var(--gray-mid); font-size: 12px; opacity: .8; }

/* ================= COOKIE CONSENT BANNER + MODAL ================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--accent);
  font-size: var(--fs-md);
  z-index: 3000;
  padding: 20px 10px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.11);
  gap: 32px;
  flex-wrap: wrap;
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
}
.cookie-banner[aria-hidden="true"] {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: var(--secondary-brand);
  color: var(--black);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  margin-left: 0;
  transition: background .18s, color .18s, box-shadow .14s;
  box-shadow: none;
  cursor: pointer;
}
.cookie-btn:hover { background: var(--accent); color: var(--primary-brand); }
.cookie-btn.reject {
  background: var(--gray-mid);
  color: var(--white);
}
.cookie-btn.reject:hover { background: var(--primary-brand); color: var(--white); }
.cookie-btn.settings {
  background: transparent;
  color: var(--secondary-brand);
  border: 1.5px solid var(--secondary-brand);
}
.cookie-btn.settings:hover { background: var(--secondary-brand); color: var(--black); }

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.48);
  z-index: 3200;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px 28px 30px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalScaleIn .3s cubic-bezier(.35,1.07,.75,1.25);
}
.cookie-modal h2 {
  color: var(--primary-brand);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: var(--fs-md);
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--primary-brand);
  width: 20px; height: 20px;
  border-radius: 4px;
}
.cookie-modal .cookie-category.essential label {
  opacity: .7;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 13px;
}
.cookie-modal .cookie-btn { min-width: 100px; }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(.89); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1080px) {
  .container {
    max-width: 900px;
  }
  .main-nav {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .footer-menu, .footer-contact {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .features-list,
  .usp-grid,
  .step-list,
  .services-list,
  .project-highlights {
    gap: 14px;
  }
  .feature-grid li, .feature-list li, .usp-grid li {
    padding: 20px 12px;
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.07rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute; right: 18px; top: 18px;
  }
  .hero {
    padding: 34px 0 24px;
  }
  .section,
  .features,
  .services,
  .about-short,
  .testimonials,
  .cta-contact,
  .about,
  .faq,
  .policy,
  .contact-info,
  .cta-section,
  .thank-you {
    padding: 24px 0;
    margin-bottom: 34px;
  }
  .feature-grid, .feature-list, .usp-grid, .step-list, .tip-categories, .project-highlights, .visit-details {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 18px 11px;
  }
  .footer-menu, .footer-contact {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }
  .cookie-modal {
    padding: 20px 10px 14px 10px;
    max-width: 98vw;
  }
  .mobile-nav {
    margin: 0 16px;
    gap: 18px;
    margin-top: 22px;
  }
  .mobile-menu-close {
    margin: 20px 12px 8px 0;
    font-size: 28px;
  }
}
@media (max-width: 560px) {
  .footer-logo img {
    height: 38px;
  }
  .cta-btn, .cookie-btn {
    padding: 10px 12px;
    font-size: 15px;
  }
}

/* =============== UTILITY CLASSES =============== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Highlight (for eg. thank you, success msg) */
.highlight {
  color: var(--secondary-brand);
  font-weight: bold;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: var(--fs-md);
}

/* =================== FORM FIELDS =================== */
input, textarea, select {
  border: 1.5px solid var(--gray);
  background: var(--gray-light);
  font-family: var(--body);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  padding: 11px 14px;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-brand);
  outline: none;
}

/* ========= Hide elements visually (eg. for cookies, modals) ========= */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* =============== ANIMATIONS (for button press, hover, section entrance) =============== */
.cta-btn, .cookie-btn {
  transition: background .18s, color .18s, transform .14s, box-shadow .16s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(.96);
  box-shadow: 0 1px 4px rgba(40,40,40,0.11);
}

.section, .features, .about, .services, .cta-contact, .policy, .faq, .thank-you {
  animation: fadeInUp .7s cubic-bezier(.26,1.15,.75,1.07);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== MISC: Problem/Solution, Lists, etc. =========== */
.problem-solution-grid li {
  flex: 1 1 270px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 13px;
  box-shadow: var(--shadow-light);
}

.faq-list strong {
  color: var(--primary-brand);
  display: block;
  margin-bottom: 6px;
}

/* ===================== END ===================== */
