/* 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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F9FAFB;
  color: #24447D;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding-left: 0; }
a { color: #24447D; text-decoration: none; transition: color 0.2s; }
a:focus, a:hover { color: #E48D19; text-decoration: underline; }
:focus { outline: 2px solid #E48D19; outline-offset: 2px; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24447D;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 { font-size: 1.15rem; margin-bottom: 10px; }
.section h2 { margin-bottom: 18px; }
p, li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #264369;
}
strong { font-weight: bold; }

.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* CONTAINERS AND LAYOUTS (FLEX) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(156, 168, 197, 0.07);
}

/* Soft Pastel Color Palette */
:root {
  --brand-primary: #24447D;
  --brand-secondary: #F2F7FA;
  --brand-accent: #E48D19;
  --pastel-blue: #b3d8fa;
  --pastel-lavender: #e7e9fb;
  --pastel-mint: #d7f3ea;
  --pastel-peach: #ffe5cb;
  --pastel-yellow: #fff7cd;
  --pastel-pink: #ffe2ef;
  --text-dark: #243659;
  --text-light: #ffffff;
  --shadow: 0 2px 16px 0 rgba(145, 174, 194, 0.11);
  --link-hover: #b76900;
  --transition: 0.23s cubic-bezier(.4,0,.2,1);
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #e7e9fb 0%, #d7f3ea 100%);
  box-shadow: 0 2px 16px 0 rgba(156, 168, 197, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 60;
}
header img {
  height: 52px;
  margin-bottom: 4px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #4B577A;
  font-size: 1rem;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-accent);
  background: none;
}
.cta-button.primary {
  background: linear-gradient(90deg, #ffe2ef 0%, #fff7cd 100%);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(186,162,217,0.08);
  font-size: 1.1rem;
  margin-left: 32px;
  transition: background .17s, color .17s, box-shadow .17s;
  letter-spacing: 0.03em;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: linear-gradient(90deg, #d7f3ea 0%, #e7e9fb 100%);
  color: var(--brand-accent);
  box-shadow: 0 4px 16px 0 rgba(231, 233, 251, 0.18);
}
.cta-button.secondary {
  background: #b3d8fa;
  color: #243659;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 32px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 1px 8px 0 rgba(156, 168, 197, 0.09);
  margin-top: 21px;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: #ffe2ef;
  color: #b76900;
}
.cta-link {
  color: var(--brand-accent);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: underline;
  margin-top: 12px;
  transition: color var(--transition);
}
.cta-link:hover, .cta-link:focus {
  color: var(--brand-primary);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  margin-left: 25px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #d7f3ea;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .cta-button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 130;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    position: fixed;
    left: 0; top: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(120deg, #d7f3ea 15%, #e7e9fb 85%);
    z-index: 120;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 2px 32px 0 rgba(82, 112, 187, 0.13);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brand-primary);
    align-self: flex-end;
    margin: 18px 28px 0 0;
    cursor: pointer;
    transition: color 0.2s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--brand-accent); }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 30px 36px 0 36px;
    width: 100%;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.15rem;
    color: var(--brand-primary);
    padding: 18px 0;
    border-bottom: 2px solid #e7e9fb;
    transition: background .1s, color .15s;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #b3d8fa;
    color: var(--brand-accent);
  }
}

/* HERO AND FEATURE SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #ffffff;
}
section:first-of-type { margin-top: 17px; }

/* FLEX CARD & FEATURE LAYOUTS */
.feature-grid, .service-list, .service-category-grid, .feature-list, .job-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-list > div, .feature-grid > div, .service-category-grid > div, .job-listings > div, .feature-list > div {
  background: #F7FBFC;
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 2px 12px 0 rgba(181,198,236,0.065);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div img,
.service-category-grid > div img,
.feature-list > div img {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
}
.feature-grid > div h3, .service-list > div h3, .feature-list > div h3 {
  font-size: 1.14rem;
  color: var(--brand-primary);
}

/* TESTIMONIALS */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px 18px 26px;
  background: #e7e9fb;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(36, 68, 125, 0.04);
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 400px;
  flex: 1 1 330px;
  transition: transform .19s, box-shadow .19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 6px 64px 0 rgba(68, 99, 174, 0.12);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #243659;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
}
.testimonial-author {
  font-size: 1rem;
  font-style: italic;
  color: #24447D;
  margin-left: 2px;
  margin-bottom: 0;
}

/* SOCIAL LIST */
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 12px 0 0 0;
}
.social-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #d7f3ea;
  padding: 11px 21px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24447D;
}
.social-list li img {
  width: 28px;
  height: 28px;
}

