/* --- CSS RESET AND 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F3EF;
  color: #25414C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; border: none; }
ul, ol { list-style: none; }
:focus { outline: 2px solid #81A69B; outline-offset: 2px; }

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25414C;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 12px; }

p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #25414C;
}
strong { font-weight: 600; }
em { color: #81A69B; font-style: italic; }

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #F6F3EF;
  border-bottom: 1px solid #e6e2dc;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #25414C;
  padding: 8px 0;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e1ede6;
  color: #25414C;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: #25414C;
  color: #fff;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 8px 0 rgba(37,65,76, 0.07);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.14s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #81A69B;
  color: #25414C;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(37,65,76, 0.13);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #25414C;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 120;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e1ede6;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(246,243,239,0.98);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.5,0.1,0.1,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #25414C;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 26px 26px 0 0;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e1ede6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  margin-top: 50px;
  margin-left: 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 10px 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #25414C;
  border-radius: 6px;
  transition: background 0.16s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #81A69B;
  color: #fff;
}

/* --- SECTION & CARD LAYOUT PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(37,65,76, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 18px rgba(37,65,76, 0.13);
  transform: translateY(-3px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  width: 100%;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(37,65,76, 0.09);
  margin-bottom: 20px;
  color: #25414C;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: #25414C;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #81A69B;
  letter-spacing: 0.02em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(37,65,76, 0.18);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  box-shadow: 0 1px 6px rgba(37,65,76, 0.07);
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item:hover {
  box-shadow: 0 8px 18px rgba(37,65,76, 0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-item img {
  height: 40px; width: 40px;
  margin-bottom: 6px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-item {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px 20px 22px;
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(37,65,76, 0.07);
  transition: box-shadow 0.16s, transform 0.13s;
}
.service-item img {
  height: 36px; width: 36px;
}
.service-item:hover {
  box-shadow: 0 8px 18px rgba(37,65,76, 0.13);
  transform: translateY(-2px) scale(1.01);
}

.text-section {
  margin-bottom: 24px;
  background: transparent;
  border-left: 4px solid #81A69B;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* --- GENERAL SPACING & MICRO-INTERACTIONS --- */
section + section { margin-top: 40px; }
main section:last-child { margin-bottom: 40px; }

/* --- LISTS --- */
ul, ol {
  margin-left: 14px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
ul li:before {
  content: '';
  display: inline-block;
  background: #81A69B;
  border-radius: 50%;
  width: 7px; height: 7px;
  margin-right: 8px;
  position: absolute;
  left: 0;
  top: 8px;
}

/* --- FOOTER --- */
footer {
  background: #25414C;
  color: #fff;
  padding: 36px 0 15px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer a {
  color: #fff;
  font-size: 1rem;
}
footer a:hover, footer a:focus {
  text-decoration: underline;
  color: #81A69B;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-info {
  font-size: 0.93rem;
  color: #e1ede6;
}
.footer-info p{
  color: #e1ede6;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(246,243,239, 0.98);
  border-top: 1px solid #e6e2dc;
  box-shadow: 0 -2px 10px rgba(37,65,76,0.07);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px 18px 12px;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.36s cubic-bezier(0.5,0.1,0.1,1), opacity 0.3s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  font-size: 1rem;
  color: #25414C;
  text-align: center;
  margin-bottom: 8px;
  max-width: 650px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.cookie-btn {
  appearance: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  background: #81A69B;
  color: #fff;
  margin-right: 0;
  box-shadow: 0 1px 5px rgba(37,65,76,0.07);
  transition: background 0.2s, color 0.17s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #25414C;
  color: #fff;
}
.cookie-btn.reject {
  background: #e6e2dc;
  color: #25414C;
}
.cookie-btn.settings {
  background: #fff;
  color: #25414C;
  border: 1px solid #81A69B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #AEC7BE;
  color: #25414C;
  box-shadow: 0 6px 20px rgba(37,65,76,0.09);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #81A69B;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 120%);
  background: #F6F3EF;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 0 24px rgba(37,65,76,0.16);
  z-index: 10001;
  min-width: 320px;
  max-width: 96vw;
  width: 400px;
  padding: 34px 26px 28px 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.5,0.1,0.1,1), opacity 0.3s;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  margin-bottom: 14px;
  color: #25414C;
  font-size: 1.17rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e6e2dc;
}
.cookie-category.essential label {
  font-weight: 600;
  color: #25414C;
}
.cookie-category .toggle-switch {
  width: 42px; height: 22px;
  background: #e6e2dc;
  border-radius: 14px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.toggle-switch input[type="checkbox"] { display: none; }
.toggle-switch .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #81A69B;
  border-radius: 50%;
  transition: left 0.22s;
}
.toggle-switch input[type="checkbox"]:checked + .slider {
  left: 22px;
  background: #25414C;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: #25414C;
  font-size: 1.6rem;
  position: absolute;
  top: 8px; right: 12px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #81A69B;
}

/* --- RESPONSIVENESS (MOBILE-FIRST) --- */
@media (max-width: 1000px) {
  .container { max-width: 96vw; }
  .card, .feature-item, .service-item {
    min-width: 200px;
    flex: 1 1 180px;
    padding: 20px 12px 18px 12px;
  }
}
@media (max-width: 850px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .main-nav { gap: 10px; margin-bottom: 6px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 30px 10px; }
  .feature-item, .testimonials, .testimonial-card, .service-item {
    min-width: unset;
    flex: 1 1 100%;
  }
  .feature-grid, .service-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav, .cta-btn {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav, .cta-btn {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.15rem; }
  h2 { font-size: 1rem; }
  .section { padding: 18px 4px; }
  .cookie-modal { width: 90vw; min-width: unset; padding: 28px 5vw 20px 5vw; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .feature-item, .testimonial-card, .service-item {
  will-change: box-shadow, transform;
}
.cta-btn, .cookie-btn {
  transition: background 0.2s, color 0.16s, box-shadow 0.17s, transform 0.13s;
}

/* --- UTILS --- */
.hide { display: none !important; }

/* --- SCANDINAVIAN CLEAN COLOUR UTILITIES --- */
.bg-primary { background: #25414C !important; color: #fff !important; }
.bg-secondary { background: #81A69B !important; color: #fff !important; }
.bg-accent { background: #F6F3EF !important; color: #25414C !important; }

/* --- EXTRA ACCESSIBILITY --- */
@media (hover: none) {
  a:hover, button:hover { filter: none; }
}
