/* CSS RESET & NORMALIZATION */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F7F7;
  color: #24324F;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: none;
  color: #274173;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #193055;
  outline: none;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
button {
  cursor: pointer;
  background: none;
}

/* SCANDINAVIAN CLEAN PALETTE */
:root {
  --primary: #274173;
  --secondary: #97BECE;
  --accent: #F7F7F7;
  --white: #ffffff;
  --dark: #24324F;
  --grey: #F1F3F5;
  --border: #E4EAF1;
  --success: #4F9D69;
  --error: #D94343;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--primary);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
}
p, li, .subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 14px;
}
.subtitle {
  color: #4671A2;
  font-size: 1.18rem;
  margin-bottom: 22px;
}

.text-section {
  margin-bottom: 20px;
}

strong {
  font-weight: bold;
  color: var(--primary);
}

/* LAYOUT: SPACING & FLEXBOX TOPOLOGIES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(33,54,70,0.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card-container, .feature-grid, .team-bios, .services-group, .blog-list, .topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(33,54,70,0.06);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 380px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(39,65,115,0.13);
  transform: translateY(-3px) scale(1.01);
}
.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;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(33,54,70,0.07);
  min-width: 270px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 18px rgba(39,65,115,0.13);
}
.testimonial-author {
  font-size: 0.95em;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.85;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 24px 20px;
  box-shadow: 0 1px 7px 0 rgba(33,54,70,0.04);
  width: 100%;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
}
.feature-item img {
  width: 38px;
  height: 38px;
}

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-bios .text-section {
  flex-basis: 300px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 20px 16px;
  box-shadow: 0 1px 7px 0 rgba(33,54,70,0.03);
}

/* HERO SECTION */
.hero {
  background: #eaf0f5 url("../assets/hero-bg.svg") no-repeat right bottom;
  background-size: cover;
  padding: 48px 0 24px 0;
  border-radius: 0 0 40px 40px;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 220px;
}

/* LISTS */
ul.services-list, ul.benefits-list, ul.values-list,
ul.blog-list, ul.blog-categories, ul.topics-list {
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
ul.services-list li, ul.benefits-list li, ul.values-list li,
ul.blog-list li, ul.topics-list li {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(33,54,70,0.03);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
ul.blog-categories {
  gap: 14px;
  flex-wrap: wrap;
}
ul.blog-categories li {
  border: none;
  box-shadow: none;
  background: var(--secondary);
  color: var(--white);
  padding: 7px 20px;
  border-radius: 25px;
  font-size: 0.98em;
  margin-bottom: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

/* BUTTONS & CALLS-TO-ACTION */
.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(39,65,115,0.08);
  text-align: center;
  letter-spacing: .02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.17s;
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 18px rgba(39,65,115,.10);
}
.cta-secondary {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--primary);
  margin-top: 10px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(151,190,206,0.12);
  transform: translateY(-2px) scale(1.02);
}

.newsletter-signup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.service-price {
  display: block;
  font-size: 1.01em;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 3px;
}

/* HEADER NAV */
header {
  background: var(--white);
  box-shadow: 0 1px 8px 0 rgba(33,54,70,0.05);
  position: sticky;
  top: 0;
  z-index: 70;
}
header .container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 26px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  padding: 8px 8px;
  border-radius: 5px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover,header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
header img {
  height: 51px;
  width: auto;
  margin: 0 10px 0 0;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.82rem;
  color: var(--primary);
  background: var(--white);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 1px 8px rgba(33,54,70,0.04);
  margin-left: 8px;
  transition: background 0.2s;
  position: relative;
  z-index: 999;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,247,0.96);
  box-shadow: 0 6px 28px rgba(33,54,70,.17);
  z-index: 998;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.86,-0.01,.19,1.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  position: absolute;
  right: 26px;
  top: 16px;
  cursor: pointer;
  z-index: 1005;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  padding: 60px 34px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--dark);
  font-family: var(--font-display);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--white);
  background: var(--secondary);
  border-radius: 6px;
  border-bottom: none;
  padding-left: 12px;
}

