/* CSS RESET & BASELINE NORMALIZATION */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2D2A23;
  background-color: #F5F3EA;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #235C36;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #998154;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  line-height: 1.7;
  margin-bottom: 8px;
}

/* BRAND COLORS & ORGANIC PALETTE */
:root {
  --primary: #19212A;   /* deep forest/navy (header, text) */
  --secondary: #998154; /* muted gold/ochre (highlights) */
  --accent: #F5F3EA;    /* parchment (background, cards) */
  --earth-brown: #A28D65; /* earth tan */
  --organic-green: #235C36; /* organic green accents */
  --clay-red: #B78163;     /* warm organic clay */
  --stone-grey: #B7B8AA;
  --error-red: #D04A3A;
  --shadow: 0 4px 28px rgba(25,33,42,0.09);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 10px rgba(25,33,42,0.08), 0 1.5px 4px rgba(153,129,84,0.03);
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 24px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 28px; }
h2 { font-size: 1.8rem; line-height: 1.23; margin-bottom: 22px; }
h3 { font-size: 1.3rem; line-height: 1.32; margin-bottom: 18px; }
h4 { font-size: 1.1rem; margin-bottom: 14px; }
p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2D2A23;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
  color: var(--primary);
}

/* LAYOUT: FLEXBOX CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  align-items: flex-start;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(153,129,84,0.17);
  transform: translateY(-4px) scale(1.012);
}
.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;
  flex-direction: row;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--organic-green);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  transition: box-shadow 0.20s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(35,92,54,0.11);
  transform: translateY(-3px) scale(1.007);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.news-post {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.news-post:hover {
  box-shadow: 0 8px 28px rgba(153,129,84,0.13);
  transform: translateY(-3px) scale(1.006);
}

/* HEADER & NAVIGATION */
header {
  background: #fff8ef;
  border-bottom: 1px solid var(--stone-grey);
  box-shadow: 0 2px 12px rgba(25,33,42,0.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 0;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a.cta.primary {
  background: var(--organic-green);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  margin-left: 12px;
  font-family: 'Merriweather', serif;
  font-size: 1.07rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 8px rgba(53,90,56,.14);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 15px rgba(190,169,112,0.16);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--organic-green);
}
.main-nav img {
  height: 46px;
  margin-right: 32px;
  vertical-align: middle;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 120;
  background: var(--organic-green);
  color: #fff;
  border: none;
  padding: 13px 14px;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(35,92,54,0.12);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(246,242,225,0.97);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--earth-brown);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 13px 8px 13px;
  border-radius: 50%;
  margin: 26px 28px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(162,141,101,0.13);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--organic-green);
  color: #fff;
}
.mobile-nav {
  margin: 60px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-left: 30px;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .01em;
  background: none;
  border-radius: var(--radius-md);
  padding: 12px 0 12px 14px;
  width: 90vw;
  max-width: 340px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--organic-green);
}

