/* ------------------------------------------------------
   CSS RESET & NORMALIZE
---------------------------------------------------------*/
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F6F2;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
input, button, textarea, select {
  font: inherit;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  height: 100%;
}
*, *:before, *:after { box-sizing: inherit; }

/* ------------------------------------------------------
   SOFT PASTEL BRAND COLOR VARIABLES (with fallbacks)
---------------------------------------------------------*/
:root {
  --color-primary: #23313C;
  --color-secondary: #90B45A;
  --color-accent: #F9F6F2;
  --color-pastel-blue: #e3eefc;
  --color-pastel-green: #e0f7e9;
  --color-pastel-pink: #fde7f1;
  --color-pastel-peach: #fae5d3;
  --color-pastel-yellow: #fffbe6;
  --color-gray: #6B7A8F;
  --color-shadow: rgba(50,80,125,0.07);
  --text-main: #23313C;
  --text-soft: #507589;
  --border-radius: 20px;
  --shadow-1: 0 6px 32px var(--color-shadow);
  --container-max: 1120px;
  --transition: 0.24s cubic-bezier(.66,.04,.42,1.04);
  --header-bg: #f8fcff;
  --footer-bg: #f3f7fa;
}

/* Fallback for CSS var */
body { background: #F9F6F2; color: #23313C; }

/* ------------------------------------------------------
   BASE TYPOGRAPHY
---------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--text-main, #23313C);
  font-size: 16px;
  background-color: var(--color-accent, #F9F6F2);
  letter-spacing: 0.01em;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  color: var(--text-main, #23313C);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, ul, ol, dl, address {
  font-size: 1.06rem;
  color: var(--text-soft, #507589);
  margin-bottom: 16px;
}
strong, b {
  color: var(--color-primary, #23313C);
  font-weight: 700;
}
em, i {
  font-style: italic;
  color: var(--color-secondary, #90B45A);
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
  line-height: 1.65;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--color-secondary, #90B45A);
  vertical-align: middle;
}
ol li {
  list-style-type: decimal;
  padding-left: 0;
  margin-left: 0;
}
ol {
  list-style: decimal inside;
}

/* Lists in FAQs */
dl { margin-bottom: 32px; }
dt { font-weight: 700; margin-bottom: 6px; margin-top: 14px; font-size:1.09rem; }
dd { margin-left: 20px; margin-bottom: 10px; color: var(--text-soft, #507589); }

/* Links */
a {
  color: var(--color-primary, #23313C);
  text-decoration: none;
  transition: color var(--transition, .22s);
}
a:hover, a:focus {
  color: var(--color-secondary, #90B45A);
  text-decoration: underline;
}

/* ------------------------------------------------------
   CONTAINER & LAYOUT HELPERS
---------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.text-section {
  background: var(--color-pastel-blue, #e3eefc);
  border-radius: var(--border-radius, 20px);
  padding: 32px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 18px var(--color-shadow, rgba(50,80,125,0.07));
}
.map-snippet, .contact-highlight {
  margin: 24px 0 0 0;
  font-size: 1.09rem;
  background: var(--color-pastel-green, #e0f7e9);
  color: var(--color-primary, #23313C);
  padding: 14px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 5px var(--color-shadow, rgba(50,80,125,0.08));
}

/* ------------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------------*/
header {
  width: 100%;
  padding: 0;
  background: var(--header-bg, #f8fcff);
  box-shadow: 0 2px 12px var(--color-shadow, rgba(55,110,180,0.04));
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 75px;
  padding: 10px 18px;
}
header img {
  height: 42px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-main, #23313C);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background var(--transition, 0.2s), color var(--transition, 0.2s);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-pastel-green, #e0f7e9);
  color: var(--color-secondary, #90B45A);
}

.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 29px;
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #90B45A 0%, #e0f7e9 100%);
  background-color: var(--color-secondary, #90B45A);
  border: none;
  border-radius: 28px;
  box-shadow: 0 3px 16px var(--color-shadow, rgba(55,120,95,0.10));
  transition: background var(--transition, 0.24s), color var(--transition, 0.21s), transform 0.17s cubic-bezier(.66,.04,.42,1.04);
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #6ca43d;
  background: linear-gradient(90deg, #a7c988 0%, #b9dbbb 100%);
  color: var(--color-primary, #23313C);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 10px var(--color-shadow, rgba(144,180,90,0.10));
}
.btn-primary:active {
  background: var(--color-secondary, #90B45A);
  color: #fff;
  outline: none;
  box-shadow: 0 1px 2px rgba(50,80,120,0.07);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-primary, #23313C);
  border-radius: 50%;
  transition: background var(--transition,0.18s);
  margin-left: 8px;
  cursor: pointer;
  z-index: 205;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-pastel-green, #e0f7e9);
  color: var(--color-secondary, #90B45A);
}

/* Hide burger on desktop */
@media (min-width: 1050px) {
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------------------------------
   MOBILE MENU OVERLAY & NAVIGATION
---------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  background: rgba(249,246,242,0.9);
  backdrop-filter: blur(4px);
  transform: translateX(-110vw);
  transition: transform 0.42s cubic-bezier(.77,-0.01,.32,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 26px;
  margin-left: 24px;
  font-size: 2.3rem;
  color: var(--color-primary, #23313C);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-pastel-pink, #fde7f1);
  color: var(--color-secondary, #90B45A);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100vw;
  margin-top: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-primary, #23313C);
  opacity: 0.94;
  padding: 24px 36px;
  border-bottom: 1px solid #eee;
  transition: color 0.22s, background 0.22s;
  width: 100%;
  text-align: left;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-pastel-green, #e0f7e9);
  color: var(--color-secondary, #90B45A);
  opacity: 1;
}
@media (min-width: 1050px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hide desktop nav on mobile */
@media (max-width: 1049px) {
  .main-nav, header .btn-primary {
    display: none;
  }
}

/* Enable navigation & button on desktop */
@media (min-width:1050px) {
  .main-nav, header .btn-primary {
    display: flex;
  }
}

/* ------------------------------------------------------
   SECTIONS LAYOUT SPACING (MANDATORY PATTERNS)
---------------------------------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius, 20px);
  box-shadow: 0 2px 24px var(--color-shadow, rgba(60,120,180,0.06));
  background: #fff;
}
.hero {
  background: var(--color-pastel-yellow, #fffbe6);
  box-shadow: 0 4px 34px var(--color-shadow, rgba(250,220,150,0.07));
  border-radius: 0 0 32px 32px;
  margin-top: 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-pastel-green, #e0f7e9);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 2px 16px var(--color-shadow, rgba(80,160,85,0.09));
  min-width: 210px;
  flex: 1 1 270px;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  background: var(--color-pastel-peach, #fae5d3);
  border-radius: 16px;
  box-shadow: 0 3px 16px var(--color-shadow, rgba(250,220,180,0.05));
  padding: 24px 18px 26px 18px;
  transition: box-shadow 0.19s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px var(--color-shadow, rgba(250,185,150,0.11));
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.project-summary {
  margin-bottom: 34px;
  padding: 18px 20px;
  background: var(--color-pastel-pink, #fde7f1);
  border-radius: 18px;
  box-shadow: 0 2px 11px var(--color-shadow, rgba(180,50,120,0.06));
}

/* ------------------------------------------------------
   TESTIMONIALS / REVIEW STYLING (READABLE!)
---------------------------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--color-shadow, rgba(35,49,60,0.09));
  margin-bottom: 24px;
  word-break: break-word;
  color: var(--color-primary, #23313C);
}
.testimonial-card p {
  color: var(--text-main, #23313C);
  font-size: 1.11rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--color-secondary, #90B45A);
}
.testimonial-card span {
  color: #FFD700;
  font-size: 1.3rem;
  margin-left: 5px;
  letter-spacing: 0.09em;
}
.testimonial-card > div {
  font-size: 1.01rem;
  margin-left: 6px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
}

/* ------------------------------------------------------
   FOOTER
---------------------------------------------------------*/
footer {
  width: 100%;
  background: var(--footer-bg, #f3f7fa);
  padding: 38px 0 28px 0;
  border-radius: 34px 34px 0 0;
  margin-top: 58px;
  box-shadow: 0 0px 24px var(--color-shadow, rgba(35,49,60,0.04));
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary, #23313C);
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 12px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-pastel-green, #e0f7e9);
  color: var(--color-secondary, #90B45A);
}
.address-block {
  font-size: 0.98rem;
  color: var(--color-gray, #6B7A8F);
  text-align: center;
  line-height: 1.7;
}

/* ------------------------------------------------------
   CUSTOM UTILITY CLASSES (for layouts)
---------------------------------------------------------*/
.category-list, .materials-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.materials-grid > div {
  background: var(--color-pastel-yellow, #fffbe6);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1.04rem;
}
.project-summary .testimonial-card {
  margin: 14px 0 0 0;
  background: var(--color-pastel-green, #e0f7e9);
  box-shadow: 0 2px 11px var(--color-shadow, rgba(144,180,90,0.06));
}

/* ------------------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------------------*/
@media (max-width: 991px) {
  section {
    padding: 32px 8px;
    margin-bottom: 44px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container, .category-list, .materials-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 799px) {
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.40rem;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-item, .card {
    padding: 20px 10px;
    min-width: unset;
  }
  footer {
    border-radius: 22px 22px 0 0;
    padding: 22px 0 14px 0;
  }
  header .container {
    min-height: 58px;
    padding: 8px 3px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 20px 2px;
    border-radius: 14px;
  }
  .text-section {
    border-radius: 12px;
    padding: 16px 6px;
  }
  .address-block { font-size: 0.96rem; }
}

/* ------------------------------------------------------
   MICRO INTERACTIONS & ANIMATIONS
---------------------------------------------------------*/
.btn-primary, .card, .feature-item, .testimonial-card, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.14s;
}
section, .card, .feature-item, .testimonial-card, .project-summary, .text-section {
  animation: fadeInSoft 1.3s cubic-bezier(.77,0,.26,1) both;
}
@keyframes fadeInSoft {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.card:hover, .feature-item:hover {
  box-shadow: 0 8px 32px var(--color-shadow, rgba(90,120,160,0.14));
  transform: scale(1.018);
  z-index: 2;
}

/* ------------------------------------------------------
   COOKIE CONSENT BANNER + MODAL
---------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 6000;
  width: 100vw;
  background: linear-gradient(90deg,#fffbe6 0%, #fde7f1 100%);
  padding: 21px 16px 17px 16px;
  box-shadow: 0 -4px 22px var(--color-shadow, rgba(155,125,60,0.13));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 22px 22px 0 0;
  opacity: 0.98;
  animation: slideUpCookie 1.2s cubic-bezier(.46,.03,.47,.97) both;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 0.98; }
}
.cookie-banner__text {
  font-size: 1.02rem;
  color: var(--color-primary, #23313C);
  line-height: 1.55;
  max-width: 570px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  align-items: center;
}
.cookie-btn,
.cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  padding: 9px 20px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: var(--color-secondary, #90B45A);
  color: #fff;
  margin: 0;
  transition: background 0.2s, color 0.14s, box-shadow 0.18s;
}
.cookie-btn.btn-reject {
  background: var(--color-pastel-pink, #fde7f1);
  color: var(--color-primary, #23313C);
}
.cookie-btn.btn-reject:hover {
  background: #ef96ba;
  color: #fff;
}
.cookie-btn.btn-accept:hover,
.cookie-btn.btn-accept:focus {
  background: #6ca43d;
  color: #fff;
}
.cookie-settings-btn {
  background: #e3eefc;
  color: var(--color-primary, #23313C);
  border: 1px solid #ccd7e5;
}
.cookie-settings-btn:hover {
  background: var(--color-pastel-yellow, #fffbe6);
  color: var(--color-secondary, #90B45A);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 7000;
  background: rgba(44, 49, 56, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInSoft 1.1s both;
}
.cookie-modal__window {
  background: #fffbe6;
  border-radius: 18px;
  padding: 34px 28px;
  min-width: 300px;
  width: 98vw;
  max-width: 370px;
  box-shadow: 0 5px 44px var(--color-shadow, rgba(155,125,60,0.11));
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary, #23313C);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px 0;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary, #90B45A);
  width: 19px; height: 19px;
}
.cookie-modal .btn-primary, .cookie-modal .cookie-btn {
  width: 100%;
  margin-top: 1rem;
  box-shadow: none;
}
.cookie-modal__close {
  position: absolute;
  right: 16px;
  top: 12px;
  color: var(--color-primary, #23313C);
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 4px 12px 4px;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    gap: 10px;
    width: 100%;
  }
  .cookie-modal__window {
    padding: 16px 4px;
    font-size: 0.98rem;
  }
}

/* Hide banner when not active (JS should add/remove .active) */
.cookie-banner,
.cookie-modal {
  display: none;
}
.cookie-banner.active,
.cookie-modal.active {
  display: flex !important;
}

/* ------------------------------------------------------
   OTHER LAYOUT FIXES
---------------------------------------------------------*/
.confirmation {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative icons in contact lists */
.text-section ul li img,
.text-section ul li svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 9px;
  margin-bottom: 3px;
  filter: grayscale(10%) brightness(0.75) opacity(0.84);
}

/* To prevent overlapping everywhere */
section, .text-section, .card, .testimonial-card, .feature-item, .card-container > *, .content-grid > *, .project-summary, .materials-grid > div {
  margin-bottom: 20px;
}
section:last-child, .content-wrapper:last-child > *:last-child {
  margin-bottom: 0 !important;
}

/* Z-INDEX ensure layers: header > mobile menu > cookie > modal */
header { z-index: 100; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 6000; }
.cookie-modal { z-index: 7000; }

/* Hide scroll on open menu/modal */
body.menu-open, body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* SCROLLBAR styling (optional) */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent, #F9F6F2);
}
::-webkit-scrollbar-thumb {
  background: #e3eefc;
  border-radius: 8px;
}
