/* ==== CSS RESET & BASE STYLES ==== */
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: 100%; /* 16px */
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #153A4F;
  background-color: #FAFAFA;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  background: #F7F9FA;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #2196F3;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #153A4F;
  text-decoration: underline;
}
button, .primary-cta, .secondary-cta {
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
}

/* ==== BRAND COLORS AS CSS VARIABLES ==== */
:root {
  --brand-primary: #153A4F;
  --brand-secondary: #2196F3;
  --brand-accent: #F9BB00;
  --scandi-bg: #F7F9FA;
  --scandi-card-bg: #FFFFFF;
  --scandi-neutral: #EBEFF1;
  --scandi-shadow: 0 2px 14px 0 rgba(34, 41, 47, 0.06);
  --text-dark: #1D2530;
  --text-base: #153A4F;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4 {
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  font-weight: 700;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  color: var(--text-base);
}
strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem; /* 24px */
  }
  h2 {
    font-size: 1.25rem; /* 20px */
  }
}

/* ==== GLOBAL LAYOUT CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
}

/* ==== FLEXBOX STRUCTURE COMPONENTS ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--scandi-card-bg);
  border-radius: 16px;
  box-shadow: var(--scandi-shadow);
  border: 1px solid var(--scandi-neutral);
  position: relative;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(34,41,47,0.12);
}
.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;
    gap: 24px;
    align-items: flex-start;
  }
}
.text-section {
  margin-bottom: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--scandi-card-bg);
  border-radius: 12px;
  box-shadow: var(--scandi-shadow);
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 230px;
  border: 1px solid var(--scandi-neutral);
  transition: box-shadow 0.22s;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.feature:hover {
  box-shadow: 0 6px 20px 0 rgba(34,41,47,0.10);
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature {
    min-width: unset;
    width: 100%;
  }
}

/* ==== TESTIMONIALS ====*/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--scandi-shadow);
  border: 1px solid #EEF1F4;
  transition: box-shadow 0.15s;
  color: #1C2838;
  font-size: 1rem;
  max-width: 600px;
}
.testimonial-card p {
  margin-bottom: 2px;
  font-size: 1.125rem;
  color: #253246;
  font-style: italic;
}
.testimonial-card span {
  color: #77808C;
  font-size: 1rem;
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(34,41,47,0.13);
}

/* ==== HEADER + NAVIGATION ==== */
header {
  background: #FFFFFF;
  box-shadow: 0 1px 7px 0 rgba(34,41,47,0.06);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.header-inner img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 0 6px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.primary-cta {
  background: var(--brand-accent);
  color: #1D2530;
  border-radius: 24px;
  padding: 9px 22px;
  margin-left: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px 0 rgba(249,187,0,0.07);
  transition: background 0.19s;
}
.main-nav a.primary-cta:hover {
  background: #ffe199;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-secondary);
  background: #f2f4f6;
}

@media (max-width: 960px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  padding: 6px 12px;
  cursor: pointer;
  z-index: 1201;
  border-radius: 8px;
}
@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-104vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.55,.4,0,1.2), opacity 0.25s;
  box-shadow: 0 4px 32px rgba(10,20,32,0.14);
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 20px 22px 16px auto;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: var(--brand-primary);
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:hover {
  background: #F3F3F3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 0 32px;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 11px 0;
  border-radius: 6px;
  width: 100%;
  display: block;
  box-sizing: border-box;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3F4F6;
  color: var(--brand-secondary);
}
.mobile-nav a.primary-cta {
  background: var(--brand-accent);
  color: #1D2530;
  padding-left: 15px;
  margin-top: 14px;
  font-weight: 700;
}
.mobile-nav a.primary-cta:hover {
  background: #ffe199;
  color: #153A4F;
}

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

/* ==== BUTTONS ==== */
button, .primary-cta, .secondary-cta {
  border: none;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.11s;
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
}
.primary-cta, .secondary-cta {
  display: inline-block;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 1.09rem;
  font-weight: 700;
  margin-top: 8px;
  background: var(--brand-accent);
  color: #1D2530;
  box-shadow: 0 2px 8px 0 rgba(249,187,0,0.09);
  letter-spacing: 0.03em;
}
.primary-cta:hover, .primary-cta:focus {
  background: #ffe199;
  color: #153A4F;
  transform: translateY(-2px) scale(1.025);
}
.secondary-cta {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: none;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #f8f5ea;
  color: #936B00;
  transform: translateY(-2px) scale(1.02);
}

