/* =======================================================
   CSS RESET & BASE STYLES
======================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #22325C;
  background: #F9FAFB;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #22325C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F9A826;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  color: #22325C;
  font-weight: 600;
}

/* ============================
   CONTAINER & WRAPPERS
============================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =======================================================
   TYPOGRAPHY
======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22325C;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.18;
}
h1 { font-size: 2.7rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }
p, ul, ol, blockquote, span {
  font-size: 1rem;
  color: #22325C;
  margin-bottom: 0;
}
blockquote {
  font-style: italic;
  color: #22325C;
  background: #F7F7FF;
  border-left: 5px solid #f7dac6;
  padding: 16px 22px 16px 18px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.tag, .topic-tags span {
  display: inline-flex;
  align-items: center;
  background: #e6ecfa;
  color: #506093;
  border-radius: 18px;
  padding: 5px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.topic-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legal-text {
  font-size: 1.06rem;
  color: #22325C;
  background: #fffef9;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 6px 32px 2px rgba(80,96,147,0.05);
}

/* Typography spacing */
h1, h2, h3, h4 {
  margin-top: 0;
}

/* ==========================================
   SPACING & SECTIONS (per YOUR INSTRUCTION)
========================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(34,50,92,0.06);
  padding: 28px 20px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(34,50,92,0.14);
}
.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: #F8FBFF;
  border-left: 4px solid #EAC7D4;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(80,96,147,0.05);
  margin-bottom: 20px;
  flex-direction: column;
}
.testimonial-card blockquote {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 6px 0;
  color: #22325C;
}
.testimonial-card span {
  color: #2D3A6B;
  opacity: 0.88;
  font-size: 0.99rem;
  font-style: normal;
  font-weight: 500;
  margin-top: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============
   HEADER & NAV
================ */
header {
  background: linear-gradient(90deg, #F7E8EC 0%, #F8F7FE 100%);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 18px 16px;
  gap: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  padding-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22325C;
  font-weight: 500;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.16s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #F9A826;
  background: #F7F7FF;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #FACBCC 0%, #FCEDA0 100%);
  color: #22325C;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 11px 32px;
  cursor: pointer;
  box-shadow: 0 4px 20px 0 rgba(249,168,38,0.08);
  margin-left: 18px;
  transition: background 0.19s, box-shadow 0.19s;
  outline: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, #F8DAE5 0%, #FBEFC4 100%);
  box-shadow: 0 8px 28px 2px rgba(249,168,38,0.16);
  color: #22325C;
}

/* ==============
   MOBILE NAV MENU
================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #F9FAFB;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #22325C;
  transition: background 0.13s;
  margin-left: 20px;
  outline: none;
  cursor: pointer;
  z-index: 30;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #FBEFC4;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248,247,254, 0.98);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.49,.06,.44,1.01);
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 0 64px 8px rgba(223, 194, 246, 0.13);
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: #F9A826;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 26px 0 14px 26px;
  cursor: pointer;
  transition: background 0.12s, color 0.19s;
  outline: none;
  box-shadow: 0 4px 24px 0 rgba(250,203,204,0.11);
  display: flex;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #22325C;
  color: #F9A826;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin: 36px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #22325C;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  background: #fff;
  border-radius: 10px;
  padding: 15px 18px 15px 22px;
  transition: background 0.14s, color 0.14s;
  font-weight: 500;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  background: #fcf4f0;
  color: #F9A826;
}

@media (max-width: 1100px) {
  .container { max-width: 970px; }
}
@media (max-width: 820px) {
  .container { max-width: 94vw; }
  .main-nav { gap: 16px; }
}
@media (max-width: 992px) {
  .feature-grid { gap: 18px 8px; }
  .content-wrapper { gap: 20px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 4px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 9px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==========================
   FOOTER
========================== */
footer {
  background: linear-gradient(90deg, #F7E8EC 0%, #F8F7FE 100%);
  border-top: 1.5px solid #efd6c5;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 16px 28px 16px;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}
.footer-nav a {
  color: #506093;
  font-size: 1rem;
  padding: 4px 2px;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #F9A826;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
  color: #636178;
  margin-top: 12px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
footer a img {
  margin-bottom: 15px;
  width: 48px;
  height: 48px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
}

/* ===============================
   FEATURE GRID & CARDS
================================ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 28px 2px rgba(80,96,147,0.08);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 8px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 14px 44px rgba(34,50,92,0.13);
  transform: translateY(-6px) scale(1.03);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

.trust-icons,
.company-logos-grid {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.company-logos-grid img {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  width: 58px;
  height: 58px;
  box-shadow: 0 2px 8px rgba(250,203,204,0.07);
}

/* Blog preview cards */
.blog-post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.blog-post-previews > div {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 6px 28px 1px rgba(80,96,147,0.07);
  padding: 22px 18px 18px 22px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 220px;
  gap: 10px;
  margin-bottom: 0;
  position: relative;
  transition: box-shadow 0.22s, transform 0.13s;
}
.blog-post-previews > div:hover {
  box-shadow: 0 12px 38px 0 rgba(249,168,38,0.12);
  transform: translateY(-4px) scale(1.03);
}

.feedback-highlights {
  margin-top: 22px;
  padding: 26px 18px;
  background: #F5E7F7;
  border-radius: 14px;
  color: #22325C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px 1px rgba(80,96,147,0.06);
}

/* Service listings */
.service-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.service-listing > div {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 16px 18px 20px;
  margin-bottom: 0;
  box-shadow: 0 4px 16px 1px rgba(80,96,147,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.10s;
}
.service-listing > div:hover {
  box-shadow: 0 10px 30px 1px rgba(249,168,38,0.09);
  transform: translateY(-3px) scale(1.02);
}

/* Contact details grid */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  font-size: 1rem;
  color: #22325C;
}
.contact-details > div {
  background: #F6F7FF;
  border-radius: 12px;
  padding: 12px 17px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 215px;
  flex: 1 1 215px;
}
.contact-details img {
  width: 18px;
  margin-right: 6px;
  margin-top: 2px;
  vertical-align: middle;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 19px;
  background: #F6F7FF;
  border-radius: 8px;
  padding: 11px 14px 11px 12px;
  font-size: 1rem;
  color: #22325C;
}
.map-embed img {
  width: 34px;
  height: 34px;
}


/* ========== SECTION SPACING ============= */
section { margin-bottom: 60px; padding: 40px 20px; }
@media (max-width: 700px) {
  section { margin-bottom: 38px; padding: 25px 4vw; }
  .card, .feature-grid > div, .service-listing > div, .blog-post-previews > div {
    border-radius: 13px;
    padding-left: 13px; padding-right: 13px;
  }
}

/* ===========================
   RESPONSIVE FLEX DIRECTION
=========================== */
.text-image-section, .content-grid, .feature-grid, .blog-post-previews, .service-listing, .card-container {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .feature-grid,
  .blog-post-previews,
  .service-listing,
  .card-container {
    flex-direction: column;
    gap: 18px!important;
  }
}

/* =========================================
   HIERARCHY, SHADOWS, ROUNDED EFFECTS
========================================= */
.card, .feature-grid > div, .testimonial-card, .service-listing > div, .contact-details > div, .blog-post-previews > div {
  border-radius: 16px;
  box-shadow: 0 4px 24px 2px rgba(80,96,147,0.06);
  background: #fff;
}

/* =============================
   BUTTONS & INTERACTIVE ITEMS
============================= */
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 28px;
  background: #F9A826;
  color: #fff;
  font-weight: 600;
  padding: 11px 28px;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.14s, color 0.12s, box-shadow 0.13s;
  outline: none;
}
button:focus, button:active, input[type=submit]:focus {
  background: #22325C;
  color: #F9A826;
}
.btn-secondary, .cookie-btn-secondary {
  background: #F7E8EC;
  color: #22325C;
  border: 1.5px solid #FACBCC;
}
.btn-secondary:hover {
  background: #FCEDA0;
  color: #22325C;
  border-color: #F9A826;
}
.button-group {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ==========================
   TRANSITIONS & INTERACTIONS
========================== */
.card,
.feature-grid > div,
.cta-btn,
button,
.service-listing > div,
.blog-post-previews > div,
.mobile-menu,
.mobile-menu-close {
  transition: box-shadow 0.23s cubic-bezier(.32,1.6,.51,.93), background 0.16s, color 0.14s, transform 0.16s;
}

.cta-btn:focus {
  outline: 2px solid #FACBCC;
  outline-offset: 2px;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffafd;
  border-top: 2px solid #F9A826;
  box-shadow: 0 -2px 52px 0 rgba(250,203,204,0.13);
  padding: 22px 10vw 18px 10vw;
  z-index: 9998;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  min-height: 68px;
  animation: cookie-banner-slide-in 0.7s cubic-bezier(.4,.97,.4,.98);
}
@keyframes cookie-banner-slide-in {
  0% {transform: translateY(105%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner-msg {
  flex: 1 1 60%;
  color: #22325C;
}
.cookie-banner-actions {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-btn-primary {
  background: #F9A826;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  padding: 10px 28px;
  font-size: 1.06rem;
  margin-right: 8px;
  box-shadow: 0 4px 18px 0 rgba(249,168,38,0.13);
  transition: background 0.13s, color 0.13s;
}
.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
  background: #22325C;
  color: #F9A826;
}
.cookie-btn-secondary {
  background: #FBEFC4;
  color: #22325C;
  border: 1.5px solid #FACBCC;
}
.cookie-btn-secondary:hover {
  background: #F7E8EC;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 4vw;
  }
  .cookie-banner-actions {
    width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(61,55,56,0.22);
  z-index: 11111;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #f9fafe;
  border-radius: 20px;
  padding: 38px 30px 30px 30px;
  box-shadow: 0 16px 82px 6px rgba(80,96,147,0.08);
  min-width: 320px;
  width: 97vw;
  max-width: 410px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: cookie-modal-in 0.32s cubic-bezier(.33,1.22,.46,.98);
}
@keyframes cookie-modal-in {
  0% {transform: translateY(-32px) scale(0.93); opacity: 0;}
  100% {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: #FACBCC;
  color: #22325C;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  cursor: pointer;
  transition: background 0.14s;
  z-index: 10200;
}
.cookie-modal-close:hover {
  background: #F9A826;
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  padding: 9px 19px 9px 15px;
  margin-bottom: 10px;
  color: #22325C;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category label {
  font-size: 1.05rem;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 15px;
  background: #e8eaf6;
  position: relative;
  margin-left: 12px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.20s;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FACBCC;
  transition: left 0.19s, background 0.13s;
}
.cookie-toggle input[type=checkbox]:checked + .slider {
  left: 21px;
  background: #F9A826;
}

/* Label for essential cookies always enabled */
.cookie-category[data-essential="true"] .cookie-toggle {
  background: #A2A6CC;
  cursor: not-allowed;
}
.cookie-category[data-essential="true"] .cookie-toggle .slider {
  background: #9BF6AC;
}

/* ========================
   MISC COMPONENTS
======================== */
.text-section a {
  color: #F9A826;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.15s;
}
.text-section a:hover,
.text-section a:active {
  color: #22325C;
  text-decoration: underline;
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 3vw; }
}

/* =====================
   SOFT PASTEL COLORS!
===================== */
body {
  background: #f3f8ff;
}
section {
  background: linear-gradient(140deg, #f8f7fe 60%, #f7e8ec 100%);
}
.feature-grid > div, .testimonial-card, .service-listing > div, .blog-post-previews > div, .card {
  background: linear-gradient(125deg, #fff 65%, #fbe9e6 100%);
}

/* Soft shadow for dreamy look */
.card, .feature-grid > div, .testimonial-card, .service-listing > div, .blog-post-previews > div {
  box-shadow: 0 6px 32px 2px rgba(250,203,204,0.07), 0 0.5px 2px rgba(34,50,92,.02);
  border: 1.5px solid #f2eafa;
}

/* ====================
   MEDIA QUERIES
==================== */
@media (max-width: 1100px) {
  .footer-contact { font-size: 0.92rem; }
}
@media (max-width: 700px) {
  .content-wrapper, .feature-grid, .service-listing, .card-container, .blog-post-previews {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    padding: 15px 7vw;
  }
}
@media (max-width: 490px) {
  .cta-btn, .cookie-btn-primary, .btn-secondary { padding: 10px 14px; font-size: 0.98rem; }
  .feature-grid > div, .card, .testimonial-card { padding: 13px 7px; }
}

/* ===========================
   ACCESSIBILITY
=========================== */
:focus {
  outline: 2px solid #F9A826;
  outline-offset: 3px;
}

/* Hide visually but keep accessible (for future use) */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* =============================
   PRINT
============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #222 !important; }
  section { background: #fff; box-shadow: none; }
}
