/* === 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* === BRAND COLORS & FONTS === */
:root {
  --primary: #205375;
  --primary-dark: #182848;
  --accent: #F0F4F9;
  --text: #262520;
  --muted: #F7F8FA;
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: 'Roboto', Arial, sans-serif;
  --display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: var(--accent);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, address {
  font-family: var(--serif);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: bold;
  color: var(--primary-dark);
}
em {
  font-style: italic;
  color: var(--primary);
}
.cta-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

/* === CONTENT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* === FLEXBOX LAYOUTS (MANDATORY) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(32, 83, 117, 0.11);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1), transform .18s;
}
.card:hover {
  box-shadow: 0 6px 36px 0 rgba(32, 83, 117, 0.18);
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, #f0f4f9 80%, #fff 100%); 
  padding: 70px 0 38px 0;
  margin-bottom: 50px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 640px;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary-dark);
}
.hero p {
  font-size: 1.17rem;
  color: #37383a;
  margin-bottom: 24px;
}

/* === BUTTONS & LINKS === */
.cta-btn, .feature-grid a, .highlight-section a {
  font-family: var(--display);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px 0 rgba(32, 83, 117, 0.10);
  transition: background .17s, box-shadow .18s, transform .18s;
  cursor: pointer;
  outline: none;
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-block;
}
.cta-btn:hover, .feature-grid a:hover, .highlight-section a:hover, .cta-btn:focus {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px 0 rgba(32, 83, 117, 0.16);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}
.main-nav a, .footer-menu a, .mobile-nav a {
  color: var(--primary-dark);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  margin-right: 16px;
  transition: color .13s;
  padding: 3px 8px;
  border-radius: 4px;
}
.main-nav a:last-child, .footer-menu a:last-child {
  margin-right: 0;
}
.main-nav a:hover, .footer-menu a:hover, .mobile-nav a:hover {
  color: var(--primary);
  background: #ecf2f9;
}

/* === LOGO === */
.logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
  padding: 0;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}

/* === NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #e0e4e7;
  box-shadow: 0 1px 10px 0 rgba(32,83,117,.05);
  padding: 0;
  position: relative;
  z-index: 28;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 6px 15px 5px 15px;
  cursor: pointer;
  margin-left: 16px;
  transition: background .15s, transform .14s;
  z-index: 36;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.08) rotate(-4deg);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,83,117,0.97);
  box-shadow: 0 6px 42px 0 rgba(32,83,117,0.15);
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform .28s cubic-bezier(.5,1.1,.4,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 28px 24px 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  transition: background .15s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: rgba(255,255,255,0.08);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  padding: 12px 12px 12px 0;
  border-radius: 0 24px 24px 0;
  letter-spacing: 0.01em;
  font-family: var(--display);
  font-weight: 500;
  transition: background .11s, color .11s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--accent);
}

/* === SECTION-GENERIC SPACING (MANDATORY) === */
section {
  margin-bottom: 60px;
  padding-top: 0;
  padding-bottom: 0;
}

/* === CARDS, TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dde5ee;
  box-shadow: 0 2px 12px 0 rgba(32,83,117,0.09);
  margin-bottom: 24px;
  font-size: 1.08rem;
  color: #221c13;
  min-width: 260px;
  max-width: 850px;
  position: relative;
  transition: box-shadow .15s, transform .13s;
}
.testimonial-card p {
  margin: 0;
  font-family: var(--serif);
  color: #221c13;
  font-size: 1.07rem;
}
.testimonial-card strong {
  color: var(--primary-dark);
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 rgba(32, 83, 117, 0.17);
  transform: scale(1.012);
  z-index: 1;
}

/* === HIGHLIGHTED SECTIONS === */
.highlight-section {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 30px 24px;
  margin-top: 35px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px 0 rgba(32,83,117,0.12);
}
.highlight-section h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.highlight-section p {
  color: #1b2129;
}

