/* Crystal Brain Analyse – Soft Pastel CSS Theme */
/* --- RESET & BASE STYLES --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #f7f9fc;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #26324B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #9058B7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D7A200;
  outline: none;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px 0;
  background: #fffaf5;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(157,183,205,0.12);
  overflow: hidden;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #f2e7fa;
  font-size: 16px;
}
th {
  background: #f2f2fa;
  color: #1A3354;
  font-weight: 700;
  font-family: 'Montserrat', Roboto, Arial, sans-serif;
  font-size: 18px;
}
tr:last-child td {
  border-bottom: none;
}

/* --- BRAND & PASTEL COLORS --- */
:root {
  --primary: #1A3354;
  --primary-light: #47638c;
  --secondary: #F2F4F8;
  --accent: #D7A200;
  --pastel-blue: #94B7E2;
  --pastel-aqua: #B7E7F3;
  --pastel-lavender: #e9defa;
  --pastel-mint: #d8f7ed;
  --pastel-pink: #fdf1f8;
  --pastel-yellow: #fcf6d8;
  --brand-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Roboto', Arial, Helvetica, sans-serif;
  --card-shadow: 0 4px 24px 0 rgba(170, 170, 255, 0.08);
  --radius: 20px;
  --transition: 0.18s cubic-bezier(.25,.8,.5,1);
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: var(--brand-font);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: var(--brand-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: var(--brand-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--brand-font);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}
p, ul, ol, li {
  font-size: 16px;
  color: #383a44;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 1.25rem;
  color: #7F7FAA;
  font-family: var(--body-font);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: 700;
}

/* --- CONTAINER & SECTIONS --- */
.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  background: linear-gradient(124deg, #f2f2fa 80%, #fdf1f8 100%);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .content-wrapper { padding: 22px 8px; }
}

.text-section {
  margin-bottom: 24px;
}

.services-list {
  list-style: disc inside;
  padding-left: 0;
  margin-bottom: 24px;
}

/* --- LAYOUT FLEX PATTERNS (MANDATORY) --- */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-top: 38px;
  padding-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(120deg, #fcf6d8 80%, #e9defa 100%);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 32px 0 rgba(157,183,205,0.18);
  z-index: 2;
}
.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;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fffaf5;
  border-radius: 22px;
  box-shadow: 0 4px 18px 0 rgba(208,187,228,0.14);
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 312px;
  margin-bottom: 20px;
  border: 2px solid #e9defa;
  transition: border-color 0.14s, box-shadow var(--transition);
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: #d7a200;
  box-shadow: 0 8px 32px 0 rgba(215,162,0,0.09);
}
.testimonial-card p {
  color: #2d2941;
  font-size: 1.1rem;
  font-family: var(--body-font);
}
.testimonial-author {
  font-size: 1rem;
  color: #57527d;
  font-style: italic;
  font-family: var(--brand-font);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7f9fc;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px 0 rgba(157,183,205,0.06);
}

