/*------------------------------------------------------------
  CSS Reset & Base Styles for Cross-Browser Consistency
------------------------------------------------------------*/
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;
}
/* HTML5 display-role reset for older browsers */

body {
  line-height: 1.5;
  background: #F9FAFB;
  color: #233044;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
button {
  cursor: pointer;
}
:root {
  --color-primary: #233044;
  --color-secondary: #146A7C;
  --color-accent: #FFD971;
  --color-bg: #F9FAFB;
  --color-bg-card: #FFFFFF;
  --color-grey: #E6E8EA;
  --color-grey-2: #C9CED3;
  --color-success: #5C9E71;
  --color-error: #DF6864;
  --color-shadow: rgba(35,48,68,0.08);
  --radius: 12px;
  --shadow: 0 2px 16px var(--color-shadow);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/*------------------------------------------------------------
  Typography
------------------------------------------------------------*/
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--color-primary);
  line-height: 1.15;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-secondary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #3C4A58;
  margin-bottom: 16px;
  line-height: 1.7;
}
p:last-child, li:last-child, blockquote:last-child {
  margin-bottom: 0;
}
ul li, ol li {
  margin-bottom: 8px;
}
blockquote {
  border-left: 4px solid var(--color-accent);
  margin-left: 0;
  margin-right: 0;
  padding-left: 18px;
  font-style: italic;
  color: var(--color-secondary);
  background: #FFFDE6;
  border-radius: var(--radius);
}
strong {
  font-weight: 700;
}

/*------------------------------------------------------------
  Layout Containers & Responsive Utilities
------------------------------------------------------------*/
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}

