/* CSS RESET / NORMALIZE */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { width: 100%; height: 100%; }
body { min-height: 100vh; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; color: #2c2c2c; background: #F3F2ED; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { background: none; border: none; font: inherit; cursor: pointer; outline: none; transition: background 0.2s, color 0.2s; }
hr { border: 0; border-top: 1px solid #eee; margin: 24px 0; }

/* BRAND COLORS & TYPOGRAPHY */
:root {
  --primary: #355244;
  --secondary: #8B5C2D;
  --accent: #F3F2ED;
  --white: #fff;
  --black: #181818;
  --shadow: 0 4px 24px rgba(53, 82, 68, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-bold: 700;
  --font-semibold: 600;
  --font-normal: 400;
}

body { background: var(--accent); color: var(--black); font-family: var(--font-body); }

h1, h2, h3, h4, .cta-primary,
header nav a, .cta-primary,
.feature-grid h3, .article-preview h3 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 16px; color: var(--primary); }
h2 { font-size: 2rem; margin-bottom: 18px; color: var(--primary); }
h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--secondary); }
h4 { font-size: 1.1rem; color: var(--primary); font-weight: var(--font-semibold); }

p, li, span {
  font-size: 1rem;
  font-weight: var(--font-normal);
  color: var(--black);
  line-height: 1.6;
}
strong { font-weight: var(--font-bold); color: var(--primary); }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* HEADER & NAVIGATION */
header { background: var(--white); box-shadow: 0 2px 16px rgba(53, 82, 68, 0.06); position: relative; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; }
header img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: var(--font-bold);
  transition: color 0.2s, background 0.2s;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--white);
  background: var(--primary);
}

.cta-primary {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 34px;
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 16px rgba(139,92,45,0.1);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-block;
  margin-left: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 24px rgba(139,92,45,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 300;
  border: none;
  box-shadow: 0 2px 10px rgba(53,82,68,0.14);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.56,0.01,0,1);
  box-shadow: 0 10px 56px rgba(53, 82, 68, 0.16);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 18px 18px 10px 0;
  background: var(--accent);
  border-radius: 50%;
  width: 44px; height:44px;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(53,82,68,0.08);
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}

.mobile-nav {
  margin: 0; padding: 0 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--primary);
  padding: 16px 0;
  border-bottom: 1px solid #ececec;
  width: 100%;
  transition: color 0.18s, background 0.18s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--white);
}

