/* =====================================================
   FROSTY QUARTERS – Scandinavian Clean CSS
   Brand colors: #3A506B (primary), #F5F5F5 (offwhite BG), #488AAF (accent), #1C5980 (nav accent), #FFFFFF
   Font stack: 'Montserrat' (display/titles), 'Roboto' (body)
   Flexbox layouts only
   ===================================================== */

/* 1. CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  font-family: 'Roboto', Arial, sans-serif;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F5F5;
  color: #273043;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
a {
  color: #3A506B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #488AAF;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 8px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}

/* 2. UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 800px;
}
.display-none {
  display: none;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #3A506B;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 12px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.16;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p {
  margin-bottom: 8px;
  color: #273043;
  font-size: 1.05rem;
}

/* 4. LAYOUT SECTIONS & FLEXBOX PATTERNS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 1.5px 12px rgba(58, 80, 107, 0.06);
  display: flex;
  flex-direction: column;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAFAFA;
  box-shadow: 0 2px 12px rgba(58,80,107,.09);
  border-radius: 9px;
  margin-bottom: 20px;
  position: relative;
  padding: 28px 26px;
  min-width: 240px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(58,80,107,0.16);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F8Fa;
  border-left: 5px solid #488AAF;
  border-radius: 12px;
  box-shadow: 0 1.5px 10px rgba(58,80,107,0.05);
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #273043;
  max-width: 520px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ICONS IN ULs */
.content-wrapper ul li img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  filter: grayscale(40%) saturate(1.3);
}

