/* ---- RESET & BASE ---- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
html, body { height: 100%; }
body { min-height: 100vh; background: #F4F6F8; color: #163955; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; margin-bottom: 1.2em; }
li { margin-bottom: 8px; }
a { color: #114A73; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F4B400; outline: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: #114A73;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol { margin-bottom: 16px; }
.hero-subheadline { color: #273846; font-size: 1.15rem; font-family: 'Roboto', Arial, sans-serif; font-weight: 400; margin-bottom: 25px; }
strong, b { font-weight: 600; color: #114A73; }

/* ---- LAYOUT CONTAINERS ---- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25, 31, 39, 0.045);
  padding: 40px 24px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .content-wrapper { border-radius: 10px; padding: 24px 10px; }
  .container { padding: 0 5px; }
}

/* ---- SECTION SPACING ---- */
section { margin-bottom: 60px; padding: 40px 20px; }
@media (max-width: 520px) {
  section { padding: 28px 4vw; margin-bottom: 32px; }
}

/* ---- HEADER/NAVIGATION ---- */
header {
  background: #fff;
  border-bottom: 1px solid #e4e7ea;
  padding: 0;
  box-shadow: 0 2px 10px rgba(20,32,56,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  height: 74px;
}
.logo img {
  height: 40px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  color: #114A73;
  font-weight: 500;
  font-size: 1rem;
  opacity: .93;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F4B400;
  border-bottom: 2px solid #F4B400;
}
.cta-button {
  background: #114A73;
  color: #fff;
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(25, 31, 39, 0.08);
  border: none;
  margin-left: 14px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #F4B400;
  color: #114A73;
  box-shadow: 0 4px 16px rgba(244, 180, 0, 0.09);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #114A73;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  transition: color .2s;
  padding: 0 4px;
  z-index: 105;
}
.mobile-menu-toggle:focus {
  color: #F4B400;
  outline: none;
}

@media (max-width: 960px) {
  header .container { padding: 0 12px; }
  .main-nav { gap: 14px; }
}
@media (max-width: 840px) {
  .main-nav { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 74, 115, 0.97);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.77,.16,.23,.91);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 22px 28px 0 0;
  z-index: 1101;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F4B400;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 46px 32px 0 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244,246,248,0.13);
  transition: color .18s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4B400;
  background: rgba(17,74,115,0.17);
}

@media (max-width: 480px) {
  .mobile-nav { padding: 38px 18px 0 18px; }
  .mobile-menu-close { margin: 16px 10px 0 0; }
}

