/* CSS RESET & BASE TYPOGRAPHY – Scandinavian Clean */
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;
}
*, *::before, *::after { box-sizing: border-box; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #F6EFE7;
  color: #49536A;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Import Fonts - Use font-face in production for performance */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #49536A;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #49536A;
  font-size: 1rem;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
}
strong {font-weight: 700;}
a {
  color: #49536A;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #9b9582;
  text-decoration: none;
}

/* BASE CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
/* Scandinavian spacious sections & gaps */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEXBOX LAYOUTS */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(73,83,106,0.05);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(73,83,106,0.09);
}
.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;
  background: #fff;
  color: #49536A;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 4px 24px rgba(73,83,106,0.08);
  border-radius: 14px;
  margin-bottom: 24px;
  max-width: 600px;
  font-size: 1rem;
  position: relative;
  min-width: 220px;
}
.testimonial-card p { font-style: italic; margin-bottom: 10px; }
.testimonial-card div { font-size: 0.96rem; color: #b7b5a7; font-family: 'Lato', sans-serif; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: #F6EFE7;
  padding: 52px 0 40px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #49536A;
  font-size: 2.5rem;
}

/* FEATURE GRID FOR SERVICES/FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  padding: 28px 20px 22px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(73,83,106,0.07);
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(73,83,106,0.14);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  width: 40px;
  height: auto;
  margin-bottom: 9px;
  display: block;
  opacity: 0.8;
}
.feature-grid h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
  font-family: 'Playfair Display', serif;
}
.feature-grid span {
  font-family: 'Lato', Arial, sans-serif;
  color: #b7b5a7;
  font-size: 1rem;
  margin-top: 8px;
}

/* BUTTONS – Primary, Link, CTA */
.btn-primary,
a.btn-primary, .feature-grid a.btn-primary {
  background: #49536A;
  color: #fff;
  padding: 14px 32px;
  font-size: 1.08rem;
  border-radius: 8px;
  border: none;
  font-family: 'Lato', Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(73,83,106,0.07);
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #36405c;
  box-shadow: 0 8px 24px rgba(73,83,106,0.13);
  transform: translateY(-2px) scale(1.025);
}
.btn-link,
a.btn-link {
  color: #49536A;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  transition: color 0.16s;
}
.btn-link:hover, .btn-link:focus {
  color: #9b9582;
  text-decoration: none;
}

/* MAIN NAV (DESKTOP) */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(73,83,106,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 12px 20px;
  justify-content: space-between;
}
header nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header nav.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #49536A;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.17s, color 0.16s;
}
header nav.main-nav a.cta {
  background: #49536A;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(73,83,106,0.07);
}
header nav.main-nav a:hover, header nav.main-nav a:focus {
  background: #F6EFE7;
  color: #36405c;
}
header nav.main-nav a.cta:hover {
  background: #36405c;
  color: #fff;
}

header img {
  height: 42px;
  width: auto;
  max-width: 170px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #F6EFE7;
  border: none;
  padding: 10px 15px;
  font-size: 2rem;
  line-height: 1;
  border-radius: 8px;
  color: #49536A;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.13s, color 0.13s;
  z-index: 110;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #b7b5a7;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(246,239,231,0.99);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.25,0.8,0.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* align close btn at right */
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #49536A;
  margin: 24px 32px 8px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #36405c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  padding: 32px 44px;
  font-size: 1.18rem;
}
.mobile-nav a {
  color: #49536A;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  padding: 10px 0;
  border-bottom: 1px solid #ece7de;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #b7b5a7;
  color: #fff;
}

/* CTA BANNER */
.cta-banner {
  background: #49536A;
  color: #fff;
  border-radius: 18px;
  margin: 64px auto 0 auto;
  padding: 44px 0 36px 0;
  box-shadow: 0 8px 40px rgba(73,83,106,0.13);
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}
.cta-banner .btn-primary {
  margin-top: 14px;
}

