/* RESET & NORMALIZE ------------------*/
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #28334A;
  background-color: #FAFAF7;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #334569;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #EF5939;
  outline: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #28334A;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
}

/* COLOR VARIABLES ---------------------*/
:root {
  --color-primary: #334569;
  --color-secondary: #F5DC6C;
  --color-accent: #EF5939;
  --color-bg: #FAFAF7;
  --color-section: #FFFFFF;
  --color-shadow: rgba(40, 51, 74, 0.08);
  --color-border: #E8E9EB;
  --color-footer-bg: #F4F6F9;
  --color-text: #28334A;
  --color-muted: #838B99;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #242830;
    --color-section: #2C3440;
    --color-footer-bg: #1A1E24;
    --color-border: #313947;
    --color-text: #F0F1F4;
    --color-muted: #B6BBC6;
  }
}

/* MAIN LAYOUT -------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* HEADER ------------------------------*/
header {
  background: var(--color-section);
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.logo-link img {
  height: 42px;
  width: auto;
  margin-right: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.95;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  opacity: 1;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 25px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.18s, transform 0.18s, box-shadow 0.15s;
  border: none;
  outline: none;
  margin-left: 12px;
  letter-spacing: 0.01em;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 24px var(--color-shadow);
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s;
  z-index: 101;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}

/* MOBILE NAVIGATION ------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(52, 63, 87, 0.96);
  z-index: 200;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(.76, .01, .45, .95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 22px 0 0;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  padding: 32px 28px 0 32px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-size: 1.15rem;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 7px;
  letter-spacing: 0.02em;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 1023px) {
  .main-nav, .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

/* HERO --------------------------------*/
.hero {
  background: linear-gradient(115deg, #fff 65%, var(--color-secondary) 100%);
  border-bottom: 1px solid var(--color-border);
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero .content-wrapper {
  max-width: 620px;
  padding: 32px 0;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 0.034em;
}
.hero p {
  color: #000;
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.97;
}
.hero .cta-btn {
  margin-top: 4px;
}

/* SECTIONS & SPACING -----------------*/
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
}

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-section);
  border-radius: 14px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 28px 24px 20px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.18s;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.013);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 20px 28px;
  margin-bottom: 22px;
  color: #232A38;
  font-size: 1.07rem;
  position: relative;
  flex-wrap: wrap;
  min-width: 230px;
  transition: box-shadow 0.17s, transform 0.19s;
}
.testimonial-card span {
  color: var(--color-accent);
  text-align: right;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-left: auto;
  font-weight: 600;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 7px 20px var(--color-shadow);
  transform: translateY(-2px) scale(1.011);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.map-placeholder {
  background: #F6F2E3;
  border: 1.2px dashed var(--color-primary);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  color: #40360A;
  font-size: 1rem;
}

/* FOOTER -------------------------------*/
footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  margin-top: 70px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 36px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 230px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 8px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
.footer-meta {
  font-size: 0.92rem;
  color: var(--color-muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--color-text);
  opacity: .92;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
  outline: none;
}

/* LISTS & ICONS ------------------------*/
ul li, ol li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.6;
}
li > img {
  vertical-align: middle;
  margin-right: 8px;
  height: 22px;
  width: 22px;
  object-fit: contain;
  display: inline-block;
}

/* FORMS & FOCUSED STATES ---------------*/
input, textarea, select {
  font-family: inherit;
  font-size: 1.1rem;
  border: 1.1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff;
  color: var(--color-text);
  margin-bottom: 16px;
  width: 100%;
  box-shadow: none;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}

/* COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: #232308;
  box-shadow: 0 -2px 20px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 970;
  padding: 22px 16px 16px 16px;
  gap: 15px;
  font-size: 1.04rem;
  border-top: 1px solid #f5f0c0;
  animation: cookieIn 0.55s cubic-bezier(.3,1.45,.38,.99);
}
@keyframes cookieIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 2px;
}
.cookie-banner button,
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 22px;
  box-shadow: 0 1px 4px var(--color-shadow);
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.14s;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: var(--color-accent);
}
.cookie-banner .reject {
  background: #ecebf4;
  color: var(--color-muted);
  border: 1.4px solid #dad8e0;
}
.cookie-banner .reject:hover {
  background: var(--color-section);
  color: var(--color-primary);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-text);
}
.cookie-banner .settings:hover {
  background: #ffeea4;
}

/* COOKIE MODAL POPUP--------------------*/
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 32%) scale(0.92);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 40px var(--color-shadow);
  padding: 36px 26px 30px 26px;
  z-index: 999;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s, opacity 0.18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.cookie-modal ul {
  list-style: none;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--color-text);
}
.toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
  display: inline-block;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #dfe2ea;
  border-radius: 24px;
  height: 100%;
  width: 100%;
  transition: background 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 6px rgba(60,70,85,.10);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  margin-top: 7px;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .save {
  background: var(--color-primary);
  color: #fff;
}
.cookie-modal .save:hover,
.cookie-modal .save:focus {
  background: var(--color-accent);
}
.cookie-modal .close {
  background: var(--color-secondary);
  color: var(--color-text);
}
.cookie-modal .close:hover,
.cookie-modal .close:focus {
  background: #ffefbc;
  color: var(--color-primary);
}

/* FORMATTING - OTHERS ------------------*/

pre, code {
  background: #f7f6ef;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.96em;
}

/* SPACING & FLEX HELPERS ---------------*/
.mb-20 { margin-bottom: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* RESPONSIVE LAYOUT --------------------*/
@media (max-width: 900px) {
  .container {
    max-width: 92vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .section, main section {
    padding: 30px 7px;
    margin-bottom: 40px;
    border-radius: 11px;
  }
  .footer-brand {
    min-width: 180px;
  }
  .content-wrapper { padding: 0; }
  .footer-nav { gap: 8px; }
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 16px;
  }
  .card { min-width: 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  .hero, .hero .container {
    min-height: 210px;
    padding: 0;
  }
  .hero .content-wrapper { padding: 18px 0; }
  .footer-brand img { height: 28px; }
  .testimonial-card {
    padding: 18px 11px;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer .container { flex-direction: column; gap: 18px; }
}

/* VISUAL EFFECTS & MICRO-INTERACTIONS ---*/
button, .cta-btn {
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, transform 0.16s;
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 20px var(--color-shadow);
  transform: translateY(-2px) scale(1.0125);
}

/* Z-INDEX & OVERLAP PREVENTION ---------*/
.mobile-menu,
.cookie-modal,
.cookie-banner {
  z-index: 970;
}
header {
  z-index: 950;
}

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

/* SCANDINAVIAN CLEAN SPECIFIC STYLING ---*/
/* Use lots of white, light backgrounds, subtle drop shadows, muted secondary colors */

/* Natural accent lines */
h2:after {
  content: '';
  display: block;
  width: 38px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 7px;
  margin-bottom: 8px;
}

/* Ensured spacing between all cards/sections */
.section > * + *, .content-wrapper > * + *, .card-container > *, .card + .card,
.content-grid > *, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Hide default focus outlines but keep accessibility on keyboard navigation */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide cookie modal when not open */
.cookie-modal:not(.open) { display: none; opacity: 0; pointer-events: none; }


/* END OF STYLE.CS */
