/*=====================  CSS RESET & BASE =====================*/
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, main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F9FB;
  color: #223146;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #184075;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #184075;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;  margin: 0 0 16px 0;  padding-left: 20px;  color: #223146;
}
ul li, ol li { margin-bottom: 8px; position: relative;}
ul li::before, ol li::before {
  content: '';  display: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184075;
  font-weight: 700;
  margin-bottom: 20px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-top: 0; }
h2 { font-size: 1.65rem; line-height: 1.2; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.08rem; }
h6 { font-size: 1rem; }
p {
  color: #223146;  font-size: 1.08rem;  margin-bottom: 18px;
}
strong, b { font-weight: 700; }
img {
  max-width: 100%;  display: block;  height: auto;  border-radius: 6px;
}
input, button, textarea, select {
  font-family: inherit;  font-size: 1rem;  border-radius: 6px;
  box-sizing: border-box;
}
button { cursor: pointer; background: none; border: none; }

/*--- Typography Scale (mobile first) ---*/
@media (min-width: 700px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.05rem; }
  h3 { font-size: 1.32rem; }
  p { font-size: 1.12rem; }
}

/*=====================  BRAND COLORS  =====================*/
:root {
  --primary: #184075;
  --primary-dark: #132E53;
  --secondary: #D3E2EF;
  --accent: #F5CB5C;
  --light-bg: #F7F9FB;
  --card-bg: #FFFFFF;
  --border: #E3E5EA;
  --text-main: #223146;
  --text-dark: #184075;
}

/*===================  CONTAINERS & SECTIONS  ====================*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 18px;
  box-sizing: border-box;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.text-section {
  max-width: 670px;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 960px) {
  .content-wrapper {
    gap: 40px;
  }
}

/*============== CARDS, GRIDS, FLEX LAYOUTS ==============*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 1px 8px 0 rgba(23, 48, 117, 0.06);
  padding: 24px 22px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(23, 48, 117, 0.12);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

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

/* About us page (team values/awards) flex alignment for lists */
.text-section ul, .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-main);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 rgba(34,49,70,0.07);
  flex-direction: column;
  transition: box-shadow 0.2s, border 0.18s;
}
.testimonial-card p {
  font-size: 1.10rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #223146;
  margin-bottom: 8px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
}
.testimonial-card span {
  color: #F5CB5C;
  font-size: 1.3em;
  margin-left: 0.6em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(23, 48, 117, 0.16);
  border: 1px solid var(--primary);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-icon-desc {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px 16px;
  flex: 1 1 245px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 8px 0 rgba(23, 48, 117, 0.06);
  min-height: 220px;
  transition: box-shadow 0.18s, border 0.18s;
}
.feature-icon-desc img {
  width: 48px;
  margin-bottom: 4px;
}
.feature-icon-desc h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 3px;
  margin-top: 0px;
}
.feature-icon-desc:hover {
  box-shadow: 0 3px 18px rgba(23, 64, 117, 0.13);
  border: 1.4px solid var(--primary);
}

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

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service {
  background: var(--secondary);
  border-radius: 14px;
  padding: 20px 18px;
  flex: 1 1 240px; min-width: 235px; max-width: 330px;
  box-shadow: 0 1px 8px 0 rgba(23, 48, 117, 0.03);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border 0.15s;
}
.service h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.service:hover {
  box-shadow: 0 5px 16px rgba(23, 48, 117, 0.11);
  border: 1.4px solid var(--primary-dark);
}

.case-study {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(34,49,70,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s;
}
.case-study:hover {
  box-shadow: 0 8px 32px 0 rgba(23, 48, 117, 0.15);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.faq-list h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 5px;
  margin-top:15px;
}

/* Contact info block styling */
.contact-block {
  background: var(--secondary);
  padding: 24px 18px; border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-block h2 {
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
  margin-top: 8px;
}
.contact-block p, .contact-block a {
  color: #223146;
  word-break: break-all;
  font-size: 1rem;
}
.contact-block img {
  width: 18px;  vertical-align: middle; margin-right: 7px; display: inline-block;
}
.contact-info-cta {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(34,49,70, 0.03);
  margin-top: 10px;
}

/*============== HEADER & NAVIGATION ==============*/
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  gap: 0;
}
header img {
  max-height: 48px;
  width: auto;
  border-radius: 0;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184075;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
.button-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 28px;
  margin-left: 10px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(34,49,70,0.09);
  transition: background 0.24s, box-shadow 0.18s, color 0.15s;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: var(--accent);
  color: var(--primary)!important;
  box-shadow: 0 4px 14px 0 rgba(245,203,92,0.13);
}

/* ------ MOBILE MENU ------ */
.mobile-menu-toggle {
  display: flex;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  border: none;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  padding: 0;
  margin-left: 20px;
  z-index: 110;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--primary-dark);
  outline: 2px solid var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,40,58,0.92);
  backdrop-filter: blur(2px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.84,0.13,0.22,1), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  display: flex;
  background: none;
  color: #fff;
  font-size: 2.25rem;
  margin: 30px 26px 10px 0;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 220;
  align-self: flex-end;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 10px 32px 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 6px 0;
  padding: 10px 0;
  border-radius: 4px;
  width: 100%;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 900px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/*================= HERO, CTAS, SECTIONS =================*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child {
  margin-bottom: 0;
}

/* Home hero section */
.content-wrapper.text-section h1 {   font-size: 2.2rem;   color: var(--primary);   font-weight: 700;   }
@media (min-width: 600px) {
  .content-wrapper.text-section h1 {
    font-size: 2.7rem;
  }
}
@media (min-width: 1000px) {
  .content-wrapper.text-section h1 { font-size: 3.2rem; }
}

