/* ============ 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,
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;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #fafbfb;
  color: #28394D;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul, ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
a {
  color: #457895;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #9087c3;
  outline: none;
}
img, svg {
  display: block;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
th, td {
  padding: 12px 16px;
  border: 1px solid #e7e7ec;
  text-align: left;
}
::-webkit-input-placeholder { color: #a2bcb7; }
::-moz-placeholder { color: #a2bcb7; }
:-ms-input-placeholder { color: #a2bcb7; }
::placeholder { color: #a2bcb7; }


/* ============ BRAND COLORS & FONTS ============ */
:root {
  --brand-primary: #28394D;
  --brand-secondary: #A2BCB7;
  --brand-accent: #F4E9DA;
  --pastel-blue: #bdd6f6;
  --pastel-mint: #c1efd8;
  --pastel-yellow: #fff6db;
  --pastel-pink: #ffe6ef;
  --pastel-lavender: #f4f0fa;
  --pastel-peach: #ffe3d8;
  --headings-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--headings-font);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.16;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
body, p, ul, li, ol {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--brand-primary);
}
strong {
  color: var(--brand-primary);
  font-weight: 600;
}
em {
  font-style: italic;
  color: #6f869c;
}
.text-section ul, .text-section ol {
  margin-bottom: 18px;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--pastel-lavender);
  border-radius: 24px;
  box-shadow: 0 6px 24px 0 rgba(173, 181, 189, 0.08), 0 1.5px 4.5px 0 rgba(87, 129, 148, 0.05);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 26px 20px 26px;
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 320px;
  transition: box-shadow .25s, transform .15s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(87, 129, 148, 0.13), 0 3px 12px 0 rgba(87, 129, 148, 0.07);
  transform: translateY(-3px) scale(1.03);
}
.card h3 {
  color: #60447a;
  margin-bottom: 12px;
}
.card span {
  color: #496277;
  background: var(--pastel-mint);
  border-radius: 10px;
  padding: 2px 12px;
  font-size: 0.97rem;
  font-weight: 500;
}

/* ============ FLEXBOX UTILITY LAYOUTS ============ */
.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: 16px;
  padding: 20px 30px 18px 30px;
  background: var(--pastel-yellow);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(195, 181, 133, 0.12);
  margin-bottom: 20px;
  max-width: 520px;
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: #23242a;
  font-size: 1.1rem;
  letter-spacing: 0.003em;
  font-family: var(--body-font);
}
.testimonial-card span {
  color: #51727d;
  font-size: 0.98rem;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(195, 181, 133, 0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============ BUTTONS & LINKS ============ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--brand-accent), var(--pastel-lavender));
  color: var(--brand-primary);
  font-family: var(--headings-font);
  font-size: 1.12rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 14px 34px;
  margin-top: 16px;
  margin-bottom: 8px;
  box-shadow: 0 3px 18px 0 rgba(150, 150, 120, 0.07);
  cursor: pointer;
  outline: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: 0.008em;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #dceafb, var(--pastel-mint));
  color: #374c6a;
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 10px 28px 0 rgba(173, 181, 189, 0.13);
}

/* ============ HEADER & NAVIGATION ============ */
header {
  width: 100%;
  background: var(--pastel-blue);
  box-shadow: 0 2px 16px 0 rgba(20,44,80,0.06);
  position: relative;
  z-index: 30;
  padding: 0 0 0 0;
}
header .container {
  padding: 0 16px;
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0;
  min-height: 72px;
  gap: 18px;
}
header > a img {
  height: 54px;
  width: auto;
  margin: 8px 18px 8px 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
}
header nav a {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--brand-primary);
  border-radius: 13px;
  padding: 8px 17px;
  transition: background .17s, color .17s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-pink);
  color: #5a5a93;
}
header .cta-btn {
  margin-left: auto;
  margin-right: 10px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-mint);
  color: var(--brand-primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 10px;
  padding: 3px 14px 0 14px;
  margin-left: 8px;
  transition: background .18s, color .18s;
  cursor: pointer;
  align-items: center;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
  color: #60447a;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(248, 253, 255, 0.88);
  backdrop-filter: blur(4px);
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.69,0,.44,1.18);
  flex-direction: column;
  padding: 0;
  justify-content: flex-start;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--brand-primary);
  font-size: 2.4rem;
  border: none;
  align-self: flex-end;
  margin: 24px 28px 0 0;
  cursor: pointer;
  transition: color .17s;
  padding: 0 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #60447a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 36px 36px 0 38px;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-size: 1.27rem;
  padding: 16px 0;
  font-family: var(--headings-font);
  border-radius: 12px;
  width: 100%;
  transition: background .17s, color .17s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #815985;
}

/* ============ MAIN & SECTIONS ============ */
main {
  min-height: 680px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 24px;
}
section:nth-of-type(even) {
  background: var(--pastel-lavender);
}
section h2 {
  margin-top: 0;
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 7px;
  line-height: 1.68;
  font-size: 1rem;
  font-family: var(--body-font);
}

.text-section ul {
  margin-bottom: 10px;
}

.text-section a {
  color: #625ca7;
  font-weight: 600;
  transition: color .16s;
}
.text-section a:hover, .text-section a:focus {
  color: #9a4a8b;
}

/* ============ TABLES ============ */
table {
  border-radius: 13px;
  background: var(--pastel-yellow);
  box-shadow: 0 2px 8px 0 rgba(195, 181, 133, 0.10);
  overflow: hidden;
}
th {
  background: var(--pastel-peach);
  color: #4b3553;
  font-family: var(--headings-font);
  font-weight: 700;
}
td {
  color: #28394D;
  font-family: var(--body-font);
  font-size: 1rem;
}