/* Hide desktop nav on mobile and vice versa */
@media (max-width: 1024px) {
  header .container { flex-wrap: wrap; }
  .main-nav,
  .cta-primary:first-of-type {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav, .cta-primary:first-of-type { display: flex; }
}

/* SECTIONS, SPACING & LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero {
  background: linear-gradient(110deg, #F3F2ED 75%, #f6e3cf 100%);
  padding: 64px 0 40px 0;
  margin-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 38px rgba(139,92,45,0.06);
}
.hero .content-wrapper { align-items: flex-start; gap: 18px; }
.hero h1 { font-size: 2.9rem; color: var(--primary); }
.hero p { font-size: 1.3rem; color: #4c3921; margin-bottom: 12px; }
.hero .cta-primary { margin-top: 8px; }

@media (max-width: 768px) {
  .hero { padding: 44px 0 28px 0; }
  .hero h1 { font-size: 2.1rem; }
}

.features {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper { align-items: flex-start; }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(53,82,68,0.06);
  padding: 28px 20px;
  min-width: 225px;
  flex: 1 1 260px;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--primary);
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  background: #e0dfd8;
  border: 2px solid var(--secondary);
  box-shadow: 0 8px 32px rgba(53,82,68,0.14);
}
.feature-grid img {
  width: 48px; height: 48px;
  margin-bottom: 8px;
}
.feature-grid h3 { font-size: 1.2rem; color: var(--primary); }
.feature-grid p { color: #4c3921; }

@media (max-width: 900px) {
  .feature-grid { flex-direction: column; }
  .feature-grid li { width: 100%; min-width: unset; }
}

.about, .services, .cta, .contact, .privacy-policy, .rodo-information, .cookies-policy, .terms-and-conditions, .thank-you {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}
.content-wrapper > ul, .content-wrapper > ol {
  gap: 12px;
  display: flex;
  flex-direction: column;
  margin-left: 18px;
  margin-bottom: 20px;
}
.content-wrapper > ul > li, .content-wrapper > ol > li {
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  margin-bottom: 2px;
  font-size: 1rem;
}

/* Blog preview/article cards */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 32px 0;
  width: 100%;
  justify-content: flex-start;
}
.article-preview {
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 14px rgba(53,82,68,0.07);
  padding: 28px 20px;
  flex: 1 1 290px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  border: 2px solid var(--primary);
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.article-preview h3 { color: var(--secondary); font-size: 1.17rem; }
.article-preview p { color: #4c3921; }
.article-preview a {
  color: var(--primary);
  margin-top: 12px;
  font-weight: var(--font-bold);
  text-decoration: underline;
  transition: color 0.2s;
}
.article-preview a:hover, .article-preview a:focus {
  color: var(--secondary);
}
.article-preview:hover, .article-preview:focus-within {
  background: #e0dfd8;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 18px rgba(53,82,68,0.13);
}
@media (max-width: 950px) {
  .article-list { flex-direction: column; }
}

.blog-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #dee2df;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  margin-top: 24px;
}

/* TESTIMONIALS */
.testimonials { background: var(--accent); box-shadow: none; border: none; }
.testimonials .content-wrapper { gap: 24px; }
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px rgba(53,82,68,0.10);
  margin-bottom: 20px;
  border-left: 6px solid var(--secondary);
  flex-wrap: wrap;
  flex-direction: row;
  position: relative;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card p {
  color: #2c2c2c;
  font-size: 1.09rem;
  font-style: italic;
  font-weight: var(--font-semibold);
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px rgba(53,82,68,0.14);
  border-left: 6px solid var(--primary);
}

/* Features & Info lists */
.feature-list, .project-highlights, .guarantee-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.feature-list ul, .project-highlights ul {
  padding-left: 16px;
  gap: 10px;
  flex-direction: column;
}
.feature-list ul li, .project-highlights ul li {
  list-style: disc;
  color: var(--primary);
  font-weight: var(--font-normal);
  margin-bottom: 4px;
  font-size: 1rem;
  border-left: none;
  padding-left: 0;
}
.guarantee-info {
  background: #e6e9e4;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  color: var(--black);
  font-size: 1rem;
  border-left: 4px solid var(--secondary);
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 18px 0;
  align-items: center;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--primary);
  padding: 7px 14px;
  background: #e0dfd8;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(53,82,68,0.08);
}
.contact-info img { width: 22px; height: 22px; }

