/* ================================================== 
   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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F7F7FF;
  color: #20243a;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 900;
  color: #1B263B;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 { font-size: 2.6rem; letter-spacing: -1.5px; }
h2 { font-size: 2rem; letter-spacing: -1px; }
h3 { font-size: 1.4rem; letter-spacing: -0.5px; }
h4, h5, h6 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

p, li, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #262d42;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
p.subheadline {
  font-size: 1.25rem;
  color: #A2A8D3;
  margin-bottom: 28px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

strong, b {
  font-weight: 700;
}

/* ================================================== 
   LAYOUT & CONTAINERS
================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px){
  .section {
    padding: 32px 8px;
  }
}

/* FLEX PATTERNS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 8px 32px 4px rgba(64,70,150,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0px 16px 48px 8px rgba(31,46,99,0.16);
  transform: translateY(-6px) scale(1.025);
}
.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: center;
  gap: 20px;
  background: #fff;
  margin-bottom: 24px;
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0px 4px 16px 1px rgba(45,54,92,0.09);
  min-width: 240px;
  max-width: 520px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0px 12px 42px 8px rgba(99,110,200,0.18);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #273360;
}
.testimonial-name {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B263B;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 10px 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 20px 22px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 5px 22px 2px rgba(110,128,245,0.09);
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 3px #A2A8D3);
}
.feature-item h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #28315a;
  font-size: 1.14rem;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature-item p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 0;
}
.feature-item:hover {
  box-shadow: 0 10px 48px 10px rgba(110,128,245,0.16), 0 0 0 2px #A2A8D3;
  transform: scale(1.025) rotate(-1.8deg);
}
@media (max-width: 970px) {
  .feature-grid {
    justify-content: center;
  }
  .feature-item {
    min-width: 230px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item {
    width: 100%;
    min-width: 0;
    padding: 22px 10px 16px 12px;
    margin-bottom: 12px;
    border-radius: 13px;
  }
}

/* ===============================
   HEADER & NAVIGATION
=============================== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  background: #F7F7FF;
  box-shadow: 0 2px 24px 1px rgba(27, 38, 59, 0.04);
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  
}
.main-nav a {
  color: #1B263B;
  border-radius: 5px;
  padding: 7px 16px;
  transition: background 0.15s, color 0.18s;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a:focus {
  background: #A2A8D3;
  color: #fff;
}
.btn-primary {
  background: #1B263B;
  color: #fff;
  padding: 12px 32px;
  border-radius: 42px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0px 3px 20px 2px rgba(27,38,59,0.11);
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-left: 20px;
  margin-top: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A2A8D3;
  color: #fff;
  transform: scale(1.05);
}
.btn-secondary {
  background: #fff;
  color: #1B263B;
  border: 2px solid #A2A8D3;
  padding: 10px 32px;
  border-radius: 42px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0px 2px 12px 1px rgba(162,168,211,0.06);
  transition: background 0.15s, color 0.15s, border 0.16s;
  margin-top: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #A2A8D3;
  color: #fff;
  border: 2px solid #1B263B;
}

/* MOBILE HAMBURGER MENU */
.mobile-menu-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 2.1rem;
  background: #fff;
  color: #1B263B;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  box-shadow: 0 2px 8px rgba(27, 38, 59, 0.09);
  border: 2px solid #A2A8D3;
  z-index: 201;
  transition: box-shadow 0.16s, background 0.16s, color 0.14s;
  position: absolute;
  right: 8px;
  top: 17px;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #A2A8D3;
  color: #fff;
}
/* Hide logo when mobile nav is open (optional, theme-dependent) */

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #F7F7FF;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 0 128px 0 rgba(27,38,59,0.11);
  overflow-y: auto;
  transform: translateX(-100vw);
  transition: transform 0.6s cubic-bezier(.44,.78,.36,1.13);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #1B263B;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #A2A8D3;
  width: 46px;
  height: 46px;
  margin: 24px 0 10px 18px;
  align-self: flex-start;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #A2A8D3;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 40px 40px 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #28315a;
  padding: 16px 0;
  border-bottom: 1.5px solid #e7e9f7;
  width: 100%;
  transition: background 0.12s, color 0.14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #A2A8D3;
  color: #fff;
  border-radius: 13px;
  padding-left: 14px;
}
@media (max-width: 1050px) {
  .main-nav {
    gap: 14px;
    font-size: 0.98rem;
    margin-left: 6px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 5px;
    font-size: 0.96rem;
    margin-left: 0;
  }
}
@media (max-width: 820px) {
  .main-nav a, .btn-primary {
    font-size: 0.96rem;
    padding: 9px 14px;
  }
}
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================
   HERO & GENERAL SPACING