/* --- NAVIGATION --- */
header {
  background: #f2f2fa;
  box-shadow: 0 4px 32px rgba(148,183,226,0.07);
  position: relative;
  z-index: 44;
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  font-family: var(--brand-font);
  font-weight: 500;
  font-size: 16px;
  color: #665798;
  padding: 6px 2px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover,
nav a:focus {
  color: var(--primary);
  background: #E9DEFA;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(93deg, #F7CFF2 73%, #AEE0F6 100%);
  color: #1A3354;
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 1.07rem;
  border: none;
  border-radius: 16px;
  padding: 14px 32px;
  box-shadow: 0 3px 10px 0 rgba(157,183,205,0.12);
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.20s, transform 0.13s;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(93deg, #e9defa 53%, #ffd885 100%);
  color: #D7A200;
  transform: scale(1.04);
}

/* --- FOOTER --- */
footer {
  background: #fffcf2;
  border-top: 1px solid #f2e7fa;
  box-shadow: 0 -6px 36px 0 rgba(244,220,245,0.08);
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.footer-nav a {
  color: #ab95d6;
  font-size: 15px;
  font-family: var(--body-font);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary-light);
  background: #fcf6d8;
}
.footer-contact {
  font-size: 15px;
  color: #5d6a89;
  font-family: var(--body-font);
  margin-top: 8px;
  line-height: 1.6;
}
footer img {
  height: 38px;
}

/* --- IMAGES AND ICONS --- */
ul li img, .footer-contact img {
  vertical-align: middle;
  margin-right: 8px;
  width: 20px;
  height: 20px;
  display: inline-block;
  filter: drop-shadow(0 1px 2px #f2f4f8); /* pastel icon effect */
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 12px;
  position: absolute;
  top: 17px;
  right: 27px;
  z-index: 99;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #fdf1f8;
  outline: 2px solid #ffd885;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fffaf5;
  z-index: 130;
  transform: translateX(-102vw);
  transition: transform 0.35s cubic-bezier(.62,.16,.27,.93);
  box-shadow: 0 0 48px 0 rgba(205,187,146,0.13);
  padding: 0 22px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #aa75a4;
  margin-top: 34px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fff4ee;
  border-radius: 8px;
  padding: 6px 16px 6px 16px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e9defa;
  color: #D7A200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: var(--brand-font);
  color: var(--primary);
  padding: 14px 10px;
  border-radius: 11px;
  background: #f9f6fc;
  margin-bottom: 10px;
  box-shadow: 0 2px 14px 0 rgba(157,183,205,0.07);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #ffe0ed;
  color: #D7A200;
}

@media (max-width: 1020px) {
  .header-flex nav,
  .header-flex .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- FLEXBOX RESPONSIVENESS --- */
@media (max-width: 900px) {
  .header-flex, .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-flex {
    align-items: flex-start;
    gap: 18px;
  }
  .testimonials {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .card-container, .content-grid, .features, .footer-nav {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .section, section {
    padding: 26px 5vw;
    margin-bottom: 32px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-flex {
    gap: 18px;  
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9998;
  background: linear-gradient(90deg, #f9eeda 82%, #e9defa 100%);
  box-shadow: 0 -3px 36px 0 rgba(208,187,228,0.13);
  padding: 28px 24px 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  opacity: 1;
  transition: opacity 0.18s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #1A3354;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  background: #ffe0ed;
  color: #6759a0;
  border: none;
  border-radius: 11px;
  padding: 10px 24px;
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 6px 0 rgba(220,180,255,0.09);
}
.cookie-btn.accept {
  background: linear-gradient(93deg, #F7CFF2 53%, #fcf6d8 100%);
  color: #1A3354;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd885;
  color: #D7A200;
}
.cookie-btn.reject {
  background: #f3f4f8;
  color: #aa75a4;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e9defa;
  color: #D7A200;
}
.cookie-btn.settings {
  background: #f7f9fc;
  color: #8db5bb;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #d8f7ed;
  color: #1A3354;
}

/* Cookie preferences modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(138,128,158,0.19);
  align-items: center;
  justify-content: center;
  transition: opacity .24s;
}
#cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: linear-gradient(122deg, #fffaf5 80%, #e9defa 100%);
  border-radius: 22px;
  padding: 36px 28px 28px 28px;
  max-width: 430px;
  box-shadow: 0 12px 44px 0 rgba(153,139,169,0.13);
  font-family: var(--body-font);
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  color: #1A3354;
  font-family: var(--brand-font);
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  color: #6759a0;
  font-family: var(--brand-font);
}
.cookie-category input[type=checkbox]{
  accent-color: #D7A200;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
/* End modal */

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 5vw;
    border-radius: 13px 13px 0 0;
    font-size: 0.98rem;
  }
  .cookie-modal-content{
    padding: 13vw 6vw;
  }
}

/* --- GENERAL UI --- */
::-webkit-input-placeholder { color: #bbbdc9; }
::-moz-placeholder { color: #bbbdc9; }
:-ms-input-placeholder { color: #bbbdc9; }
::placeholder { color: #bbbdc9; }
input, textarea, select {
  font-family: var(--body-font);
  border: 1.5px solid #f2e7fa;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #f7f9fc;
  transition: border 0.14s;
}
input:focus, textarea:focus {
  border-color: #D7A200;
  outline: none;
}

/* --- MISCELLANEOUS --- */
.hr {
  border: none;
  border-top: 1.5px solid #e9defa;
  margin: 32px 0;
}

/* --- SPACING RULES (MANDATORY) --- */
.card, .testimonial-card, .feature-item, .section, section, .content-wrapper {
  margin-bottom: 20px;
}
.card-container, .content-grid, .testimonials, .footer-flex {
  gap: 20px;
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.btn-primary, .cookie-btn {
  transition: background 0.18s, color 0.16s, transform 0.15s;
}
.card, .testimonial-card {
  transition: box-shadow 0.16s, border-color 0.17s, transform 0.2s;
}
nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.17s, background 0.18s;
}

@media (max-width: 540px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
}

/* --- TABLE STYLES FOR PASTEL --- */
table {
  font-family: var(--body-font);
  border-radius: 18px;
  background: #fffaf5;
  box-shadow: 0 2px 12px 0 rgba(157,183,205,0.08);
}
th, td {
  border-bottom: 1.5px solid #f2e7fa;
}
th {
  color: #7f7faa;
}
tr:hover td {
  background: #f7fafc;
}

/* --- SCROLLBAR --- */
body::-webkit-scrollbar {
  width: 8px;
  background: #F2F4F8;
}
body::-webkit-scrollbar-thumb {
  background: #e9defa;
  border-radius: 10px;
}

/* --- END --- */