.company-details {
  margin-top: 8px;
  gap: 6px;
  font-size: 0.93rem;
}
/* Map embed styling (text block) */
.map-embed {
  background: #daecd7;
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: var(--font-bold);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 20px 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer img {
  height: 35px;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  opacity: 0.92;
  transition: opacity 0.18s, color 0.18s;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  color: var(--secondary);
  background: var(--accent);
}
footer p { color: #cfe6d9; margin-top: 12px; font-size: 0.96rem; }

@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* RESPONSIVE RULES */
@media (max-width: 768px) {
  .section, .about, .services, .features, .cta, .contact, .privacy-policy, .rodo-information, .cookies-policy, .terms-and-conditions, .thank-you {
    padding: 30px 8px;
    margin-bottom: 38px;
    border-radius: var(--radius-sm);
  }
  .content-wrapper, .blog-cta {
    gap: 14px;
    padding: 0;
  }
  .feature-grid { gap: 16px; }
  .feature-grid li {
    padding: 18px 12px;
    min-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 10px;
  }
  .contact-info { flex-direction: column; gap: 9px; }
}

@media (max-width: 480px) {
  .container { padding: 0 5px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .article-preview, .feature-grid li, .blog-cta, .guarantee-info, .map-embed {
    padding: 12px 6px;
  }
  .cta-primary { font-size: 1rem; padding: 12px 16px; }
}

/* BUTTONS GENERAL */
button, .cta-primary, .blog-cta a, .article-preview a {
  cursor: pointer;
  border: none;
  outline: none;
}
button:focus-visible, .cta-primary:focus-visible { outline: 2px solid var(--secondary); }

/* MICRO-INTERACTIONS */
.cta-primary, .main-nav a, .footer-nav a, .blog-cta a, .article-preview a, .feature-grid li {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, border 0.18s, opacity 0.15s, transform 0.13s;
}

::-webkit-scrollbar { width: 10px; background: #ececec; }
::-webkit-scrollbar-thumb { background: #c9ccc7; border-radius: var(--radius-sm); }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 28px rgba(53,82,68,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 32px;
  z-index: 9999;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  animation: cookieSlideIn 0.8s cubic-bezier(0.68,-0.55,0.27,1.55) 1;
}
@keyframes cookieSlideIn {
  from { transform: translateY(140px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-banner button {
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: 1rem;
  border: none;
  box-shadow: 0 1px 6px rgba(53,82,68,0.1);
}
.cookie-accept {
  background: var(--primary);
  color: var(--white);
  transition: background 0.2s;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
}
.cookie-reject {
  background: var(--secondary);
  color: var(--white);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #554023;
}
.cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: background 0.16s, color 0.16s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 10px; gap: 14px; font-size: 0.95rem; }
  .cookie-banner .cookie-buttons { flex-direction: row; gap: 10px; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(53, 82, 68, 0.30);
  display: flex;
  align-items: center; justify-content: center;
  animation: fadeInBg 0.35s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(53,82,68,0.18);
  padding: 38px 32px 24px 32px;
  max-width: 390px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--primary);
  animation: cookieFadeIn 0.38s ease;
  font-family: var(--font-body);
}
@keyframes cookieFadeIn {
  from { scale: 0.92; opacity: 0; }
  to { scale: 1; opacity: 1; }
}
.cookie-modal h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--secondary); }
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #e6e9e4;
  border-radius: 20px;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle[aria-checked="true"] { background: var(--primary); }
.cookie-toggle .toggle-dot {
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.17s;
}
.cookie-toggle[aria-checked="true"] .toggle-dot {
  left: 18px;
}
.cookie-category-row[aria-disabled="true"] {
  opacity: 0.65;
}
.cookie-modal-actions {
  display: flex; gap: 18px; justify-content: flex-end; margin-top: 18px;
}
.cookie-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #e6e9e4; }
@media (max-width: 600px) {
  .cookie-modal { max-width: 95vw; min-width: 0; padding: 24px 8px 16px 8px; }
}

/* MICRO-DECORATIONS FOR MODERN BOLD */
.hero::after,
.features .content-wrapper::before,
.cta .content-wrapper::after,
footer .container::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  border-radius: 40%;
  filter: blur(12px);
  opacity: 0.17;
  pointer-events: none;
}
.hero::after {
  top: 16px; right: 0; width: 160px; height: 65px;
  background: #8B5C2D;
}
.features .content-wrapper::before {
  left: 0; top: 0; width: 70px; height: 170px;
  background: #355244;
}
.cta .content-wrapper::after {
  right: -22px; bottom: 0; width: 44px; height: 44px;
  background: #8B5C2D;
}
footer .container::before {
  left: 6vw; bottom: 10px; width: 60px; height: 50px;
  background: #F3F2ED;
}
@media (max-width: 600px) {
  .hero::after, .features .content-wrapper::before, .cta .content-wrapper::after, footer .container::before {
    display: none;
  }
}

/* ADDITIONAL FLEX AND ALIGNMENT UTILITY CLASSES (as per patterns) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }

/* Responsive flex direction for sections, as required */
@media (max-width: 768px) {
  .text-image-section, .content-grid, .card-container { flex-direction: column; }
}

/* FIXED MINIMUM SPACING */
.card, .testimonial-card, .feature-grid li, .article-preview, .contact-info li, .guarantee-info, .blog-cta, .map-embed {
  margin-bottom: 20px;
}

/* PREVENT OVERLAPPING */
.section > *, .about > *, .services > *, .features > *, .cta > *, .contact > *, .privacy-policy > *, .rodo-information > *, .cookies-policy > *, .terms-and-conditions > *, .thank-you > * {
  z-index: 1; position: relative;
}