/* BUTTONS & CTAs */
.cta, button, .btn {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1.05rem;
  background: var(--organic-green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(35,92,54,0.14);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
  display: inline-block;
}
.cta.primary, button.primary, .btn.primary {
  background: var(--organic-green);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus, .btn.primary:hover, .btn.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 22px rgba(153,129,84,0.17);
}
.cta.secondary, .btn.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cta.secondary:hover, .btn.secondary:hover, .cta.secondary:focus, .btn.secondary:focus {
  background: var(--organic-green);
  color: #fff;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe5;
  color: var(--primary);
  font-size: 1rem;
  box-shadow: 0 -2px 28px rgba(25,33,42,0.13);
  padding: 30px 16px 18px 16px;
  z-index: 4999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid var(--earth-brown);
  transition: transform 0.27s cubic-bezier(.77,0,.18,1); 
  transform: translateY(100%);
  opacity: 0;
}
.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner-btn {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: var(--radius-sm);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 6px 6px 0;
  cursor: pointer;
  background: var(--organic-green);
  color: #fff;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 6px rgba(35,92,54,0.08);
}
.cookie-banner-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner-btn.reject {
  background: #dccfc2;
  color: var(--primary);
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: var(--primary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25,33,42,0.23);
  z-index: 5001;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 42px rgba(25,33,42,0.16);
  padding: 32px 26px 26px 26px;
  min-width: 320px;
  max-width: 94vw;
  max-height: 95vh;
  overflow-y: auto;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 22px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-modal .category-label {
  flex: 1 1 0%;
  font-size: 1.06rem;
  font-weight: 600;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  left: -9999px;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  border-radius: 23px;
  background: #e5e5e0;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--organic-green);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.21s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .desc {
  font-size: 0.98rem;
  color: #676859;
  margin-bottom: 9px;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

/* FORMS & INPUTS */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--stone-grey);
  background: #fff;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--organic-green);
  outline: none;
}
label {
  margin-bottom: 7px;
  font-weight: 700;
  display: block;
  color: var(--primary);
}

/* FOOTER */
footer {
  background: #f9f8f0;
  border-top: 2px solid var(--earth-brown);
  padding-top: 24px;
  padding-bottom: 18px;
  margin-top: 30px;
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--organic-green);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: #5C5454;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
footer p:last-child {
  text-align: center;
  color: #847458;
  font-size: .95rem;
}

/* ORGANIC SHAPES - subtle */
.section, .card, .testimonial-card, .news-post, .cookie-modal, .cookie-consent-banner {
  border-radius: var(--radius-lg) / 1.17  var(--radius-md)  var(--radius-lg)  var(--radius-md);
}

/* ORGANIC DECORATIVE SHADOWS */
.section, .card, .testimonial-card, .news-post {
  box-shadow: var(--shadow-card);
  background-blend-mode: soft-light, normal;
}

/* FEATURE LISTS / ICONS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 14px 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.07rem;
  color: var(--primary);
  min-width: 200px;
  flex: 1 1 220px;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* ACCESSIBLE TESTIMONIALS/REVIEWS */
.testimonial-card {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(35,92,54,0.09), 0 1.5px 4px rgba(221,207,194,0.05);
  border-left: 8px solid var(--organic-green);
}
.testimonial-card p {
  font-size: 1.09rem;
  margin-bottom: 3px;
  margin-right: 6px;
}
.testimonial-card strong {
  color: var(--organic-green);
}
.testimonial-card img[alt="Betyg"] {
  width: 22px;
  height: 22px;
}

/* MEDIA QUERIES: RESPONSIVE ADAPTATION MOBILE FIRST */
@media (max-width: 1160px) {
  .container {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
  .feature-grid {
    gap: 20px;
  }
  .footer-contact {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 30px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .container {
    padding: 0 6px;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .feature-grid li {
    min-width: unset;
    font-size: 0.97rem;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.06rem; }
  .container {
    padding: 0 3vw;
  }
  .feature-grid li, .card, .testimonial-card, .news-post, .section {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* SCROLLBAR STYLING for organic look */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-thumb {
  background: var(--earth-brown);
  border-radius: 6px;
  border: 2px solid var(--accent);
}
body::-webkit-scrollbar-track {
  background: #ede9dc;
}

/* MICRO-INTERACTIONS */
.card, .testimonial-card, .news-post {
  transition: box-shadow 0.27s, transform 0.19s;
}
.card:hover, .testimonial-card:hover, .news-post:hover {
  box-shadow: 0 11px 38px rgba(102,153,98,0.15), 0 2px 12px rgba(153,129,84,0.09);
  transform: translateY(-5px) scale(1.013);
}

button:active, .btn:active, .cta:active {
  transform: scale(0.97);
}

/* MISCELLANEOUS SPACING */
.section + .section {
  margin-top: 0px;
}
.card + .card {
  margin-top: 0px;
}
p:last-child {
  margin-bottom: 0;
}

/* ACCESSIBILITY: FOCUS STATES */
a:focus, button:focus, .cta:focus {
  outline: 3px solid var(--organic-green);
  outline-offset: 2px;
}

/* ACCESSIBLE CONTRAST FOR TESTIMONIALS */
.testimonial-card {
  background: #fff;
  color: #232313;
  border-left: 7px solid var(--organic-green);
}

/* CUSTOM ORGANIC SHAPES */
.section, .card, .testimonial-card, .news-post, .cookie-consent-banner, .cookie-modal {
  border-bottom-right-radius: 90px 50px;
  border-top-left-radius: 50px 30px;
}

/* HIDE/SHOW MAIN NAV ON BREAKPOINTS */
.main-nav {
  display: flex;
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
}

/* SHOW MOBILE MENU ON TOGGLER */
.mobile-menu {
  display: flex;
}

/* CARDS & FLEX SPACING COMPLIANCE */
.card, .testimonial-card, .news-post {
  margin-bottom: 20px;
}

/* ORGANIC HR */
hr {
  border: none;
  height: 2px;
  background: var(--earth-brown);
  border-radius: 2px;
  margin: 28px 0;
}

/* BRANDING ACCENTS */
::-moz-selection { background: var(--secondary); color: #fff; }
::selection { background: var(--secondary); color: #fff; }

/* END OF style.css */
