/* ===============================
   CSS RESET & BASE NORMALIZATION
   =============================== */
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, main, 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%; box-sizing: border-box; scroll-behavior: smooth; }
body { min-height: 100vh; background: #F9FAFC; color: #322C3B; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.65; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section { display: block; }
ul, ol { list-style: none inside; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #6C63FF; outline-offset: 2px; }
img { max-width: 100%; height: auto; border: 0; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button:focus, input:focus, textarea:focus { outline: 2px solid #6C63FF; }
strong, b { font-weight: 700; }

/* ===============================
     FONT IMPORTS
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* ===============================
       COLOR PALETTE (SOFT PASTEL)
   =============================== */
:root {
  --mf-primary: #23293c; /* dark purple-blue for headings */
  --mf-secondary: #6C63FF; /* Lavender brand accent */
  --mf-accent: #FFFFFF;
  --mf-bg: #F9FAFC; /* base page background */
  --mf-bg-alt: #F4F3FF; /* subtle lavender/grey background block */
  --mf-pink: #FFD6E0;
  --mf-lavender: #F3EFFF;
  --mf-yellow: #FFF9D3;
  --mf-green: #DFFAE1;
  --mf-blue: #D3E8FF;
  --mf-grey: #ECECF5;
  --mf-heading: #23293c;
  --mf-body: #6D6D7A;
  --mf-card-bg: #FFFFFF;
  --mf-card-shadow: 0 4px 32px 0 rgba(108, 99, 255, 0.10);
  --mf-border: #ECECF5;
  --mf-radius: 16px;
  --mf-shadow: 0 2px 16px 0 rgba(108, 99, 255, 0.08);
  --mf-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===============================
       TYPOGRAPHY
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: var(--mf-heading);
  margin-bottom: 20px;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; }
p, li { color: var(--mf-body); font-size: 1.05rem; letter-spacing: 0.01em; margin-bottom: 16px; }
.subheadline {
  font-size: 1.15rem;
  color: var(--mf-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* Remove underline on all links by default */
a { text-decoration: none; color: inherit; }
a:hover:not(.btn-primary):not(.btn-secondary) { color: var(--mf-secondary); text-decoration: underline; }

/* ===============================
       STRUCTURE & LAYOUT
   =============================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  background: var(--mf-bg);
  border-radius: var(--mf-radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--mf-shadow);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--mf-card-bg); border-radius: var(--mf-radius); box-shadow: var(--mf-card-shadow); margin-bottom: 20px; padding: 24px; position: relative; transition: box-shadow var(--mf-transition), transform var(--mf-transition); }
.card:hover { box-shadow: 0 6px 26px 0 rgba(108,99,255,0.16); transform: translateY(-2px) scale(1.012); }

.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: var(--mf-bg-alt); box-shadow: var(--mf-shadow); border-radius: 15px; margin-bottom: 24px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* MAIN FLEX WRAPPERS */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.expert-profile {
  background: var(--mf-card-bg);
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  padding: 26px 18px;
  margin-bottom: 20px;
  text-align: center;
  transition: box-shadow var(--mf-transition), transform var(--mf-transition);
}
.expert-profile:hover {
  box-shadow: 0 8px 32px 0 rgba(108,99,255,0.12);
  transform: scale(1.025);
}

/* ===============
   HEADER
   =============== */
header {
  background: linear-gradient(90deg, #F4F3FF 0%, #E3FAFE 100%);
  padding: 0;
  border-bottom: 2px solid #ECECF5;
  box-shadow: 0 1px 8px 0 rgba(108,99,255,.03);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px;
  position: relative;
}
.main-nav, .footer-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.main-nav a {
  padding: 7px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  color: #2C2A39;
  transition: background var(--mf-transition), color var(--mf-transition);
}
.main-nav a:hover {
  color: var(--mf-secondary); background: var(--mf-pink);
}
.main-nav .btn-primary { margin-left: 10px; }

/* HIDE NAV ON MOBILE */
.mobile-menu-toggle {
  display: none;
  background: var(--mf-secondary);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 10px;
  padding: 4px 16px 2px 16px;
  margin-left: 25px;
  box-shadow: 0 2px 8px rgba(108,99,255,.15);
  cursor: pointer;
  transition: background var(--mf-transition), color var(--mf-transition);
  z-index: 110;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--mf-secondary); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,239,255,0.98);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.42,.01,.83,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--mf-secondary);
  font-size: 2.4rem;
  margin: 30px 0 10px 26px;
  cursor: pointer;
  transition: color 0.2s;
  align-self: flex-start;
  z-index: 2002;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mf-primary);
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.2s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--mf-secondary);
  background: var(--mf-pink);
}

@media (max-width: 1020px) {
  .main-nav { gap: 10px; }
  header .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 860px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}
@media (max-width: 520px) {
  header .container img { max-width: 125px; }
}

/* ===============================
      BUTTONS & CTA
   =============================== */
.btn-primary, button[type="submit"], .newsletter form button[type="submit"] {
  background: linear-gradient(90deg, #6C63FF 60%, #FFD6E0 100%);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.13rem;
  border: none;
  border-radius: 10px;
  padding: 15px 36px;
  box-shadow: 0 4px 18px 0 rgba(108,99,255,0.14);
  cursor: pointer;
  transition: background var(--mf-transition), transform var(--mf-transition), color var(--mf-transition);
  margin-right: 8px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus, button[type="submit"]:hover, button[type="submit"]:focus {
  background: linear-gradient(90deg, #FFD6E0 20%, #6C63FF 80%);
  color: var(--mf-primary);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: #FFD6E0;
  color: var(--mf-primary);
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.07rem;
  border: none;
  border-radius: 10px;
  padding: 13px 30px;
  margin-top: 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.21s, color 0.16s;
  box-shadow: 0 3px 14px 0 rgba(244,202,255,0.10);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #D3E8FF;
  color: var(--mf-secondary);
}

/* ===============================
        ICONS
   =============================== */
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
}
.social-icons a {
  background: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(190,175,255,0.10);
  width: 44px; height: 44px;
  transition: background 0.2s, box-shadow .2s, transform .13s;
}
.social-icons a:hover { background: #F4F3FF; box-shadow: 0 5px 18px rgba(108, 99, 255, 0.13); transform: scale(1.085); }

/* ===============================
         CARD & FEATURE LISTS
   =============================== */
.features-list, .service-list, .benefit-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.features-list li, .service-list li, .benefit-list li {
  flex: 1 1 250px;
  background: var(--mf-card-bg);
  border-radius: var(--mf-radius);
  box-shadow: var(--mf-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  transition: box-shadow .22s;
}
.features-list li img, .service-list li img {
  max-width: 46px;
  margin-bottom: 13px;
}
.features-list li h3, .service-list li strong, .service-list li h3 {
  font-size: 1.14rem;
  color: var(--mf-heading);
  font-family: 'Roboto Slab', serif;
  margin-bottom: 7px;
}

.service-list li strong, .service-list li h3 {
  font-weight: 700;
}
.service-list li span, .service-cards li span {
  font-size: 1rem;
  color: var(--mf-secondary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.service-cards {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  margin-bottom: 20px;
}
.service-cards li {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--mf-radius);
  box-shadow: 0 3px 16px 0 rgba(108,99,255,0.08);
  padding: 22px 16px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .14s;
}
.service-cards li:hover { box-shadow: 0 8px 28px 0 rgba(108,99,255,0.16); transform: translateY(-1px) scale(1.018); }

.faq-list li {
  background: var(--mf-bg-alt);
  border-radius: 14px;
  padding: 22px 18px;
  font-size: 1.05rem;
  width: 100%;
  margin-bottom: 20px;
}
.faq-list li strong { color: var(--mf-primary); display: block; font-size: 1.07rem; margin-bottom: 3px; }
.faq-list li p {
  margin-bottom: 0;
  font-size: 1.01rem;
}

.case-overview {
  background: var(--mf-blue);
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(108,99,255,.10);
  padding: 22px 18px;
  margin-bottom: 20px;
}
.case-overview h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--mf-primary); }

/* Testimonials & Quotes */
.testimonial-card {
  background: #FFF;
  color: #2A2834;
  border-radius: 15px;
  box-shadow: var(--mf-card-shadow);
  margin-bottom: 24px;
  padding: 28px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .19s;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--mf-primary);
  font-size: 1.14rem;
  border-left: 4px solid var(--mf-secondary);
  padding-left: 13px;
  margin-bottom: 14px;
}
.testimonial-card p { font-size: 1.03rem; margin-bottom: 0; }

/* ===============================
      FOOTER
   =============================== */
footer {
  background: linear-gradient(90deg, #F3EFFF 50%, #E3FAFE 100%);
  box-shadow: 0 -1px 12px 0 rgba(108,99,255, 0.05);
  padding: 0;
}
.footer-wrapper {
  display: flex; flex-wrap: wrap; gap: 38px; padding: 42px 0;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.footer-nav a {
  color: var(--mf-primary);
  font-size: 1rem;
  border-radius: 7px;
  padding: 6px 0 6px 6px;
  transition: background 0.14s, color 0.13s;
}
.footer-nav a:hover { background: var(--mf-yellow); color: var(--mf-secondary); }
.footer-contact {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 18px;
  color: #443d69;
}
.footer-contact a {
  color: var(--mf-secondary);
  transition: color 0.15s; text-underline-offset: 2px;
}
.footer-contact a:hover { color: var(--mf-pink); text-decoration: underline; }
.newsletter form {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.newsletter input[type="email"],
.footer-wrapper input[type="email"] {
  padding: 11px 16px;
  font-size: 1rem;
  border: 1px solid #D7D5F7;
  border-radius: 8px;
  background: #FFF;
  margin-right: 10px;
  width: clamp(180px, 25vw, 260px);
  box-shadow: 0 1px 5px 0 rgba(220,194,255,0.07);
  transition: border-color 0.2s;
}
.newsletter input[type="email"]:focus, .footer-wrapper input[type="email"]:focus {
  border-color: var(--mf-secondary);
}
.newsletter button[type="submit"], .footer-wrapper button[type="submit"] {
  background: var(--mf-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
  min-width: 80px;
}
.newsletter button[type="submit"]:hover, .newsletter button[type="submit"]:focus, .footer-wrapper button[type="submit"]:hover {
  background: #544df6; color: #fff;
}

/* ===============================
     PAGE UTILITY STYLES
   =============================== */
.map-embed {
  background: var(--mf-blue);
  border-radius: 13px;
  padding: 23px 18px;
  color: #23293c;
  box-shadow: 0 1px 8px rgba(108,99,255,0.07);
  margin-top: 17px;
  margin-bottom: 8px;
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
   =============================== */
@media (max-width: 1020px) {
  .footer-wrapper { gap: 24px; }
  .features-list, .service-list, .benefit-list, .service-cards, .team-grid {
    gap: 16px;
  }
}
@media (max-width: 860px) {
  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer-nav, .footer-contact { margin-top: 18px; }
}
@media (max-width: 768px) {
  .section { padding: 29px 7px; margin-bottom: 38px; }
  .content-wrapper { gap: 16px; }
  .card-container, .content-grid, .service-cards, .features-list, .team-grid { gap: 11px; }
  .testimonial-card, .faq-list li, .case-overview, .expert-profile, .features-list li, .service-list li, .service-cards li { padding: 17px 8px !important; }
  .text-image-section { flex-direction: column; gap: 19px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .main-nav, .footer-nav { gap: 6px; }
  .service-cards li, .features-list li, .team-grid .expert-profile { min-width: 98vw; max-width: 99vw; }
  .testimonial-card { padding: 12px 6px 10px 8px; }
}

/* ===============================
  COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #F3EFFF 40%, #FFD6E0 100%);
  color: #23293c;
  box-shadow: 0 -2px 18px rgba(108,99,255,0.124);
  z-index: 2900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  gap: 20px;
  min-height: 64px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  animation: fadeUp .7s cubic-bezier(.275,.24,.16,1.06) 1;
}
.cookie-banner p { margin-bottom: 0; color: #23293c; }
.cookie-banner .cookie-btn {
  margin-left: 8px; margin-right: 0;
  background: var(--mf-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .19s, transform .14s, color .13s;
}
.cookie-banner .cookie-btn:hover { background: #544df6; color: #FFD6E0; }
.cookie-banner .cookie-btn.secondary {
  background: var(--mf-pink);
  color: var(--mf-primary);
  margin-left: 8px;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: var(--mf-lavender); color: var(--mf-secondary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(108,99,255,0.17);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg .2s linear 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 60px rgba(108,99,255,.13);
  padding: 34px 28px 24px 28px;
  width: 94vw;
  max-width: 410px;
  min-width: 260px;
  color: #23293c;
  animation: scaleUp .3s cubic-bezier(.51,.11,.78,1.44) 1;
  position: relative;
}
.cookie-modal h2 { margin-bottom: 19px; }
.cookie-modal ul {
  display: flex; flex-direction: column; gap: 13px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex; flex-direction: row; align-items: center;
  gap: 15px;
  font-size: 1.06rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--mf-secondary);
  width: 22px; height: 22px;
}
.cookie-modal .cookie-modal-btns {
  display: flex; flex-direction: row; justify-content: flex-end; gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute; top: 15px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.88rem;
  color: var(--mf-secondary);
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover { color: #4329A6; }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 7px; }
  .cookie-modal { padding: 15px 7px 20px 8px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===============================
      REUSABLE & UTILITY
   =============================== */
.mt-32 { margin-top: 32px; }
.mt-20 { margin-top: 20px; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.hide { display: none !important; }

/* ===============================
  OVERLAPPING PREVENTION
   =============================== */
.card, .features-list li, .service-list li, .service-cards li, .testimonial-card, .expert-profile, .case-overview {
  margin-bottom: 20px;
}
.features-list, .service-list, .card-container, .service-cards {
  gap: 24px;
  margin-bottom: 24px;
}
.content-wrapper, .footer-wrapper {
  gap: 20px;
}

/* ===============================
   VISUAL HIERARCHY: SPACING
   =============================== */
section {
  margin-bottom: 0;
}
section + section {
  margin-top: 0;
}

/* ===============================
    CUSTOM SCROLLBAR (Nice for desktop)
   =============================== */
::-webkit-scrollbar { width: 10px; background: #F3EFFF; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #FFD6E0; border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: #e1c2e8; }

/* ===============================
    PRINT FRIENDLY
   =============================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #23293c; }
}
section {
  padding: 15px;
}