/* ========================
   CSS Reset & Normalize
   ======================== */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F5F7F8;
  color: #18313A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
}
a:focus, button:focus {
  outline: 2px solid #18496B;
  outline-offset: 2px;
}

/* ========================
   Brand Color Palette
   ======================== */
:root {
  --brand-primary: #18496B;
  --brand-secondary: #C2D3DF;
  --brand-accent: #F2BE68;
  --gray-bg: #F5F7F8;
  --white: #fff;
  --black: #212828;
  --shadow: rgba(24, 73, 107, 0.06);
  --border: #E1E8ED;
}

/* ========================
   Typography (Scandinavian Clean)
   ======================== */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #18313A;
  background: var(--gray-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18496B;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
p, li, address {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong { font-weight: 600; color: #18313A; }
small { font-size: 0.92rem; color: #666; }

/* ========================
   Layout Containers
   ======================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section Spacing (Mandatory) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ========================
   Navigation Styles
   ======================== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px 0 var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  justify-content: flex-start;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  color: var(--brand-primary);
  background: transparent;
}
.main-nav > a.btn-primary {
  background: var(--brand-accent);
  color: #18496B;
  font-weight: 600;
  margin-left: auto;
  padding: 10px 24px;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.main-nav > a:not(.btn-primary):hover, .main-nav > a:not(.btn-primary):focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.main-nav > a.btn-primary:hover, .main-nav > a.btn-primary:focus {
  background: #ffe2ac;
  color: #18496B;
  box-shadow: 0 4px 12px var(--shadow);
}
.main-nav img {
  height: 38px; width: auto; margin-right: 12px;
  vertical-align: middle;
}

/* Hamburger/moblie nav toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 18px;
  background: none;
  border: none;
  padding: 10px 12px;
  font-size: 2rem;
  line-height: 1;
  color: #18496B;
  cursor: pointer;
  z-index: 51;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  z-index: 100;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 20px 20px 32px;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.55,.15,.4,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
  border-radius: 6px;
  transition: background 0.18s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--brand-primary);
  padding: 11px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* Hide desktop nav and show burger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================
   Hero Section
   ======================== */
.hero {
  background: linear-gradient(120deg, #E7EFF4 40%, #fff 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px 0 var(--shadow);
  border-radius: 0 0 30px 30px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.hero p {
  max-width: 650px;
  color: #355B70;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* ========================
   Buttons (Primary/Secondary)
   ======================== */
.btn-primary {
  display: inline-block;
  background: var(--brand-accent);
  color: #18496B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  border: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.12s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFE2AC;
  color: #18496B;
  box-shadow: 0 4px 14px 0 var(--shadow);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  border: none;
  margin-top: 16px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.12s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e1eaf1;
  color: var(--brand-primary);
  box-shadow: 0 4px 14px 0 var(--shadow);
  transform: translateY(-2px) scale(1.03);
}

/* Button resets for a11y and design */
button, .btn-primary, .btn-secondary {
  outline: none;
}
button:active, .btn-primary:active, .btn-secondary:active {
  filter: brightness(0.96);
}

/* =========================
   Card/Grid Features
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.card img, .feature-grid img {
  margin-bottom: 12px;
  max-width: 40px;
  height: auto;
}

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

/* Feature grid special (used in many sections) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 10px;
  padding-left: 0;
}
.feature-grid li {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 5px var(--shadow);
  padding: 22px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 320px;
  gap: 11px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: box-shadow 0.18s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 16px var(--shadow);
}

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

/* Service list style */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.service-list li {
  background: #fff;
  border-radius: 10px;
  padding: 16px 14px;
  border-left: 5px solid var(--brand-secondary);
  font-size: 1rem;
}

/* =========================
   Testimonials
   ========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  color: #18313A;
  font-size: 1.08rem;
  position: relative;
  flex-direction: column;
  min-width: 220px;
  max-width: 600px;
}
.testimonial-card p {
  color: #18313A;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #6C8793;
  font-size: 0.98rem;
  font-style: normal;
}
.rating-summary {
  font-size: 1.12rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin: 18px 0 0 0;
}

/* =========================
   Footer
   ========================= */
footer {
  background: #e9f0f5;
  border-top: 1.5px solid var(--border);
  margin-top: 80px;
  padding: 48px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #18496B;
  opacity: 0.88;
  font-size: 0.97rem;
  transition: color 0.18s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
  opacity: 1;
}
.footer-brand img {
  width: 48px;
  height: auto;
  display: block;
  margin-bottom: 6px;
}
address {
  font-style: normal;
  color: #355B70;
  opacity: 0.96;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 var(--shadow);
  z-index: 9999;
  padding: 20px 20px 16px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: slideUpCookie 0.4s ease;
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin: 0 0 4px 0;
  color: #355B70;
  font-size: 1rem;
  max-width: 500px;
}
.cookie-action-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--shadow);
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
.cookie-action-btn.accept {
  background: var(--brand-accent);
  color: #18496B;
}
.cookie-action-btn.reject {
  background: #eaeff4;
  color: #355B70;
}
.cookie-action-btn.settings {
  background: var(--brand-secondary);
  color: #18496B;
}
.cookie-action-btn:focus, .cookie-action-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px) scale(1.03);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(24,73,107,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.3s cubic-bezier(.55,.18,.4,1);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(24,73,107, 0.09);
  padding: 40px 30px 28px 30px;
  max-width: 410px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #ececec;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category strong {
  font-size: 1.05rem;
  color: #18496B;
}
.cookie-switch {
  display: flex;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-toggle {
  width: 42px;
  height: 22px;
  display: inline-block;
  border-radius: 14px;
  background: #D3E1ED;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px var(--shadow);
  transition: transform 0.18s, background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-toggle {
  background: var(--brand-accent);
}
.cookie-switch input[type="checkbox"]:checked + .cookie-toggle::after {
  transform: translateX(18px);
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 24px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  color: #18313A;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 6px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--brand-secondary);
}

/* =========================
   Utility Classes
   ========================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }

/* =========================
   Responsive Breakpoints
   ========================= */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 180px;
    border-radius: 0 0 16px 16px;
    padding: 22px 0;
    margin-bottom: 36px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper,
  .feature-grid,
  .service-list {
    gap: 12px;
  }
  .card-container {
    gap: 14px;
  }
  .content-grid {
    gap: 10px;
  }
  .testimonial-card {
    gap: 10px;
    min-width: unset;
    max-width: 100vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav > a.btn-primary {
    margin-left: 0;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
  .footer-nav {
    gap: 14px;
  }
}

/* =========================
   Focus/Keyboard Navigation
   ========================= */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* =========================
   Miscellaneous
   ========================= */
::selection {
  background: var(--brand-secondary);
}
::-webkit-scrollbar {
  width: 11px;
  background: #F5F7F8;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 12px;
}

/********* END OF STYLE.CSS *********/
