/* ========================== */
/* CSS RESET & NORMALIZE      */
/* ========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F8FBF8;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
:root {
  --color-primary: #274360;
  --color-secondary: #C1E1C1;
  --color-accent: #F6D365;
  --color-bg: #F8FBF8;
  --color-surface: #FFFFFF;
  --color-muted: #E3EBE1;
  --color-text-main: #1A2329;
  --color-text-light: #666D74;
  --border-radius: 16px;
  --shadow-soft: 0 2px 12px 0 rgba(60,72,80,0.09);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  line-height: 1.6;
  background: var(--color-bg);
  min-height: 100vh;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover,
a:focus {
  color: var(--color-accent);
  outline: none;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding-left: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight:600;}
h5, h6 { font-size: 0.9rem; font-weight:500;}
p, li, dl, dd {
  font-size: 1rem;
  color: var(--color-text-main);
}
p {
  margin-bottom: 16px;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
blockquote {
  font-style: italic;
  background: var(--color-muted);
  border-left: 4px solid var(--color-secondary);
  padding: 18px 20px;
  margin: 0 0 12px 0;
  border-radius: 10px;
  color: var(--color-primary);
}
cite {
  font-style: normal;
  color: var(--color-text-light);
  font-size: 1rem;
  margin-left: 8px;
}
hr {
  border: none;
  border-top: 1px solid var(--color-muted);
  margin: 32px 0;
}

/* ======================== */
/* LAYOUT/UTILITY CLASSES   */
/* ======================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(39,67,96,0.10);
  transform: translateY(-4px) scale(1.02);
}
.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;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 320px;
  border-left: 5px solid var(--color-secondary);
  color: var(--color-text-main);
}
.testimonial-card blockquote { background: none; border: none; padding: 0; margin: 0; font-size: 1.05rem; color: var(--color-primary); }
.testimonial-card cite { font-weight: 600; color: var(--color-primary); margin-left: 0; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: none;
  border: none;
}

/* ================================= */
/* HEADER & NAVIGATION BARS          */
/* ================================= */
header {
  width: 100%;
  background: var(--color-surface);
  box-shadow: 0 1px 8px 0 rgba(39,67,96,0.06);
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  min-height: 68px;
  justify-content: space-between;
  z-index: 1201;
}
header a img {
  display: flex;
  align-items: center;
  height: 38px;
  margin: 10px 0 10px 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 16px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.16s, color 0.22s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ============================== */
/* MOBILE BURGER MENU             */
/* ============================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1501;
  width: 46px;
  height: 46px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(39,67,96, 0.08);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.7,.3,0,1);
  box-shadow: 0 2px 24px 0 rgba(60, 70, 90, 0.20);
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2003;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus{
  background: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 80px;
  gap: 14px;
  padding: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: var(--font-display);
  background: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, color 0.18s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}


/* =============================== */
/* MAIN LAYOUT & SECTIONS          */
/* =============================== */
main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: calc(100vh - 168px);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Feature/Tip Grids (Index & Inspiration) */
.feature-grid, .tip-grid, .career-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .tip-grid > div, .career-grid > div {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  min-width: 230px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.15s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .tip-grid > div:hover, .career-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(39,67,96,0.14);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .tip-grid img, .career-grid img {
  width: 36px; height: 36px;
  margin-bottom: 6px;
  border-radius: 6px;
}


/* =========================== */
/* BUTTONS & CTA               */
/* =========================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border: none;
  border-radius: 12px;
  padding: 14px 36px;
  margin-top: 10px;
  min-width: 160px;
  box-shadow: 0 2px 8px 0 rgba(239,209,89,0.09);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
}
button {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.13s, color 0.14s, transform 0.13s;
  outline: none;
}
button:hover, button:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-1px);
}


/* ============================== */
/* FORMS, TABLES (if any appear)   */
/* ============================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  background: #f9faf9;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--color-text-main);
  width: 100%;
  max-width: 380px;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #fff;
  outline: none;
}

/* =========================== */
/* LIST STYLES                 */
/* =========================== */
ul li, ol li {
  margin-bottom: 10px;
  color: var(--color-text-main);
  font-size: 1rem;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 8px;
}
details {
  background: var(--color-muted);
  padding: 20px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--color-primary);
}
details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}
details[open] {
  box-shadow: var(--shadow-soft);
}

