/* ========================== */
/*       CSS RESET/NORMALIZE   */
/* ========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, li, dd, dt, address, figure {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* ================ */
/*   VARS & FONTS   */
/* ================ */
:root {
  --color-primary: #28405A;
  --color-secondary: #F0C808;
  --color-accent: #EDEDED;
  --color-bg: #FAFAFA;
  --color-contrast: #232C36;
  --color-btn-hover: #253a51;
  --color-success: #135D38;
  --color-danger: #A93226;
  --radius-md: 12px;
  --radius-sm: 6px;
  --shadow-md: 0 2px 12px rgba(40,64,90,0.08);
  --shadow-light: 0 1.5px 4px rgba(40,64,90,0.04);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');

body {
  background: var(--color-bg);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ========================= */
/*   HEADER & NAVIGATION    */
/* ========================= */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 10px 0;
}
.logo-link {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 8px;
  position: relative;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta-btn {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-btn-hover);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 18px rgba(40,64,90,0.15);
}

/* ================ */
/*  MOBILE NAV MENU */
/* ================ */
.mobile-menu-toggle {
  background: none;
  font-size: 2rem;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  padding: 8px 12px;
  margin-left: 12px;
  display: none;
  transition: background var(--transition-fast);
  z-index: 220;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 325px;
  height: 100vh;
  z-index: 3000;
  box-shadow: -2px 0 16px rgba(40,64,90,0.18);
  transform: translateX(105%);
  transition: transform var(--transition-slow);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 50%;
  padding: 6px 13px;
  border: none;
  z-index: 3100;
  transition: background var(--transition-fast);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #f6eec2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 58px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 13px 10px 13px 0;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background var(--transition-fast);
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Hide main nav and show toggle on mobile */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-close {
    display: none;
  }
}

/* ========================= */
/*   SCANDINAVIAN SECTIONS   */
/* ========================= */
main {
  flex: 1 1 auto;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-md);
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-bottom: 24px;
}

.hero {
  background: linear-gradient(106deg, #fdfdff 75%, #f6f6ee 100%);
  padding: 48px 0 45px 0;
  margin-bottom: 55px;
  border-bottom: 1px solid #eeece6;
}
.hero .content-wrapper {
  gap: 20px;
}
.hero h1 {
  font-size: 2.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 13px;
}
.hero .subheadline {
  font-size: 1.14rem;
  font-family: var(--font-body);
  color: #535b6f;
  margin-bottom: 18px;
}

.features {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}
.features h2 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  padding: 23px 27px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.feature-item h3 {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
}
.feature-item p {
  color: #616a7e;
  font-size: 15px;
  margin-bottom: 0;
}
.feature-item a {
  color: var(--color-primary);
  border-bottom: 1.5px solid #c8d0df;
  font-weight: 500;
  font-size: 1rem;
  padding: 0 0 2px 0;
  margin-top: 7px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.feature-item a:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-secondary);
}
.feature-item img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px rgba(40,64,90,0.07);
  margin-bottom: 2px;
}

