/* =========================================================
   RESET & BASE
   ========================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #f0eee7;
  color: #21313e;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
a {
  color: #21313e;
  text-decoration: none;
  transition: color 0.15s;
}
a:focus {
  outline: 2px solid #89a2b4;
  outline-offset: 2px;
}
strong, b {
  font-weight: 600;
}
ul, ol {
  margin: 0 0 16px 18px;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 38px;
    padding: 28px 10px;
  }
}
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #21313e;
}

/* =========================================================
   TYPOGRAPHY - Corporate modern hierarchy
   ========================================================= */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  color: #21313e;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.25rem;
  color: #46586a;
  font-weight: 400;
  margin-bottom: 24px;
}
p {
  color: #21313e;
  font-size: 1rem;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .subheadline { font-size: 1.05rem; }
}

/* ========================= BUTTONS & CALLS TO ACTION ======================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #21313e;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 28px;
  border: none;
  padding: 12px 30px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 12px 0 rgba(33,49,62,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #89a2b4;
  color: #21313e;
  box-shadow: 0 4px 24px 0 rgba(33,49,62,0.13);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* ========================================================
   MAIN NAVIGATION
   ======================================================== */
header {
  background: #fff;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 60;
  width: 100%;
  box-shadow: 0 2px 16px rgba(33,49,62,0.04);
}
.main-nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-nav img {
  height: 34px;
  margin-right: 18px;
}
.main-nav a {
  color: #21313e;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 18px;
  transition: background 0.19s, color 0.18s;
  position: relative;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background: #ebedf0;
  color: #21313e;
}
.main-nav .cta-btn {
  margin-left: 10px;
  color: white !important;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    font-size: 0.95rem;
  }
  .main-nav .cta-btn {
    padding: 10px 18px;
    font-size: 0.98rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* ========================================================
   BURGER MENU (mobile)
   ======================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 26px;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  color: #21313e;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(33,49,62,0.08);
  border: none;
  z-index: 130;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, box-shadow 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #89a2b4;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,49,62, 0.97);
  width: 100vw;
  height: 100vh;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.82,.07,.61,.98);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  z-index: 135;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #21313e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  margin-top: 90px;
  width: 100%;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  background: none;
  padding: 12px 4px;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 0;
  transition: background 0.15s, color 0.18s;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #89a2b4;
  color: #1b2732;
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none;
  }
}

