/* =====================================================
   CSS RESET & NORMALIZATION (MOBILE-FIRST)             
   ===================================================== */
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,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,
dd,dl,dt,li,ol,ul,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; vertical-align:baseline; font:inherit; }
html { box-sizing: border-box; font-size: 16px; }
*,*:before,*:after { box-sizing: inherit; }
body { line-height: 1.6; color:#254052; background: #F8FAFB; }
ul,ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width:100%; display:block; height:auto; }
button,input,select,textarea { font-family:inherit; font-size:100%; line-height:1.2; border:none; outline:none; background:transparent; }

/* ========================
   SCANDINAVIAN CLEAN VIBE
   ======================== */
:root {
  --primary: #245D85;
  --secondary: #69A9C4;
  --accent: #F0F3F7;
  --text: #254052;
  --text-dark: #203442;
  --white: #fff;
  --border: #E9EEF1;
  --gray-light: #E7ECEF;
  --success: #2CA380;
  --danger: #DB524E;
  --shadow-light: 0 2px 8px rgba(36,93,133,0.08);
}

html,body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--accent);
}

body {
  min-height: 100vh;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

h1 { font-size:2rem; line-height:1.12; margin-bottom:24px; }
h2 { font-size:1.5rem; line-height:1.18; margin-bottom:18px; }
h3 { font-size:1.15rem; margin-bottom:10px; }

p, ul, ol, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}

strong { color: var(--primary); font-weight: 600; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-light);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section + .section { margin-top:20px; }

.text-section { gap: 12px; }

/* ================================
   HEADER, NAV, BUTTONS, LOGO
   ================================ */
header {
  background: var(--white);
  box-shadow: 0 3px 16px rgba(30, 45, 67, 0.05);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 15;
}
.header .container, header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
  padding: 0 16px;
}
header a img {
  height: 40px;
  width: auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 6px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--accent);
  color: var(--secondary);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(36,93,133,0.06);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
  border: none;
  cursor: pointer;
  margin-left:12px;
  text-align:center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(36,93,133,0.16);
  transform: translateY(-1px) scale(1.02);
  color: var(--primary);
}

/* ============================
   FLEXBOX LAYOUT UTILITY
   ============================ */
.card-container, .card-grid, .feature-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius:14px;
  box-shadow: var(--shadow-light);
  padding: 28px 24px;
  min-width:260px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-content { display:flex; flex-direction:column; justify-content:center; }

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
}
.icon-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

/* =============
   HERO SECTION
   ============= */
.hero {
  background: linear-gradient(120deg, var(--accent) 65%, #E7F1F9 100%);
  padding: 56px 0;
  min-height: 280px;
  margin-bottom: 28px;
}
.hero .container {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap:24px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin: 0 auto;
  max-width: 650px;
}
.hero h1 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
}
.hero p {
  color: var(--text);
  font-size: 1.16rem;
}

/* ============
   FEATURES
   ============ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.feature {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: var(--shadow-light);
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  transition: box-shadow .19s, transform .16s;
}
.feature:hover {
  box-shadow: 0 8px 24px rgba(36,93,133,0.12);
  transform: scale(1.025) translateY(-2px);
}
.feature img {
  width: 38px; height: 38px; margin-bottom: 8px;
}

/* ============== 
   TESTIMONIALS
   ============== */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
}
.testimonials .content-wrapper {
  gap: 22px;
}
.testimonial-card {
  background: var(--white);
  border-left: 6px solid var(--secondary);
  color: var(--text-dark);
  min-width: 260px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: box-shadow .18s, border-color .15s;
}
.testimonial-card blockquote {
  font-size: 1.09rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin:0;
  padding:0 0 6px 0;
}
.testimonial-card p {
  font-size: 0.98rem;
  margin: 0;
  color: var(--text);
}

/* ==============
   BLOG SECTION
   ==============
*/
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 18px 0;
}
.blog-post {
  flex: 1 1 320px;
  background: var(--white);
  border-radius: 14px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .16s;
}
.blog-post:hover {
  box-shadow: 0 6px 18px rgba(36,93,133,0.12);
  transform: translateY(-2px) scale(1.01);
}
.read-post {
  color: var(--primary);
  font-weight:600;
  font-family:'Montserrat', Arial, Helvetica, sans-serif;
  font-size:1.02rem;
  letter-spacing:0.01em;
  margin-top:6px;
  transition:color 0.16s, text-decoration .16s;
}
.read-post:hover { color: var(--secondary); text-decoration: underline; }

