/* --- CSS RESET --- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #FAFAFA;
  color: #223152;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #59A985;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #223152;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}

/* --- TYPOGRAPHY SCALE --- */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: #223152;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #223152;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #223152;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #223152;
}
p, li {
  font-size: 1rem;
}

/* --- CONTAINER, SECTIONS, LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 320px;
  min-width: 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(34, 49, 82, 0.09);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(34, 49, 82, 0.15);
  transform: translateY(-3px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  min-width: 220px;
  max-width: 370px;
  box-shadow: 0 2px 8px rgba(34,49,82,0.07);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #223152;
  color: #FAFAFA;
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img {
  height: 40px;
}
.main-nav {
  display: flex;
  gap: 18px;
  flex-shrink: 1;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FAFAFA;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.5px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #59A985;
  color: #223152;
}
.button.primary {
  margin-left: 18px;
  background: #59A985;
  color: #fff;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px 28px;
  box-shadow: 0 2px 10px rgba(89, 169, 133, 0.13);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.button.primary:hover, .button.primary:focus {
  background: #223152;
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 49, 82, 0.17);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
  z-index: 1200;
  padding: 7px 12px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 340px;
  height: 100vh;
  background: #223152;
  color: #FAFAFA;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.71,1.7,.77,1.24);
  box-shadow: -4px 0 32px rgba(34,49,82,0.12);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 24px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  margin: 24px 24px 0 auto;
  display: block;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 12px 8px 12px 0;
  border-radius: 5px;
  background: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #59A985;
  color: #223152;
}

/* --- FEATURES & LIST ITEMS --- */
ul {
  padding-left: 0;
}
.features ul, .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features li, .content-wrapper ul li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  gap: 16px;
  font-size: 1.03rem;
  font-weight: 600;
  color: #223152;
  box-shadow: 0 1px 5px rgba(34,49,82,0.09);
  margin-bottom: 0;
}
.features li img, .content-wrapper ul li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* --- PROFILE CARDS (FREELANCERS, PROJECTS) --- */
.profile-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.profile-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,49,82,0.10);
  padding: 26px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 340px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-card:hover {
  box-shadow: 0 8px 28px rgba(34,49,82,0.16);
  transform: translateY(-3px);
}

/* --- PROJECT BRIEFS --- */
.featured-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-brief {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,49,82,0.10);
  padding: 22px 18px 16px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 350px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.project-brief:hover {
  box-shadow: 0 8px 26px rgba(34,49,82,0.15);
  transform: translateY(-2px);
}