/* ========================= */
/*        CARDS/TESTIMONIALS*/
/* ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px 26px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.testimonials {
  margin-bottom: 60px;
}
.testimonials h2, .faq h2 {
  font-size: 1.38rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  color: #232c36;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--color-secondary);
  min-width: 180px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #434853;
  margin-left: auto;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 18px rgba(250, 200, 8, 0.11);
  transform: translateY(-2px) scale(1.015);
}

/* FAQ Section Styles */
.faq {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.faq dl {
  width: 100%;
  margin-top: 16px;
}
.faq dt {
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  margin-top: 30px;
}
.faq dd {
  margin-bottom: 10px;
  margin-left: 17px;
  color: #536171;
  font-size: 1rem;
  border-left: 2.5px solid var(--color-accent);
  padding-left: 16px;
  transition: background var(--transition-fast);
}
.faq dd:hover, .faq dd:focus {
  background: var(--color-accent);
}

/* ========================= */
/*         FOOTER            */
/* ========================= */
footer {
  background: #fcfcfd;
  border-top: 1px solid #e5e9ef;
  color: var(--color-primary);
  font-size: 0.98rem;
  margin-top: 30px;
  padding-top: 35px;
  padding-bottom: 28px;
  box-shadow: 0 -3px 12px rgba(40,64,90,0.04);
}
.footer-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-flex > div:first-child {
  flex: 2 1 290px;
  min-width: 210px;
}
.footer-flex > div {
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.footer-links a {
  color: #696e78;
  font-weight: 500;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-primary);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.contact-details a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
.contact-details a:hover {
  color: var(--color-secondary);
}
footer img {
  width: 46px;
  margin-bottom: 7px;
}
address {
  font-style: normal;
  color: #5e6a7a;
  margin-bottom: 10px;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
}

/* ========================= */
/*      RESPONSIVE LAYOUT    */
/* ========================= */
@media (max-width: 990px) {
  .footer-flex {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 12px;
  }
}
@media (max-width: 800px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 6vw;
    padding-right: 6vw;
    min-width: 0;
  }
  .hero {
    padding: 36px 0 30px 0;
  }
  .content-wrapper {
    padding: 0;
    gap: 18px;
  }
  main > section, .section {
    padding: 22px 0;
    margin-bottom: 36px;
  }
  .feature-item {
    padding: 18px 12px;
    min-width: 0;
    max-width: 100%;
  }
  .card {
    padding: 18px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 11px;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.25rem;
  }
  .features h2 {
    font-size: 1.1rem;
  }
  .testimonials h2, .faq h2 {
    font-size: 1.02rem;
  }
  .footer-flex > div:first-child {
    min-width: 0;
  }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ========================= */
/*      TYPOGRAPHY SCALE     */
/* ========================= */
h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.13rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 500;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
p, li, dd, dt {
  font-size: 1rem;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* ========================= */
/*      BUTTON STYLING       */
/* ========================= */
button, .cta-btn {
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
button:active {
  transform: scale(0.97);
}

/* ============ COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 14px rgba(40,64,90,0.17);
  z-index: 4500;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  font-size: 0.99rem;
  margin-right: 18px;
}
.cookie-btn {
  padding: 8px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  margin-right: 12px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: var(--color-btn-hover);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-danger);
  border: 1.5px solid var(--color-danger);
  margin-right: 8px;
  box-shadow: none;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #fae2e2;
  color: #760000;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #232c36;
  border: none;
  box-shadow: none;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #ffef84;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 6vw 22px 6vw;
  }
  .cookie-btn {
    margin-bottom: 10px;
  }
}

/* ============ COOKIE MODAL ============ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  top:0;left:0;right:0;bottom:0;
  background: rgba(36, 51, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  min-width: 330px;
  max-width: 95vw;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 30px rgba(40,64,90,0.20);
  padding: 34px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.45s cubic-bezier(0.6,0,0.3,1);
}
@keyframes fadeInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  padding: 7px 13px;
  z-index: 20;
  font-size: 1.5rem;
  font-weight: bold;
  transition: background var(--transition-fast);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #f3e0b4;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.12rem;
  font-weight: 600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #28364B;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  font-weight: 700;
}
.cookie-category.essential input[type='checkbox'] {
  display: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 111px;
}
@media (max-width: 520px) {
  .cookie-modal { padding: 18px 5vw 18px 5vw; }
  .cookie-modal h3 { font-size: 1rem; }
}

/* ========================= */
/*     MISC GENERAL STYLES   */
/* ========================= */
::-webkit-scrollbar {
  width: 9px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #e5e9ef;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8ccd3;
}

/* Card and section container alignment */
.section, main > section, .card-container, .feature-grid, .feature-item, .content-grid, .text-image-section, .testimonial-card, .faq, .footer-flex {
  margin-bottom: 20px;
  gap: 20px;
}

/* Link underline on interactive content */
a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-secondary);
  border-bottom: 1.7px solid var(--color-secondary);
}

/* ========================= */
/*    FORMS/BUTTONS (if needed for modals/forms)   */
/* ========================= */
input, textarea, select {
  background: #fff;
  border: 1.1px solid #dae5EB;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 11px;
  color: #2e3b4c;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* ========================= */
/*    ANIMATIONS & EFFECTS   */
/* ========================= */
.cta-btn,
.button,
.feature-item,
.card,
.testimonial-card {
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.card:hover, .feature-item:hover {
  box-shadow: 0 6px 20px rgba(40,64,90,0.14);
  transform: translateY(-3px) scale(1.014);
}

/* Visual separation for sections */
.section:not(:last-child),
main > section:not(:last-child) {
  border-bottom: 1px solid #f2f4f7;
}

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

/* ========================= */
/*   ACCESSIBILITY & FOCUS   */
/* ========================= */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  z-index: 100;
}

/* ========================= */
