/* ==========================================================
   RaumGestalt Meister – Scandinavian Clean Style CSS
   Modern, trustworthy, detailed: light, natural, functional
   BRAND: #253858 (Primary), #99B77A (Secondary), #F3F5F9 (Accent)
   FONTS: Montserrat (Display), Open Sans (Body)
   ========================================================== */

/* RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #253858;
  background: #F3F5F9;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #253858;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #99B77A;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
section, main, header, footer, nav, article, aside, figure {
  display: block;
}

/* SCANDINAVIAN TYPOGRAPHY SCALE */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: #253858;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
p, li, span, dd {
  font-size: 1rem;
  color: #253858;
}
.subheadline {
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #384466;
}
strong {
  font-weight: 600;
}

/* CONTAINERS & SECTIONS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section {
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 20px;
}
.feature-grid > div {
  flex: 1 1 270px;
  padding: 24px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(37,56,88,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #F3F5F9;
  transition: box-shadow 0.2s, border 0.2s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 4px 18px 0 rgba(37,56,88,0.12);
  border: 1px solid #99B77A;
}
.service-categories {
  display: flex;
  gap: 14px;
  margin: 18px 0 2px 0;
  flex-wrap: wrap;
  color: #253858;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.service-detail {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F3F5F9;
  box-shadow: 0 1px 6px 0 rgba(37,56,88,0.04);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-highlight {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F3F5F9;
  box-shadow: 0 1px 6px 0 rgba(37,56,88,0.04);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(37,56,88,0.04);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(37,56,88,0.07);
  margin-bottom: 24px;
  border-left: 4px solid #99B77A;
  color: #253858;
  min-width: 0;
  flex: 1 1 300px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #253858;
}
.testimonial-card span {
  color: #666;
  font-size: 0.96rem;
  font-style: normal;
  align-self: flex-end;
}

/* CTA BUTTONS & LINKS */
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  background: #99B77A;
  color: #fff !important;
  border-radius: 28px;
  padding: 14px 36px;
  box-shadow: 0 2px 6px 0 rgba(37,56,88,0.08);
  letter-spacing: 0.01em;
  border: none;
  transition: background 0.18s, box-shadow 0.22s, color 0.18s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #253858;
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(37,56,88,0.10);
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(37,56,88,0.06);
  position: sticky;
  top: 0;
  z-index: 91;
  padding: 0 0 0 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #253858;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F3F5F9;
  color: #99B77A;
}
.main-nav .cta-primary {
  margin: 0 0 0 10px;
  padding: 10px 24px;
  font-size: 1rem;
}

/* Hide mobile menu button and mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #F3F5F9;
  padding: 33px 0 24px 0;
}
footer .container {
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 12px;
}
.footer-nav a {
  color: #384466;
  font-size: 0.98rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #99B77A;
}
.footer-contact {
  font-size: 0.98rem;
  color: #384466;
  line-height: 1.5;
}
.footer-contact a {
  color: #253858;
  text-decoration: underline;
}

/* LISTS, DLS, MISC */
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
dt {
  font-weight: 600;
  margin-bottom: 2px;
  margin-top: 18px;
}
dd {
  margin-left: 0;
  margin-bottom: 8px;
  color: #384466;
}

/* TABLES (generic for legal pages) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
td, th {
  border: 1px solid #F3F5F9;
  padding: 12px 8px;
  font-size: 0.98rem;
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 968px) {
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
  .feature-grid, .content-grid, .card-container {
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.09rem; }
  .section, section {
    margin-bottom: 36px;
    padding: 24px 5px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    padding: 7px 14px;
    color: #253858;
    margin-left: 12px;
    cursor: pointer;
    z-index: 101;
    transition: color 0.18s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: #99B77A;
    outline: none;
  }
  /* MOBILE MENU OVERLAY */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(.79,.19,.27,1.15);
    box-shadow: -16px 0 52px -14px rgba(37,56,88,0.13);
    padding: 0 8vw 0 5vw;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
  }
  .mobile-menu.open {
    transform: translateX(0%);
    transition: transform 0.34s cubic-bezier(.79,.19,.27,1.12);
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #253858;
    font-size: 2.1rem;
    padding: 19px 14px 9px 0;
    margin-right: -6px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.18s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #99B77A;
    outline: none;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin-top: 26px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.18rem;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.15s, background 0.15s;
    border-radius: 6px;
    color: #253858;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #F3F5F9;
    color: #99B77A;
    outline: none;
  }
  .mobile-menu {
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-menu.open {
    visibility: visible;
    pointer-events: auto;
  }
}

/* SMOOTH SLIDE FOR MOBILE MENU (Add/remove .open class via JS) */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
  .main-nav {
    display: flex!important;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #99B77A;
  box-shadow: 0 -2px 18px 0 rgba(37,56,88,0.08);
  z-index: 2001;
  padding: 18px 20px 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  min-height: 0;
}
.cookie-banner-content {
  flex: 1 1 300px;
  font-size: 1rem;
  color: #253858;
  line-height: 1.52;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 11px 24px;
  margin-right: 0;
  cursor: pointer;
  background: #99B77A;
  color: #fff;
  box-shadow: 0 1px 5px 0 rgba(37,56,88,0.04);
  transition: background 0.18s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #253858;
  color: #fff;
  outline: none;
}
.cookie-btn.settings {
  background: #F3F5F9;
  color: #253858;
  border: 1px solid #99B77A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #99B77A;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL (hidden by default, slide in/out) */
.cookie-modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 56, 88, 0.19);
  z-index: 2200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 40px 0 rgba(37,56,88,0.14);
  padding: 32px 22px 22px 22px;
  max-width: 400px;
  min-width: 0;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.30s cubic-bezier(.73,1.8,.38,1); 
}
@keyframes cookieModalIn {
  from { transform: translateY(50px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.36rem;
  font-weight: 600;
  color: #253858;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-size: 1rem;
  color: #253858;
}
.cookie-toggle {
  accent-color: #99B77A;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.cookie-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: none;
  border: none;
  color: #253858;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #99B77A;
  outline: none;
}

/* Forms (Minimal baseline for contact info) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #dde2ea;
  border-radius: 7px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fafbfd;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #99B77A;
  outline: none;
  background: #fff;
}
button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

/* Accent backgrounds for highlight blocks */
.bg-accent, .project-highlight, .section-accent {
  background: #F3F5F9 !important;
  border: 1px solid #e1e4ea;
}

/* Miscellaneous utility classes */
.text-center {
  text-align: center;
}
.mt-2  { margin-top: 16px; }
.mb-2  { margin-bottom: 16px; }
.mt-3  { margin-top: 24px; }
.mb-3  { margin-bottom: 24px; }
.pl-1  { padding-left: 10px; }
.pr-1  { padding-right: 10px; }

/* Scrollbar - subtle modern style */
::-webkit-scrollbar {
  width: 10px;
  background: #F3F5F9;
}
::-webkit-scrollbar-thumb {
  background: #e1e4ea;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #99B77A55;
}

/* A11Y FOCUS */
:focus-visible {
  outline: 2px solid #99B77A;
  outline-offset: 2px;
}

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