/*------------------------------------------------------------
  Header & Navigation
------------------------------------------------------------*/
header {
  background: var(--color-bg-card);
  box-shadow: 0 2px 6px rgba(35,48,68,0.03);
  padding: 0;
  position: relative;
  z-index: 100;
  display: flex;
}
header .container,
header > * {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 20px;
  height: 88px;
}
.logo-link img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.85;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s, opacity 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-accent);
  opacity: 1;
}
.cta.primary, .cta.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  outline: none;
  margin-left: 8px;
  cursor: pointer;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hamburger menu toggle (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  font-size: 2rem;
  color: var(--color-secondary);
  padding: 8px 16px;
  border: none;
  margin-left: 12px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Responsive header nav setup */
@media (max-width: 991px) {
  header .container,
  header > * {
    gap: 16px;
    height: 72px;
  }
  .main-nav {
    gap: 12px;
  }
  .cta.primary {
    padding: 10px 20px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  header .container,
  header > * {
    height: 60px;
    padding: 0 10px;
  }
  .logo-link img {
    height: 36px;
  }
}

/*------------------------------------------------------------
  MOBILE MENU OVERLAY
------------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,48,68, 0.97);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.5,0.2,0.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 32px 0 0;
  background: none;
  color: #fff;
  font-size: 2rem;
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: background 0.2s;
  z-index: 1100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 60px 0 0 32px;
  width: 80vw;
  max-width: 340px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  opacity: 0.92;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*------------------------------------------------------------
  MAIN PAGE LAYOUTS & SECTIONS
------------------------------------------------------------*/
.hero-section {
  background: #f3f4f6;
  padding: 64px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 320px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-section h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.hero-section p {
  font-size: 1.18rem;
  margin-bottom: 30px;
  max-width: 560px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 32px 0 24px 0;
    min-height: unset;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/**** Feature/Benefit & Card Layouts - Flexbox only! ****/
.feature-grid, .card-container, .case-grid, .article-list, .event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-item, .case-item, .article-item, .event-item {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 30px 24px 26px 24px;
  flex: 1 1 min(312px, 100%);
  min-width: 228px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item:hover, .case-item:hover, .article-item:hover, .event-item:hover {
  box-shadow: 0 6px 32px var(--color-shadow);
  transform: translateY(-4px) scale(1.025);
}
.feature-item img, .case-item img, .article-item img, .event-item img {
  height: 48px;
  width: 48px;
  margin-bottom: 8px;
}
.case-grid, .article-list, .event-list {
  gap: 20px;
  margin-bottom: 0;
  width: 100%;
}

/**** TESTIMONIALS Section Flex (Dark text on light) ****/
.testimonials-section {
  background: #F8F7F5;
  padding: 46px 0 40px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: #FFF;
  box-shadow: 0 2px 10px var(--color-shadow), 0 0 0 1px #E9ECEE;
  margin-bottom: 24px;
  max-width: 620px;
  color: #262B32;
  font-size: 1.04rem;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-author {
  color: var(--color-secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .feature-grid, .card-container, .case-grid, .article-list, .event-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-item, .case-item, .article-item, .event-item {
    max-width: 100%;
    padding: 22px 14px;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 1rem;
    max-width: 100%;
  }
}

/**** CTA SECTION ****/
.cta-section {
  background: #f6fafe;
  margin-bottom: 60px;
  padding: 40px 0 56px 0;
}
.cta-section h2 {
  color: var(--color-secondary);
}

/**** Newsletter Section ****/
.newsletter-section {
  margin-bottom: 60px;
  background: #fffef6;
  padding: 40px 0 36px 0;
}

/**** Thank You Section ****/
.thank-you-section {
  padding: 70px 0 40px 0;
  background: #F9FAFB;
  min-height: 260px;
}
@media (max-width: 768px) {
  .thank-you-section {
    padding: 32px 0 24px 0;
  }
}

/**** Text-Image Section Patterns ****/
.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: 20px;
  }
}

/**** Text Section ****/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/**** Contact Details List ****/
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-left: 0;
  margin-bottom: 26px;
}
.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}
.contact-details-list img {
  width: 22px;
  height: 22px;
}

/*----------------------------
  Footer
----------------------------*/
footer {
  background: #F0F3F5;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 30px 0 0 0;
  margin-top: 100px;
  border-top: 1px solid var(--color-grey);
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.78;
  transition: color 0.15s, opacity 0.2s;
  padding: 6px 0;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
  opacity: 1;
}
footer p {
  text-align: center;
  margin-bottom: 0;
  font-size: 0.96rem;
  color: #4a5460;
  opacity: 0.86;
  padding-bottom: 18px;
}
@media (max-width: 768px) {
  .footer-menu {
    gap: 12px;
    font-size: 0.99rem;
  }
  footer {
    margin-top: 46px;
    padding: 25px 0 0 0;
  }
}


/*-----------------------------------
  Cookie Consent Banner
-----------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 18px var(--color-shadow);
  z-index: 1004;
  padding: 22px 6vw 20px 6vw;
  min-height: 75px;
  width: 100vw;
  border-top: 1px solid var(--color-grey);
  font-size: 0.99rem;
  opacity: 1;
  transition: transform 0.34s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border-radius: var(--radius);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  outline: none;
  background: var(--color-bg-card);
  color: var(--color-primary);
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.12);
  box-shadow: 0 3px 16px var(--color-shadow);
}

@media (max-width: 610px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 4vw 18px 4vw;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/**** Cookie Modal ****/
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,48,68, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 32px var(--color-shadow);
  padding: 32px 28px 26px 28px;
  max-width: 388px;
  min-width: 260px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: cookieModalIn 0.35s cubic-bezier(0.55,0,0.2,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.82) translateY(80px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__dialog h3 {
  margin-bottom: 2px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: var(--color-grey);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle.enabled {
  background: var(--color-secondary);
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: left 0.16s, background 0.16s;
}
.cookie-toggle.enabled::after {
  left: 20px;
  background: var(--color-accent);
}
.cookie-category span {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-category .cookie-essential {
  color: var(--color-secondary);
  opacity: 0.88;
  font-weight: 600;
}
.cookie-modal__actions {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  padding: 0 6px;
  border-radius: 50%;
  transition: background 0.18s, color 0.17s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 479px) {
  .cookie-modal__dialog {
    min-width: unset;
    padding: 24px 6vw 16px 6vw;
  }
  .cookie-modal__close {
    top: 10px; right: 8px;
  }
}

/*------------------------------------------------------------
  Misc Utility Classes & Microinteractions
------------------------------------------------------------*/
.gap-24 { gap: 24px !important; }
.gap-20 { gap: 20px !important; }
.gap-16 { gap: 16px !important; }
.rounded { border-radius: var(--radius) !important; }
.shadow { box-shadow: 0 2px 12px var(--color-shadow) !important; }
.text-center { text-align: center; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/**** Content Spacing Consistency ****/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** Responsive adjustments for all main sections ****/
@media (max-width: 768px) {
  section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
  .card-container, .card-grid, .content-grid, .case-grid, .article-list, .event-list {
    flex-direction: column;
    gap: 18px !important;
    align-items: stretch;
  }
}

/**** ScrollBar minimalist for modern look ****/
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--color-grey-2);
  border-radius: 8px;
}

/**** Smooth transitions for hover interactions ****/
* {
  transition: background-color 0.16s, color 0.16s, box-shadow 0.18s;
}

/**** Links in article content ****/
.text-section a,
.article-item a,
.case-item a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.17s;
}
.text-section a:hover, .article-item a:hover, .case-item a:hover {
  color: var(--color-primary);
  text-decoration: underline dotted;
}

/**** Accessibility focus states ****/
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/*------------------------------------------------------------
  Scandinavian Clean Style Specific Accents
------------------------------------------------------------*/
.feature-item, .case-item, .article-item, .event-item {
  background: linear-gradient(160deg, #fff 87%, #fdf6dc 100%);
}

/**** End of Styles ****/