/* GENERIC FLEX CARDS */
.info-box {
  background: #fff;
  border: 1px solid #B7B5A7;
  border-radius: 12px;
  padding: 30px 22px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(183,181,167,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #ece7de;
  box-shadow: 0 -1px 13px rgba(73,83,106,0.04);
  padding: 26px 0 20px 0;
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-flex nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-flex nav a {
  color: #49536A;
  font-size: 1rem;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.17s;
}
.footer-flex nav a:hover, .footer-flex nav a:focus {
  color: #b7b5a7;
}
.footer-contact {
  color: #868472;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer img {
  height: 32px;
  width: auto;
  margin-bottom: 14px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #49536A;
  border-top: 2px solid #ece7de;
  box-shadow: 0 -6px 26px rgba(73,83,106,0.08);
  width: 100vw;
  padding: 26px 16px 20px 16px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1), opacity 0.19s;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 4px;
  transition: background 0.13s, color 0.13s;
  font-weight: 600;
}
.cookie-banner .accept-all {
  background: #49536A;
  color: #fff;
}
.cookie-banner .reject-all {
  background: #f6efe7;
  color: #49536A;
  border: 1.3px solid #b7b5a7;
}
.cookie-banner .cookie-settings {
  background: #B7B5A7;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.87;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(73,83,106,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(73,83,106,0.22);
  padding: 36px 24px 28px 24px;
  min-width: 320px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.33rem;
  margin-bottom: 0;
  font-family: 'Playfair Display', serif;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #b7b5a7;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #49536A;
}
.cookie-modal .cookie-category {
  background: #f6efe7;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-modal .category-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #49536A;
  margin-right: 3px;
}
.cookie-modal .category-essential {
  opacity: 0.7;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  background: #49536A;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.13s;
}
.cookie-modal button.revert {
  background: #b7b5a7;
  color: #fff;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #36405c;
}

/* ARTICLE CARDS - BLOG */
.content-wrapper article {
  background: #fff;
  box-shadow: 0 4px 18px rgba(73,83,106,0.07);
  border-radius: 14px;
  padding: 26px 22px 21px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.content-wrapper article:hover {
  box-shadow: 0 10px 30px rgba(73,83,106,0.15);
}
.content-wrapper article h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
}
.content-wrapper article a.btn-link {
  margin-top: 4px;
}

/* LISTS */
ul, ol {
  margin-bottom: 16px;
  color: #49536A;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.6;
}
li {
  margin-bottom: 7px;
}
ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* SPACING FOR DIRECT CONTAINERS */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
section:last-child {
  margin-bottom: 0;
}

/* CUSTOM CLASSES */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}

@media (max-width: 900px) {
  .feature-grid,
  .footer-flex {
    flex-direction: column;
    gap: 24px;
  }
  .footer-flex nav,
  .footer-contact {
    align-items: flex-start;
  }
}

/* RESPONSIVE STYLES – MOBILE FIRST */
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
  }
  h1 { font-size: 1.66rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.07rem; }
  .hero {
    padding: 32px 0 20px 0;
  }
  .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-flex { flex-direction: column; gap: 22px; }
  .cta-banner {
    border-radius: 10px;
    margin: 36px 0 0 0;
    padding: 24px 0 22px 0;
  }
  section {
    padding: 28px 0 0 0;
    margin-bottom: 36px;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch !important;
  }
  .testimonial-card {
    padding: 17px 9px 15px 11px;
    max-width: 100%;
  }
  header .container {
    gap: 8px;
    padding: 9px 8px;
    flex-wrap: wrap;
  }
  header nav.main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}
/* Ensure mobile menu covers everything */
@media (max-width: 540px) {
  .mobile-nav {
    padding: 26px 12px;
    font-size: 1rem;
    gap: 20px;
  }
  .mobile-menu-close { margin: 16px 16px 0 0; font-size: 1.5rem; }
  .cookie-modal { min-width: 0; padding: 14px 7px 16px 7px; }
}

/* Micro-interactions for buttons and nav */
button, .btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.15s, color 0.14s, box-shadow 0.17s, transform 0.11s;
  outline: none;
}
button:focus-visible, .btn-primary:focus-visible {
  box-shadow: 0 0 0 2px #b7b5a7;
}

/* Hide scroll on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Misc */
::-webkit-input-placeholder { color: #b7b5a7; opacity: 1; }
::-moz-placeholder { color: #b7b5a7; opacity: 1; }
:-ms-input-placeholder { color: #b7b5a7; opacity: 1; }
::placeholder { color: #b7b5a7; opacity: 1; }

/* Remove number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Accessibility: Ensure focus ring for keyboard nav */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid #b7b5a7;
  outline-offset: 2px;
}

/* End of CSS */