=============================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 26px;
}
section h1, section h2, section h3 {
  margin-bottom: 10px;
}
.text-section {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 1.08rem;
}
.text-section img {
  display: inline-block;
  margin-right: 7px;
  width: 19px;
  height: 19px;
  filter: grayscale(0.02) brightness(1.1) drop-shadow(0 0 2px #A2A8D3);
  vertical-align: text-bottom;
}
@media (max-width: 768px){
  section {
    padding: 24px 6px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
}
.main-nav + .btn-primary {
  margin-left: 20px;
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #1B263B;
  color: #fff;
  padding: 44px 0 0 0;
  margin-top: 40px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 120px;
  padding-bottom: 32px;
}
footer a {
  color: #fff;
  opacity: 0.96;
  transition: opacity 0.14s, text-decoration 0.17s, color 0.12s;
}
footer a:hover, footer a:focus {
  text-decoration: underline;
  opacity: 1;
  color: #A2A8D3;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-contact {
  font-size: 1rem;
  margin-top: 18px;
}
.footer-copy {
  flex: 0 0 100%;
  text-align: center;
  color: #B8BADB;
  font-size: 0.99rem;
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 16px;
  }
  .footer-nav {
    flex-direction: row;
    gap: 18px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
}

/* ===============================
   LISTS, UL, OL
=============================== */
ul, ol {
  margin-left: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1em;
  padding-left: 7px;
  position: relative;
  line-height: 1.7;
}
ul li::before {
  content: '◦';
  color: #A2A8D3;
  font-size: 1.15em;
  position: absolute;
  left: -12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
ol li::before {
  display: none;
}
ol {
  counter-reset: step;
}
ol li {
  counter-increment: step;
  padding-left: 25px;
  font-weight: 600;
}
ol li:before {
  content: counter(step) '.';
  color: #A2A8D3;
  position: absolute;
  left: 0;
  font-size: 1em;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ===============================
   FAQ LIST
=============================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list h3 {
  color: #213055;
  font-size: 1.13rem;
  margin-bottom: 5px;
  font-weight: 700;
}
.faq-list p {
  color: #3e4364;
  font-size: 1rem;
}

/* ===============================
   ANIMATION & MICRO-INTERACTIONS
=============================== */
.btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.13s;
}

/* ===============================
   COOKIE BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 300;
  width: 100vw;
  max-width: 100vw;
  background: rgba(27,38,59,0.99);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 30px;
  box-shadow: 0 -8px 64px rgba(27,38,59,0.13);
  animation: cookieSlide 0.8s cubic-bezier(.63,1.09,.6,1.09);
  font-size: 1rem;
}
@keyframes cookieSlide {
  0% {bottom: -120px; opacity: 0;}
  100% {bottom: 0; opacity: 1;}
}
.cookie-banner p {
  flex: 1;
  font-size: 0.97rem;
  margin-right: 16px;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  border: none;
  background: #A2A8D3;
  color: #1B263B;
  margin-left: 4px;
  margin-top: 8px;
  transition: background 0.18s, color 0.14s, box-shadow 0.13s;
  box-shadow: 0 2px 9px 1px rgba(140,140,200,0.16);
  cursor: pointer;
}
.cookie-btn.accept {
  background: #36D399;
  color: #1B263B;
}
.cookie-btn.reject {
  background: #DE4C5A;
  color: #fff;
}
.cookie-btn.settings {
  background: #A2A8D3;
  color: #1B263B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1B263B;
  color: #fff;
  box-shadow: 0 10px 28px 2px rgba(162,168,211,0.14);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 6px;
    font-size: 0.95rem;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 399;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(16,16,37,0.60);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: #1B263B;
  border-radius: 17px;
  max-width: 410px;
  width: 97%;
  padding: 36px 28px;
  box-shadow: 0 4px 64px 6px rgba(162,168,211,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideModal 0.55s cubic-bezier(.44,.88,.36,1.12);
}
@keyframes slideModal {
  from {transform: translateY(64px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 13px;
}
.cookie-categories {
  margin: 18px 0 14px 0;
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9faff;
  border-radius: 10px;
  padding: 14px 14px;
  margin-bottom: 6px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #A2A8D3;
  width: 20px;
  height: 20px;
  margin-right: 3px;
}
.cookie-category .info {
  font-size: 1rem;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}

/* ===============================
   CREATIVE ARTISTIC ELEMENTS
=============================== */
/* Hand-painted look with vibrant underlines below headings */
h1, h2, h3 {
  position: relative;
  z-index: 1;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 38px;
  height: 7px;
  position: absolute;
  left: 0;
  bottom: -4px;
  border-radius: 5px;
  background: #A2A8D3;
  opacity: 0.33;
  z-index: -1;
}
h1::after {
  width: 78px;
  height: 12px;
  background: #36D399;
  opacity: 0.26;
  left: 1px;
  bottom: -7px;
}

.btn-primary, .btn-secondary {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-width: 0px;
  font-size: 1.05rem;
}

.feature-item, .testimonial-card, .card {
  border-bottom: 4px solid #A2A8D3;
}
.feature-item:hover, .card:hover {
  border-bottom: 7px solid #36D399;
  filter: brightness(1.07);
}

@media (max-width: 450px) {
  h1, h2, h3 {
    line-height: 1.19;
    font-size: 1.14rem !important;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 8px 8px;
  }
}

/* Fun element: soft polka background for subtitle/banner area */
.subheadline {
  position: relative;
  z-index: 2;
}
.subheadline::before {
  content: '';
  display: inline-block;
  width: 54px;
  height: 19px;
  position: absolute;
  left: -18px;
  top: 1.7em;
  background: radial-gradient(circle, #36D399 66%, transparent 100%);
  opacity: 0.14;
  border-radius: 26px;
  z-index: -1;
}

/* Artistic micro-animation for button on hover */
.btn-primary:hover::after {
  content: '';
  display: inline-block;
  margin-left: 10px;
  width: 13px;
  height: 13px;
  background: #36D399;
  border-radius: 50%;
  vertical-align: middle;
  animation: btnBubble 0.74s cubic-bezier(.15,.86,.41,1.13);
}
@keyframes btnBubble {
  0% { transform: scale(0) translateY(15px); opacity: 0;}
  40% { transform: scale(1.3) translateY(-2px); opacity: .65;}
  80% { transform: scale(0.88) translateY(-6px); opacity: .29;}
  100% { transform: scale(0) translateY(-10px); opacity: 0;}
}

/* ===============================
   RESPONSIVE FLEX ADJUSTMENTS
=============================== */
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section, 
  .card-container, 
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .testimonial-card, .feature-item {
    width: 100%;
    min-width: 0;
  }
  .content-wrapper {
    gap: 10px;
  }
}

/* ===============================
   UTILITY CLASSES
=============================== */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* ===============================
   ACCESSIBILITY/CONTRAST
=============================== */
.testimonial-card {
  background: #fff !important;
  color: #1B263B;
  border: 2px solid #d7dbfc;
}
.testimonial-card p {
  color: #23244e !important;
}
.testimonial-name {
  color: #1B263B !important;
}

/* ===============================
   FORM ELEMENTS (if present)
=============================== */
input, textarea, select {
  border-radius: 9px;
  border: 1.5px solid #A2A8D3;
  background: #F7F7FF;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #36D399;
  box-shadow: 0 2px 10px 1px rgba(54,211,153,0.06);
}
label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #222;
}

/* ===============================
   ARTISTIC HOVER EFFECTS
=============================== */
a:not(.btn-primary):not(.btn-secondary):hover {
  color: #36D399;
}

.feature-item:hover img,
.card:hover img {
  filter: drop-shadow(0 0 4px #36D399) brightness(1.14);
}

/* ===============================
   SCROLLBAR STYLES (for desktop)
=============================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F7F7FF;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #A2A8D3;
  border-radius: 8px;
  min-height: 24px;
}
@media (max-width: 600px) {
  ::-webkit-scrollbar { display: none; }
}

/* ===============================
   END
=============================== */
