/* =======================================================
   RESET & BASE STYLES
   Scandinavian Clean – Flare Gradient Reisen
   Only Flexbox layouts, no Grid/Columns
   ====================================================== */

/* CSS RESET */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FC;
  color: #234E70;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
a {
  color: #234E70;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F7C873;
  text-decoration: underline;
  outline: none;
}
strong, b {
  font-weight: bold;
}

::-webkit-input-placeholder { color: #9EACC2; }
::-moz-placeholder { color: #9EACC2; }
:-ms-input-placeholder { color: #9EACC2; }
::placeholder { color: #9EACC2; }

/* =========================================
   TYPOGRAPHY – Scandinavian Clean
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: #234E70;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.22;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 { font-size: 1rem; }

p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #234E70;
  margin-bottom: 16px;
  line-height: 1.65;
}

.text-section h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Remove extra bottom margin from last child */
.section > .container > .content-wrapper > *:last-child,
.content-wrapper > *:last-child,
.text-section > *:last-child {
  margin-bottom: 0;
}

/* =========================================
   LAYOUT: Container, Section, Content Wrapper
   ========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   NAVIGATION (Desktop & Mobile Burger)
   ========================================= */
header {
  background: #fff;
  border-bottom: 1px solid #E2E6ED;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  justify-content: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  color: #234E70;
  background: transparent;
  transition: background 0.2s, color 0.15s;
  margin-bottom: 0;
}
.main-nav a.cta.primary {
  background: #234E70;
  color: #fff;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 99px;
  box-shadow: 0 2px 12px rgba(35,78,112,0.07);
  margin-left: auto;
  margin-right: 0;
  letter-spacing: 0.03em;
  transition: background 0.15s, box-shadow 0.25s;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: #F7C873;
  color: #234E70;
  box-shadow: 0 4px 16px rgba(35,78,112,0.13);
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
  display: inline;
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* -------------------
   MOBILE BURGER NAV
-------------------- */
.mobile-menu-toggle {
  background: transparent;
  color: #234E70;
  border: none;
  font-size: 2.1rem;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 14px;
  align-self: center;
  transition: background 0.15s;
  z-index: 1001;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7C873;
  color: #234E70;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F6F8FC;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.5,0,.3,1);
  box-shadow: 0 0 30px 0 rgba(35,78,112,0.15);
  display: flex;
  flex-direction: column;
  padding: 28px 20px 32px 20px;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #234E70;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F7C873;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  line-height: 1.6;
  color: #234E70;
  border-radius: 8px;
  padding: 13px 6px;
  transition: background 0.15s, color 0.13s;
  background: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F7C873;
  color: #234E70;
}

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero {
  background: #F6F8FC;
  padding: 40px 0 30px 0;
  margin-bottom: 0;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
}
.hero h1 {
  text-align: center;
  color: #234E70;
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.hero p {
  text-align: center;
  font-size: 1.22rem;
  color: #5A768E;
  margin-bottom: 22px;
}

/* =========================================
   FEATURE GRID & Items (Flex Only)
   ========================================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,78,112,0.04), 0 1px 3px rgba(0,0,0,0.01);
  padding: 26px 22px 24px 22px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s, transform 0.2s;
  border: 1px solid #e7ecf3;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 8px 32px rgba(35,78,112,0.13), 0 2px 7px rgba(0,0,0,0.03);
  transform: translateY(-4px) scale(1.017);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.feature-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 7px 0;
  color: #234E70;
}
.feature-grid p {
  color: #57677c;
  margin-bottom: 0;
  font-size: 1rem;
}
.service-price {
  margin-top: auto;
  color: #234E70;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.08rem;
}

/* ===============================
   TESTIMONIALS (Cards & List)
   =============================== */
.testimonials {
  background: #fff;
  padding: 40px 0;
}
.testimonials .container {
  width: 100%;
  max-width: 950px;
}
.testimonials h2 {
  color: #234E70;
  font-size: 2rem;
  text-align: left;
  margin-bottom: 28px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  align-items: stretch;
}
.testimonial-card {
  background: #F6F8FC;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(35,78,112,0.04);
  padding: 26px 22px 21px 22px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid #e6eaf3;
  color: #234E70;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card.highlighted {
  background: #fffbe9;
  border-color: #F7C873;
  box-shadow: 0 3px 18px rgba(247,200,115,0.10), 0 1px 3px rgba(0,0,0,0.01);
  z-index: 1;
}
.testimonial-card .stars {
  display: flex;
  align-items: center;
  gap: 3px;
}
.testimonial-card .stars img {
  width: 22px;
  height: 22px;
}
.testimonial-card p {
  color: #234E70;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-name {
  color: #3e4e6b;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 0;
  opacity: 0.8;
  font-style: italic;
}

.testimonial-card:focus-within,
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(35,78,112,0.09), 0 1px 7px rgba(0,0,0,0.03);
  transform: scale(1.016) translateY(-3px);
  outline: none;
}

/* ===============================
   CALL TO ACTION SECTIONS
   =============================== */
.call-to-action {
  background: #234E70;
  padding: 44px 0 50px 0;
  color: #fff;
  margin-bottom: 0;
}
.call-to-action .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.call-to-action .content-wrapper {
  align-items: center;
}
.call-to-action h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 14px;
  font-size: 2rem;
}
.call-to-action p {
  color: #F7C873;
  font-size: 1.22rem;
  margin-bottom: 22px;
  text-align: center;
}

/* ===============================
   BUTTONS & LINKS
   =============================== */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #234E70;
  color: #fff;
  border-radius: 99px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  min-width: 120px;
  margin: 4px 0;
  box-shadow: 0 2px 14px rgba(35,78,112,0.08);
  transition: background 0.17s, color 0.13s, box-shadow 0.17s transform 0.22s;
  text-align: center;
}
.cta.primary, .btn.primary {
  background: #234E70;
}
.cta.primary:hover, .cta.primary:focus, .btn.primary:hover, .btn.primary:focus {
  background: #F7C873;
  color: #234E70;
  box-shadow: 0 5px 22px rgba(247,200,115,0.16);
  outline: none;
}
.btn.secondary {
  background: #F7C873;
  color: #234E70;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: #F9DFAD;
  color: #234E70;
}
.btn, .cta {
  outline: none;
}

/* ===============================
   OTHER LAYOUT & COMPONENTS
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(35,78,112,0.10);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  max-width: 370px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.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;
  margin-bottom: 32px;
}
.testimonial-card,
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================================
   CONTACT DETAILS & LISTS
   ========================================= */
.contact-details {
  margin-top: 24px;
  color: #7A8AA0;
  font-size: 0.95rem;
  text-align: center;
}
.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 18px 0 0 0;
}
.contact-details-list img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: sub;
  filter: grayscale(55%) opacity(0.78);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #fff;
  border-top: 1px solid #e7ecf3;
  padding: 36px 0 32px 0;
  font-size: 1rem;
  color: #234E70;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 16px;
}
footer nav a {
  color: #234E70;
  opacity: 0.83;
  font-size: 1rem;
  border-radius: 7px;
  padding: 6px 10px;
  transition: background 0.15s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #F7C873;
  color: #234E70;
  opacity: 1;
}

/* ==============================
   COOKIE CONSENT BANNER & MODAL
   ============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #234E70;
  color: #fff;
  z-index: 3000;
  box-shadow: 0 -6px 32px rgba(35,78,112,0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 20px 24px 20px;
  font-size: 1rem;
  animation: cc-banner-appear 0.57s cubic-bezier(.55,.13,.33,1);
}
@keyframes cc-banner-appear {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1;   }
}
.cookie-consent-banner p {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  flex: 2 1 240px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 99px;
  padding: 10px 24px;
  margin: 0;
  cursor: pointer;
}
.cookie-consent-banner .accept {
  background: #F7C873;
  color: #234E70;
  transition: background 0.14s, color 0.12s;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #fbeed2;
  color: #234E70;
}
.cookie-consent-banner .reject {
  background: transparent;
  color: #F7C873;
  border: 2px solid #F7C873;
  transition: background 0.13s, color 0.12s, border 0.14s;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: #F7C873;
  color: #234E70;
}
.cookie-consent-banner .settings {
  background: #fff;
  color: #234E70;
  border: 1.2px solid #e7ecf3;
  transition: background .14s, color .12s, border .15s;
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: #F7C873;
  color: #234E70;
  border-color: #F7C873;
}

/* COOKIE PREFERENCES MODAL */
.cookie-preference-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,78,112,0.14);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cc-modal-fadein 0.2s cubic-bezier(.6,.2,.4,1);
}
@keyframes cc-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 36px 28px 28px 28px;
  border-radius: 18px;
  max-width: 420px;
  box-shadow: 0 6px 32px rgba(35,78,112,0.09);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  position: relative;
  animation: cc-modal-pop 0.23s cubic-bezier(.7,.15,.3,1);
}
@keyframes cc-modal-pop {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.22rem;
  color: #234E70;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234E70;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-category .toggle {
  width: 42px;
  height: 24px;
  position: relative;
  display: inline-block;
}
/* Simple switch-style toggle */
.cookie-category .toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-category .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e7ecf3;
  border-radius: 999px;
  transition: background 0.15s;
}
.cookie-category .toggle input:checked + .slider {
  background: #F7C873;
}
.cookie-category .slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 1px 2px rgba(35,78,112,0.12);
}
.cookie-category .toggle input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 20px; top: 14px;
  background: none;
  border: none;
  color: #234E70;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-content .close-modal:hover, .cookie-modal-content .close-modal:focus {
  color: #F7C873;
}

