/* Sotarmästarens Trygghet Minimalist CSS - Flexbox only, Mobile First, Brand Authentic */
/* === 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, 
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 {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #233349;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%; height: auto; vertical-align: middle;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #233349;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
a {
  color: #233349;
  text-decoration: none;
  transition: color 0.21s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #6D9E62;
  outline: none;
}
ul, ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
button, .cta, input[type="submit"] {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, border-color 0.2s;
  min-width: 120px;
  box-sizing: border-box;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  max-width: 650px;
  margin: 0 auto;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 51, 73, 0.04);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  position: sticky; top: 0; z-index: 30;
  min-height: 64px;
}
header .logo {
  display: flex;
  align-items: center;
  height: 40px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header nav a {
  padding: 6px 8px;
  border-radius: 6px;
  color: #233349;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  color: #6D9E62; background: #F6F1ED;
}
.cta.primary {
  background: #233349;
  color: #fff;
  border: 1.5px solid #233349;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(35, 51, 73, 0.06);
}
.cta.primary:hover, .cta.primary:focus {
  background: #fff;
  color: #233349;
  border-color: #233349;
  box-shadow: 0 4px 16px rgba(35,51,73,0.08);
}
.cta.secondary {
  background: #F6F1ED;
  color: #233349;
  border: 1.5px solid #F6F1ED;
  margin-top: 10px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #233349;
  color: #fff;
  border-color: #233349;
}

button.mobile-menu-toggle {
  display: flex;
  background: none;
  color: #233349;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  height: 44px;
  width: 44px;
  cursor: pointer;
  margin-left: 14px;
  z-index: 40;
  transition: background 0.2s;
}
button.mobile-menu-toggle:hover, button.mobile-menu-toggle:focus {
  background: #F6F1ED;
  border-radius: 8px;
}

/* Hide nav and show hamburger menu on mobile */
@media (max-width: 920px) {
  header nav {
    display: none;
  }
  button.mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 921px) {
  .mobile-menu, button.mobile-menu-toggle {
    display: none !important;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 0;
  background: rgba(35, 51, 73, 0.96);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.25rem;
  padding: 12px 20px 10px 0;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  outline: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6D9E62;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 400;
  border-radius: 8px;
  padding: 12px 0 12px 0;
  display: block;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6D9E62;
  color: #233349;
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 0 12px;
  }
}

/* === MAIN LAYOUT & FLEX PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(35,51,73,0.07);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
  width: 100%;
}
.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: #F6F1ED;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,51,73,0.06);
  margin-bottom: 20px;
  color: #233349;
  flex-direction: column;
  font-size: 1.08rem;
  transition: box-shadow 0.21s;
  max-width: 650px;
}
.testimonial-card strong {
  color: #6D9E62;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(35, 51, 73, 0.13);
}
.star-rating-summary, .star-ratings {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #6D9E62;
}
.star-rating-summary img, .star-ratings img {
  width: 24px;
  height: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FEATURE GRID (also used everywhere) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  width: 100%;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(35,51,73,0.06);
  padding: 28px 22px 22px 22px;
  max-width: 265px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(35,51,73,0.13);
}
.feature-grid img {
  width: 42px; height: 42px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  font-size: 1.13rem;
  margin-bottom: 6px;
}

/* === TABLE (Pricing) === */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,51,73,0.08);
  margin-bottom: 28px;
  margin-top: 8px;
  overflow: hidden;
}
thead {
  background: #F6F1ED;
}
th, td {
  text-align: left;
  padding: 16px 18px;
  font-size: 1rem;
}
th {
  font-weight: 700;
  color: #233349;
  border-bottom: 1.5px solid #F6F1ED;
}
tbody tr {
  border-bottom: 1px solid #F6F1ED;
}
tbody tr:last-child {
  border-bottom: none;
}
td {
  color: #233349;
}

/* === FAQ ACCORDION === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(35,51,73,0.04);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.faq-accordion div:hover {
  box-shadow: 0 4px 18px rgba(35,51,73,.08);
}
.faq-accordion h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #233349;
}
.faq-accordion p {
  color: #233349;
  margin-bottom: 0;
}
.search-faq {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.search-faq input[type="text"] {
  border: 1.5px solid #F6F1ED;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 1rem;
  width: 100%;
  outline: none;
  background: #fafafa;
  transition: border-color 0.19s;
}
.search-faq input[type="text"]:focus {
  border-color: #6D9E62;
}

/* === FOOTER === */
footer {
  background: #F6F1ED;
  width: 100%;
  padding: 38px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  max-width: 1040px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: #233349;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #233349;
  color: #fff;
}
footer .text-section p {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem;
}