/* === SEARCH SECTION (JOBS PAGE) === */
.search-section {
  margin: 24px 0;
  display: flex;
  align-items: center;
}
.search-section input[type='text'] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 24px;
  border: 1px solid #d6d6db;
  font-size: 1rem;
  font-family: var(--serif);
  background: #f8fafc;
  color: #979899;
  outline: none;
  transition: border .13s;
  margin-bottom: 6px;
}
.search-section input[type='text']:focus {
  border-color: var(--primary);
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #e0e3e7;
  padding: 38px 0 20px 0;
  margin-top: 50px;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
footer .text-section {
  color: #727272;
  font-family: var(--serif);
  margin-bottom: 0;
  line-height: 1.6;
}
footer a {
  text-decoration: none;
  color: var(--primary-dark);
  transition: color .13s, background .13s;
}
footer a:hover {
  color: var(--primary);
  background: #f0f4f9;
}

/* === GENERIC ELEMENTS === */
ul, ol {
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--serif);
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  list-style: disc;
}

address {
  font-style: normal;
  color: #4a505b;
}

hr {
  border: none;
  border-top: 1px solid #ebeef2;
  margin: 18px 0 18px 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* === WHITE CARDS IN SECTIONS === */
.feature-grid > div, .feature-grid > .card {
  background: #fff;
  border-radius: 13px;
  border: 1px solid #e2e6ea;
  box-shadow: 0 1px 8px 0 rgba(32,83,117,0.08);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 250px;
  transition: box-shadow .16s, transform .14s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid > div img {
  height: 38px;
  width: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #f7f9fb;
  box-shadow: 0 1px 6px rgba(32,83,117,0.09);
  object-fit: contain;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 36px 0 rgba(32,83,117,0.13);
  transform: scale(1.016);
  z-index: 2;
}

/* === COOKIE CONSENT === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #dde2ef;
  box-shadow: 0 -2px 24px 0 rgba(32,83,117,0.07);
  padding: 24px 10vw 20px 10vw;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-family: var(--serif);
  transition: transform .28s cubic-bezier(.5,1.1,.4,1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(180px);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-text {
  flex: 1 1 220px;
  color: #2e2d2b;
  line-height: 1.6;
  font-size: 1.01rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 19px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  transition: background .16s, box-shadow .16s, transform .18s;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(32,83,117,0.09);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px 0 rgba(32, 83, 117, 0.15);
  transform: scale(1.05);
}
.cookie-btn-reject {
  background: #f5f5f5;
  color: var(--primary-dark);
  border: 1px solid #bcc7d9;
}
.cookie-btn-reject:hover {
  background: #e7ebee;
  color: var(--primary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,83,117,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 1;
  pointer-events: all;
  transition: opacity .2s;
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 44px 0 rgba(32,83,117,0.17);
  padding: 36px 28px 22px 28px;
  max-width: 410px;
  min-width: 290px;
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-inner h3 {
  font-family: var(--display);
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  margin-bottom: 11px;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #e1e4ea;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background .19s;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: var(--primary);
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 0.35px;
  transition: left .19s;
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #aaa;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color .12s;
}
.cookie-modal-close:hover {
  color: var(--primary);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .card-grid, .footer-menu {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid,
  .content-grid,
  .footer-menu {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero { padding: 38px 0 26px 0; }
  .hero h1 { font-size: 1.38rem; }
  .hero .content-wrapper { max-width: 100%; }
  .section, main > section {
    padding: 28px 0;
    margin-bottom: 38px;
  }
  .card, .feature-grid > div, .testimonial-card, .highlight-section {
    min-width: 0;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
  }
  footer {
    padding: 20px 0 13px 0;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 19px 18px 17px 18px;
    gap: 14px;
    font-size: 0.98rem;
  }
}
@media (max-width: 600px) {
  .logo img { height: 36px; }
  .hero p { font-size: 1rem; }
  .feature-grid > div img, .feature-grid > .card img {
    height: 30px;
    width: 30px;
  }
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-btn, .feature-grid a, .card, .testimonial-card, .highlight-section {
  transition: box-shadow .18s cubic-bezier(.4,0,.2,1), transform .18s, background .13s;
}

/* Utilities */
.nowrap { white-space: nowrap; }

/* Hide visually but accessible */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* === END CSS === */