/* FOOTER */
footer {
  width: 100%;
  background: #f7fbfc;
  border-top: 3px solid #e7e9fb;
  margin-top: 40px;
  padding: 38px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 9px;
  justify-content: center;
}
.footer-nav a {
  color: #666e95;
  font-weight: 500;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.97rem;
  color: #61688c;
}
.footer-contact a {
  color: #24447D;
  font-weight: 600;
  transition: color 0.13s;
}
.footer-contact a:hover { color: var(--brand-accent); }
.footer-credits {
  font-size: 0.93rem;
  color: #b0b7c9;
  margin-top: 18px;
  text-align: center;
}

/* Forms (for contact, future forms) */
input, textarea, select, button {
  font-family: inherit;
  outline: none;
  border: none;
}
input[type="text"], input[type="email"], textarea, select {
  background: #f1f7f9;
  border: 1.1px solid #d7e7f6;
  border-radius: 10px;
  font-size: 1rem;
  padding: 13px 17px;
  margin-bottom: 16px;
  width: 100%;
  color: #243659;
  box-shadow: 0 1px 4px 0 rgba(204, 216, 255, 0.08);
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 1px 12px 0 rgba(180, 105, 0, 0.09);
}
button:active {
  opacity: 0.9;
}

/* HIGHLIGHT/INFO BLOCKS */
.highlight-text {
  background: #d7f3ea;
  color: #26506c;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  border-left: 4px solid #E48D19;
  padding: 16px 21px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(36, 68, 125, 0.04);
  margin-top: 18px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.highlight-text img {
  vertical-align: text-bottom;
  margin-right: 12px;
}

/* JOB LISTINGS */
.job-listings > div {
  background: #e7e9fb;
  box-shadow: 0 1px 8px 0 rgba(186,162,217,0.08);
}

/* MANDATORY FLEX SPACING CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(156, 168, 197, 0.09);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MEDIA QUERIES & RESPONSIVE (mobile-first) */
@media (max-width: 1000px) {
  .feature-grid, .service-list, .service-category-grid, .feature-list {
    gap: 18px;
  }
  .card-container, .testimonial-slider {
    gap: 14px;
  }
  section {
    padding: 32px 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  header img {
    height: 40px;
  }
  .feature-grid, .service-list, .service-category-grid, .feature-list, .job-listings, .testimonial-slider {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .main-nav a, .footer-nav a {
    font-size: 1rem;
    padding: 8px 0;
  }
  .container {
    padding: 0 5vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media (max-width: 550px) {
  header img {
    height: 35px;
  }
  h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .container {
    padding: 0 3vw;
  }
  section {
    padding: 18px 3vw;
  }
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fff7cd 0%, #ffe2ef 100%);
  box-shadow: 0 -2px 16px 0 rgba(36, 68, 125, 0.09);
  padding: 28px 16px 18px 16px;
  z-index: 250;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.02rem;
  color: #453D28;
  transition: transform 0.31s cubic-bezier(0.8,0,0.2,1), opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
}
.cookie-banner-content {
  max-width: 600px;
  letter-spacing: 0.012em;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 9px 25px;
  border-radius: 20px;
  margin: 0;
  box-shadow: 0 1px 5px 0 rgba(182, 162, 120, 0.08);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.21s, color 0.12s, box-shadow 0.15s;
}
.cookie-accept {
  background: #b3d8fa;
  color: #24447D;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #d7f3ea;
  color: #b76900;
}
.cookie-reject {
  background: #ffe2ef;
  color: #b76900;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #ffe5cb;
  color: #24447D;
}
.cookie-settings {
  background: #fff7cd;
  color: #b76900;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #d7f3ea;
  color: #24447D;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .cookie-banner-buttons {
    width: 100%;
    gap: 7px;
  }
  .cookie-banner button {
    width: 100%;
    max-width: 170px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 44, 56, 0.44);
  z-index: 400;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
  opacity: 0;
}
.cookie-modal-overlay.show {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(54,53,58,.18);
  max-width: 390px;
  width: 94vw;
  padding: 36px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInCookieModal 0.36s cubic-bezier(0.7,0,.35,1);
}
@keyframes fadeInCookieModal {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: #24447D;
  margin-bottom: 11px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: #283a63;
  font-weight: 400;
  margin-bottom: 7px;
}
.cookie-modal-toggle {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #E2ECEE;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-toggle:checked {
  background: #b3d8fa;
}
.cookie-modal-toggle:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(36,68,125,0.09);
  transition: left 0.16s;
}
.cookie-modal-toggle:checked:before {
  left: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #b76900;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #24447D;
}
.cookie-modal-category {
  padding: 11px 0;
}
.category-essential {
  color: #aaa;
}

/* Animations & Micro-interactions */
button, .cta-link, .cta-button, .testimonial-card, .feature-grid > div, .service-list > div, .card {
  transition: box-shadow 0.19s, background 0.19s, transform 0.16s;
}

.testimonial-card:active {
  transform: scale(0.98);
}
.cta-button:active {
  transform: scale(0.97);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