/* =========================== */
/* FAQ/ Definition Lists       */
/* =========================== */
dl, dt, dd {
  margin: 0;
  padding: 0;
}
dl {
  margin-bottom: 16px;
}
dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 18px;
}
dd {
  margin-left: 10px;
  color: var(--color-text-main);
}

/* =========================== */
/* FOOTER                      */
/* =========================== */
footer {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text-light);
  box-shadow: 0 -1px 6px 0 rgba(39,67,96,0.05);
  padding: 28px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  margin-top: 30px;
}
footer > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
footer a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: var(--font-body);
  padding: 4px 9px;
  border-radius: 6px;
  transition: background 0.16s, color 0.19s;
}
footer a:hover, footer a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.96rem;
}

/* =========================== */
/* RESPONSIVE DESIGN           */
/* =========================== */
@media (max-width: 1200px) {
  .container {
    max-width: 940px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid > div, .tip-grid > div, .career-grid > div {
    min-width: 180px;
    padding: 14px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .container { padding: 0 8px; }
  .feature-grid, .tip-grid, .career-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .tip-grid > div, .career-grid > div {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
  }
  .section, section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
  main { gap: 20px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
  }
  .card {
    padding: 16px;
    border-radius: 10px;
  }
  .mobile-nav { padding: 18px; margin-top: 60px; }
  .mobile-menu-close { top: 12px; right: 14px; width: 38px; height: 38px; }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .cta-btn { font-size: 1rem; padding: 10px 18px; }
}

/* =========================== */
/* SCANDINAVIAN CLEAN EXTRAS   */
/* =========================== */
/* Use more whitespace, functional minimalism */
.section, section {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
.text-section {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

/* Norwegian wood accent line */
.section > .container > .content-wrapper > h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--color-secondary);
  margin-top: 10px;
  border-radius: 3px;
}

/* =============================== */
/* COOKIE CONSENT BANNER           */
/* =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 -2px 12px 0 rgba(60,72,80,0.13);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2500;
  gap: 24px;
  border-radius: 16px 16px 0 0;
  transition: transform 0.27s cubic-bezier(.62,.15,.65,1),opacity 0.18s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 70%;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 0 0 auto;
}
.cookie-btn, .cookie-banner button {
  border: none;
  border-radius: 7px;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 8px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #e9eae3;
  color: #7a8f82;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,36,42,0.36);
  z-index: 2550;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal__window {
  background: var(--color-surface);
  padding: 32px 26px 22px 26px;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(60,72,80,0.18);
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--color-primary);
}
.cookie-modal__window h3 {
  margin: 0 0 12px 0;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category-label {
  flex: 1 1 50%;
}
.cookie-category-toggle {
  width: 40px;
  height: 22px;
  border-radius: 25px;
  border: none;
  background: #e3ebeb;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  outline: none;
}
.cookie-category-toggle.enabled {
  background: var(--color-secondary);
}
.cookie-category-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px 0 rgba(24,36,48,0.12);
}
.cookie-category-toggle.enabled::before {
  left: 20px;
  background: var(--color-secondary);
}
.cookie-modal__footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .cookie-modal__window {
    min-width: 93vw;
    padding: 18px 8px 14px 12px;
  }
  .cookie-modal__footer .cookie-btn {
    min-width: 100px;
    font-size: 0.95rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================== */
/* MICRO-INTERACTIONS & EFFECTS */
/* =========================== */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-category-toggle {
  transition: background 0.16s, color 0.16s, box-shadow 0.13s, transform 0.13s;
}

/* =========================== */
/* ARIA FOCUS & ACCESSIBILITY */
/* =========================== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Prevent content overlap by enforcing padding/margins */
.section + .section, section + section {
  margin-top: 20px;
}

/* ============================== */
/* CUSTOM EXTRAS FOR CIRCUIT MIST */
/* ============================== */
::-webkit-scrollbar { width: 9px; background: #f3f3f3; }
::-webkit-scrollbar-thumb { background: #dde7df; border-radius: 9px; }

/* =========================== */
/* END OF STYLE SHEET          */
/* =========================== */
