/* --- CSS RESET & BASE STYLES --- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #ECE7DF;
  color: #355145;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- CUSTOM PROPERTIES FOR EASY THEMING --- */
:root {
  --color-primary: #355145;
  --color-secondary: #ECE7DF;
  --color-accent: #9BC454;
  --color-neutral: #ffffff;
  --color-shadow: rgba(53, 81, 69, 0.07);
  --color-subtle: #F7F5F1;
  --color-footer: #D6D3CB;
  --border-radius: 16px;
  --radius-small: 8px;
  --shadow-card: 0 4px 32px var(--color-shadow);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- BASE TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; line-height: 1.16; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.14; margin-bottom: 20px; }
h3 { font-size: 1.38rem; line-height: 1.2; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.05rem; line-height: 1.3; }
.subtitle { color: #597863; font-weight: 400; font-size: 1.1rem; margin-bottom: 28px; }
p { margin-bottom: 18px; }
ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
  font-size: 1rem;
}
li { margin-bottom: 10px; }
strong, b { font-weight: 700; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus { color: var(--color-accent); }

/* --- BUTTONS / CTA BUTTONS --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 14px 34px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .18s, box-shadow .18s, transform .15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #7da940;
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}

button {
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .2s, background .2s, transform .13s;
}

/* --- CONTAINER AND SPACING PATTERNS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section { max-width: 730px; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-neutral);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  min-width: 250px;
  flex: 1 1 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-neutral);
  border-radius: var(--radius-small);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-neutral);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  min-height: 64px;
}
header nav > a img {
  height: 38px;
  width: auto;
  vertical-align: middle;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 16px;
  margin: 0 12px;
}
header nav ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-small);
  transition: background .16s, color .18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--color-subtle);
  color: var(--color-accent);
}
header nav .cta-btn {
  margin-left: auto;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 31;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  transition: color .18s, transform .19s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-accent);
  transform: scale(1.14);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-secondary);
  box-shadow: 0 6px 36px rgba(53,81,69,0.09);
  z-index: 40;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.7,.5,.4,1), opacity .24s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 22px 25px 16px auto;
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 41;
  transition: color .21s, transform .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 12px 4px;
  border-radius: var(--radius-small);
  width: 100%;
  transition: color .16s, background .12s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-neutral);
}

/* --- HERO SECTION / GENERAL SECTION STYLES --- */
main section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 0;
}
main .container { max-width: 950px; }

/* --- SERVICE / PRODUCT CARDS --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.service-card {
  background: var(--color-neutral);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
  transition: box-shadow .18s, transform .18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-2px) scale(1.015);
}
.service-card h3 { margin-bottom: 6px; font-size: 1.13rem; color: var(--color-primary); }
.service-card span {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 5px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--color-neutral);
  border-radius: var(--border-radius);
  color: #26372C;
  box-shadow: var(--shadow-card);
  font-size: 1.10rem;
  gap: 8px;
  margin-bottom: 20px;
  padding: 24px 28px 20px 24px;
  max-width: 600px;
  transition: box-shadow .18s, transform .17s;
}
.testimonial-card p {
  font-style: italic;
  color: #26372C;
  font-size: 1.11rem;
}
.testimonial-card span {
  color: #597863;
  font-size: 1rem;
  margin-top: 12px;
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px var(--color-shadow);
  transform: scale(1.01);
}

/* --- CONTACT INFO, MAP ETC. --- */
.contact-info {
  margin-top: 10px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.contact-info a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}
.contact-info a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.map-section {
  margin-top: 12px;
  font-size: 0.96rem;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer);
  padding: 18px 0 0 0;
  color: #26372C;
  margin-top: 80px;
}
footer .container { max-width: 1160px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 12px;
}
footer a img {
  height: 34px;
  width: auto;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  align-items: center;
}
footer nav a {
  color: #355145;
  font-family: var(--font-display);
  font-weight: 600;
  transition: color .18s;
  opacity: .91;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  align-items: flex-start;
  margin-right: 16px;
}
.footer-contact a {
  color: var(--color-accent);
  font-weight: 600;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(20%);
  transition: filter .16s, transform .18s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0%) brightness(0.93);
  transform: scale(1.08) rotate(-6deg);
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-neutral);
  color: var(--color-primary);
  box-shadow: 0 -2px 14px var(--color-shadow);
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform .25s cubic-bezier(.77,.13,.78,1.06), opacity .22s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-btn, .cookie-consent-banner button {
  background: var(--color-accent);
  color: var(--color-neutral);
  border: none;
  border-radius: var(--radius-small);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 6px;
  margin-right: 6px;
  cursor: pointer;
  transition: background .17s, box-shadow .15s, color .16s, transform .11s;
}
.cookie-btn.settings {
  background: #d6e6c7;
  color: var(--color-primary);
  border: 1px solid #aecf93;
}
.cookie-btn:hover, .cookie-btn:focus { background: #7da940; color: #fff; }
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8efe0; color: var(--color-primary); border-color: #8DAC3C;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 90vw;
  max-width: 410px;
  transform: translate(-50%, -60%) scale(.97);
  background: var(--color-neutral);
  color: var(--color-primary);
  z-index: 105;
  padding: 28px 22px 16px 22px;
  border-radius: var(--border-radius);
  box-shadow: 0 7px 42px var(--color-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -52%) scale(1);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-modal .category label {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal .category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  border-radius: 3px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.card,
.service-card,
.testimonial-card,
.cta-btn,
.cookie-btn,
.cookie-modal {
  transition: box-shadow .18s, transform .13s, background .18s, color .14s, opacity .2s;
}

/* --- SCANDINAVIAN SHADOWS & CARD EFFECTS --- */
.card, .service-card, .testimonial-card {
  box-shadow: 0 2px 12px var(--color-shadow);
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 28px var(--color-shadow);
  transform: translateY(-3px) scale(1.01);
}

/* --- RESPONSIVE DESIGN: MOBILE-FIRST --- */
@media (max-width: 1024px) {
  .container { max-width: 95vw; }
  .content-wrapper { gap: 12px; }
  .footer-social { margin-left: 0; }
}
@media (max-width: 900px) {
  .service-list {
    gap: 16px;
  }
  .service-card {
    min-width: 210px;
    padding: 20px;
  }
  main .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.43rem; }
  .container { padding: 0 10px; }
  header nav ul { display: none; }
  header nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; margin-right: 2px; }
  .content-grid, .service-list, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 20px; align-items: flex-start; }
  .testimonial-card { max-width: 96vw; padding: 18px 12px; }
  .card, .service-card { min-width: 0; padding: 15px 9px; }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 12px;
  }
  .footer-social {
    margin-top: 12px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 17px 7px 9px 14px;
    font-size: 0.98rem;
    max-width: 98vw;
  }
}
@media (max-width: 430px) {
  .container { padding: 0 4px; }
  h1, h2 { font-size: 1.12rem; }
  .card, .service-card, .testimonial-card {
    padding: 7px 5px; font-size: 0.96rem;
  }
  .cookie-modal { padding: 6px 0 4px 12px; }
}

/* --- UTILITY CLASSES --- */
.hide { display: none !important; }
.show { display: block !important; }
.flex { display: flex !important; }

/* --- SCROLLBAR (subtle, neutral, modern) --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F4F2;
}
::-webkit-scrollbar-thumb {
  background: #cfdac8;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b2c29d;
}

/* --- END OF STYLE.CSS --- */