/* --- TEAM MEMBER PROFILES --- */
.team-member-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,49,82,0.10);
  padding: 22px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.team-member:hover {
  box-shadow: 0 8px 28px rgba(34,49,82,0.15);
  transform: translateY(-2px);
}
.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34, 49, 82, 0.13);
  min-width: 220px;
  max-width: 480px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  font-size: 1.1rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(34, 49, 82, 0.17);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card blockquote {
  color: #223152;
  font-size: 1.12rem;
  font-weight: 700;
  quotes: "\201C" "\201D";
}
.testimonial-card .testimonial-name {
  font-size: 1rem;
  font-weight: 600;
  color: #59A985;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- BUTTONS & CTAS --- */
.button, .button.primary {
  display: inline-block;
  appearance: none;
  border: none;
  background: #59A985;
  color: #fff;
  padding: 12px 34px;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(89, 169, 133, 0.11);
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.19s, color 0.19s;
}
.button:hover, .button:focus {
  background: #223152;
  color: #fff;
  box-shadow: 0 6px 24px rgba(34, 49, 82, 0.13);
}

/* --- FOOTER --- */
footer {
  background: #223152;
  color: #FAFAFA;
  padding-top: 36px;
  padding-bottom: 22px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #59A985;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #78d8a9;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-copy {
  color: #FAFAFA;
  margin-top: 10px;
  font-size: 0.98rem;
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  min-width: 280px;
  width: 98vw;
  max-width: 470px;
  z-index: 2400;
  background: #fff;
  box-shadow: 0 0 24px rgba(34,49,82,0.18), 0 2px 8px rgba(89,169,133,0.07);
  border-radius: 18px 18px 0 0;
  padding: 24px 16px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: #223152;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.41s cubic-bezier(.82,0,.32,1), opacity 0.22s;
}
#cookie-banner.active, .cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0%);
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}
.cookie-banner .button, .cookie-banner .button.primary {
  font-size: 1rem;
  padding: 9px 22px;
  box-shadow: none;
  border-radius: 8px;
}
.cookie-banner .button.secondary {
  background: #223152;
  color: #fff;
  border-radius: 8px;
  margin-right: 8px;
}
.cookie-banner .button.secondary:hover, .cookie-banner .button.secondary:focus {
  background: #59A985;
  color: #223152;
}
.cookie-banner .button.settings {
  background: #fff;
  color: #223152;
  border: 2px solid #223152;
  border-radius: 8px;
  font-weight: 700;
  padding: 9px 16px;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .button.settings:hover, .cookie-banner .button.settings:focus {
  background: #223152;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal, .cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95vw;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(34,49,82,0.18);
  transform: translate(-50%, -54%) scale(0.96);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  padding: 32px 20px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.33s, opacity 0.24s;
}
#cookie-modal.active, .cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .toggle-switch {
  appearance: none;
  width: 44px;
  height: 20px;
  border-radius: 12px;
  background: #cecece;
  outline: none;
  position: relative;
  transition: background 0.17s;
}
.cookie-modal .toggle-switch:checked {
  background: #59A985;
}
.cookie-modal .toggle-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-modal .toggle-switch:checked:before {
  left: 27px;
}
.cookie-modal .button {
  margin-top: 14px;
}

/* --- SECTION GAPS AND FLEX SPACING (MANDATORY) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- FORMATTING FOR POLICY PAGES --- */
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
}
.text-section ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  padding-left: 17px;
  list-style: decimal;
}
.text-section li {
  font-size: 1.01rem;
  color: #223152;
  padding-left: 0;
}
.text-section a {
  color: #59A985;
  word-break: break-all;
}

/* --- ACCESSIBILITY/CONTRAST --- */
.testimonial-card, .profile-card, .team-member, .project-brief {
  color: #223152;
  background: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
  .container {
    max-width: 93vw;
  }
  .profile-cards, .featured-projects-list, .team-member-profiles {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .content-grid, .profile-cards, .featured-projects-list, .team-member-profiles {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 34px;
  }
  .content-wrapper, .content-grid, .profile-cards, .featured-projects-list, .team-member-profiles {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .profile-card, .project-brief, .testimonial-card, .team-member {
    min-width: 0;
    max-width: 100%;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.09rem; }
  .container { padding: 0 2vw; max-width: 100vw; }
  .section {padding: 18px 2vw;}
  .button, .button.primary {padding: 10px 14vw; font-size:0.98rem;}
  .profile-card, .project-brief, .testimonial-card, .team-member {padding: 16px 8px;}
  .mobile-menu {
    max-width: 100vw;
    padding: 0 0 42px 0;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.button, .button.primary, .profile-card, .testimonial-card, .project-brief, .team-member {
  transition: background 0.20s, box-shadow 0.20s, color 0.20s, transform 0.17s;
}
.mobile-menu,
#cookie-banner, .cookie-banner,
#cookie-modal, .cookie-modal {
  will-change: transform, opacity;
}

/* --- Z-INDEX MANAGEMENT --- */
header { z-index: 1000; }
.mobile-menu { z-index: 1201; }
#cookie-banner, .cookie-banner { z-index: 2400; }
#cookie-modal, .cookie-modal { z-index: 2500; }

/* --- CUSTOM SCROLLBAR --- */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-thumb {
  background: #59A985;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #f3f3f3;
}

/* --- END --- */