/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  box-sizing: border-box;
  min-height: 100vh;
  background: #FFF;
  color: #2E2935;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
hr { border: none; border-top: 1px solid #E5E6ED; margin: 32px 0; }

/* --- FONT FACE --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,700,600,400,300|Roboto:400,500,700&display=swap');
:root {
  --primary: #31447D;
  --secondary: #FFBA49;
  --accent: #F1F1F1;
  --danger: #AA3333;
  --text-main: #2E2935;
  --text-grad-secondary: #944AFF; /* Artistic accent - for headings */
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-main);
  background: #FFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 16px;
}

h1 { font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.5rem; letter-spacing: -0.5px; }
h4 { font-size: 1.18rem; }
h5, h6 { font-size: 1rem; }
p, .text-section, li, blockquote, cite {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.7;
}
.text-section {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: var(--primary);
  border-left: 5px solid var(--secondary);
  padding-left: 16px;
  margin-bottom: 12px;
  background: #FFF8EC;
}
cite {
  font-size: 1rem;
  color: #745025;
  font-style: normal;
  font-weight: 600;
  margin-left: 8px;
}

b, strong { font-weight: 700; }

/* --- CONTAINERS & FLEX LAYOUTS --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin-bottom: 48px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 32px;
  box-shadow: 0 4px 28px 0 rgba(161,176,255,.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 24px;
  box-shadow: 0 4px 22px 0 rgba(49,68,125,0.09);
  transition: box-shadow .18s cubic-bezier(.85,.27,.44,1.07);
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(49,68,125,0.18);
}
.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: #FFF8EC;
  border-radius: 20px;
  box-shadow: 0 3px 14px 0 rgba(49,68,125,0.13);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing between list items and sections */
