/* 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}

html {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background: #F3ECE7;
  height: 100%;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #F3ECE7;
  min-height: 100vh;
  width: 100%;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button, input, textarea, select {
  font: inherit;
  outline: none;
  background: none;
  border: none;
  box-shadow: none;
}

a {
  text-decoration: none;
  color: #1D3557;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #C03D13;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1D3557;
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.1875rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
h5, h6 { font-size: 0.95rem; margin-bottom: 7px; }
p, ul, ol, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #191919;
  margin-bottom: 14px;
}
strong { color: #1D3557; font-weight: 700; }

/* LINKS, BUTTONS, CTA */
.cta-primary,
.cta-secondary {
  display: inline-block;
  min-width: 140px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(70,60,20,0.04);
  letter-spacing: 0.03em;
  border: none;
}
.cta-primary {
  background: #1D3557;
  color: #fff;
  border: 2px solid #1D3557;
}
.cta-primary:hover, .cta-primary:focus {
  background: #C03D13;
  border-color: #C03D13;
  color: #fff;
  box-shadow: 0 3px 16px rgba(192,61,19,0.10);
}
.cta-secondary {
  background: #fff;
  color: #1D3557;
  border: 2px solid #1D3557;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #E76F51;
  color: #fff;
  border-color: #E76F51;
}
button:disabled, .cta-primary:disabled, .cta-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* MAIN LAYOUT */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
}
.content-wrapper,
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(40,30,20,0.05);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
  flex: 1 1 260px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 24px rgba(80,60,39,0.12);
  transform: translateY(-3px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO */
.hero {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(40,30,20,0.055);
  margin-bottom: 60px;
  padding: 48px 20px 44px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-size: 2.2rem;
  color: #1D3557;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .hero { padding: 32px 10px 35px 10px; }
  .hero h1 { font-size: 1.38rem; }
}

/* LISTS, FEATURES, PROCESS */
ul, ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 20px;
}
ul > li, ol > li {
  padding: 0.5em 0 0.5em 0;
  margin-bottom: 7px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
ul > li img, ol > li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 550px) {
  ul > li img, ol > li img { width: 26px; height: 26px; }
}
ol {
  counter-reset: sectioncounter;
}
ol > li {
  counter-increment: sectioncounter;
  position: relative;
  min-height: 38px;
  padding-left: 0;
}
ol > li:before {
  content: counter(sectioncounter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  width: 38px;
  height: 38px;
  background: #F3ECE7;
  color: #1D3557;
  border-radius: 50%;
  margin-right: 14px;
  border: 2px solid #1D3557;
}
ul > li:before {
  display: none;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 13px;
  background: #FFF;
  box-shadow: 0 2px 10px rgba(40,30,20,0.07);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  max-width: 550px;
  border-left: 6px solid #1D3557;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(40,30,20,0.13);
}
.testimonial-card blockquote {
  color: #222;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
  padding-left: 2px;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.testimonial-card cite {
  color: #1D3557;
  font-size: 0.97rem;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 11px rgba(65,60,52,0.06);
  border-bottom: 1px solid #ede6de;
  padding: 0;
  position: relative;
  z-index: 99;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  max-width: 1080px;
  margin: 0 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #1D3557;
  padding: 7px 18px;
  border-radius: 22px;
  font-size: 1rem;
  transition: background 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #F3ECE7;
}
header nav a.cta-primary {
  margin-left: auto;
}
header nav img {
  height: 42px;
  width: auto;
  margin-right: 13px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #1D3557;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  border: 2px solid #1D3557;
  position: absolute;
  right: 18px;
  top: 14px;
  cursor: pointer;
  z-index: 1200;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #C03D13;
  border-color: #C03D13;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 350px;
  background: #fff;
  box-shadow: -3px 0 16px rgba(28,16,5,0.13);
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.38, 0.98, 0.48, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 18px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #1D3557;
  font-size: 2rem;
  margin: 22px 16px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1203;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #C03D13;
  background: #F3ECE7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: flex-start;
  margin-top: 22px;
}
.mobile-nav a {
  color: #1D3557;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 14px 30px;
  width: 100%;
  border-radius: 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3ECE7;
  color: #C03D13;
}

/* Show/Hide nav/buttons responsive */
@media (max-width: 930px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 931px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* MAIN, SECTIONS, CARDS */
main {
  min-height: 60vh;
  margin-bottom: 36px;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #ede6de;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 18px 18px;
}
footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 3px;
}
footer nav a {
  color: #1D3557;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 12px;
  transition: background 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #F3ECE7;
  color: #C03D13;
}
footer p {
  color: #888;
  font-size: 0.97rem;
}

/* COOKIES: CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #fffbe8;
  border-top: 2px solid #C03D13;
  box-shadow: 0 -2px 20px rgba(24,10,6,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 12px 18px 12px;
  animation: cookie-popin 0.7s cubic-bezier(.57,1.46,.17,.87);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #1D3557;
  color: #fff;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: #1D3557;
  border: 2px solid #1D3557;
}
.cookie-banner button.cookie-reject:hover {
  background: #E76F51;
  color: #fff;
  border-color: #E76F51;
}
.cookie-banner button.cookie-settings {
  background: #C03D13;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover {
  background: #1D3557;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #C03D13;
  color: #fff;
}
@keyframes cookie-popin {
  0%  { transform: translateY(120px); opacity: 0; }
  100%{ transform: none; opacity: 1; }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,53,87,0.14);
  z-index: 4500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modal-popin 0.22s cubic-bezier(.44,1.24,.19,1.03);
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(20,19,14,0.16);
  padding: 36px 24px 32px 24px;
  max-width: 98vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal h2 {
  font-size: 1.21rem;
  color: #1D3557;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1D3557;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  accent-color: #C03D13;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: #444;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 18px;
  font-size: 1rem;
  background: #1D3557;
  color: #fff;
  padding: 8px 19px;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.18s;
}
.cookie-modal button.cookie-cancel {
  background: #fff;
  border: 2px solid #1D3557;
  color: #1D3557;
}
.cookie-modal button.cookie-cancel:hover {
  background: #E76F51;
  color: #fff;
  border-color: #E76F51;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #C03D13;
}
@keyframes modal-popin {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: none; }
}

/* MEDIA QUERIES FOR RESPONSIVE DESIGN */
@media (max-width: 1020px) {
  .container { max-width: 95vw; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section,
  .hero {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  .testimonial-card { max-width: 99vw; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1rem; }
  footer .container { padding: 24px 4px 13px 4px; }
}

/* Additional Scandinavian Clean Touches */
.section, .hero, .card, .testimonial-card, .cookie-modal {
  /* Light touch of wood/natural as background accent */
  background: #FFFFFF;
}

/* Subtle shadows on cards/sections for elevation */
.section, .hero, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 8px rgba(40,28,12,0.06);
}

/* Border radius for soft modern look */
.section, .hero, .card, .testimonial-card, .cookie-modal {
  border-radius: 13px;
}

/* List icon alignment in contact sections */
.text-section ul li {
  align-items: center;
  gap: 11px;
}
.text-section ul li img {
  margin: 0 5px 0 0;
  width: 22px;
  height: 22px;
}

/* Accessibility & Focus states */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  box-shadow: 0 0 2px 2px #C03D1322;
  outline: none;
}

/* Hide visually but keep accessible */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* Utility helper classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* SCANDINAVIAN CLEAN: SPACING SYSTEM */
.section, .card, .testimonial-card {
  margin-bottom: 60px;
}
.card-container, .content-grid {
  gap: 24px;
}
/* Always 20px or more between content cards */
.card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* Miscellaneous */
blockquote { quotes: none; margin: 0; padding: 0; }

::-webkit-scrollbar {
  width: 10px;
  background: #F3ECE7;
}
::-webkit-scrollbar-thumb {
  background: #ede6de;
  border-radius: 8px;
}
