/* ---- CSS RESET AND 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,
main, 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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F3F6F9;
  color: #23303B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}

/* ---- BRAND FONTS ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #23303B;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 600;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23303B;
  font-size: 1rem;
}
p {
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
}

/* ---- GENERAL CONTAINER ---- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER/NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,48,59,0.07);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #23303B;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #8AB4C6;
}
.cta-btn {
  padding: 12px 30px;
  background: #8AB4C6;
  color: #23303B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 27px;
  border: none;
  box-shadow: 0 2px 8px rgba(35,48,59,0.05);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #23303B;
  color: #fff;
  box-shadow: 0 4px 18px rgba(35,48,59,0.10);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #23303B;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
  z-index: 300;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8AB4C6;
  border-radius: 4px;
}

/* ---- MOBILE MENU (FLEXBOX ONLY) ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,246,249,0.97);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.32,.73,.36,1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  border: none;
  background: #fff;
  color: #23303B;
  font-size: 2rem;
  margin: 18px 0 24px 24px;
  align-self: flex-start;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1.1;
  box-shadow: 0 1px 4px rgba(35,48,59,0.08);
  transition: background 0.25s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #8AB4C6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  color: #23303B;
  padding: 16px 0;
  border-bottom: 1px solid #E3E8EE;
  width: 90%;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8AB4C6;
  background: #E4EDF3;
  border-radius: 6px;
}

/* ---- HERO SECTION ---- */
.hero {
  background: #E4EDF3 url('../assets/hero-bg.svg') repeat top left;
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 40px 0 32px 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}
.hero h1 {
  color: #23303B;
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.hero p {
  font-size: 1.125rem;
  color: #425765;
  margin-bottom: 6px;
}

/* ---- PRIMARY SECTION SPACING (MANDATORY) ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(35,48,59,0.06);
}

/* ---- FLEX LAYOUT CLASSES (MANDATORY) ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F9FAFB;
  border-radius: 15px;
  box-shadow: 0 2px 7px rgba(35,48,59,0.06);
  padding: 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.24s;
  min-width: 0;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(35,48,59,0.13);
}
.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;
  background: #F3F6F9;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(35,48,59,0.07);
  margin-bottom: 20px;
  color: #23303B;
  font-size: 1.025rem;
  font-style: italic;
  position: relative;
  transition: box-shadow 0.23s, background 0.23s;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #23303B;
  font-style: normal;
  margin-left: 10px;
  font-weight: 600;
}
.testimonial-card:hover {
  background: #E4EDF3;
  box-shadow: 0 6px 16px rgba(35,48,59,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  background: #F9FAFB;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(35,48,59,0.06);
  padding: 22px 18px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, background 0.22s;
  border: 1px solid #E3E8EE;
}
.feature-grid > div:hover {
  background: #E4EDF3;
  box-shadow: 0 4px 16px rgba(35,48,59,0.14);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 6px;
}

/* ---- CONTENT WRAPPER ---- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 10px;
}
.text-section ul,
.text-section ol {
  margin: 12px 0 0 20px;
  padding-left: 18px;
  list-style: disc inside;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ---- CUSTOM LISTS ---- */
ul, ol {
  margin-bottom: 14px;
}

/* ---- BUTTONS ---- */
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 24px;
  background: #8AB4C6;
  color: #23303B;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 28px;
  cursor: pointer;
  margin: 0 6px 0 0;
  transition: background 0.19s, color 0.19s, box-shadow 0.2s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #23303B;
  color: #fff;
}