.category-filter p {
  margin-bottom:0;
  font-size: 1rem;
  color: var(--text);
}
.category-filter a { color: var(--secondary); margin: 0 4px; transition:color 0.18s; }
.category-filter a:hover { color: var(--primary); text-decoration: underline; }

/* =============
   FOOTER
   ============= */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 36px 0 24px 0;
  box-shadow: 0 -2px 14px rgba(30, 45, 67, 0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap:24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--primary);
  font-family:'Montserrat',Arial,Helvetica,sans-serif;
  font-weight: 500;
  font-size:1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover { background: var(--accent); color:var(--secondary); }
.brand-info {
  color: var(--text);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-info p img {
  display: inline-block;
  width: 18px; height: 18px; vertical-align: middle; margin-right: 6px;
}

/* ================
   FORMS & INPUTS
   ================ */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
}
label { color: var(--primary); font-size: 1rem; margin-bottom:4px; }
input[type="email"], input[type="text"], textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 1rem;
  transition: border-color 0.16s, background 0.16s;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
}
button[type="submit"] {
  min-width: 120px;
  align-self: flex-start;
}

/* =======
   FAQ
   ======= */
.faq ul {
  margin-top: 8px;
  margin-bottom: 16px;
}
.faq ul li {
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px 0;
  color: var(--text);
  font-size: 1rem;
  transition: background 0.1s;
}
.faq ul li:last-child{border: 0;}

/* =======
   MAP EMBED
   ======= */
.map-embed {
  padding: 14px 10px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  margin: 12px 0;
}

/* =======
   ICONS
   ======= */
.icon-row img { width: 28px; height: 28px; filter: grayscale(23%); }

/* =======
   UTILITIES
   ======= */
.mt-1 { margin-top: 8px!important; }
.mt-2 { margin-top: 16px!important; }
.mt-3 { margin-top: 32px!important; }

.mb-1 { margin-bottom: 12px!important; }
.mb-2 { margin-bottom: 24px!important; }
.mb-3 { margin-bottom: 36px!important; }

.gap-1 { gap: 10px!important; }
.gap-2 { gap: 22px!important; }

.text-center { text-align: center!important; }
.text-right { text-align: right!important; }
.text-left { text-align: left!important; }

/* =============================
   MOBILE MENU BURGER & ANIMATION
   ============================= */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: var(--primary);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 11px;
  right: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: background 0.18s, color 0.16s;
  z-index: 151;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: var(--secondary); color: var(--white); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(37,64,82,0.72);
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.25s cubic-bezier(.5,1.33,.65,1),transform 0.36s cubic-bezier(.66,.12,.44,1.02);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--white);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius:9px;
  width:46px; height:46px; margin:18px 18px 0 0;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background:var(--secondary); color:var(--white); }
.mobile-nav {
  background: var(--white);
  border-radius: 18px 0 0 18px;
  box-shadow: -8px 0 20px rgba(36,93,133,0.13);
  padding: 36px 32px 40px 16px;
  margin-top: 28px;
  min-width: 220px;
  max-width: 72vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  animation: fadeInMobileMenu 0.43s cubic-bezier(.52,.13,.61,1.12);
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.11rem;
  font-weight: 500;
  padding: 10px 4px 10px 0;
  border-radius: 7px;
  min-width: 120px;
  transition:color 0.16s, background .15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--accent);
  color: var(--secondary);
}
@keyframes fadeInMobileMenu {
  from { opacity:0; transform: translateX(-30px) }
  to { opacity:1; transform: translateX(0); }
}

@media (min-width:981px){
  nav.main-nav, header .btn-primary { display: flex!important; }
  .mobile-menu-toggle, .mobile-menu { display:none!important; }
}
@media (max-width:980px){
  nav.main-nav, header .btn-primary { display:none!important; }
  .mobile-menu-toggle { display:flex!important; }
  .mobile-menu {display:flex!important;}
}

/* ================
   RESPONSIVE FLEX
   ================ */
