/* RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #13181B;
  color: #F7F7F7;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: #5CA88C;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  color: #b7b4b4;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {font-size: 2.25rem; line-height: 1.16; margin-bottom: 24px;}
h2 {font-size: 1.625rem; margin-bottom: 18px;}
h3 {font-size: 1.125rem; margin-bottom: 10px; font-weight: 600;}
h4, h5, h6 {font-size: 1rem;}
p, ul li, ol li, .footer-contact span {
  font-size: 1rem;
  color: #C9CFD2;
  margin-bottom: 10px;
}
strong {font-weight: 600; color: #fff;}

/* BRAND CONTAINERS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.text-section {
  margin-bottom: 32px;
}

.text-section ul { margin-bottom: 16px; }
.text-section li { margin-bottom: 8px; }

/* HEADER + NAVIGATION */
header {
  width: 100%;
  background: #19242D;
  border-bottom: 2px solid #232D37;
  position: relative;
  z-index: 60;
  min-height: 64px;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[alt="Bytové Proměny"] {
  height: 48px;
  width: auto;
  filter: brightness(0.96) contrast(1.06) grayscale(0.1);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #DCE3E6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom-color 0.18s;
  position: relative;
}
nav a:hover,
nav a:focus {
  color: #5CA88C;
  border-bottom: 2px solid #5CA88C;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #17425B 80%, #394B58 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 7px;
  box-shadow: 0 2px 9px 0 rgba(11,23,31,0.13);
  padding: 13px 36px;
  border: none;
  cursor: pointer;
  margin-left: 24px;
  margin-top: 0;
  transition: background 0.18s, box-shadow 0.19s, color 0.19s;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #426778 80%, #5CA88C 100%);
  color: #fff;
  box-shadow: 0 3px 18px 2px rgba(34,61,61,0.19);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #C5D0D6;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 110;
  position: absolute;
  right: 20px;
  top: 18px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23,66,91, 0.96);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.6, 0.03, 0.6, 1.09);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 36px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.25rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  padding: 2px 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.175rem;
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 12px 4px;
  border-radius: 5px;
  background: rgba(44,67,77, 0.18);
  margin-left: 0;
  min-width: 180px;
  transition: background 0.2s, color 0.19s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #5CA88C;
  color: #132428;
}

/* HERO & SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section h1, section h2 {
  color: #EAEAEA;
}
section .container {
  flex-direction: column;
}

/* CARD & FEATURE GRIDS */
.features-grid, .testimonials-grid, .services-overview, .process-steps, .timeline-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.features-grid {margin-bottom: 20px;}
.services-overview,
.process-steps,
.timeline-horizontal {
  gap: 20px;
  margin-bottom: 24px;
}

/* Feature/Service/Process Cards */
.feature, .service-card, .process-step {
  background: #18222D;
  color: #DCE3E6;
  border-radius: 11px;
  box-shadow: 0 2px 15px 0 rgba(13,27,42, 0.15);
  padding: 28px 22px 22px 22px;
  min-width: 240px;
  flex: 1 1 210px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
}
.feature img,
.service-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(0.1) contrast(1.23);
}
.feature:hover,
.service-card:hover,
.process-step:hover {
  box-shadow: 0 6px 22px 2px rgba(69, 97, 111, 0.18);
  background: #23303B;
}

/* TESTIMONIALS */
.testimonials-slider, .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonials-slider {
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px;
  background: #F7F7F7;
  color: #232B31;
  border-radius: 9px;
  box-shadow: 0 2px 13px 0 rgba(31,41,54,0.14);
  min-width: 250px;
  max-width: 370px;
  font-size: 1rem;
  margin-bottom: 20px;
  border-left: 4px solid #5CA88C;
  transition: box-shadow 0.2s, border-color 0.17s;
  position: relative;
}
.testimonial-card strong {
  color: #17425B;
  font-weight: 700;
  font-size: 0.96rem;
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 2px rgba(69,111,97,0.10);
  border-left-color: #17425B;
}

/* PROCESS STEPS / TIMELINE */
.timeline-horizontal, .process-steps {
  flex-direction: row;
  gap: 20px;
}
.timeline-horizontal .process-step,
.process-steps .process-step {
  align-items: flex-start;
  flex: 1 1 190px;
}

