/* --- CSS RESET & 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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  min-width: 320px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22223b;
  background: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* --- CSS VARIABLES: Soft Pastel Palette + Brand --- */
:root {
  --brand-primary: #1C2233;
  --brand-secondary: #D5A458;
  --brand-accent: #FFFFFF;

  /* Soft Pastel Palette */
  --pastel-blue: #b5d8f8;
  --pastel-lavender: #e4e6fa;
  --pastel-peach: #ffe5d0;
  --pastel-pink: #ffe4ec;
  --pastel-mint: #e1f9f3;
  --pastel-gradient1: #f6f6fb;
  --pastel-gradient2: #fdfaf5;
  --pastel-card-bg: #fcf1ed;
  --pastel-shadow: rgba(122, 137, 169, 0.07);
  --pastel-cta: #F5CCA2;
  --pastel-cta-hover: #e9b574;

  --header-bg: #f8fafc;
  --footer-bg: #f4f1f6;
  --nav-link: #585978;
  --nav-link-active: var(--brand-primary);
  --border: #ecefff;

  --text-dark: #22223b;
  --text-mid: #44405e;
  --text-light: #8586a9;

  --shadow-card: 0 2px 24px var(--pastel-shadow);
  --radius-card: 16px;
  --radius-btn: 28px;
  --transition: 0.25s cubic-bezier(.46,.03,.52,.96);

  --mobile-nav-bg: #fff;
  --mobile-nav-overlay: rgba(30,36,66,0.36);
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-cookie: 500;
}

/* TYPOGRAPHY SCALE & HEADINGS */
h1, .h1 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.33rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 12px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.subheadline {
  font-family: 'Montserrat';
  color: var(--brand-secondary);
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 18px;
}
strong {
  color: var(--brand-primary);
  font-weight: 600;
}

/* --- LAYOUT CONTAINER: FLEXBOX --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(120deg, var(--pastel-gradient1) 60%, var(--pastel-gradient2));
  border-radius: 32px;
  box-shadow: 0 2px 24px var(--pastel-shadow);
}
@media (max-width: 900px) {
  .section {
    padding: 30px 10px;
    border-radius: 20px;
    margin-bottom: 40px;
  }
}

/* CARD SYSTEM & FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--pastel-card-bg);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
  flex: 1 1 280px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(214,164,88,0.10);
  transform: translateY(-4px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* FEATURES GRID & METRICS */
.features-grid, .metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 22px;
}
.features-grid > div, .metrics-grid > div {
  background: #fff9f5;
  border-radius: 16px;
  box-shadow: 0 1px 8px var(--pastel-shadow);
  padding: 22px 18px 18px 18px;
  min-width: 220px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover, .metrics-grid > div:hover {
  box-shadow: 0 8px 32px rgba(181,216,248,0.13);
  transform: scale(1.028);
}
.features-grid img, .metrics-grid img {
  height: 32px;
  width: 32px;
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  .features-grid, .metrics-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f2e8fd;
  border-radius: 18px;
  margin-bottom: 20px;
  color: var(--brand-primary);
  box-shadow: 0 2px 16px var(--pastel-shadow);
  font-style: italic;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  min-width: 220px;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card strong {
  display: inline-block;
  margin-left: 16px;
  color: var(--brand-secondary);
  font-style: normal;
  font-size: 1.02rem;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: 0; /* Do not add margin at end of testimonial */
}
.testimonial-card:hover {
  background: #efe3fb;
  box-shadow: 0 4px 24px #dac5ed33;
}

/* BUTTONS */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--pastel-cta) 80%, #ffe5d0 100%);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 36px;
  cursor: pointer;
  box-shadow: 0 3px 18px var(--pastel-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  outline: none;
  margin-top: 18px;
  margin-bottom: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--pastel-cta-hover) 80%, #ffe5d0 100%);
  color: var(--brand-secondary);
  box-shadow: 0 6px 24px #D5A45822;
  transform: translateY(-2px) scale(1.016);
}
.button {
  padding: 11px 32px;
  font-family: 'Montserrat';
  font-weight: 500;
  border-radius: var(--radius-btn);
  background: var(--pastel-blue);
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.button:hover, .button:focus {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
}

/* NAVIGATION */
header {
  background: var(--header-bg);
  box-shadow: 0 2px 18px #bbb4e440;
  z-index: var(--z-header);
  position: relative;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 22px 0 14px;
}
.main-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--nav-link);
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a.active, .main-nav a[aria-current="page"], .main-nav .cta-btn {
  color: var(--nav-link-active);
  background: #ffd5e2;
}
.main-nav a:hover:not(.cta-btn), .main-nav a:focus:not(.cta-btn) {
  color: var(--brand-primary);
  background: #e4e6fa;
}
.main-nav .cta-btn {
  background: linear-gradient(90deg, var(--pastel-cta), #ffe5d0 100%);
  color: var(--brand-primary);
  font-weight: 700;
  padding: 10px 24px;
  margin-left: 18px;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
    padding: 14px 0 8px;
  }
  .main-nav .cta-btn {
    margin-left: 8px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ----- MOBILE MENU (SLIDE IN) ----- */
.mobile-menu-toggle {
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: var(--z-header);
  font-size: 2rem;
  background: none;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 14px 6px 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e4e6fa;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mobile-nav-overlay);
  z-index: var(--z-mobile-nav);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, backdrop-filter 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu > nav {
  background: var(--mobile-nav-bg);
  box-shadow: 0 0 64px #b5d8f899;
  min-width: 72vw;
  max-width: 96vw;
  height: 100%;
  padding: 38px 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.5,.13,.3,1.05);
}
.mobile-menu.open > nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 36px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  z-index: 11;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--nav-link-active);
  background: none;
  padding: 12px 4px;
  width: 100%;
  border-radius: 8px;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a.active, .mobile-nav a:focus {
  background: #f4f1f6;
  color: var(--brand-secondary);
}

