/* ==================== CSS RESET & BASE ========================== */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F7F7F5;
  color: #222C36;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: #274992; transition: color 0.2s; }
a:hover, a:focus { color: #0F223A; text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #222C36;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.12rem; margin-bottom: 10px; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
p, li { font-size: 1rem; margin-bottom: 12px; }
strong, b { font-weight: 700; }
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==================== BRAND COLORS =============================== */
:root {
  --primary: #274992;
  --secondary: #0F223A;
  --accent: #FFC857;
  --background: #F7F7F5;
  --card: #fff;
  --neutral: #DFE4EA;
  --text: #222C36;
  --placeholder: #9CA2AB;
  --shadow: 0 2px 8px rgba(27, 46, 64, 0.09);
  --radius: 16px;
}

/* ==================== HEADER, NAVIGATION ========================= */
header {
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--neutral);
  z-index: 30;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 24px 20px;
  gap: 0;
}
header img { height: 38px; }
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  color: var(--secondary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 4px 0;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background 0.18s, transform 0.14s;
  cursor: pointer;
  letter-spacing: 0.01em;
  outline: none;
  margin-left: 32px;
  display: inline-block;
}
.btn.primary:hover,
.btn.primary:focus {
  background: var(--secondary);
  transform: translateY(-2px) scale(1.04);
}
.btn.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 27px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.18s;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-top: 15px;
  display: inline-block;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  z-index: 102;
  right: 20px;
  top: 20px;
  background: #fff;
  color: var(--secondary);
  border: none;
  font-size: 2.1rem;
  padding: 7px 13px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--neutral);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.82,0,.18,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0); opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 25px 0 0;
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 10001;
  padding: 3px 10px;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--neutral);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding: 15px 32px 32px 32px;
}
.mobile-nav a {
  color: var(--secondary);
  font-size: 1.2rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 13px 0;
  font-weight: 500;
  width: 100%;
  letter-spacing: 0.01em;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: var(--primary);
  background: var(--neutral);
  border-radius: 8px;
}

/* Hide on desktop, show on mobile */
@media (max-width: 1024px) {
  .main-nav, header .btn.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1024px) {
  .mobile-menu { display: flex; }
}

/* ==================== HERO SECTION =============================== */
.hero {
  background: #fff url('../assets/bg-hero.jpg') center/cover no-repeat;
  min-height: 340px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 0;
  box-shadow: var(--shadow);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  color: var(--secondary);
  font-size: 2.75rem;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.hero .subheadline {
  color: #555F6A;
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ==================== GENERIC LAYOUT/SECTIONS =================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  .hero h1 { font-size: 2rem; }
}

/* ==================== CARDS, GRID, FEATURES ===================== */
.card-container, .service-cards, .testimonial-list, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 0;
}
.card, .service-card, .feature, .testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 22px 22px 22px;
  min-width: 0;
  min-height: 0;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .service-card:hover, .feature:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(39,73,146,0.10);
  transform: translateY(-2px) scale(1.02);
}
.service-card, .feature {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 330px;
  gap: 14px;
}
.service-card h3, .feature h3 {
  font-size: 1.15rem;
}
.feature img,
.service-card img {
  width: 40px; height: 40px;
  margin-bottom: 9px;
}

.testimonial-list {
  width: 100%;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-card {
  background: #F7F7F5;
  border: 1.5px solid var(--neutral);
  color: var(--text);
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 340px;
  padding: 28px 20px 18px 20px;
  gap: 12px;
}
.testimonial-meta {
  color: #555F6A;
  font-size: 0.93rem;
  font-style: italic;
  margin-top: 10px;
  text-align: right;
  width: 100%;
}

/* Cards on mobile stack */
@media (max-width: 900px) {
  .feature-grid, .service-cards, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature, .service-card, .testimonial-card {
    max-width: 100%;
  }
}

/* Text-image and info sections */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  color: #374151;
  font-size: 1rem;
}
.info-item img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 20px;
}
.contact-info .info-item {
  min-width: 210px; max-width: 360px;
}

