/* =====================================================
   RESET & FOUNDATION
   ===================================================== */
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;
  background: #F4F6F8;
  color: #22417F;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.03em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*,*:before,*:after {
  box-sizing: inherit;
}
a {
  color: #6587BA;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22417F;
  text-decoration: underline;
}
ul, ol { margin: 0 0 20px 20px; }
img { max-width: 100%; height: auto; }

/* =====================================================
   BRAND COLORS (SOFT PASTEL PALETTE)
   ===================================================== */
:root {
  --rc-dark: #22417F;
  --rc-mid: #81B19B;
  --rc-light: #F4F6F8;
  --rc-accent: #ECDEF4;
  --rc-pink: #FFD6DF;
  --rc-yellow: #FFF7D6;
  --rc-blue: #B4DFF3; 
  --rc-lightblue: #D9F3FF;
  --rc-green: #D8F5E5;
  --rc-shadow: rgba(34,65,127,0.09);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--rc-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 7px;
}
p, li {
  font-size: 1rem;
  color: #33527f;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 600;
  color: var(--rc-dark);
}

blockquote {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: var(--rc-blue);
  color: var(--rc-dark);
  font-size: 1.19rem;
  line-height: 1.45;
  font-style: italic;
  padding: 20px 24px;
  border-radius: 20px;
  margin-bottom: 11px;
  box-shadow: 0 3px 12px var(--rc-shadow);
}

small { color: #53706d; font-size: .9em; }

@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

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

.main-nav, .footer-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

.section,
main > section,
.hero-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: var(--rc-light);
  box-shadow: 0 2px 18px var(--rc-shadow);
}
main > section:last-child { margin-bottom: 0; }

@media(max-width: 700px) {
  .section,
  main > section,
  .hero-section {
    padding: 28px 7px;
    margin-bottom: 36px;
  }
}

/* =====================================================
   HEADER
   ===================================================== */
header {
  width: 100%;
  background: linear-gradient(90deg, #ECDEF4 0%, #B4DFF3 100%);
  box-shadow: 0 2px 20px var(--rc-shadow);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 10px;
}
.logo-link img,
.footer-top img {
  height: 45px;
  width: auto;
  display: block;
}

.main-nav a, .footer-menu a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #3a547f;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.18s;
}
.main-nav a:hover, .footer-menu a:hover, .main-nav a:focus, .footer-menu a:focus {
  background: var(--rc-pink);
  color: #22417F;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  margin-left: 10px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(90deg, #81B19B 0%, #B4DFF3 100%);
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--rc-shadow);
  transition: background 0.22s, transform .14s, box-shadow .22s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #B4DFF3 0%, #81B19B 100%);
  color: #22417F;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 26px var(--rc-shadow);
}
.cta-btn.secondary {
  background: linear-gradient(90deg, #FFD6DF 0%, #FFF7D6 100%);
  color: #22417F;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: linear-gradient(90deg, #FFF7D6 0%, #FFD6DF 100%);
  color: #22417F;
  border-bottom: 2px solid #B4DFF3;
}

.mobile-menu-toggle {
  display: none;
  background: #81B19B;
  color: #fff;
  font-size: 2rem;
  padding: 5px 16px; /* touchable size */
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin-left: 16px;
  transition: background .2s;
  z-index: 181;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #22417F;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 7px;
  }
}
@media (max-width: 870px) {
  header .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================================================
   HERO (custom for index)
   ===================================================== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  background: linear-gradient(90deg, #FFD6DF 0%, #B4DFF3 100%);
  margin-bottom: 60px;
  box-shadow: 0 6px 32px var(--rc-shadow);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 19px;
  max-width: 650px;
}
.hero-section h1 {
  color: #22417F;
  font-size: 2.1rem;
}
.hero-section p {
  font-size: 1.12rem;
  color: #53706d;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .hero-section { min-height: 180px; }
  .hero-section .content-wrapper { max-width: 100%; }
}

/* =====================================================
   FLEXBOX PATTERNS - ALL LAYOUTS
   ===================================================== */
.card-container,
.feature-grid,
.service-list,
.service-list.detailed,
.project-case-studies,
.latest-articles-list,
.testimonials-wrapper,
.footer-top,
.categories-overview ul,
.industry-examples ul,
.client-list ul,
.target-sectors ul,
.benefits-of-support ul,
.faqs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card,
.feature-grid li,
.service-list li,
.project-case-studies .case-study,
.latest-articles-list article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--rc-shadow);
  padding: 24px 22px;
  min-width: 0;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.23s, background 0.15s;
}