/* Overlay: prevent page scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
section:first-of-type {
  background: #ebedf0;
}

/* =========================================================
   FEATURES, CARDS & FLEX LAYOUTS
   ========================================================= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(33,49,62,0.07);
  flex: 1 1 210px;
  min-width: 230px;
  max-width: 265px;
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 36px;
  margin-bottom: 6px;
}
.feature-item h3 {
  margin-bottom: 2px;
  color: #21313e;
  font-size: 1.11rem;
  font-weight: 600;
}
.feature-item p:last-child {
  color: #89a2b4;
  font-weight: 600;
  font-size: 1rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 26px 0 rgba(33,49,62,0.18);
  transform: translateY(-3px) scale(1.025);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 16px 0;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px 0 rgba(33,49,62,0.07);
  padding: 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.14s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(33,49,62,0.14);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin: 24px 0 0 0;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .features-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 20px 12px;
  }
}

/* =========================================================
   TESTIMONIAL CARDS
   ========================================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-left: 6px solid #21313e;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(33,49,62,0.08);
  color: #21313e;
  position: relative;
  transition: box-shadow 0.17s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(33,49,62,0.15);
  border-left-color: #89a2b4;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #21313e;
  margin-bottom: 4px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #46586a;
  font-style: normal;
}
@media (max-width: 540px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #21313e;
  color: #fff;
  padding: 0;
  position: relative;
  width: 100%;
  margin-top: 40px;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 15px 22px 15px;
}
.footer-wrapper > a img {
  height: 35px;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 0 0 14px 0;
}
.footer-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.87;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.15s, color 0.16s, opacity 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  background: #89a2b4;
  color: #21313e;
  opacity: 1;
}
.disclaimer {
  margin-top: 12px;
  color: #b9c5cf;
  font-size: 0.96rem;
}
@media (max-width: 600px) {
  .footer-wrapper {
    padding: 30px 4px 15px 4px;
  }
  .footer-links {
    gap: 12px;
    font-size: 0.94rem;
    text-align: center;
  }
}

/* =========================================================
   COOKIE CONSENT BANNER (fixed bottom)
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #21313e;
  color: #fff;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 200;
  box-shadow: 0 -2px 16px 0 rgba(33,49,62,0.13);
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  transition: opacity 0.33s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
  font-size: 0.97rem;
  flex: 1 1 250px;
  max-width: 540px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 23px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #89a2b4;
  color: #21313e;
  transition: background 0.17s, color 0.13s;
  cursor: pointer;
}
.cookie-btn.deny {
  background: #fff;
  color: #21313e;
  border: 1px solid #e0e4ea;
}
.cookie-btn.accept {
  background: #21313e;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #46586a;
  color: #fff;
}
.cookie-settings-btn {
  background: #fff;
  color: #21313e;
  border: 1px solid #dcdedf;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.96rem;
    padding: 18px 10px 14px 10px;
  }
  .cookie-banner-buttons {
    width: 100%;
    gap: 10px;
  }
}

/* ===== Cookie Banner Preferences Modal ===== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,49,62,0.88);
  transition: opacity 0.28s;
}
.cookie-modal-content {
  background: #fff;
  color: #21313e;
  border-radius: 12px;
  max-width: 375px;
  width: 93vw;
  box-shadow: 0 7px 48px rgba(33,49,62,0.22);
  padding: 38px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #21313e;
  margin-bottom: 18px;
}
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #21313e;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #21313e;
}
.cookie-category .locked {
  color: #46586a;
  font-size: 0.98rem;
  margin-left: 4px;
}
.cookie-modal-content .cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 17px;
  border: none;
  background: none;
  font-size: 1.6rem;
  color: #21313e;
  border-radius: 50%;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ebedf0;
  color: #21313e;
}
@media (max-width: 510px) {
  .cookie-modal-content {
    padding: 19px 8px 22px 8px;
  }
  .cookie-modal-content h3 {
    font-size: 1.065rem;
    margin-bottom: 11px;
  }
}

/* =========================================================
   MISCELLANEOUS
   ========================================================= */
::-webkit-input-placeholder { color: #b9c5cf; }
::-moz-placeholder { color: #b9c5cf; }
:-ms-input-placeholder { color: #b9c5cf; }
::placeholder { color: #b9c5cf; }

/* Lists (reset spacing) */
ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}

/* Links in text-section */
.text-section a {
  color: #21313e;
  text-decoration: underline;
  transition: color 0.17s;
}
.text-section a:hover, .text-section a:focus {
  color: #89a2b4;
}

/* Emphasis */
em {
  color: #46586a;
}

/* Quote styling */
blockquote {
  border-left: 3px solid #89a2b4;
  background: #ebedf0;
  color: #21313e;
  padding: 11px 18px;
  margin: 18px 0;
  border-radius: 11px;
}

/* Spacing for cards/sections */
.card, .feature-item, .testimonial-card, section {
  margin-bottom: 20px;
}

/* Remove top margin from first content-wrapper h1 */
.content-wrapper h1:first-child {
  margin-top: 0;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  section {
    padding: 20px 5px;
  }
}

/* =========================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================= */
.cta-btn, .feature-item, .card, .testimonial-card, .cookie-btn, .cookie-settings-btn {
  transition: box-shadow 0.17s, background 0.18s, color 0.14s, transform 0.15s;
}

/* =========================================================
   MARGIN & GAP RULES
   ========================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Prevent overlap & ensure spacing */
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px;
}

/* Hide visually if necessary */
.hidden { display: none !important; }

/* ENSURE ALL FLEX LAYOUTS (NO grid, columns, absolute for content) */
/* Confirmed throughout selectors above. */
