/* --- 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFFFF;
  color: #1B2328;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 100%; outline: none; border: none; background: none; }

/* --- BRAND & SCANDINAVIAN CLEAN VARIABLES --- */
:root {
  --primary: #24556B;
  --primary-dark: #183B4B;
  --secondary: #F1E9DC;
  --background: #FFFFFF;
  --accent: #E3701E;
  --accent-dark: #B34E00;
  --shadow-main: 0 4px 24px rgba(36,85,107,0.08);
  --shadow-hover: 0 2px 12px rgba(36,85,107,0.13);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* --- TYPOGRAPHY SYSTEM --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: #1B2328;
  background: var(--background);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.18rem; margin-bottom: 8px; }
.subheadline { font-size: 1.18rem; color: var(--primary-dark); margin-bottom: 18px; }
p { margin-bottom: 16px; font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .subheadline { font-size: 1rem; }
}

strong, b { font-weight: 700; color: var(--primary-dark); }

/* --- LAYOUT & SPACING --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }
  .text-section, .contact-details {
    flex: 1;
  }
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; }
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 24px; }
}

/* --- HEADER & NAV --- */
header {
  background: var(--background);
  border-bottom: 1px solid #DDD;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(36,85,107,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
  transition: color 0.2s;
  font-weight: 600;
  padding: 4px 2px;
  border-radius: 6px;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
  margin-left: 18px;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.025);
}

/* Responsive header nav */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border-radius: var(--radius-sm);
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,85,107,.12);
  z-index: 2000;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.4,.2,.2,1), transform 0.33s cubic-bezier(.66,0,.35,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 32px 10px 0;
  font-size: 2.3rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: none;
  transition: background 0.15s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 44px 0 48px;
  width: 100%;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 30px 0 rgba(36,85,107,.09);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-dark);
  padding: 11px 2px 11px 14px;
  border-radius: 9px;
  width: 100%;
  transition: background 0.15s, color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent-dark);
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO SECTION --- */
.hero {
  background: var(--secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 60px;
  padding: 60px 0;
  box-shadow: 0 8px 24px -12px rgba(36,85,107,0.09);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}
@media (max-width: 768px) {
  .hero {
    margin-bottom: 36px;
    padding: 38px 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

/* --- FLEXBOX CARD AND FEATURE LAYOUTS --- */
.card-container, .feature-grid, .service-grid, .card-grid, .testimonial-slider { 
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  margin-bottom: 20px;
  padding: 26px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  max-width: 360px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  padding: 34px 28px 28px 28px;
  min-width: 260px; max-width: 330px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.19s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-card img {
  width: 42px; height: 42px; margin-bottom: 12px;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(36,85,107,0.13);
  transform: translateY(-2px) scale(1.024);
}
@media (max-width: 900px) {
  .feature-grid { gap: 18px; }
  .feature-card { min-width: 210px; padding: 22px 12px 18px 14px; }
}
@media (max-width: 640px) {
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-card { max-width: 100%; width: 100%; }
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.service-highlight-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  flex: 1 1 268px;
  min-width: 220px;
  max-width: 340px;
  padding: 34px 28px 28px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.13s;
  position: relative;
}
.service-highlight-card:hover {
  box-shadow: 0 8px 32px rgba(36,85,107,0.17);
  transform: translateY(-2px) scale(1.018);
}
.service-price {
  display: inline-block;
  background: var(--secondary);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
}
@media (max-width: 800px) {
  .service-grid { gap: 16px; }
}
@media (max-width: 600px) {
  .service-grid { flex-direction: column; gap: 16px; }
  .service-highlight-card { max-width: 100%; width: 100%; padding: 22px 12px 20px 14px; }
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #FAF8F4;
  padding: 50px 0 42px 0;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
}
.testimonials .container h2 {
  margin-bottom: 28px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-md);
  padding: 28px 28px 20px 28px;
  min-width: 260px;
  max-width: 400px;
  font-size: 1.07rem;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
}
.testimonial-card .testimonial-name {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 24px rgba(36,85,107,0.14);
  transform: translateY(-2px) scale(1.019);
}
@media (max-width: 670px) {
  .testimonials { padding: 18px 0 14px 0; }
  .testimonial-slider { flex-direction: column; gap: 18px; }
  .testimonial-card { max-width: 100%; width: 100%; }
}

/* --- CTA BANNER --- */
.cta {
  margin-bottom: 60px;
  background: none;
}
.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 26px 0 rgba(36,85,107,0.14);
  padding: 54px 36px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}
.cta-banner h2,
.cta-banner p {
  color: #fff;
}
.cta-banner .btn-primary {
  margin-left: 0;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.cta-banner .btn-primary:hover, .cta-banner .btn-primary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .cta-banner { padding: 20px 10px 18px 10px; gap: 18px; }
}

/* --- CARDS, FEATURES, LISTS --- */
ul, ol {
  margin: 0 0 16px 18px;
  padding: 0 0 0 18px;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.6;
}
.section ul, .section ol {
  margin-bottom: 0;
}
.contact-details ul {
  margin-bottom: 10px;
}

/* --- TEXT-IMAGE/CONTENT SECTIONS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--secondary);
  border-top: 1px solid #e3dac8;
  padding: 38px 0 22px 0;
  margin-top: 78px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  font-size: 1.02rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent-dark);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1rem;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
@media (max-width: 640px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff8ee;
  color: #1B2328;
  box-shadow: 0 -3px 22px rgba(36,85,107,0.12);
  padding: 22px 20px 22px 22px;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.66,0,.35,1), opacity 0.33s cubic-bezier(.66,0,.35,1);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-text {
  flex: 2;
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-consent-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(36,85,107,0.07);
}
.cookie-btn.cookie-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.cookie-accept:hover, .cookie-btn.cookie-accept:focus {
  background: var(--accent-dark);
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: var(--secondary);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.cookie-btn.cookie-settings {
  background: #fff8ee;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  color: var(--background);
  background: var(--accent);
  border-color: var(--accent-dark);
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    min-height: auto;
    padding: 18px 6px 18px 12px;
  }
}

/* COOKIE CONSENT MODAL ------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,85,107,0.14);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s cubic-bezier(.8,0,.32,1);
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px 0 rgba(36,85,107,0.21);
  padding: 38px 30px;
  max-width: 400px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 3px;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  right: 14px; top: 14px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.8rem;
  border-radius: 50%;
  border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary-dark);
  font-weight: 500;
  flex: 1 1 auto;
}
.cookie-toggle {
  margin-left: auto;
  appearance: none;
  width: 42px; height: 24px;
  background: var(--secondary);
  outline: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
  vertical-align: middle;
}
.cookie-toggle:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.18s, background 0.12s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:checked:before {
  left: 21px;
  background: var(--accent-dark);
}

/* --- FEATURE ITEM (FLEX COLUMN) --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/* LINKS STYLES */
a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--primary);
}