.card:hover,
.feature-grid li:hover,
.service-list li:hover,
.project-case-studies .case-study:hover,
.latest-articles-list article:hover {
  box-shadow: 0 8px 32px var(--rc-shadow);
  background: var(--rc-lightblue);
}

/* Custom icons within features */
.feature-grid img, .service-list img {
  width: 47px;
  height: 47px;
  margin-bottom: 11px;
  border-radius: 16px;
  background: var(--rc-pink);
  padding: 7px;
  box-shadow: 0 1px 8px var(--rc-shadow);
  object-fit: contain;
}
.service-list img { background: var(--rc-blue); }

.feature-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.feature-grid li {
  flex: 1 1 250px;
  max-width: 315px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1rem;
}
@media (max-width: 950px) {
  .feature-grid li {
    flex-basis: 48%;
    max-width: 96%;
  }
}
@media (max-width: 650px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid li {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.service-list,
.service-list.detailed {
  flex-direction: column;
  gap: 20px;
}
.service-list li,
.service-list.detailed li {
  flex: 1 1 100%;
}
.service-list.detailed li {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  min-height: 100px;
}
.service-list.detailed img {
  margin-right: 12px;
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .service-list.detailed li {
    flex-direction: column;
    gap: 9px;
  }
  .service-list.detailed img {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

.project-case-studies,
.latest-articles-list {
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
.project-case-studies .case-study,
.latest-articles-list article {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 370px;
}
@media (max-width: 900px) {
  .project-case-studies, .latest-articles-list {
    flex-direction: column;
    gap: 14px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Testimonials & Cards */
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  flex: 1 1 280px;
  background: var(--rc-green);
  padding: 20px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--rc-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 220px;
  color: #22417F;
  font-size: 1rem;
  transition: box-shadow 0.17s, background 0.12s;
}
.testimonial-card blockquote {
  background: none;
  font-style: italic;
  color: #22417F;
  font-size: 1.05rem;
  padding: 0; margin: 0;
  box-shadow: none;
}
.testimonial-card .testimonial-meta {
  font-size: .98rem;
  font-weight: 500;
  color: #53706d;
}
.testimonial-card.last {
  background: var(--rc-yellow);
}
.testimonial-card:hover {
  background: var(--rc-lightblue);
  box-shadow: 0 7px 30px var(--rc-shadow);
}
@media (max-width: 700px) {
  .testimonials-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 100%;
  }
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--rc-accent);
  border-radius: 12px;
  padding: 10px 13px;
  margin-bottom: 10px;
  color: #22417F;
  font-size: 1.06rem;
}

/* Feature item (general flex column) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Content grids and client/industry lists */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.categories-overview ul,
.industry-examples ul,
.client-list ul,
.target-sectors ul,
.benefits-of-support ul,
.faqs ul {
  gap: 12px;
  flex-wrap: wrap;
  list-style: disc;
  margin-bottom: 0;
}
.categories-overview ul li,
.industry-examples ul li,
.client-list ul li, .target-sectors ul li { margin-bottom: 4px; }

.contact-info-brief, .contact-details,
.contact-info-service {
  background: var(--rc-accent);
  padding: 16px 22px;
  border-radius: 14px;
  color: #22417F;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}

/* =============================
   Blog Styles
   ============================= */
.latest-articles-list article {
  background: var(--rc-yellow);
  border: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.latest-articles-list article:hover {
  background: var(--rc-green);
}
.featured-article-highlight {
  background: var(--rc-pink);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px var(--rc-shadow);
}

/* =============================
   Footer
   ============================= */
footer {
  width: 100%;
  margin-top: 40px;
  background: linear-gradient(90deg, #B4DFF3 0%, #ECDEF4 100%);
  color: #22417F;
  padding-top: 24px;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  box-shadow: 0 -2px 20px var(--rc-shadow);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  border-bottom: 1px solid #E7EAF0;
}
.footer-menu a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: .99rem;
  color: #53706d;
  padding: 4px 10px;
}
.footer-bottom {
  text-align: left;
  padding: 13px 0 14px 0;
  color: #7987a3;
  font-size: .93em;
}
@media (max-width: 820px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .footer-menu {
    gap: 10px;
  }
}

/* =====================================================
   MOBILE MENU (SLIDE-IN)
   ===================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,246,248,0.98);
  z-index: 2200;
  transform: translateX(-110%);
  transition: transform 0.33s cubic-bezier(0.51,0.01,0.64,1.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  box-shadow: 0 3px 38px rgba(34,65,127,0.19);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: #B4DFF3;
  color: #22417F;
  font-size: 2.2rem;
  border: none;
  border-radius: 16px;
  align-self: flex-end;
  margin: 20px 18px 12px 0;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .2s;
  z-index: 2241;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #81B19B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 18px 40px 24px 36px;
  margin-top: 15px;
  flex: 1;
  z-index: 2234;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #22417F;
  padding: 12px 7px;
  border-radius: 14px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background .22s, color .14s;
  margin-right: 0;
  margin-bottom: 2px;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #B4DFF3;
  color: #81B19B;
  outline: none;
}
/* Hide on desktop */
@media (min-width: 871px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
/* Responsive for mobile nav */
@media (max-width: 650px) {
  .mobile-nav {
    padding: 18px 14px 18px 17px;
  }
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -6px 32px var(--rc-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 38px;
  z-index: 3500;
  animation: cookiebanner-slideup .6s 1;
}
@keyframes cookiebanner-slideup {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #22417F;
  font-size: 1rem;
  margin: 0;
  flex: 1 1 250px;
}
.cookie-consent-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 16px;
  background: #B4DFF3;
  color: #22417F;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--rc-shadow);
  transition: background .17s, color .17s, box-shadow .12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #81B19B;
  color: #fff;
  box-shadow: 0 6px 25px var(--rc-shadow);
}
.cookie-btn.accept {
  background: #D8F5E5;
  color: #22417F;
}
.cookie-btn.reject {
  background: #FFD6DF;
  color: #22417F;
}
.cookie-btn.settings {
  background: #FFF7D6;
  color: #22417F;
  border: 1px solid #B4DFF3;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px 10px 13px;
  }
  .cookie-consent-buttons { gap: 6px; }
  .cookie-consent-banner p { font-size: .97rem; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(36,47,78,0.22);
  z-index: 3999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .19s 1;
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 36px 33px;
  border-radius: 24px;
  box-shadow: 0 8px 46px var(--rc-shadow);
  max-width: 400px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalbounce .22s 1;
}
@keyframes modalbounce {
  from { transform: scale(.97); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 2px;
}
.cookie-modal-category {
  background: #F4F6F8;
  border-radius: 12px;
  padding: 13px 10px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-toggle {
  background: #B4DFF3;
  border: none;
  border-radius: 15px;
  width: 48px;
  height: 26px;
  position: relative;
  cursor: pointer;
  transition: background .19s;
}
.cookie-toggle[data-enabled="true"] { background: #81B19B; }
.cookie-toggle::after {
  content: '';
  display: block;
  height: 20px; width: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 4px; top: 3px;
  transition: left .15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.cookie-toggle[data-enabled="true"]::after {
  left: 24px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn { font-size: 1.02rem; padding: 9px 16px; }

@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 6px;
    border-radius: 14px;
  }
}

/* =====================================================
   ANIMATION MICRO-INTERACTIONS
   ===================================================== */
.card, .feature-grid li, .service-list li, .testimonial-card, .case-study, .latest-articles-list article {
  transition: box-shadow 0.18s cubic-bezier(.16,.66,.49,1.15), background .17s;
}
.cta-btn, .cookie-btn, .cookie-toggle {
  transition: background .18s, color .16s, box-shadow .19s, transform .21s;
}
.card:focus-within, .feature-grid li:focus-within {
  box-shadow: 0 9px 44px var(--rc-shadow);
  outline: 2px solid #22417F;
}

/* =====================================================
   RESPONSIVE SPACING & MOBILE OPTIMIZATION
   ===================================================== */
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
  .footer-top { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .container { padding: 0 5px; }
}
@media (max-width: 600px) {
  .section, main>section, .hero-section { padding: 14px 3px; }
}

/* Ensure minimum spacing between all components */
.card-container > *,
.feature-grid > *,
.service-list > *,
.latest-articles-list > * {
  margin-bottom: 20px;
}
.content-wrapper > * {
  margin-bottom: 17px;
}
.content-wrapper > *:last-child { margin-bottom: 0 !important; }

/* Misc UI adjustments */
.text-section, .faqs, .benefits-of-support {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: #33527f;
}
.text-section ul,
.faqs ul,
.benefits-of-support ul {
  margin: 12px 0 16px 24px;
}
.text-section ol {
  margin: 12px 0 16px 24px;
  list-style: decimal;
}

.project-case-studies .case-study,
.latest-articles-list article {
  min-width: 210px;
  margin-bottom: 20px;
}

/* Outlines and focus for accessibility */
.cta-btn:focus, .cookie-btn:focus, .mobile-nav a:focus {
  outline: 2px solid #22417F;
  outline-offset: 2px;
}

/* Hide default bullet of li where icons exist */
.feature-grid li, .service-list.detailed li {
  list-style: none;
}

/* Thank you page */
.text-section a.cta-btn { margin-top: 16px; }

/* ================================
   END CSS RadiantClean "soft_pastel"
   ================================ */