@media (max-width: 768px){
  .hero .container, .hero .content-wrapper, .feature-grid, .blog-list, .card-container, .content-grid, .testimonials .content-wrapper {
    flex-direction: column!important;
    align-items: stretch!important;
    gap: 22px!important;
  }
  .container {
    padding: 0 6px;
  }
  .section, .testimonials {
    padding: 24px 6px;
  }
  .card, .feature, .testimonial-card, .blog-post {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column!important;
    gap:18px;
  }
  footer .container{
    gap:18px;
  }
}

@media (max-width:600px){
  h1{font-size:1.45rem;}
  h2{font-size:1.18rem;}
  .brand-info{ font-size:0.89rem; } 
  .btn-primary{padding:9px 18px;font-size:1rem;}
  .card, .feature, .testimonial-card, .blog-post { padding: 17px 8px; }
  .footer-nav { gap:10px; flex-direction:column; }
}

/* ============================
   COOKIE CONSENT BANNER + MODAL
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 180;
  background: var(--white);
  box-shadow: 0 -2px 20px rgba(36,93,133,0.15);
  border-top: 2px solid var(--border);
  padding: 22px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerSlideIn 0.52s cubic-bezier(.6,.12,.52,1.2);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(40px); opacity:0; }
  to { transform: translateY(0); opacity:1;}
}
.cookie-banner p {
  margin-bottom: 0;
  color: var(--text-dark);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.14s, box-shadow 0.17s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .cookie-btn.accept:hover { background: var(--secondary); color:var(--primary); }
.cookie-banner .cookie-btn.reject {
  background: var(--gray-light);
  color: var(--text);
}
.cookie-banner .cookie-btn.reject:hover { background: #d1dee7; color:var(--danger); }
.cookie-banner .cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.2px solid var(--border);
}
.cookie-banner .cookie-btn.settings:hover { background: var(--secondary); color: var(--white);} 

@media(max-width:750px){
  .cookie-banner{ flex-direction: column; gap:14px; padding: 18px 8px; }
  .cookie-banner .cookie-actions{ justify-content: flex-start; gap:11px; }
}

/* ==========
   COOKIE MODAL
   ========== */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 210;
  left: 0; top: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(35,53,77,0.32);
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.42s;
}
.cookie-modal.open { display: flex; }
@keyframes cookieModalFade {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(36,93,133,0.15);
  padding: 34px 28px 22px;
  max-width: 410px;
  width:98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalPop .34s cubic-bezier(.46,1.62,.45,1.08);
}
@keyframes cookieModalPop {
  from { transform: scale(0.89); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal-content h2{
  color:var(--primary); font-family:'Montserrat',Arial; font-size: 1.15rem; margin-bottom:10px;
}
.cookie-modal-content ul, .cookie-modal-content li {
  font-size:1rem; color:var(--text-dark); margin-bottom:6px; padding: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:10px;
  margin-bottom: 10px;
  background: var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
}
.cookie-category .category-label {
  font-size:1rem;
  color: var(--primary);
  font-family: 'Montserrat',Arial;
}
.cookie-category .category-toggle[disabled] {
  opacity:0.6;
}
.cookie-modal .close-cookie-modal {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.42rem;
  cursor: pointer;
}

/* SIMPLE TOGGLE SWITCH FOR COOKIES */
.category-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--gray-light);
  border-radius: 40px;
  margin-left: 8px;
  border: none;
  vertical-align: middle;
  transition: background 0.2s;
}
.category-toggle:checked {
  background: var(--secondary);
}
.category-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(36,93,133,0.09);
  transition: transform 0.18s;
}
.category-toggle:checked:before {
  transform: translateX(20px);
}
.category-toggle[disabled] { opacity: 0.55; background: #eee; cursor:not-allowed; }

/* ================
   UTILITY CLASSES
   ================ */
.nowrap { white-space: nowrap; }

/* ===============
   PRINT FRIENDLY
   =============== */
@media print {
  * { background: none!important; color: #111!important; box-shadow: none!important; text-shadow: none!important; }
  header,footer,.mobile-menu,.cookie-banner,.cookie-modal { display:none!important; }
}

/* ================
   ACCESSIBILITY
   ================ */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset:2px;
}

/* ===============
   MODALS OVERFLOW
   =============== */
body.modal-open {
  overflow: hidden;
}