/* ============ FOOTER ============ */
footer {
  background: var(--pastel-blue);
  border-top: 1.5px solid #f0efef;
  padding: 24px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 8px;
}
footer nav a {
  color: #5b6773;
  font-family: var(--body-font);
  font-size: 1rem;
  border-radius: 7px;
  padding: 2px 10px;
  transition: background .16s, color .14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--pastel-mint);
  color: #283860;
}
footer p {
  font-size: 0.97rem;
  color: #728cab;
  margin: 0;
  font-family: var(--body-font);
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 33333;
  width: 100%;
  background: linear-gradient(90deg, var(--pastel-peach) 60%, var(--pastel-mint) 100%);
  color: var(--brand-primary);
  box-shadow: 0 -2px 22px 0 rgba(200, 179, 146, 0.19);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 14px 18px 14px;
  gap: 30px;
  font-size: 1rem;
  transition: transform 0.3s;
}
.cookie-banner__message {
  flex: 1;
  font-size: 1rem;
  margin-right: 32px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  min-width: 260px;
}
.cookie-banner__btn {
  border: none;
  border-radius: 24px;
  font-family: var(--headings-font);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 22px;
  cursor: pointer;
  transition: background .18s, color .17s, box-shadow .15s;
  box-shadow: 0 2px 8px 0 rgba(185, 152, 107, 0.05);
}
.cookie-banner__btn--accept {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner__btn--accept:hover, .cookie-banner__btn--accept:focus {
  background: #bed7d3;
}
.cookie-banner__btn--reject {
  background: var(--brand-accent);
  color: #835c5c;
}
.cookie-banner__btn--reject:hover, .cookie-banner__btn--reject:focus {
  background: #f8e6e8;
  color: #c96b6b;
}
.cookie-banner__btn--settings {
  background: #e2f7f0;
  color: #5a7a6a;
}
.cookie-banner__btn--settings:hover, .cookie-banner__btn--settings:focus {
  background: #d0f2e2;
  color: #356167;
}

/* ============ COOKIE MODAL ============ */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240, 246, 246, 0.97);
  z-index: 33334;
  align-items: center;
  justify-content: center;
  animation: fadeIn .27s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal__dialog {
  background: var(--pastel-yellow);
  border-radius: 20px;
  box-shadow: 0 8px 40px 0 rgba(170,150,99,0.12);
  max-width: 420px;
  width: 90vw;
  padding: 32px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.cookie-modal__title {
  font-family: var(--headings-font);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 7px;
}
.cookie-modal__desc {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-bottom: 7px;
}
.cookie-modal__category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pastel-mint);
  border-radius: 14px;
  padding: 7px 13px;
  margin-bottom: 6px;
}
.cookie-modal__category label {
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: var(--body-font);
  font-weight: 500;
}
.cookie-modal__category input[type=checkbox] {
  accent-color: #8bcab6;
  font-size: 1.2em;
  width: 21px;
  height: 21px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #777;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #874542;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ FORM ELEMENTS ============ */
input, textarea, select, button {
  font-family: var(--body-font);
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #dee9ea;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid var(--brand-secondary);
  outline: none;
  background: #e9fafb;
}

/* ============ MEDIA QUERIES (RESPONSIVE) ============ */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 992px) {
  header nav {
    gap: 10px;
  }
  .card {
    max-width: 370px;
  }
}
@media (max-width: 860px) {
  header nav {
    gap: 7px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 6px 0 8px;
    min-height: 48px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 0;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    z-index: 31;
  }
  .section, section {
    margin-bottom: 32px;
    padding: 24px 8px;
    border-radius: 15px;
  }
  .testimonial-card, .card {
    padding: 18px 14px 12px 14px;
    border-radius: 13px;
    max-width: 98vw;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 18px 8px 10px 8px;
  }
  .cookie-banner__message {
    margin-right: 0;
  }
  .cookie-banner__actions {
    min-width: auto;
    flex-direction: column;
    gap: 12px;
  }
  footer nav {
    gap: 10px;
    flex-direction: column;
  }
  th, td {
    padding: 8px 8px;
    font-size: 0.99rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  h3, h4 {
    font-size: 0.98rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 9px 18px;
  }
  .mobile-nav a {
    font-size: 1rem;
    padding: 12px 0;
  }
  .cookie-modal__dialog {
    padding: 20px 6px 14px 6px;
    width: 99vw;
    min-width: 0;
  }
}

/* ============ ANIMATIONS ============ */
.cta-btn, .card, .testimonial-card, .cookie-banner, .cookie-modal__dialog, .mobile-menu {
  will-change: transform, box-shadow, background, opacity;
}

/* ============ ACCESSIBILITY: FOCUS RING ============ */
:focus-visible {
  outline: 2.5px solid #6e99c7;
  outline-offset: 2.5px;
  border-radius: 7px;
}

/* Highlight anchor when navigating with keyboard */
a:focus-visible {
  outline: 2.5px solid #d1abdf;
  outline-offset: 2.5px;
}

/* ============ Z-INDEX STACKING FOR UI COMPONENTS ============ */
header { z-index: 30; }
.mobile-menu, .mobile-menu.open { z-index: 9999; }
.cookie-banner { z-index: 33333; }
.cookie-modal { z-index: 33334; }

/* ============ MICRO-INTERACTIONS ============ */
.card, .testimonial-card {
  transition: box-shadow .18s, transform .13s;
}
.card:hover, .testimonial-card:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 28px 0 rgba(125, 170, 160, 0.12);
}

/* END */