/* Hide regular nav and CTA button on mobile */
@media (max-width: 1020px) {
  header nav, header .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
  .hero {
    padding: 30px 0 8px 0;
    margin-bottom: 26px;
    border-radius: 0 0 26px 26px;
  }
  h1, .hero h1 {
    font-size: 1.85rem;
  }
  h2 {
    font-size: 1.27rem;
  }
  .section {
    padding: 27px 6px;
    margin-bottom: 32px;
    border-radius: 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card,
  ul.services-list li, ul.benefits-list li, ul.values-list li,
  .feature-item, .testimonial-card,
  ul.blog-list li, ul.topics-list li {
    min-width: 95vw;
    max-width: 98vw;
    margin-bottom: 18px;
    padding: 16px 8px;
  }
  .feature-grid, .card-container, .team-bios, .testimonials,
  .services-group, .content-grid, .blog-list, .topics-list {
    gap: 10px;
  }
  .newsletter-signup {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* CTA section */
.cta {
  background: var(--secondary);
  color: var(--white);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(151,190,206,0.09);
  padding: 44px 0;
  margin-bottom: 0;
}
.cta h2, .cta p {
  color: var(--white);
}
.cta .cta-primary {
  background: var(--white);
  color: var(--primary);
  border: none;
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  background: var(--primary);
  color: var(--white);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  padding: 38px 0 10px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 46px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.footer-top nav {
  display: flex;
  gap: 20px;
}
.footer-top nav a {
  color: var(--white);
  opacity: 0.87;
  transition: opacity 0.15s;
  font-size: .99em;
  border-radius: 4px;
  padding: 7px 10px;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  opacity: 1.0;
}
.footer-top img {
  height: 37px;
}
.footer-contact {
  color: #e2eaf4;
  font-size: .98em;
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-contact a {
  color: #e2eaf4;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 0 0;
}
.footer-social img {
  height: 25px;
  width: 25px;
  margin-left: 13px;
  opacity: 0.78;
  transition: opacity .18s;
}
.footer-social img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer {
    border-radius: 18px 18px 0 0;
    font-size: 0.93em;
    margin-top: 34px;
  }
}

/* Contact info section / Map */
.contact-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  max-width: 460px;
  margin-top: 6px;
  box-shadow: 0 1px 8px rgba(33,54,70,0.04);
}
.contact-map {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.contact-map img {
  width: 24px;
  height: 24px;
}

/* Animations (micro-interactions) */
.card, .feature-item, .testimonial-card, .cta-primary, .cta-secondary {
  transition: box-shadow 0.18s, transform 0.12s, border-color 0.2s;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 12000;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0 18px 0;
  box-shadow: 0 -2px 15px rgba(33,54,70,0.11);
  transition: transform .33s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-body {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  gap: 15px;
}
.cookie-banner p {
  color: var(--white);
  margin-bottom: 10px;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 8px 26px;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  transition: background 0.18s, color 0.15s;
}
.cookie-btn.accept {
  background: #4F9D69;
}
.cookie-btn.reject {
  background: #D94343;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--white);
  color: var(--primary);
  outline: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(37,65,115,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 18000;
  opacity: 1;
  pointer-events: all;
  transition: opacity .28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: var(--white);
  color: var(--dark);
  border-radius: 18px;
  padding: 34px 24px 26px 24px;
  max-width: 420px;
  min-width: 295px;
  box-shadow: 0 4px 26px rgba(39,65,115,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 14px;
  font-size: 1.7rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.17rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  font-family: var(--font-body);
  margin-bottom: 9px;
  padding: 8px 0;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}
.cookie-pref-category {
  margin-bottom: 12px;
  padding-bottom: 0;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    max-width: 96vw;
    min-width: 0;
    padding: 14px 7px 18px 7px;
  }
}

/* GENERAL UTILS */
.mt-3 { margin-top: 18px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mt-2 { margin-top: 10px !important; }
.gap-2 { gap: 14px !important; }
.gap-1 { gap: 7px !important; }

/* Miscellaneous adjustments */
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 5px; }
::-webkit-scrollbar { width: 8px; background: var(--accent); }

[tabindex]:focus {
  outline: 2px solid var(--primary) !important;
}

/* Service group cards */
.services-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-group .text-section {
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 200px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(33,54,70,0.03);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Blog list adjustment */
ul.blog-list {
  flex-direction: column;
  gap: 20px;
}
ul.blog-list li {
  margin-bottom: 0;
  padding: 16px 18px;
}

/* Hide elements util */
.d-none { display: none !important; }

/* Ensure testimonial text always has excellent contrast */
.testimonial-card p, .testimonial-card .testimonial-author {
  color: #24324F;
  background: none;
}

/* Prevent content overlap */
.section, .card, .feature-item, .testimonial-card, .text-section, .card-container, .testimonials, .content-wrapper, .container {
  z-index: auto;
}

/******* END ******/