/* -------------------------
   RESET & BASE
-------------------------- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #F5F3EE;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #233246;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: .5em;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4, h5, h6 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 1em; }
a {
  color: #BDA97B;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px dashed #BDA97B;
  outline-offset: 1px;
}
a:hover {
  color: #a08754;
  text-decoration: underline;
}
ul, ol {
  padding-left: 2em;
  margin: 0 0 1.2em 0;
}
li { margin-bottom: 0.5em; }
strong { font-weight: bold; }
blockquote {
  margin: 2em 0;
  border-left: 4px solid #BDA97B;
  background: #fffefa;
  color: #4e3c1e;
  padding: 20px 30px;
  border-radius: 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Container max width */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

/* -------------------------
   HEADER & NAVIGATION
-------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(51,38,18,0.05);
  border-bottom: 1px solid #F5F3EE;
  padding: 0;
  z-index: 1003;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}
.logo img { height: 48px; width: auto; display: block; }

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 1rem;
}
.main-nav a {
  color: #233246;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background .17s, color .17s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F5F3EE;
  color: #BDA97B;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 12px rgba(181,154,97,.06);
  margin-left: 12px;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: #BDA97B;
  color: #233246;
  box-shadow: 0 2px 10px rgba(181,154,97,0.1);
}
.btn-primary:hover, .btn-primary:focus {
  background: #ad9153;
  color: #fff;
}
.btn-secondary {
  background: #233246;
  color: #fff;
  box-shadow: 0 2px 12px rgba(35,50,70,0.08);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #152438;
  color: #BDA97B;
}

/* Hamburger for Mobile */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  color: #233246;
  border-radius: 8px;
  margin-left: 12px;
  display: none;
  transition: background .16s;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F5F3EE;
}

/* -------------------------
   MOBILE MENU
-------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100dvh;
  width: 100vw;
  background: #fff; 
  box-shadow: 0 8px 48px rgba(35,50,70,0.19);
  z-index: 1200;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.8,.2,.28,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 30px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #BDA97B;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  transition: color .18s, background .13s;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F5F3EE;
  color: #ad9153;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 40px 32px 0 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #233246;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 12px;
  padding: 12px 0 12px 4px;
  transition: background .17s, color .17s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F5F3EE;
  color: #BDA97B;
}

/* Hide navigation on mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff9ef;
  color: #574524;
  box-shadow: 0 -2px 30px rgba(210,190,140,.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1500;
  padding: 24px 20px 16px 20px;
  gap: 16px;
  animation: cookie-slide-up .5s cubic-bezier(.7,1.6,.35,.99);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #574524;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.btn-cookie {
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  background: #BDA97B;
  color: #233246;
  transition: background .16s, color .16s, box-shadow .18s;
  cursor: pointer;
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #233246;
  color: #fff9ef;
}
.btn-cookie-secondary {
  background: #F5F3EE;
  color: #BDA97B;
  border: 1px solid #BDA97B;
}
.btn-cookie-secondary:hover, .btn-cookie-secondary:focus {
  background: #BDA97B;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  background: rgba(36,29,16,0.32);
  position: fixed;
  z-index: 1502;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .3s;
}
@keyframes fadein { from{opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  box-shadow: 0 16px 48px rgba(181,154,97,0.12);
  border-radius: 18px;
  max-width: 480px;
  width: 95%;
  padding: 36px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1503;
  animation: modal-slide .36s cubic-bezier(.7,1.6,.35,.99);
}
@keyframes modal-slide {
  0% { transform: translateY(40px); opacity:0 }
  100% { transform: translateY(0); opacity: 1 }
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #BDA97B;
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #233246;
  background: #F5F3EE;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0 8px 0;
}
.cookie-category label {
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 22px;
  background: #BDA97B;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgba(50,42,23,0.12);
  transition: left .22s, background .17s;
}
.cookie-toggle:checked {
  background: #233246;
}
.cookie-toggle:checked:before {
  left: 18px;
  background: #BDA97B;
}

/* ---------------
   SECTIONS
----------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
}
@media (max-width: 900px) {
  section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
}

.content-wrapper, .cta-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}
.cta-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.text-section {
  padding: 24px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(181,154,97,0.08);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -------------------------------
   FLEXBOX CARDS & CONTENT GRIDS
---------------------------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 18px 0;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 22px 18px 18px 18px;
  min-width: 230px;
  flex: 1 1 230px;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(181,154,97,0.10);
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .19s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(181,154,97,0.15);
  transform: translateY(-4px) scale(1.03);
}
.feature-item img {
  height: 40px; width: 40px; margin-bottom: 2px;
}
.feature-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  list-style: disc inside;
  margin: 28px 0 0 0;
  color: #705d37;
  font-weight: 500;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 25px 0 20px 0;
  justify-content: flex-start;
}
.service-card {
  background: #fff;
  padding: 22px 18px 14px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(181,154,97,0.10);
  flex: 1 1 245px;
  min-width: 225px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow .18s, transform .19s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(181,154,97,0.13);
  transform: translateY(-2px) scale(1.02);
}
.service-price {
  background: #fff9ef;
  color: #9d7e3c;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 5px 14px;
  margin-top: 10px;
  align-self: flex-start;
  letter-spacing: .01em;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.project-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(181,154,97,0.10);
  padding: 28px 20px 18px 20px;
  flex: 1 1 315px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
}
.project-card:hover {
  box-shadow: 0 10px 32px rgba(181,154,97,0.16);
  transform: translateY(-2.5px) scale(1.022);
}
.project-card h3 { color: #BDA97B; font-size: 1.3rem; }

.restoration-types {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.restoration-type {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(181,154,97,0.10);
  padding: 26px 18px 15px 18px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow .15s, transform .14s;
}
.restoration-type:hover {
  box-shadow: 0 8px 28px rgba(181,154,97,0.15);
  transform: translateY(-4px) scale(1.015);
}
.value-props {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
  color: #705d37;
  font-weight: 500;
  margin: 26px 0 20px 0;
}
.value-props li { margin-bottom: 0; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-left: 0;
  list-style-type: none;
}
.timeline li {
  position: relative;
  padding-left: 28px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 12px;
  background: #BDA97B;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(181,154,97,0.13);
}

.consultancy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style-type: disc;
  margin-bottom: 24px;
}

/* Testimonials */
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 18px 0;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(35,50,70,0.08), 0 0.5px 0.5px #F5F3EE;
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 240px;
  transition: box-shadow .19s, transform .19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(181,154,97,0.14);
  transform: translateY(-5px) scale(1.020);
}
.testimonial-card p {
  color: #233246;
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 10px;
  margin-top: 0;
  text-align: center;
}
.testimonial-author {
  color: #BDA97B;
  font-weight: 500;
  font-size: 1rem;
}