ul, ol {
  margin-bottom: 16px;
}
ul > li, ol > li {
  margin-bottom: 12px;
  padding-left: 8px;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: linear-gradient(90deg, #F1F1F1 52%, #FFDDA2 100%);
  box-shadow: 0 2px 16px 0 rgba(49,68,125,0.07);
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  height: 80px;
  justify-content: space-between;
}
header img {
  height: 52px;
  width: auto;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 20px;
  transition: background .18s, color .18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 3px 14px 0 rgba(49,68,125,0.13);
  transition: background .20s, transform .17s, box-shadow .14s;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(49,68,125,0.18);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(90deg, #FFBA49 3%, #F1F1F1 77%, #B7E2FA 100%);
  border-radius: 38px;
  box-shadow: 0 12px 36px 0 rgba(255,186,73,.09);
  margin-bottom: 50px;
  padding: 50px 0 50px 0;
  display: flex;
  align-items: center;
  min-height: 280px;
  position: relative;
}
.hero .content-wrapper {
  gap: 22px;
  margin: 0;
}
.hero h1 {
  background: linear-gradient(90deg, #31447D 38%, #944AFF 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-size: 2.6rem;
}
.hero p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.28rem;
  color: #574F72;
  margin-bottom: 10px;
}

/* --- FORMS, INPUTS, FILTERS --- */
input[type="search"], select {
  padding: 10px 18px;
  border-radius: 24px;
  border: 2px solid var(--secondary);
  background: #FFF;
  margin-right: 12px;
  font-size: 1rem;
  color: var(--primary);
  outline: none;
  transition: border .17s;
  box-shadow: 0 2px 6px 0 rgba(49,68,125,.13);
}
input[type="search"]:focus, select:focus {
  border: 2px solid var(--primary);
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 10px 0;
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(49,68,125,.07);
}
th, td {
  padding: 14px 20px;
  text-align: left;
  font-size: 1.06rem;
  border-bottom: 1px solid #E6E8F0;
}
th {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.13rem;
}
tr:last-child td {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  padding: 40px 0 30px 0;
  background: #283369;
  color: #FFF;
  position: relative;
  z-index: 18;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
footer img {
  height: 46px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 16px;
  padding: 6px 10px;
  transition: background .15s, color .16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer div {
  font-size: 1rem;
  color: #FFF7E5;
}
footer b {
  color: #FFBA49;
}
footer span {
  color: #FFBA49;
  font-size: 0.98rem;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  background: #FFF8EC;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  margin-bottom: 24px;
  border-radius: 20px;
  box-shadow: 0 3px 18px 0 rgba(49,68,125,0.12);
  align-items: flex-start;
  min-width: 0;
  font-style: normal;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.12rem;
  background: none;
  border: none;
  margin: 0;
  padding-left: 0;
}
.testimonial-card cite {
  display: block;
  margin-top: 8px;
  color: #B58936;
}

/* --- BUTTONS (repeated for settings, cookie, etc.) --- */
.btn,
button, .modal-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  display: inline-block;
  border-radius: 22px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: background .18s, color .17s, box-shadow .13s, transform .14s;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.08rem;
  margin-right: 12px;
}
.modal-btn:last-child,
button:last-child { margin-right: 0; }
.btn:hover, .btn:focus,
button:hover, button:focus {
  background: var(--primary);
  color: #FFF;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 0 7px 26px 0 rgba(255,186,73,.13);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 999;
  background: #283369;
  color: #FFF;
  box-shadow: 0 -2px 22px 0 rgba(49,68,125,0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 16px;
  gap: 34px;
  flex-wrap: wrap;
  animation: cookieSlideUp .70s cubic-bezier(0.21, 0.8, 0.41, 0.93);
}
.cookie-banner__text {
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 400px;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@keyframes cookieSlideUp {
  0% { transform: translateY(108px); opacity: 0; }
  90% { opacity: .8; }
  100% { transform: translateY(0); opacity: 1; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(60,66,84,0.37);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal .18s ease-in;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  color: #2E2935;
  border-radius: 30px;
  padding: 38px 32px 25px 32px;
  min-width: 0;
  max-width: 400px;
  width: 94%;
  box-shadow: 0 8px 48px rgba(49,68,125,.19);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: modalSlideIn .31s cubic-bezier(.18,.78,.32,.77);
}
@keyframes modalSlideIn {
  from { transform: scale(.88) translateY(35px); opacity: 0; }
  80% { opacity: .91; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.44rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  margin-bottom: 13px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  width: 38px;
  height: 22px;
  border-radius: 16px;
  background: var(--accent);
  position: relative;
  transition: background .18s;
  cursor: pointer;
  border: 1.5px solid var(--primary);
}
.cookie-modal .cookie-toggle[data-enabled="true"] {
  background: var(--secondary);
}
.cookie-modal .cookie-toggle-bar {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(0);
  transition: transform .19s cubic-bezier(0.45, 0.84, 0.65, 1);
}
.cookie-modal .cookie-toggle[data-enabled="true"] .cookie-toggle-bar {
  transform: translateX(15px);
  background: #FFF;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
}
.cookie-modal .modal-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 18px;
  border: none;
}
.cookie-modal .modal-btn.accept {
  background: var(--primary);
  color: #FFF;
}
.cookie-modal .modal-btn.accept:hover,
.cookie-modal .modal-btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .modal-btn.reject {
  background: #FFD8D2;
  color: var(--danger);
}
.cookie-modal .modal-btn.reject:hover {
  background: #F5B4AB;
  color: var(--primary);
}
.cookie-modal .modal-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .modal-btn.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* --- MOBILE BURGER MENU STYLES --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.06rem;
  color: var(--primary);
  cursor: pointer;
  transition: color .16s;
  z-index: 1502;
  margin-left: 6px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #283369;
  color: #FFF;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100vw;
  height: 100vh;
  transition: transform .38s cubic-bezier(0.17, 0.89, 0.33, 1) 0s, opacity .19s;
  transform: translateX(104vw);
  opacity: .93;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: mobileMenuSlideIn .32s cubic-bezier(.28,.89,.29,1.04);
}
@keyframes mobileMenuSlideIn {
  from {
    transform: translateX(104vw);
    opacity: 0.4;
  }
  93% {
    opacity: .99;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.mobile-menu-close {
  position: absolute;
  top: 30px; right: 22px;
  background: none;
  border: none;
  font-size: 2.6rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 1503;
  transition: color .11s;
  padding: 8px 14px;
  line-height: 1.2;
  border-radius: 36px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFF;
  background: var(--secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 90px 0 0 44px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.44rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  border-radius: 26px;
  padding: 10px 18px;
  background: rgba(255,186,73,0.1);
  transition: background .17s, color .13s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- RESPONSIVE: MOBILE FIRST --- */
@media (max-width: 1200px) {
  .container { max-width: 940px; }
}
@media (max-width: 992px) {
  .container { max-width: 770px; }
  .hero h1 { font-size: 2.22rem; }
}
@media (max-width: 768px) {
  /* Burger button visible */
  .mobile-menu-toggle {
    display: block;
  }
  header nav, header .btn-primary {
    display: none;
  }
  header .container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 7px;
    height: 64px;
  }
  .hero {
    border-radius: 16px;
    margin-bottom: 30px;
    min-height: 188px;
    padding: 26px 0 28px 0;
  }
  .content-wrapper {
    gap: 18px;
    margin-bottom: 22px;
  }
  .section {
    padding: 28px 4px;
    margin-bottom: 34px;
    border-radius: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px 12px;
    border-radius: 13px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  table,th,td {
    font-size: 0.99rem;
    padding: 7px 10px;
  }
  .cookie-modal {
    padding: 20px 6px 15px 14px;
    border-radius: 18px;
  }
  .mobile-nav {
    margin: 72px 0 0 20px;
    gap: 12px;
  }
  .mobile-nav a {
    font-size: 1.09rem;
    padding: 8px 15px;
  }
}
@media (max-width: 500px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .cookie-banner {
    padding: 18px 4px;
    font-size: 0.98rem;
    gap: 10px;
  }
}

/* --- MICRO-INTERACTIONS & FINE DETAILS --- */
.btn-primary, .btn, .modal-btn,
input[type="search"], select {
  box-shadow: 0 2px 12px 0 rgba(255,186,73,0.11);
}
.btn-primary:active,
.btn:active,
.modal-btn:active {
  background: #233466;
  color: #FFF;
  transform: scale(.96);
}

/* Decorative artistic shapes (subtle for creative/artistic brand) */
.section {
  position: relative;
  overflow: visible;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  top: -36px; right: -32px;
  width: 72px; height: 72px;
  background: rgba(255,186,73,.21);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.section:nth-child(even)::after {
  left: -44px; right: auto; top: -18px; background: rgba(49,68,125,.11);
}
.hero::before {
  content: '';
  position: absolute;
  left: -54px; top: -24px;
  background: rgba(255,186,73,0.33);
  width: 100px; height: 100px;
  border-radius: 60px;
  z-index: 0;
  pointer-events: none;
}

/* --- Artistic & Vibrant Typography Effects --- */
h2, h3, h4 {
  background: linear-gradient(92deg, #31447D 30%, #944AFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* --- Accessibility/Contrast for Testimonial Cards --- */
.testimonial-card, .testimonial-card cite {
  color: #182547;
  background: #FFF8EC;
}
.testimonial-card blockquote {
  color: #31447D;
}

/* --- ARTISTIC CUSTOM ELEMENTS --- */
ul > li::before {
  display: inline-block;
  content: '●';
  color: var(--secondary);
  font-size: 1.03em;
  margin-right: 9px;
  vertical-align: middle;
  opacity: 0.65;
}
ol > li::before {
  display: none;
}

/* --- MISC --- */
::-webkit-input-placeholder { color: #ACACAD; opacity: 1; }
:-ms-input-placeholder { color: #ACACAD; }
::placeholder { color: #ACACAD; opacity: 1; }

/* --- Z-INDEX MANAGEMENT --- */
header { z-index: 900; }
footer { z-index: 10; }
.mobile-menu { z-index: 1500; }
.mobile-menu-close { z-index: 1503; }

/* --- A11Y Outlines --- */
a:focus, button:focus, input:focus, select:focus, .btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- CUSTOM SCROLLBAR (artistic, but subtle) --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* END */