/* ---- HERO / FEATURES / CARD GRIDS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 18px;
}
.feature {
  background: #F8FAFC;
  border: 1px solid #E4E7EA;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(25, 31, 39, 0.06);
  flex: 1 1 225px;
  max-width: 340px;
  padding: 28px 26px 18px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.25s, border-color 0.15s;
  min-width: 220px;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature:hover, .feature:focus-within {
  border-color: #114A73;
  box-shadow: 0 6px 22px rgba(17,74,115,0.08);
}

/* ---- CARDS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(25, 31, 39, 0.04);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(17, 74, 115, 0.12);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- FLEX GRID (for miscellaneous content) ---- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 950px) {
  .content-grid { flex-direction: column; gap: 22px; }
}
.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: 18px; }
}

/* ---- FEATURES ---- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- TESTIMONIAL SLIDER/CARDS ---- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 12px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FAFCFD;
  color: #19202A;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(17,74,115,0.08);
  border: 1px solid #E4E7EA;
  min-width: 230px;
  max-width: 350px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.15s;
}
.testimonial-card strong {
  font-size: 0.97rem;
  color: #114A73;
  font-weight: 600;
  margin-top: 6px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #F4B400;
  box-shadow: 0 6px 20px rgba(244,180,0,0.09);
}

/* ---- CONTACT PAGE LAYOUT ---- */
.text-section {
  flex: 2 1 350px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-preview {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 32px;
  max-width: 260px;
  min-width: 120px;
}
@media (max-width: 880px) {
  .container, .content-wrapper { padding: 0 3vw; }
  .map-preview { margin-left: 8px; min-width: 80px; }
}
@media (max-width: 600px) {
  .content-wrapper { flex-direction: column; padding: 18px 3vw; }
  .text-section, .map-preview { margin: 0; min-width: 0; max-width: 100%; }
}

/* ---- BUTTONS ---- */
button, .cta-button {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background .18s, color 0.18s, box-shadow 0.2s, border-color 0.2s;
}
button:disabled, .cta-button:disabled {
  background: #E4E7EA !important;
  color: #868d96 !important;
  cursor: not-allowed;
}

/* ---- FORMS (generic, can customize for forms if needed) ---- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #cdd4db;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #114A73;
  outline: none;
}

/* ---- FOOTER ---- */
footer {
  background: #fff;
  border-top: 1px solid #E4E7EA;
  box-shadow: 0 -2px 12px rgba(56,87,127,0.03);
  padding: 24px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  padding: 0 22px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #114A73;
  font-size: 0.98rem;
  opacity: 0.83;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4B400;
  border-bottom: 1.5px solid #F4B400;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  color: #54595f;
  gap: 10px;
  font-size: 0.97rem;
}
@media (max-width: 850px) {
  footer .container { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ---- COOKIE CONSENT ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #273846;
  border-top: 1.7px solid #E4E7EA;
  box-shadow: 0 -4px 32px rgba(17, 74, 115, 0.08);
  z-index: 1999;
  padding: 22px 32px 22px 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.40s cubic-bezier(.44,.11,.47,.87), transform 0.30s cubic-bezier(.44,.11,.47,.87);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 1 200px;
  font-size: 1rem;
  color: #273846;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-banner .cookie-btn,
.cookie-settings-btn {
  background: #114A73;
  color: #fff;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 24px;
  border: 1px solid #114A73;
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-left: 0;
}
.cookie-banner .cookie-btn.cookie-accept {
  background: #F4B400;
  color: #114A73;
  border-color: #F4B400;
}
.cookie-banner .cookie-btn.cookie-accept:hover,
.cookie-banner .cookie-btn.cookie-accept:focus {
  background: #fffbe8;
  color: #114A73;
  border: 1.5px solid #F4B400;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #E4E7EA;
  color: #273846;
  border: 1px solid #D2D6DA;
}
.cookie-banner .cookie-btn.cookie-reject:hover,
.cookie-banner .cookie-btn.cookie-reject:focus {
  background: #fff;
  color: #9ba1a7;
}
.cookie-banner .cookie-settings-btn {
  background: none;
  color: #114A73;
  border: 1.5px solid #114A73;
  padding: 7px 14px;
  font-size: 1rem;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #f6f8fa;
}
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 15px 7px; }
  .cookie-banner p { font-size: 0.96rem; }
}

/* ---- COOKIE SETTINGS MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(10,32,62,0.40);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.44,.11,.47,.87);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(17, 74, 115, 0.18);
  padding: 38px 24px 24px 24px;
  max-width: 400px;
  width: 94vw;
  color: #273846;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadein-modal 0.37s cubic-bezier(.77,.23,.28,.86);
}
@keyframes fadein-modal {
  from { opacity: 0; transform: translateY(95px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-family: 'Fira Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  color: #114A73;
  margin-bottom: 12px;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 8px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #273846;
  cursor: pointer;
}
.cookie-modal .cookie-switch {
  width: 36px; height: 20px;
  display: inline-block;
  position: relative;
}
.cookie-modal .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #E4E7EA;
  border-radius: 15px;
  transition: background 0.16s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: #F4B400;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute; height: 16px; width: 16px; left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(17, 74, 115, 0.1);
  transition: transform 0.2s;
  transform: translateX(0);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-buttons { display: flex; gap: 12px; margin-top: 12px; }
.cookie-modal .cookie-btn {
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none;
  color: #114A73;
  font-size: 1.4rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { color: #F4B400; }

/* ---- MICRO-INTERACTIONS & TRANSITIONS ---- */
.card, .feature, .testimonial-card, .cta-button, .main-nav a, .mobile-nav a, .cookie-btn, .cookie-settings-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s, transform 0.17s;
}
.card:hover, .feature:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
}

/* ---- UTILITIES ---- */
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; justify-content: center; align-items: center; }

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .feature-grid { gap: 16px; }
  .feature { padding: 16px 8px 12px 8px; font-size: 0.98rem; }
  .testimonial-slider { gap: 14px; }
  .testimonial-card { padding: 16px 10px; font-size: 0.98rem; }
  .content-wrapper { padding: 12px 3vw; }
}
@media (max-width: 530px) {
  header .container { height: auto; flex-wrap: wrap; padding: 6px 0; }
  .logo img { height: 32px; }
  .footer-contact, .footer-nav nav { font-size: 0.93rem; }
  .feature, .testimonial-card, .card { min-width: 140px; max-width: 99vw; font-size: 0.97rem; }
}

/* ---- VISUAL CLEAN-UP FOR SCANDINAVIAN DESIGN ---- */
body, section, .content-wrapper, .feature, .card, .testimonial-card {
  background: #fff;
}
.feature, .content-wrapper, .card, .testimonial-card {
  background: #fafbfc;
}

/* ---- REMOVE OUTLINE FOR MOUSE, RESTORE FOR KEYBOARD ---- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #F4B400; outline-offset: 2px; }

/* ---- PRINT FRIENDLY ---- */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .content-wrapper, section, .container { background: #fff !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
}
