/* --- CSS Reset and 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  color: #1A2233;
  background: #F7F8FA;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  color: inherit;
}
*, *::before, *::after {
  box-sizing: inherit;
}
::-webkit-input-placeholder { color: #757575; }
::-moz-placeholder { color: #757575; }
:-ms-input-placeholder { color: #757575; }
::placeholder { color: #757575; }

/* --- Brand & Scandinavian Color Variables (with fallbacks) --- */
:root {
  --color-primary: #1A2233;
  --color-secondary: #FFD600;
  --color-accent: #FFFFFF;
  --color-bg: #F7F8FA;
  --color-bg-section: #FFFFFF;
  --color-grey-100: #EDEFF2;
  --color-grey-300: #CAD1DC;
  --color-grey-700: #6C7893;
  --color-shadow: rgba(26, 34, 51, 0.06);
  --radius-base: 16px;
}

/* --- Typography (scandinavian clean, simple and functional) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1A2233;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-grey-700);
  margin-bottom: 24px;
  max-width: 600px;
}
p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #323a49;
}
strong {
  font-weight: 700;
}

/* --- Layout Containers --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-base);
  box-shadow: 0 4px 24px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
}

/* --- Header & Navigation --- */
header {
  background: var(--color-bg-section);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 98;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
  color: var(--color-primary);
  padding: 6px 12px;
  position: relative;
  border-radius: 8px;
  transition: background 0.24s, color 0.24s;
}
header nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #ffe057;
  color: var(--color-primary);
}
header nav a:hover, header nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-primary);
}
header img {
  height: 38px;
  max-width: 170px;
  margin-right: 24px;
}
/* --- Mobile Burger Menu --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 2px 32px var(--color-shadow);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  margin: 16px;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.2s, color 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-primary);
}
.mobile-nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 16px;
  border-radius: 24px;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-top: 18px;
}
.mobile-nav a.cta:hover,
.mobile-nav a.cta:focus {
  background: #ffe057;
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Main & Section Spacing Patterns --- */
main {
  width: 100%;
  flex: 1 1 auto;
  background: var(--color-bg);
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  section {
    padding: 24px 0;
    margin-bottom: 32px;
  }
}

/* --- Card, Card-Grid, Feature and Flex Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-section);
  border-radius: var(--radius-base);
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 24px;
  margin-bottom: 20px;
  flex: 1 1 calc(33% - 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.14);
  transform: translateY(-4px) scale(1.012);
}
@media (max-width: 900px) {
  .card {
    flex: 1 1 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- Feature Grid + Items --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature-grid li {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-bg-section);
  border-radius: var(--radius-base);
  padding: 22px 20px 18px 20px;
  box-shadow: 0 3px 12px var(--color-shadow);
  min-width: 200px;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.18);
  transform: translateY(-3px);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Teasers, Text-Blocks --- */
.highlight-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.highlight-teasers > div {
  flex: 1 1 280px;
  background: var(--color-bg-section);
  border-radius: var(--radius-base);
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 22px 18px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.highlight-teasers > div:hover {
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.13);
  transform: scale(1.012);
}
.highlight-teasers a {
  color: var(--color-primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: underline;
  margin-top: 10px;
  transition: color 0.17s;
}
.highlight-teasers a:hover {
  color: var(--color-secondary);
}
@media (max-width: 800px) {
  .feature-grid, .highlight-teasers {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Text Section --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-bg-section);
  border-radius: var(--radius-base);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 4px;
  padding-left: 22px;
  position: relative;
}
.text-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* --- Testimonial Card (strong contrast, scandinavian look) --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFCE8;
  color: #1A2233;
  border-radius: 14px;
  box-shadow: 0 3px 14px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 740px;
}
.testimonial-card p {
  margin-bottom: 6px;
  font-style: italic;
  color: #1A2233;
}
.testimonial-card span {
  font-style: normal;
  color: #636363;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- Forms, Inputs (for Newsletter etc.) --- */
input, textarea, select {
  background: var(--color-grey-100);
  border-radius: 9px;
  border: 1px solid var(--color-grey-300);
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.17s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
label {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  display: block;
}

/* --- Buttons and Interactive Elements --- */
.cta, button.cta, .cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 13px 32px;
  border-radius: 26px;
  font-size: 1.11rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 3px 10px var(--color-shadow);
  transition: background 0.21s, color 0.18s, box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 12px;
  display: inline-block;
  outline: none;
}
.cta:hover,
button.cta:hover,
.cta:focus,
button.cta:focus {
  background: #ffe057;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 9px 26px rgba(255, 214, 0, 0.13);
}
.button-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: background 0.15s, color 0.17s;
}
.button-outline:hover, .button-outline:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* --- Footer --- */
footer {
  background: #F9FAFB;
  border-top: 1.5px solid var(--color-grey-100);
  padding: 28px 0 12px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
footer nav a {
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.13s, color 0.13s;
}
footer nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 7px 20px;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-weight: 600;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-primary);
}
footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  color: var(--color-grey-700);
  font-size: 0.99rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
footer .footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  margin-bottom: 2px;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  footer .footer-contact {
    align-items: flex-start;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  box-shadow: 0 -2px 26px rgba(26,34,51,.07);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  z-index: 1800;
  font-size: 1.01rem;
  border-top: 2px solid var(--color-secondary);
  animation: fadeInBanner 0.45s cubic-bezier(0.25, 0.6, 0.25, 1) 1 forwards;
}
@keyframes fadeInBanner {
  from { transform: translateY(98%); opacity: 0; }
  to   { transform: translateY(0%); opacity: 1; }
}
.cookie-banner__text {
  max-width: 480px;
  color: #232730;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-secondary {
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffe057;
}
.cookie-btn-secondary {
  background: var(--color-grey-100);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--color-grey-300);
  color: var(--color-primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    width: 100%;
  }
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,34,51, 0.12);
  z-index: 2200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg 0.2s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(26,34,51,0.12);
  padding: 28px 32px;
  max-width: 430px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalSlideIn 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes modalSlideIn {
  from { transform: translateY(64px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.23rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-modal__category {
  margin-bottom: 18px;
}
.cookie-modal__category label {
  font-size: 1.04rem;
  font-weight: 600;
  margin-left: 9px;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.cookie-modal__category.essential {
  opacity: 0.72;
  cursor: not-allowed;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-grey-700);
  cursor: pointer;
  padding: 2px 4px;
}
.cookie-modal__close:focus {
  outline: 2px solid var(--color-secondary);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 17px 9px;
    font-size: 0.95rem;
    max-width: 96vw;
  }
}

/* --- Utility & Helper Classes --- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }

/* --- Animation utilities --- */
.fade-in {
  animation: fadeInEl .27s cubic-bezier(0.36, 0.26, 0.2, 1.05) both;
}
@keyframes fadeInEl {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  .footer-contact { font-size: 0.93rem; }
  .feature-grid, .highlight-teasers {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Custom Scrollbar Styling for Desktop --- */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 9px;
    background: var(--color-grey-100);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-grey-300);
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #bec7d6;
  }
}

/* --- Accessibility Focus Styles --- */
a:focus, button:focus, input:focus, textarea:focus, .cta:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Hide visually but accessible (for screen readers) --- */
.visually-hidden {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --- Saffron Trekker Brand Font Imports (always on top for best fallback) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');