/* 5. HEADER, NAVIGATION, FOOTER */
header {
  background: #FFFFFF;
  box-shadow: 0 3px 18px rgba(58,80,107,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
header nav a {
  color: #3A506B;
  font-weight: 500;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.15s;
}
header nav a.cta-primary {
  background: #488AAF;
  color: #fff;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  margin-left: auto;
  padding: 10px 24px;
  box-shadow: 0 1px 7px rgba(72,138,175,0.08);
  letter-spacing: 0.6px;
  transition: background 0.15s, box-shadow 0.18s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #3A506B;
  color: #fff;
  box-shadow: 0 3px 15px rgba(58, 80, 107, 0.12);
}
header nav a:hover:not(.cta-primary),
header nav a:focus:not(.cta-primary) {
  background: #E6F0F7;
  color: #1C5980;
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 12px;
  vertical-align: bottom;
}

footer {
  background: #F5F5F5;
  border-top: 1.5px solid #e0e6ec;
  margin-top: 40px;
  padding: 32px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
footer nav a {
  color: #3A506B;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #488AAF;
}
footer p {
  color: #616C7D;
  font-size: 0.96rem;
  margin-top: 4px;
}

/* 6. BUTTONS & INTERACTIVE ELEMENTS */
.cta-primary, .button, button, input[type="submit"] {
  background: #488AAF;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 11px 28px;
  cursor: pointer;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 1px 7px rgba(72,138,175,0.08);
  transition: background 0.17s, box-shadow 0.19s, color 0.12s;
}
.cta-primary:hover, .button:hover, button:hover, input[type="submit"]:hover,
.cta-primary:focus, .button:focus, button:focus, input[type="submit"]:focus {
  background: #3A506B;
  color: #fff;
  box-shadow: 0 4px 18px rgba(58,80,107,0.10);
  outline: none;
}
.secondary-btn {
  background: #fff;
  border: 1.5px solid #488AAF;
  color: #488AAF;
  font-weight: 500;
  transition: background 0.15s, color 0.13s, border-color 0.13s;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #E6F0F7;
  color: #3A506B;
  border-color: #3A506B;
}

/* FORM ELEMENTS (minimal for scandinavian) */
input, textarea, select {
  border: 1.5px solid #D3DAE6;
  border-radius: 8px;
  background: #F9F9F9;
  padding: 10px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  margin-bottom: 12px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #488AAF;
}
label {
  font-size: 1rem;
  margin-bottom: 5px;
  display: block;
}

/* 7. LISTS DESIGN (Scandi dot or custom) */
ul li::marker, ol li::marker {
  color: #488AAF;
  font-size: 1.16em;
}
ol {
  list-style: decimal inside;
  padding-left: 20px;
}

/* 8. RESPONSIVE: MOBILE FIRST */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  header nav, footer .container {
    max-width: 99vw;
  }
  .testimonial-card {
    max-width: 600px;
  }
}
@media (max-width: 900px) {
  section, .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  section {
    padding: 36px 10px;
  }
}
@media (max-width: 768px) {
  .container, .content-wrapper, .text-section, footer .container {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
  section {
    padding: 24px 0 36px 0;
    margin-bottom: 36px;
    border-radius: 0;
    box-shadow: none;
  }
  .testimonial-card {
    max-width: 100vw;
    border-radius: 0 16px 16px 0;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header nav {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1rem;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 0.98rem; }
  section {
    padding: 14px 0 20px 0;
  }
}

/* 9. HAMBURGER MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #3A506B;
  cursor: pointer;
  z-index: 180;
  margin-left: auto;
  padding: 8px;
  margin-right: 5px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E6F0F7;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 350px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -2px 0 24px rgba(58,80,107,0.14);
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.61,.07,.47,1.11);
  padding-top: 40px;
  padding-bottom: 28px;
  padding-left: 24px;
  padding-right: 16px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #3A506B;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 8px;
  padding: 6px 10px 2px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E6F0F7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}
.mobile-nav a {
  color: #3A506B;
  display: block;
  padding: 12px 8px;
  border-radius: 9px;
  font-size: 1.13rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F0F7;
  color: #488AAF;
}
@media (max-width: 900px) {
  /* Hide desktop nav, show burger */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* 10. COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  color: #273043;
  border-top: 1.5px solid #E0E6EC;
  box-shadow: 0 -6px 38px rgba(58,80,107,0.08);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 16px 16px 24px;
  z-index: 1900;
  flex-wrap: wrap;
  font-size: 1rem;
  max-width: 100vw;
  animation: cookie-in 0.5s cubic-bezier(.59,.38,.53,1.21);
}
@keyframes cookie-in {
  from { transform: translateY(100%); opacity: 0.5; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 240px;
  min-width: 160px;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .accept-btn {
  background: #488AAF;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto';
  cursor: pointer;
  font-weight: 500;
  transition: background 0.16s;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: #3A506B;
}
.cookie-banner .reject-btn {
  background: #fff;
  border: 1.5px solid #488AAF;
  color: #488AAF;
  border-radius: 18px;
  padding: 7.5px 18px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto';
  cursor: pointer;
  font-weight: 500;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #E6F0F7;
  color: #3A506B;
}
.cookie-banner .settings-btn {
  background: #fff;
  border: 1.5px solid #D3DAE6;
  color: #488AAF;
  border-radius: 18px;
  padding: 7.5px 18px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.14s, color 0.13s, border-color 0.13s;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #E6F0F7;
  color: #3A506B;
  border-color: #3A506B;
}
@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 14px 10px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2500;
  background: rgba(30,40,52,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-in 0.33s cubic-bezier(.55,.05,.62,.9);
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FFFFFF;
  padding: 34px 26px 26px 26px;
  border-radius: 18px;
  box-shadow: 0 4px 38px rgba(58,80,107,0.15);
  min-width: 330px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__title {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3A506B;
  margin-bottom: 7px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal__category label {
  margin-bottom: 0;
  font-size: 1.1rem;
}
.cookie-modal .category-toggle {
  accent-color: #488AAF;
  width: 18px; height: 18px;
}
.cookie-modal__buttons {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #3A506B;
  position: absolute;
  top: 14px;
  right: 20px;
  cursor: pointer;
  border-radius: 7px;
  padding: 1px 4px;
  transition: background 0.12s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #E6F0F7;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 90vw; padding: 17vw 4vw 4vw 4vw;
  }
}

/* 11. MICRO-INTERACTIONS & HIERARCHY */
.card, .cta-primary, button, .testimonial-card {
  transition: box-shadow 0.18s, background 0.15s, color 0.13s;
}
.card:hover {
  box-shadow: 0 5px 28px rgba(72,138,175,.11);
  background: #F6F9FB;
}
.testimonial-card {
  transition: box-shadow 0.14s, border-color 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 18px rgba(72,138,175,.13);
  border-left-color: #3A506B;
}

/* 12. VISUAL HIERARCHY & SCANDINAVIAN STYLISTIC DETAILS */
section {
  box-shadow: 0 1.5px 12px rgba(58, 80, 107, 0.06);
  border-radius: 14px;
}
ul, ol {
  margin-bottom: 16px;
}
.card, .testimonial-card {
  border-radius: 12px;
}

/* 13. COLOR CONTRAST: TESTIMONIALS */
.testimonial-card {
  background: #F5F8FA;
  color: #1B2430;
}
.testimonial-card strong {
  color: #3A506B;
  font-size: 1.035rem;
}
.testimonial-card p {
  color: #273043;
  font-size: 1.13rem;
}

/* 14. MISCELLANEOUS INTERACTION/ANIMATION CLASSES */
.fade-in {
  animation: fadein 0.45s forwards;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 15. ENSURE NO OVERLAP AND SAFE SPACING (FOR ALL FLEX WRAP CONTAINERS) */
.card-container > *, .content-grid > *, .text-image-section > *, .feature-item > *, .testimonial-card > * {
  margin-bottom: 0 !important;
}

/* END OF STYLE.CSS */