@media (min-width: 700px) {
  .content-wrapper {
    /* flex-direction: row; */
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
  }
  .feature-grid {
    flex-direction: row;
    gap: 32px;
    justify-content: flex-start;
  }
  footer .content-wrapper {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
  }
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 768px) {
  section, .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 22px;
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
  }
  .testimonial-card {
    padding: 16px;
    font-size: 1rem;
  }
  .card {
    padding: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header, footer {
    padding-left: 8px; padding-right: 8px;
  }
  .container {
    max-width: 98vw;
    padding-left: 0; padding-right: 0;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .feature-grid > div, .testimonial-card, .card {
    padding: 12px 7px 12px 10px;
  }
}

/* === FORM ELEMENTS / INPUTS === */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid #F6F1ED;
  border-radius: 7px;
  padding: 10px 15px;
  background: #fafafa;
  color: #233349;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #6D9E62;
}

/* === MODALS (COOKIE PREFERENCE) === */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1202;
  background: rgba(35,51,73,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 42px rgba(35,51,73,0.13);
  max-width: 390px;
  width: 98vw;
  padding: 36px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
  z-index: 1203;
  transform: translateY(64px);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.cookie-modal h3 {
  color: #233349;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #233349;
}
.cookie-toggle {
  width: 36px; height: 20px;
  background: #F6F1ED;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%; background: #233349;
  transition: left 0.18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px; background: #6D9E62;
}

.cookie-modal .actions {
  display: flex; gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cta {
  min-width: 100px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 14px; right: 14px;
  bottom: 20px;
  background: #233349;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(35,51,73,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 24px 24px;
  z-index: 1201;
  font-size: 1rem;
  max-width: 420px;
  animation: fadeInUp 0.58s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(55px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner .cta {
  font-size: 0.96rem;
  padding: 9px 19px;
  border-radius: 7px;
  font-weight: 600;
  outline: none;
  border: none;
  transition: background 0.14s;
}
.cookie-banner .cta.accept {
  background: #6D9E62;
  color: #fff;
  border: none;
}
.cookie-banner .cta.accept:hover, .cookie-banner .cta.accept:focus {
  background: #233349;
  color: #fff;
  border: 1.5px solid #6D9E62;
}
.cookie-banner .cta.reject {
  background: #fff;
  color: #233349;
  border: 1.5px solid #233349;
}
.cookie-banner .cta.reject:hover, .cookie-banner .cta.reject:focus {
  background: #6D9E62;
  color: #fff;
  border: none;
}
.cookie-banner .cta.settings {
  background: transparent;
  color: #fff;
  border: none;
  text-decoration: underline;
  padding-left: 0; padding-right: 0;
}
.cookie-banner .cta.settings:hover, .cookie-banner .cta.settings:focus {
  color: #6D9E62;
}
@media (max-width: 540px) {
  .cookie-banner {
    min-width: 0;
    padding: 15px 9px 15px 14px;
    right: 8px; left: 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    max-width: 335px;
    padding: 22px 8px 12px 8px;
  }
}

/* === MICRO-INTERACTIONS === */
.card, .feature-grid > div, .testimonial-card, .faq-accordion div {
  transition: box-shadow 0.21s cubic-bezier(.4,0,.2,1), transform 0.13s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .faq-accordion div:hover {
  box-shadow: 0 6px 32px rgba(35,51,73,0.14);
  transform: translateY(-4px) scale(1.02);
}
.cta, button, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.13s, color 0.15s, border-color 0.13s;
}

/* === UTILITY CLASSES === */
.hide {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-2 {margin-top: 16px;}
.mb-2 {margin-bottom: 16px;}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  background: #fafafa;
}
::-webkit-scrollbar-thumb {
  background: #F6F1ED;
  border-radius: 8px;
}

/* === COLORS FOR SVG ICONS (override for monochrome) === */
img[alt*="icon"] {
  filter: grayscale(0%) brightness(0.98) contrast(1.05);
}

/* === Other Small Components === */
em, .tip, .caption {
  color: #6D9E62;
  font-style: italic;
  font-size: 0.96em;
}

/* === END === */