/* FAQS */
.faqs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #1C262F;
  border-left: 4px solid #5CA88C;
  border-radius: 6px;
  padding: 20px 22px 16px 20px;
  margin-bottom: 8px;
  box-shadow: 0 1px 8px 0 rgba(23,66,91,0.11);
  color: #DEE5E8;
}
.faq-item h3 {
  color: #5CA88C;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* CARD CONTAINER GENERAL */
.card-container {display: flex; flex-wrap: wrap; gap: 24px;}
.card {margin-bottom: 20px; position: relative; background: #181D25; border-radius: 9px; box-shadow: 0 2px 15px 0 rgba(13,27,42, 0.13); padding: 28px;}
.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; align-items: center; gap: 20px; padding: 20px;}
.feature-item {display: flex; flex-direction: column; align-items: flex-start; gap: 15px;}

/* FOOTER */
footer {
  background: #19242D;
  border-top: 2px solid #232F37;
  padding: 32px 0 18px 0;
  color: #B4BFC7;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #5CA88C;
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.03em;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #F7F7F7;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  filter: grayscale(0.18) contrast(1.19);
  margin-right: 3px;
}
.footer-contact a {
  color: #D7E3EB;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 8px;
}
footer p {
  color: #747C83;
  margin-top: 18px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container { max-width: 94vw; }
  .header .container { flex-direction: column; gap: 8px; }
  .timeline-horizontal, .features-grid, .testimonials-slider, .services-overview, .process-steps, .testimonials-grid {gap:18px;}
}
@media (max-width: 900px) {
  .features-grid, .services-overview, .timeline-horizontal, .testimonials-slider, .process-steps, .content-grid {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature, .service-card, .process-step, .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 5vw;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 10px 5vw;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 10px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section, section {
    padding: 24px 0 36px 0;
  }
}
@media (max-width: 480px) {
  html {font-size: 15px;}
  .testimonial-card {padding: 16px 10px;}
}

/* BUTTONS (used for cookie bar + modals) */
.button, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 26px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 10px 0 rgba(23,66,91,0.09);
  margin-right: 10px;
  margin-bottom: 6px;
}
.button.accept, .cookie-banner .accept {
  background: #5CA88C;
  color: #fff;
}
.button.reject, .cookie-banner .reject {
  background: #323842;
  color: #F7F7F7;
}
.button.settings, .cookie-banner .settings {
  background: transparent;
  color: #5CA88C;
  border: 1.5px solid #5CA88C;
}
.button.accept:hover, .cookie-banner .accept:hover {
  background: #17425B;
  color: #fff;
}
.button.reject:hover, .cookie-banner .reject:hover {
  background: #1F252D;
  color: #fff;
}
.button.settings:hover, .cookie-banner .settings:hover {
  background: #5CA88C;
  color: #fff;
}

/* MICRO-INTERACTIONS & HOVER */
.feature, .service-card, .cta-button, .card, .process-step, .testimonial-card {
  transition: box-shadow 0.22s cubic-bezier(0.47,0,0.745,0.715),
    background 0.18s, color 0.17s, border-color 0.19s;
}

.cta-button:focus {
  outline: 2px solid #5CA88C;
  outline-offset: 3px;
}

/* FAQ / TEASER LINK */
.faq-teaser a {
  color: #5CA88C;
  text-decoration: underline;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  transition: color 0.17s;
}
.faq-teaser a:hover { color: #B9F9D0; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #232B31;
  color: #F7F7F7;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 -1px 12px 0 rgba(23,66,91,0.17);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 4000;
  animation: cookie-banner-slide-up 0.65s cubic-bezier(0.5, 0, 0.4, 1.12);
}
@keyframes cookie-banner-slide-up {
  from {transform: translateY(100%); opacity: 0;} to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  max-width: 700px;
  font-size: 1rem;
  color: #F7F7F7;
  text-align: center;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,42,59, 0.92);
  z-index: 4100;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.5s;
}
.cookie-modal.open { display: flex; }
@keyframes cookie-modal-fade-in {
  from {opacity: 0;} to {opacity: 1;}
}
.cookie-modal-content {
  background: #232B31;
  padding: 40px 25px 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 30px 4px rgba(13,33,41,0.23);
  color: #F7F7F7;
  max-width: 400px;
  min-width: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-content-slide-up 0.4s;
}
@keyframes cookie-modal-content-slide-up {
  from {transform: translateY(70px); opacity:0;} to {transform: none; opacity:1;}
}
.cookie-modal-content h2 {
  text-align: left;
  margin-bottom: 6px;
  color: #B9F9D0;
}
.cookie-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
}
.cookie-category label {
  color: #F7F7F7;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #5CA88C;
  width: 19px;
  height: 19px;
}
.cookie-category .essential-status {
  color: #5CA88C;
  margin-left: 12px;
  font-size: 0.99rem;
}
.cookie-modal-content .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  color: #fff;
  border: none;
  font-size: 1.85rem;
  cursor: pointer;
  padding: 2px 4px;
  z-index: 3;
}

/* MISC. */
::-webkit-scrollbar {
  width: 11px;
  background: #13181B;
}
::-webkit-scrollbar-thumb {
  background: #23303B;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #17425B;
}

/* INDUSTRIAL MODERN ACCENTS */
.card, .feature, .service-card, .process-step {
  border: 1.5px solid #232D37;
  box-shadow: 0 2px 18px 0 rgba(30,40,53,0.13), 0 1.5px 0.5px 0 #36434F1A;
  backdrop-filter: blur(0.5px);
}
.card:after, .feature:after, .service-card:after {
  content: '';
  display: block;
  position: absolute;
  left: 14px; top: 14px;
  width: 21px; height: 21px;
  background: #5CA88C22;
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
  filter: blur(2.2px);
}
.card:after {display: none;}

/* Call-to-action highlight underline */
h2, h1 {
  position: relative;
}
h2:after, h1:after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  width: 49px;
  height: 4px;
  background: #5CA88C;
  border-radius: 2px;
}

/* Hide fake underline if not enough space on mobile */
@media (max-width: 480px) {
  h2:after, h1:after { width: 30px; }
}

/* Industrial font fallback */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v22/JTUQjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXU.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2'); }

/* Z-INDEXING: Ensure overlays/menus are above all */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 4000 !important; }

/* Prevent content overlap from components */
main, .container, .section, footer {
  z-index: 1;
  position: relative;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  nav { display: flex !important;}
}

/* Hamburger: animate on open */
.mobile-menu.open .mobile-menu-toggle {
  color: #5CA88C;
  transition: color 0.22s;
}
