/* --- CSS RESET AND NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F4F6FB;
  color: #123964;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #123964;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol, dl {
  margin-bottom: 1.15em;
  color: #2d3d52;
}
strong, b {
  font-weight: 700;
  color: #123964;
}
ul, ol {
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
}
a {
  color: #144470;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E09B36;
}
img {
  max-width: 100%;
  height: auto;
}
blockquote {
  font-style: italic;
  color: #144470;
  border-left: 3px solid #E09B36;
  margin: 0 0 10px 0;
  padding-left: 12px;
}

/* --- LAYOUTS & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18,57,100,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
}

/* SECTION SPACING & FLEX LAYOUTS (MANDATORY PATTERNS) */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18,57,100,0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 16px rgba(18,57,100,0.15);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(18,57,100,0.08);
  border-left: 6px solid #E09B36;
}
.testimonial-card blockquote {
  border: none;
  font-size: 1.05rem;
  color: #123964;
  line-height: 1.5;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  color: #144470;
  font-style: normal;
  opacity: 0.85;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.team-profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 20px 0;
}
.team-profile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18,57,100,0.07);
  padding: 28px 22px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s;
}
.team-profile:hover, .team-profile:focus-within {
  box-shadow: 0 5px 20px rgba(224,155,54,0.10);
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding-left: 0;
}
.blog-list li {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18,57,100,0.07);
  padding: 26px 20px 18px 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-list li .category {
  font-size: 0.92rem;
  color: #E09B36;
  background: #f3ecd6;
  border-radius: 6px;
  padding: 2px 9px;
  margin-bottom: 3px;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* --- BUTTONS --- */
.btn-primary {
  appearance: none;
  border: none;
  background: #144470;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  padding: 12px 28px;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  box-shadow: 0 2px 9px rgba(18,57,100,0.05);
  outline: none;
  display: inline-block;
  margin-bottom: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E09B36;
  color: #123964;
  box-shadow: 0 3px 12px rgba(224,155,54,0.15);
  transform: translateY(-2px) scale(1.04);
}

/* --- NAVIGATION --- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #e4e8f1;
}
.main-nav a img {
  height: 41px;
  width: auto;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: 36px;
}
.main-nav li {
  display: block;
}
.main-nav ul a {
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #123964;
  padding: 7px 14px;
  border-radius: 22px;
  transition: background 0.16s, color 0.16s;
}
.main-nav ul a:hover, .main-nav ul a:focus {
  background: #F4F6FB;
  color: #E09B36;
}
.main-nav .btn-primary {
  margin-left: 32px;
  margin-bottom: 0;
  font-size: 1.02rem;
  padding: 9px 22px;
}
/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #123964;
  border: 1px solid #e4e8f1;
  border-radius: 7px;
  font-size: 2rem;
  padding: 2px 13px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 2002;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus {
  background: #F4F6FB;
  color: #E09B36;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17,40,60,0.94);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  overflow-y: auto;
  transition: opacity 0.30s ease, transform 0.3s;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 24px 30px 10px 0;
  cursor: pointer;
  opacity: 0.88;
  transition: color 0.16s;
  z-index: 2001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E09B36;
}
.mobile-nav {
  width: 100vw;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 38px 40px 38px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  padding: 11px 0;
  font-size: 1.22rem;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.18s, background 0.15s;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E09B36;
  color: #123964;
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 12px;
    margin-left: 10px;
  }
  .main-nav .btn-primary {
    margin-left: 16px;
    font-size: 1rem;
    padding: 8px 16px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Ensure mobile nav doesn't show in desktop */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- FOOTER --- */
footer {
  background: #144470;
  color: #fff;
  padding: 48px 0 23px 0;
  border-top: 3px solid #E09B36;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
}
.footer-nav ul a {
  color: #fff;
  opacity: 0.95;
  font-size: 1rem;
  transition: color 0.16s, opacity 0.18s;
}
.footer-nav ul a:hover, .footer-nav ul a:focus {
  color: #E09B36;
}
.footer-contact {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  opacity: 0.97;
  margin-bottom: 6px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.footer-branding img {
  height: 40px;
  width: auto;
}
.footer-branding p {
  margin-bottom: 0;
  font-size: 1.06rem;
  opacity: 0.85;
  color: #fff;
}

/* --- TEXT & LISTS --- */
dt {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  margin-bottom: 3px;
  color: #123964;
}
dd {
  margin-left: 0;
  margin-bottom: 15px;
  color: #2d3d52;
}
/* Document Icon List Styling */
.text-section ul li img,
.text-section ul li svg {
  vertical-align: middle;
  margin-right: 7px;
  height: 21px;
}

/* --- ACCENT & CHIP --- */
span[role="chip"], .chip {
  display: inline-block;
  background: #f3ecd6;
  color: #E09B36;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  margin-left: 5px;
}

.short-contact {
  color: #144470;
  opacity: 0.75;
  font-size: 1.03rem;
  margin-top: 6px;
}

/* --- PRICES ON SERVICE LISTS --- */
.content-wrapper ul li span {
  color: #E09B36;
  font-weight: 700;
  margin-left: 6px;
}

/* --- MODAL & OVERLAY --- */
.modal {
  position: fixed;
  z-index: 3001;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(17,40,60,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  min-width: 300px;
  width: 90vw;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 8px 34px rgba(18,57,100,0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #123964;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
}
.modal-close:hover, .modal-close:focus { color: #E09B36; }
.modal-content h2, .modal-content h3 { margin-top: 0 !important; }
.category-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
}
.category-toggle label {
  font-size: 1.01rem;
  color: #123964;
}
.toggle-checkbox {
  width: 26px;
  height: 26px;
  accent-color: #E09B36;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  background: #fff;
  color: #123964;
  box-shadow: 0 -2px 12px rgba(18,57,100,0.09);
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.28s, opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(200px);
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 32px;
  padding: 10px 24px;
  font-size: 1.03rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: #144470;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #E09B36;
  color: #123964;
}
.cookie-btn.reject {
  background: #fff3e1;
  color: #E09B36;
  border: 1px solid #E09B36;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E09B36;
  color: #fff;
}
.cookie-btn.settings {
  background: #F4F6FB;
  color: #144470;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E09B36;
  color: #fff;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 800px) {
  .container { padding: 0 10px; }
  .content-wrapper, .content-grid, .card-container, .team-profile-list, .blog-list {
    flex-direction: column !important;
    gap: 16px !important;
  }
  section, .section {
    padding: 28px 0 0 0;
  }
  .text-section {
    padding: 22px 10px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.21rem; }
  .main-nav, .footer-branding { flex-direction: column; gap: 6px; }
  .footer-nav ul { gap: 9px; }
  .team-profile { min-width: 170px; padding: 19px 8px; font-size: 0.99rem; }
  .card, .blog-list li { padding: 16px 7px; font-size: 1rem; }
}

/* --- MICRO-INTERACTIONS --- */
.btn-primary, .cookie-btn, .main-nav ul a, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a, .footer-nav ul a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.card, .team-profile, .testimonial-card, .blog-list li {
  transition: box-shadow 0.24s, transform 0.18s;
}
.card:hover, .team-profile:hover, .testimonial-card:hover, .blog-list li:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 18px rgba(18,57,100,0.10);
}

/* --- SCANDINAVIAN CLEAN THEME --- */
body {
  background: #F4F6FB;
  color: #123964;
}
section, .section, .text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(18,57,100,0.06);
}
.card, .testimonial-card, .team-profile, .blog-list li {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(18,57,100,0.06);
  background: #fff;
}
html, body, .container, .main-nav, .footer-nav, .footer-contact, .footer-branding, .content-wrapper {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
}

/* --- FORM ELEMENTS (used in modals/banner) --- */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}
input[type='checkbox'], input[type='radio'] {
  accent-color: #E09B36;
  width: 1.3em;
  height: 1.3em;
}

/* --- UTILITY CLASSES (invisible or focus) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid #E09B36;
  outline-offset: 2px;
}

/* --- TYPOGRAPHY SCALE (SCANDINAVIAN INSPIRED) --- */
html {
  font-size: 16px;
}
@media (max-width: 480px) {
  html { font-size: 15px; }
}
h1 { font-size: 2.55rem; }
h2 { font-size: 1.48rem; }
h3 { font-size: 1.23rem; }
p, li, .footer-contact { font-size: 1.06rem; }


/* --- ENSURE GAPS BETWEEN CARDS/SECTIONS --- */
.card, .team-profile, .testimonial-card, .blog-list li {
  margin-bottom: 20px;
}
section + section {
  margin-top: 0 !important;
}
.content-wrapper + .content-wrapper {
  margin-top: 18px;
}
/* --- NO OVERLAP AND GOOD SPACING --- */
.content-wrapper, .text-section, .card, .testimonial-card, .footer-contact, .footer-nav ul, .team-profile, .blog-list li, .card-container, .content-grid {
  margin-bottom: 20px;
}
.card-container > *, .content-grid > *, .team-profile-list > *, .blog-list > * {
  margin-bottom: 0;
}
/* --- CUSTOM SCROLLBAR FOR MODERN CLEAN --- */
body::-webkit-scrollbar { width: 10px; background: #f4f6fb; }
body::-webkit-scrollbar-thumb { background: #e4e8f1; border-radius: 5px; }

/* --- END OF CSS --- */