/* MISC -- List inside .features */
.features ul {
  margin: 12px 0;
  list-style: disc inside;
  color: var(--primary-dark);
}
.features ul li {
  margin-bottom: 10px;
}

/* CONTACT DETAILS */
.contact-details {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(36,85,107,0.04);
}
.contact-details h2 {
  margin-bottom: 15px;
  font-size: 1.20rem;
}
.contact-details ul {
  color: var(--primary-dark);
}
.contact-details a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* THANK YOU BUTTON */
.text-section .btn-primary {
  margin-top: 22px;
}

/* --- FORM ELEMENTS (in case present) --- */
input, textarea, select {
  border: 1px solid #c5d5df;
  border-radius: var(--radius-sm);
  background: #FCFCFA;
  font-size: 1rem;
  padding: 12px 12px;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}

/* --- ACCESSIBILITY: FOCUS VISIBLE --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- TRANSITIONS, ANIMATIONS --- */
.btn-primary, .feature-card, .service-highlight-card, .card, .testimonial-card, .cookie-btn, .cookie-modal-close {
  transition: box-shadow .16s, background .17s, color .17s, transform .13s;
}

/* --- RESPONSIVE FLEXBOX LAYOUTS --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 1040px) {
  .content-grid { flex-direction: column; gap: 20px; }
}

/* --- ADDITIONAL SPACING & SAFETY --- */
.card, .feature-card, .service-highlight-card, .testimonial-card, .cta-banner {
  margin-bottom: 24px;
}
.section, .hero, .cta {
  margin-bottom: 60px;
}

@media (max-width: 480px) {
  .feature-card, .service-highlight-card, .testimonial-card, .cta-banner { padding-left: 8px; padding-right: 8px; }
  .section { padding: 18px 4px; }
}

/* --- PREVENT ABSOLUTE FOR CONTENT --- */
.card, .feature-card, .testimonial-card {
  position: relative;
  z-index: 1;
}
/* Decorative icons/images can be absolutely positioned; content blocks must not be. */

/* --- PREVENT OVERLAP AND Z-INDEX LAYERING --- */
.header, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  z-index: 999;
}

/* --- PRINT STYLES --- */
@media print {
  header, .mobile-menu, footer, .cookie-consent-banner, .cookie-modal { display: none !important; }
  body { font-size: 13px; line-height: 1.4; }
}