.content-wrapper.text-section .button-primary {
  margin-top: 16px;
}

/*================== FOOTER ==================*/
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;  padding: 28px 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer a img { max-height: 42px; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  border-radius: 5px;
}
footer nav a:focus,
footer nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  font-size: 0.98rem;
  color: #5B6878;
  max-width: 270px;
  line-height: 1.55;
}
.footer-contact p { margin-bottom: 8px;}

@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/*=============== COOKIE CONSENT BANNER ===============*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px 0 rgba(34,49,70,0.10);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 22px 16px;
  gap: 16px;
  animation: cookiefadein 0.65s 1;
}
@keyframes cookiefadein {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #323946;
  font-size: 1.0rem;
  max-width: 900px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.button-cookie {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 28px;
  border: none;
  padding: 8px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0 0;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.button-cookie:hover, .button-cookie:focus {
  background: var(--accent);
  color: var(--primary);
}
.button-cookie.secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.button-cookie.secondary:hover, .button-cookie.secondary:focus {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

/*----- COOKIE PREFERENCE MODAL -----*/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(34,49,70,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 36px 0 rgba(23, 40, 64, 0.20);
  max-width: 400px;
  min-width: 260px;
  width: 94vw;
  padding: 35px 26px 24px 26px;
  z-index: 3200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: cookiemodalfade 0.45s;
}
@keyframes cookiemodalfade {
  from { transform: translateY(45px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #EAECF3;
  font-size: 1rem;
}
.cookie-category:last-child { border-bottom: none; }

.cookie-toggle {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
}
.cookie-category-label {
  flex: 1 1 auto;
  color: #223146;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-close-modal {
  position: absolute;
  top: 16px; right: 19px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.18em;
  cursor: pointer;
  z-index: 3334;
}
.cookie-close-modal:focus,
.cookie-close-modal:hover {
  color: var(--accent);
}

/*================= UTILITY & HELPERS =================*/
::-webkit-input-placeholder { color: #999; font-size: 1em; }
::-moz-placeholder { color: #999; font-size: 1em; }
:-ms-input-placeholder { color: #999; font-size: 1em; }
::placeholder { color: #999; font-size: 1em; }

/* Spacings */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/*--- Hide visually but not from screen readers ---*/
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* error, success messages etc. */
.alert {
  padding: 16px 22px;
  background: var(--secondary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--primary-dark);
  margin-bottom: 22px;
  font-weight: 500;
}

/*============== RESPONSIVE ADJUSTMENTS ==============*/
@media (max-width: 1100px) {
  .feature-grid, .service-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-icon-desc, .service {
    min-width: 210px; max-width: 100%; flex: 1 1 200px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-icon-desc, .service { min-width: 0; }
  .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
  .text-image-section, .content-wrapper, .content-grid, .feature-grid, .service-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  section, .section {
    padding: 24px 9px;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.03rem;
  }
  .testimonial-card,
  .feature-icon-desc,
  .service,
  .case-study {
    margin-bottom: 18px;
  }
  header .container {
    flex-direction: row;
    padding: 11px 8px;
  }
  .footer-contact { text-align: center; }
}
@media (max-width: 550px) {
  html, body { font-size: 0.97em; }
  .container { padding-left: 3.5vw; padding-right: 3.5vw; }
}

/*================  FOCUS STYLES & INTERACTIONS  ================*/
a:focus-visible, .button-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-primary {
  box-shadow: 0 1px 8px 0 rgba(23, 48, 117, 0.09);
  transition: background 0.24s, color 0.2s, box-shadow 0.13s;
}
.button-primary:active, .button-primary:focus {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(24,64,117,0.14);
}

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
}

/* Micro Interactions for cards */
.card, .service, .feature-icon-desc, .case-study, .testimonial-card {
  transition: box-shadow 0.15s, border 0.13s, background 0.13s;
}
.card:active, .service:active, .feature-icon-desc:active, .case-study:active, .testimonial-card:active {
  background: var(--secondary);
  border-color: var(--accent);
}

/*================ SPECIALS ================*/
/* Highlight for important text */
mark {
  background: var(--accent);
  color: var(--primary);
  padding: 0.08em 0.16em;
  border-radius: 4px;
}

/* Scrollbar for desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 7px; background: #eee; }
  ::-webkit-scrollbar-thumb { background: #c8d5e2; border-radius: 4px; }
}

/*==================== PRINT (Optional) ==================*/
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none; }
}

/*=============== Z-INDEXES ===============*/
header, .mobile-menu { z-index: 110; }
.cookie-banner { z-index: 2000; }
.cookie-modal-overlay { z-index: 3000; display: none; }
.cookie-modal-overlay.open {
  display: flex;
}
/*=============== END ===============*/