/* Flexbox alignment examples required */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(181,154,97,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .17s;
}
.card:hover {
  box-shadow: 0 7px 24px rgba(181,154,97,0.15);
}
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* --------------
   ADDRESS
--------------- */
address {
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
  color: #735c39;
  font-size: 1rem;
  margin: 18px 0 0 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
address img {
  width: 18px; height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 0;
}
address a {
  color: #BDA97B;
}
address a:hover {
  text-decoration: underline;
  color: #233246;
}

/* -------------
   FOOTER
-------------- */
footer {
  background: #fff9ef;
  padding: 26px 0 0 0;
  border-top: 1px solid #F5F3EE;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
}
.footer-logo img {
  height: 40px; width: auto;
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #9c885f;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F5F3EE;
  color: #BDA97B;
}

/* ------------
 FORMS
------------- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #e9dfcf;
  border-radius: 10px;
  padding: 10px 12px;
  background: #F5F3EE;
  color: #233246;
  outline: none;
  margin-bottom: 18px;
  margin-top: 7px;
  width: 100%;
  resize: vertical;
  transition: border .15s, background .17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #BDA97B;
  background: #fff;
}

/* --------------
   RESPONSIVE
----------------- */
@media (max-width: 1180px) {
  .features-grid, .projects-grid, .service-cards, .restoration-types, .testimonials-wrapper, .card-container, .value-props {
    flex-direction: row;
    gap: 16px;
  }
}
@media (max-width: 990px) {
  .container { max-width: 95vw; padding: 0 8px; }
}
@media (max-width: 900px) {
  .features-grid, .projects-grid, .service-cards, .restoration-types, .testimonials-wrapper, .card-container, .value-props {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .features-grid, .projects-grid, .service-cards, .restoration-types, .testimonials-wrapper, .card-container, .value-props {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav { gap: 18px; }
  .footer-logo img { height: 28px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .main-nav { display: none; }
  header .btn-primary { margin-left: 0; }
  .cta-section, .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .timeline li {
    padding-left: 20px;
  }
  .card, .project-card, .feature-item, .service-card, .restoration-type, .testimonial-card {
    min-width: 0;
    flex: 1 1 100%;
  }
  section { padding: 22px 2px; }
}
@media (max-width: 576px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.09rem; }
  h3 { font-size: 0.98rem; }
  .footer-logo img { height: 22px; }
  .btn-primary, .btn-secondary, .btn-cookie {
    padding: 10px 16px;
    font-size: .95rem;
  }
}

/* -------------------------
   UTILITY
-------------------------- */
.gap-top { margin-top: 30px; }
.gap-bottom { margin-bottom: 30px; }
.rounded { border-radius: 18px; }
.shadow-soft { box-shadow: 0 3px 18px rgba(189,169,123,0.06); }
.text-center { text-align: center; }

/* ---------------
   MICRO-ACTIONS
----------------- */
.btn-primary, .btn-secondary, .service-card, .feature-item, .project-card,
.testimonial-card, .restoration-type, .card {
  transition: box-shadow .18s, background .18s, color .16s, transform .16s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}
.service-card:active, .feature-item:active, .project-card:active, .testimonial-card:active, .restoration-type:active, .card:active {
  transform: scale(0.98);
}

/* Hide visually */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* --------------
   CUSTOM SCROLLBAR
----------------- */
::-webkit-scrollbar { width: 10px; background: #F5F3EE; }
::-webkit-scrollbar-thumb { background: #BDA97B; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9d7e3c; }

/* ---------------
   SPECIAL CLASSES
------------------ */
.card-container, .features-grid, .projects-grid, .service-cards, .restoration-types, .testimonials-wrapper, .card, .feature-item, .project-card, .service-card, .restoration-type, .testimonial-card {
  min-width: 0;
}

/* Ensure no overlapping cards or spaced consistently */
.card, .feature-item, .project-card, .service-card, .restoration-type, .testimonial-card {
  margin-bottom: 20px !important;
}

/* For all <ul> and <li> lists, avoid excessive bottom margin */
ul, ol { margin-bottom: 1em; }
ul:last-child, ol:last-child { margin-bottom: 0; }

/* Ensure modal, cookie, and navigation overlays always on top */
.mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 9999 !important; }