/* ============================== 
   MEDIA QUERIES – RESPONSIVE FLEX
   ============================== */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding: 0 11px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .testimonial-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }

  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 12px;
  }
  header {
    position: relative;
    min-height: 56px;
  }
  .hero .content-wrapper h1 {
    font-size: 1.6rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 22px 13px 20px 13px;
  }
  .card-container,
  .content-grid,
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .card, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 20px 13px 19px 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .call-to-action .container {
    padding: 0 10px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 10px 22px 12px;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 99vw;
    padding: 0 4px;
  }
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1rem; }
  .cta, .btn {
    width: 100%;
    font-size: 0.97rem;
    padding: 12px 0;
  }
  .cookie-modal-content {
    max-width: 97vw;
    padding: 18px 7px 18px 11px;
  }
}

/* ===============================
   MICRO-INTERACTIONS & EFFECTS
   =============================== */
html {
  scroll-behavior: smooth;
}
section, .card, .testimonial-card, .feature-grid > div, .call-to-action, .cookie-consent-banner, .cookie-modal-content {
  transition: box-shadow 0.24s, transform 0.24s;
}

/* ==============================
   SCANDINAVIAN CLEAN SPECIALS
   ============================== */
body {
  background: #F6F8FC url('../assets/bg-fabric.png') repeat top left;
  /* if no asset, fallback to solid */
  background-color: #F6F8FC;
}
.feature-grid > div, .card, .testimonial-card, .cookie-modal-content {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35,78,112,0.07);
}

/* Consistent spacing */
.section, .call-to-action, .testimonials {
  margin-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
}
/* Use flexbox for all layout */
.section .container, .content-wrapper, .feature-grid, .content-grid, .card-container, .testimonial-list, .testimonial-card, .feature-item, .cookie-consent-banner .cookie-actions, .cookie-modal-actions, .cookie-category, .contact-details-list, .footer nav {
  display: flex;
}

/* Ensure no element overlaps */
.card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}

/* Hide outline except when focus-visible (for much cleaner design) */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ========== SCROLLBAR (optional, matches clean style) ========== */
body::-webkit-scrollbar {
  width: 8px;
  background: #f4f7fa;
}
body::-webkit-scrollbar-thumb {
  background: #e9eef1;
  border-radius: 6px;
}

/* ==============================
   UTILITIES
   ============================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  border: 0;
}

/* Separator/gap utility (if needed) */
.spacer-32 { height: 32px; }
.spacer-16 { height: 16px; }

/* ==============================
   END
   ============================== */