/* ==== FOOTER ==== */
footer {
  background: #FFFFFF;
  border-top: 1px solid #EBEFF1;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  padding: 36px 20px 26px 20px;
}
.footer-menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: #77808C;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.footer-menu a:hover {
  color: var(--brand-secondary);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #BABFD2;
  font-size: 0.97rem;
}
.footer-links a:hover {
  color: var(--brand-accent);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77808C;
  font-size: 0.97rem;
  font-weight: 400;
}
.footer-brand img {
  height: 29px;
  width: auto;
}
@media (max-width: 600px) {
  footer .container,
  .footer-menu nav,
  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ==== HELPER UTILITIES ==== */
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !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; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ==== RESPONSIVE SECTIONS ==== */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    margin-bottom: 34px;
    padding: 26px 5px;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  box-shadow: 0 -1px 12px 0 rgba(34,41,47,0.09);
  border-top: 1.5px solid #EBEFF1;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 24px 28px 24px;
  transition: transform 0.32s cubic-bezier(.55,.4,0,1.2), opacity 0.22s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(140px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  color: #1D2530;
  flex: 1 1 auto;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-banner__btn {
  background: var(--brand-accent);
  color: #212934;
  border: none;
  border-radius: 21px;
  padding: 8px 22px;
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  box-shadow: 0 1px 4px 0 rgba(249,187,0,0.07);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #ffe199;
}
.cookie-banner__btn--secondary {
  background: #F7F9FA;
  color: var(--brand-primary);
  border: 1.3px solid #D8DADC;
  box-shadow: none;
}
.cookie-banner__btn--secondary:hover, .cookie-banner__btn--secondary:focus {
  background: #f3f3f3;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 19px 9px 22px 9px;
  }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(29,37,48,0.16);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal__dialog {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 7px 42px 0 rgba(34,41,47,0.17);
  min-width: 340px;
  max-width: 94vw;
  padding: 38px 30px 30px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__close {
  position: absolute;
  top: 17px;
  right: 19px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--brand-primary);
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.14s;
}
.cookie-modal__close:hover {
  background: #F3F6FA;
}
.cookie-modal__header {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-family: 'Titillium Web', 'Roboto', Arial, sans-serif;
}
.cookie-modal__section {
  padding: 16px 0 10px 0;
}
.cookie-modal__option {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 0;
}
.cookie-modal__option label {
  font-size: 1rem;
  color: #2A3041;
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal__option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-accent);
}
.cookie-modal__option input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal__footer {
  display: flex;
  gap: 15px;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .cookie-modal__dialog {
    padding: 23px 7vw;
    min-width: unset;
  }
}

/* ==== FORMS ==== */
input, textarea, select {
  background: #FFFFFF;
  border: 1.4px solid #D9DFE8;
  border-radius: 8px;
  font-size: 1rem;
  padding: 9px 13px;
  color: #1D2530;
  width: 100%;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  box-sizing: border-box;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.4px solid var(--brand-secondary);
  outline: none;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22323F;
  margin-bottom: 7px;
  font-weight: 500;
}

/* ==== MODERN SCANDINAVIAN CARD-SPACING ==== */
.card, .feature, .testimonial-card, .cookie-modal__dialog {
  box-shadow: var(--scandi-shadow);
}
.card + .card, .feature + .feature, .testimonial-card + .testimonial-card {
  margin-top: 20px;
  margin-bottom: 0;
}

/* ==== ACCESSIBILITY & FOCUS ==== */
a, button, .primary-cta, .secondary-cta, .cookie-banner__btn, .cookie-modal__close {
  outline: none;
  transition: box-shadow .17s;
}
a:focus, button:focus, .primary-cta:focus, .secondary-cta:focus, .cookie-banner__btn:focus, .cookie-modal__close:focus {
  box-shadow: 0 0 0 2.5px var(--brand-secondary);
}

/* ==== WHITE SPACE & VISUAL BALANCE ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width:768px) {
  section {
    margin-bottom: 30px;
    padding: 22px 0;
  }
}

/* ==== MISC ==== */
::-webkit-input-placeholder, ::placeholder { color: #B7BDC7; opacity: 1; }

.table, table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(34,41,47,0.04);
}
table th, table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #EEF1F4;
}
table th {
  background: #F7F9FB;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ==== PRINT ==== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
