/* --- 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 {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #EFF9F0;
  color: #184D47;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}
main {
  flex: 1 0 auto;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
a {
  color: #184D47;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FDB813;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}
:focus-visible {
  outline: 2px solid #184D47;
  outline-offset: 1px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  color: #184D47;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 12px;
}
p, ul, ol {
  margin-bottom: 14px;
  color: #184D47;
  font-size: 1rem;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #3a544f;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #184D47;
  --secondary: #EFF9F0;
  --accent: #FDB813;
  --white: #fff;
  --text: #184D47;
  --border: #d8e8dc;
  --shadow: rgba(24,77,71,0.07);
}

/* ---- BASIC STRUCTURE & CONTAINERS ----*/
body, html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  background: var(--secondary);
  color: var(--text);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- HEADER / NAVIGATION --- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
  z-index: 900;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
header nav > a img {
  height: 44px;
}
header nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
header nav li {
  display: flex;
  align-items: center;
}
header nav li a {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
header nav li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -2px;
}
header nav li a:hover::after,
header nav li a:focus::after {
  width: 100%;
}
header nav li a:hover, header nav li a:focus {
  color: var(--accent);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 28px;
  padding: 12px 28px;
  display: inline-block;
  box-shadow: 0 2px 6px var(--shadow);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.16s;
  margin-left: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFEAC0;
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  z-index: 999;
  margin-right: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFD46C;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.29,1.48,.74,.97);
  box-shadow: 0 8px 24px rgba(24,77,71,0.13);
  padding: 32px 24px 16px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: transparent;
  color: var(--primary);
  border: none;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d8e8dc;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  padding: 10px 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.14s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1050px) {
  header nav ul {
    gap: 16px;
  }
  header nav {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    padding: 0 4px;
  }
  header nav {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  header nav ul,
  header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 14px;
  }
  .container {
    padding: 0 6px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.28rem;
  }
  section {
    padding: 30px 6px;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #EFF9F0 70%, #FFD46C 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 12px var(--shadow);
  padding-top: 44px;
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 220px;
  gap: 12px;
}
.hero h1 {
  color: var(--primary);
}

/* --- FLEXBOX SYSTEM PATTERNS (MANDATORY) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 14px var(--shadow);
  padding: 28px 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover { box-shadow: 0 8px 28px var(--shadow); transform: translateY(-2px) scale(1.015); }
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FEFFFE;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- CONTENT BLOCKS / CARDS / LISTS --- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
@media (max-width:800px){
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
.text-section {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0;
}

ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img {
  height: 28px;
  width: 28px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  font-size: 1.08rem;
  background: var(--secondary);
  color: var(--primary);
  border-left: 7px solid var(--accent);
  box-shadow: 0 2px 14px var(--shadow);
  max-width: 480px;
  min-width: 260px;
  margin-bottom: 20px;
}
.testimonial-card p {
  margin-bottom: 8px;
  color: #184D47;
  font-weight: 500;
  font-size: 1.02rem;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card span {
  color: #666d69;
  font-size: 0.92rem;
}
.testimonial-card span:last-child {
  color: #FDB813;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
}
@media (max-width: 700px) {
  .testimonial-card {
    font-size: 1rem;
    max-width: 98vw;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px var(--shadow);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
footer nav a {
  font-size: 0.98rem;
}
footer p {
  font-size: 0.92rem;
  color: #84988a;
  margin-top: 8px;
}

/* --- BUTTONS & INTERACTIVE ELEMENTS --- */
button, .btn {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, box-shadow 0.12s;
}

/* --- FORMS (IF ADDED) --- */
input, textarea, select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  background-color: #FEFFFE;
  color: #184D47;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: var(--secondary);
  padding: 22px 12px;
  box-shadow: 0 -2px 14px var(--shadow);
  z-index: 1500;
  gap: 28px;
  border-radius: 20px 20px 0 0;
  font-size: 1rem;
}
.cookie-banner.hide {
  display: none !important;
}
.cookie-banner p {
  color: var(--primary);
  margin-bottom: 0;
  font-size: 0.98rem;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  font-size: 0.98rem;
  margin-left: 10px;
  padding: 10px 16px;
  box-shadow: 0 1px 4px var(--shadow);
  transition: background 0.15s, color 0.14s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #FFD46C;
}
.cookie-banner .reject {
  background: #f3e3b0;
  color: #184D47;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e1c26d;
}
.cookie-banner .settings {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #fff7e0;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,60,55,0.32);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  animation: fadeInOverlay 0.3s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(24,77,71,0.18);
  padding: 36px 28px 28px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: popInModal 0.32s cubic-bezier(.43,1.41,.74,.978);
}
@keyframes popInModal {
  from { transform: scale(0.88) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 2px;
}
.cookie-modal p {
  color: #2A4532;
  margin-bottom: 10px;
  font-size: 1.01rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.99rem;
}
.cookie-modal label {
  font-size: 0.98rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
}
.cookie-modal .category-essential {
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  border-radius: 18px;
  padding: 10px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px; top: 10px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 8px;
  transition: background 0.12s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #f0f1ef;
}

/* --- SPACING & UTILITIES --- */
.mt-0   { margin-top: 0 !important;   }
.mb-0   { margin-bottom: 0 !important; }
.mt-16  { margin-top: 16px !important;  }
.mb-16  { margin-bottom: 16px !important; }
.mt-24  { margin-top: 24px !important;  }
.mb-24  { margin-bottom: 24px !important; }
.mb-32  { margin-bottom: 32px !important; }
.pt-8   { padding-top: 8px !important;   }
.pt-16  { padding-top: 16px !important;  }
.pt-24  { padding-top: 24px !important;  }
.pb-8   { padding-bottom: 8px !important; }
.pb-16  { padding-bottom: 16px !important; }
.pb-24  { padding-bottom: 24px !important; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  body, html {
    font-size: 15px;
  }
  section { padding: 32px 8px; }
}

@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 24px 2px;
    border-radius: 12px;
  }
  .card,
  .testimonial-card {
    padding: 16px 10px;
    border-radius: 10px;
  }
  .cookie-modal {
    padding: 20px 7px;
    min-width: 94vw;
  }
  footer .container { padding: 20px 7px; }
}

/* --- MICRO-INTERACTIONS / HOVER FX --- */
.card, .testimonial-card, section {
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-3px) scale(1.015);
}
.cta-btn:active, .card:active {
  transform: translateY(1px) scale(0.98);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #E8F3E5;
  transform: scale(1.035);
}

/* --- ACCESSIBILITY / HIDDEN --- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ---- END OF SCANDINAVIAN CLEAN THEME ---- */