/* ==================== FOOTER ================================ */
footer {
  background: var(--background);
  border-top: 1.5px solid var(--neutral);
  padding: 45px 0 25px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-navigation nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 14px;
  justify-content: center;
}
.footer-navigation nav a {
  color: #596A7B;
  font-size: 1rem;
  padding: 3px 6px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.footer-navigation nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: flex-start;
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-info img {
  width: 44px; height: 44px;
}
.brand-info p {
  color: #4A5765;
  margin-bottom: 0;
  font-size: 1rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: #555F6A;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  justify-content: center;
}
.footer-legal a {
  color: #555F6A;
  font-size: 0.96rem;
  padding: 2px 2px;
}
.footer-legal a:hover {
  color: var(--primary);
}
@media (max-width: 768px) {
  footer .container, .footer-contact {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ==================== FORMS & LISTS =========================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border: 1.5px solid var(--neutral);
  border-radius: 8px;
  margin-bottom: 18px;
  width: 100%;
  background: #fff;
  color: var(--text);
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
label {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--secondary);
}
ul, ul li {
  list-style: initial;
  margin-bottom: 9px;
  padding-left: 21px;
}
ul li {
  margin-bottom: 5px;
  font-size: 1rem;
}

/* ==================== LEGAL TEXT SECTIONS ==================== */
.legal-text {
  margin: 0 auto 40px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  max-width: 870px;
}
.legal-text h1, .legal-text h2 {
  color: var(--primary);
}
@media (max-width: 600px) {
  .legal-text {
    padding: 24px 6px;
  }
}

/* ==================== TRANSITIONS & MICRO-INTERACTIONS ========== */
.btn, .service-card, .feature, .testimonial-card, .card, .main-nav a, .footer-navigation nav a {
  transition: box-shadow 0.16s, background 0.18s, transform 0.13s, color 0.15s;
}

/* =============== COOKIE CONSENT BANNER & MODAL ================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(27,46,64,0.13);
  border-top: 1.5px solid var(--neutral);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px 16px;
  gap: 14px;
  font-size: 1rem;
  animation: fadeInUp 0.33s;
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(60px) scale(0.93); }
  to { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-banner p {
  color: #3a4752;
  margin-bottom: 7px;
  text-align: center;
  font-size: 1.09rem;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 5px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 8px;
  border: none;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.17s, color 0.17s, border 0.16s;
}
.cookie-banner .accept-all {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .reject-all {
  background: var(--neutral);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #fff0e6;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--neutral);
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: rgba(31,43,56,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeIn .19s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(27,46,64,0.17);
  max-width: 420px;
  width: 92vw;
  padding: 34px 26px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalUp .23s;
}
@keyframes modalUp {
  from { transform: translateY(80px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  text-align: left;
  margin-bottom: 11px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px; top: 12px;
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.13s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  background: var(--neutral);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  background: #F7F7F5;
  border-radius: 8px;
  padding: 9px 12px;
}
.cookie-category label {
  flex: 1 1 60%;
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--secondary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
}
.cookie-category .always-on {
  font-size: 0.98rem;
  color: #777;
  font-weight: 600;
}
.cookie-modal .modal-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .modal-btn-group button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: var(--shadow);
}
.cookie-modal .save-cookies {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .save-cookies:hover {
  background: var(--secondary);
}
.cookie-modal .cancel-cookies {
  background: var(--neutral);
  color: var(--secondary);
}
.cookie-modal .cancel-cookies:hover {
  background: #fff0e6;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 860px) {
  header .container { flex-direction: row; gap: 0; padding: 18px 12px; }
  .footer-navigation nav { gap: 10px; font-size: 0.95rem; }
  .feature, .service-card { padding: 18px 13px 16px 13px; }
}
@media (max-width: 600px) {
  .footer-navigation nav, .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card, .service-card, .feature, .testimonial-card {
    padding: 16px 8px 14px 10px;
    font-size: 1rem;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 6px; }
  .cookie-modal, .legal-text { padding: 14px 3px; }
  header img, .brand-info img { height: 29px; width: 30px; }
  .btn.primary, .btn.secondary {
    padding: 10px 20px;
    font-size: 1rem;
    margin-left: 8px;
  }
}

/* ============ VISUAL STYLE / SCANDINAVIAN CLEAN ================= */
body, .container, .section, .card, .service-card, .feature, .testimonial-card, .hero, .legal-text {
  background: #fff;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(27, 46, 64, 0.09);
}

.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; }

/* ==================== UTILITIES ================================ */
.d-none { display: none !important; }

/* Miscellaneous micro-shadows for Scandinavian style subtlety */
.shadow-light { box-shadow: 0 1.5px 7px rgba(30,39,65,0.07); }
::-webkit-input-placeholder { color: var(--placeholder); font-size: 1rem; }
::-moz-placeholder          { color: var(--placeholder); font-size: 1rem; }
:-ms-input-placeholder      { color: var(--placeholder); font-size: 1rem; }
::placeholder              { color: var(--placeholder); font-size: 1rem; }

/* =================== A11Y, CONTRAST, FOCUS ===================== */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.testimonial-card, .testimonial-card p { color: #191D23; background: #F7F7F5; }

/* =================== END OF CSS ================================ */