/* ----- FOOTER ----- */
footer {
  background: var(--footer-bg);
  color: var(--text-mid);
  padding: 0 0 18px 0;
  border-top: 1px solid var(--border);
}
.footer-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.99rem;
  font-family: 'Montserrat';
  color: var(--brand-primary);
}
.footer-nav a {
  color: var(--brand-primary);
  padding: 2px 2px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #e4e6fa;
  color: var(--brand-secondary);
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  justify-content: center;
  align-items: center;
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
}
.contact-info img {
  height: 18px;
  width: 18px;
  display: inline-block;
}
.branding-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.branding-footer img {
  height: 26px;
  width: auto;
  margin: 0 auto;
}
.branding-footer small {
  color: var(--text-light);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

/* ---- TABLES ---- */
table {
  width: 100%;
  border-radius: 16px;
  background: var(--pastel-card-bg);
  border-collapse: collapse;
  box-shadow: 0 2px 16px var(--pastel-shadow);
  margin-top: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
thead {
  background: #f5ebfd;
  color: var(--brand-primary);
}
th, td {
  text-align: left;
  padding: 13px 16px;
  font-size: 1rem;
  border-bottom: 1px solid #ede6fa;
}
th {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.04rem;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: #fbf6ff;
  transition: background 0.15s;
}

/* ---- NEWS LIST ---- */
.news-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.news-list article {
  background: #f6f6fb;
  border-radius: 16px;
  box-shadow: 0 1px 12px #b5d8f82a;
  padding: 20px 16px 14px 18px;
  min-width: 210px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-list article:hover {
  box-shadow: 0 6px 32px #b5d8f877;
  transform: scale(1.022);
}
.news-list h3 {
  font-size: 1.11rem;
}
.news-list span {
  color: var(--brand-secondary);
  font-weight: 500;
  font-size: 0.98rem;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .news-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* Formatted lists and ul/ol */
ul, ol {
  margin-left: 18px;
  margin-bottom: 16px;
}
ul li, ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
ul li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--pastel-blue);
  border-radius: 50%;
  display: inline-block;
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: var(--z-cookie);
  background: linear-gradient(90deg,#fff8fe,#e3f7f1 80%);
  color: var(--text-dark);
  box-shadow: 0 -6px 38px #adaddb33;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  font-size: 1rem;
  border-radius: 24px 24px 0 0;
  transition: transform 0.36s, opacity 0.22s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 320px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat';
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  padding: 11px 22px;
  font-weight: 600;
  background: var(--pastel-peach);
  color: var(--brand-primary);
  box-shadow: 0 2px 14px #e4e6fa60;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.21s;
  margin: 0 2px;
}
.cookie-btn.accept {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #e4867a;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.07) saturate(1.11);
  box-shadow: 0 5px 18px #b5d8f861;
}

/* COOKIE MODAL DIALOG */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(28,34,51,0.44);
  z-index: calc(var(--z-cookie) + 20);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  padding: 32px 28px 24px 28px;
  border-radius: 18px;
  box-shadow: 0 14px 56px #22223b1d;
  min-width: 90vw;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--brand-primary);
  font-family: 'Montserrat';
  font-size: 1.31rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 18px; height: 18px;
  border-radius: 5px;
}
.cookie-category.essential {
  opacity: 0.7;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-secondary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* ------ GENERAL RESPONSIVENESS (Flexbox) ------ */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  .container {
    padding: 0 6px;
    min-width: 0;
  }
  .features-grid > div, .metrics-grid > div {
    min-width: 0;
    padding: 16px 10px 14px 10px;
  }
  .news-list article {
    min-width: 0;
  }
  .section {
    padding: 18px 4px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card {
    padding: 17px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 1rem;
    padding: 13px 7px 11px 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 4px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    min-width: 0; max-width: 99vw;
    padding: 19px 5vw 21px 5vw;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 98vw;
    left: 1vw; right: 1vw;
    font-size: 0.97rem;
    padding: 16px 10px 16px 14px;
    border-radius: 22px 22px 0 0;
  }
}

/* ------ MICRO-INTERACTIONS & TRANSITIONS ------ */
a, .cta-btn, .cookie-btn, .button, th, td, .footer-nav a, .mobile-nav a {
  transition: background 0.21s, color 0.17s, box-shadow 0.21s, border 0.19s, transform 0.21s;
}
::-webkit-scrollbar { width: 10px; background: #ededfb; }
::-webkit-scrollbar-thumb { background: #dbeafe; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b5d8f8; }

/* ------ UTILITY: HIDE/SHOW, FLEX, ETC. ------ */
.hide, .d-none {
  display: none !important;
}
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}

/* ------ ACCESSIBILITY: FOCUS VISIBLE ------ */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--pastel-blue);
  outline-offset: 2px;
}

/* ------ PRINT ------ */
@media print {
  header, nav, .cta-btn, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .footer-nav {
    display: none !important;
  }
}