/* ---- CARDS ---- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

/* ---- FOOTER ---- */
footer {
  background: #F3F6F9;
  padding: 42px 0 30px 0;
  border-top: 1px solid #E3E8EE;
}
footer .container {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #425765;
  font-size: 0.98rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #8AB4C6;
}
footer img {
  width: 56px;
  height: auto;
}
footer p {
  flex: 1 1 100%;
  margin-top: 14px;
  color: #23303B;
  font-size: 1rem;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -3px 22px rgba(35,48,59,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 20px 22px 32px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(.32,.55,.36,1.04), opacity 0.21s;
}
.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__message {
  font-size: 1rem;
  color: #23303B;
  line-height: 1.55;
  flex: 2 1 350px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: 1 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-banner__button {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  background: #8AB4C6;
  color: #23303B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #23303B;
  color: #fff;
}
.cookie-banner__settings {
  background: transparent;
  color: #23303B;
  border: 2px solid #8AB4C6;
  padding: 10px 24px;
}
.cookie-banner__settings:hover, .cookie-banner__settings:focus {
  background: #E4EDF3;
  color: #23303B;
}

/* ---- COOKIE MODAL ---- */
.cookie-modal {
  position: fixed;
  top:50%;
  left:50%;
  transform: translate(-50%,-60%) scale(0.95);
  z-index: 20001;
  min-width: 340px;
  max-width: 94vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(35,48,59,0.16);
  padding: 32px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.3s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-modal__header h2 {
  font-size: 1.35rem;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #23303B;
  cursor: pointer;
  margin-left: 18px;
  border-radius: 4px;
  transition: background 0.2s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #E4EDF3;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #8AB4C6;
  margin: 0 0 0 8px;
}
.cookie-category--essential label {
  font-weight: bold;
  color: #23303B;
}
.cookie-category--essential input[type="checkbox"] {
  accent-color: #23303B;
}
.cookie-toggle .cookie-category-desc {
  color: #425765;
  font-size: 0.98rem;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---- ACCESSIBILITY OUTLINES ---- */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #8AB4C6;
  outline-offset: 1px;
}

/* ---- RESPONSIVE STYLES (MOBILE FIRST) ---- */
@media (max-width: 1100px) {
  .feature-grid > div {
    flex: 1 1 240px;
    max-width: 50%;
  }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid > div {
    flex: 1 1 97vw;
    max-width: 97vw;
  }
  .container { padding: 0 12px; }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 10px 10px 10px;
    gap: 10px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .section {
    padding: 36px 8px;
    margin-bottom: 40px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: unset;
    max-width: 100vw;
  }
  .content-wrapper { gap: 22px; }
  .testimonial-card {
    flex-direction: column;
    font-size: 1rem;
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 8px 14px 14px;
  }
  .cookie-modal {
    padding: 20px 8px;
    min-width: 0;
    max-width: 99vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1rem; }
  .hero { min-height: 180px; padding: 18px 0; }
  .cta-btn, button, .button {
    padding: 12px 12vw;
    font-size: 0.98rem;
  }
  .testimonial-card, .card, .section {
    padding: 18px 6px;
  }
}

/* ---- MICRO-INTERACTIONS ---- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.24s, background 0.24s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* ---- SPECIAL TYPOGRAPHY & VISUAL HIERARCHY ---- */
h1, .hero h1 {
  letter-spacing: 0.3px;
}
h2, .section h2 {
  color: #8AB4C6;
  letter-spacing: 0.2px;
}
.section h2 {
  margin-bottom: 24px;
}
.feature-grid h3 {
  color: #23303B;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ---- LINKS ---- */
a {
  color: #23303B;
  transition: color 0.17s, border-bottom 0.17s;
}
a:hover, a:focus {
  color: #8AB4C6;
  border-bottom: 1px solid #8AB4C6;
}

/* ---- FOR FORMS (future proofing) ---- */
input, textarea, select {
  border: 1px solid #E3E8EE;
  border-radius: 12px;
  background: #F9FAFB;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border 0.2s, box-shadow 0.2s;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #8AB4C6;
  box-shadow: 0 2px 10px rgba(138,180,198,0.09);
  background: #fff;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23303B;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* ---- Z-INDEX LAYERS ---- */
.mobile-menu { z-index: 2000; }
.cookie-modal { z-index: 20001; }
.cookie-banner { z-index: 10001; }

/* ---- SHADOWS AND RADIUS ---- */
.card, .feature-grid > div, .testimonial-card, .section, .cookie-modal, .cookie-banner {
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(35,48,59,0.06);
}

/* ---- UTILITY CLASSES ---- */
.d-none { display: none !important; }

/* ---- END ---- */
