/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #223659;
  background-color: #ffffff;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223659;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #35A68A;
  outline: none;
}
ul, ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
li + li {
  margin-top: 0.4em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #223659;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: 2.7rem; margin-top: 0; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }
h4 { font-size: 1.18rem; }

p {
  margin-bottom: 1.2em;
}

em, cite {
  font-style: italic;
  color: #223659;
}
strong {
  font-weight: 700;
}

/* --- CONTAINERS & STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #E8F0F2;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34, 54, 89, 0.04);
}

main section {
  margin-bottom: 60px;
}

/* --- HEADER & NAVBAR --- */
header {
  background: #223659;
  color: #fff;
  box-shadow: 0 2px 12px rgba(34, 54, 89, 0.09);
  width: 100%;
  z-index: 40;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 16px 20px;
}

header img {
  max-height: 56px;
  width: auto;
  margin-right: 28px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #35A68A;
  border-bottom: 2px solid #35A68A;
}
header .cta.primary {
  margin-left: 32px;
}

/* --- HERO & BUTTONS --- */
.hero {
  background: linear-gradient(102deg, #E8F0F2 60%, #fff 100%);
  margin-bottom: 60px;
  border-radius: 0 0 20px 20px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero .content-wrapper {
  text-align: center;
  max-width: 620px;
}
.hero h1 {
  color: #223659;
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p {
  color: #223659;
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 22px auto;
}
.hero .cta {
  margin-top: 20px;
}

.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 13px 36px;
  margin-top: 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 54, 89, 0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, border 0.2s;
}
.cta.primary {
  background: #35A68A;
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #238068;
  color: #fff;
  box-shadow: 0 2px 14px rgba(35, 166, 138, 0.2);
}
.cta.secondary {
  background: #223659;
  color: #fff;
  border: 2px solid #35A68A;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #fff;
  color: #35A68A;
  border: 2px solid #35A68A;
  box-shadow: 0 2px 14px rgba(34, 54, 89, 0.14);
}

/* ---- FLEX PATTERNS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(34, 54, 89, 0.06);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(34, 54, 89, 0.12);
  transform: translateY(-4px) scale(1.012);
}
.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;
  background: #F9FBFC;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(34, 54, 89, 0.07);
  color: #223659;
  margin-bottom: 22px;
  max-width: 570px;
  flex: 1 1 300px;
}
.testimonial-card p {
  color: #223659;
  font-size: 1.05rem;
  margin: 0;
}
.testimonial-card cite {
  color: #238068;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  margin-left: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* ---- FEATURE, PROJECT, INNOVATION, BLOG GRIDS ---- */
.feature-grid, .project-grid, .innovation-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div,
.project-grid > div, 
.innovation-grid > div, 
.blog-list > article {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(34,54,89,0.08);
  padding: 28px 22px;
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.feature-grid > div:hover,
.project-grid > div:hover, 
.innovation-grid > div:hover, 
.blog-list > article:hover {
  box-shadow: 0 6px 18px rgba(35,166,138,0.10);
  transform: translateY(-4px) scale(1.011);
}
.feature-grid img, .innovation-grid img, .project-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

/* ---- BLOG AUTHOR SPOTLIGHT ---- */
.author-spotlights {
  margin-top: 36px;
  padding: 22px;
  background: #E8F0F2;
  border-radius: 9px;
  font-size: 1rem;
}
.author-spotlights h4 {
  margin-bottom: 12px;
  color: #223659;
}
.author-spotlights ul {
  list-style: disc inside;
}
.author-spotlights li {
  margin-bottom: 6px;
}

/* ---- CONTACT DETAILS---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-details p, .contact-details a { color: #223659; }
.contact-details img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.90;
}
.contact-details a {
  color: #35A68A;
  word-break: break-all;
}
.call-to-action {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* ---- FOOTER ---- */
footer {
  background: #223659;
  color: #fff;
  padding: 34px 0 20px 0;
  font-size: 1rem;
  margin-top: 36px;
  box-shadow: 0 -1.5px 12px rgba(34, 54, 89, 0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.90;
}
footer nav a:hover, footer nav a:focus {
  color: #35A68A;
  opacity: 1;
}
footer div:last-child {
  opacity: 0.78;
  font-size: 0.95rem;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #223659;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(34, 54, 89, 0.07);
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E8F0F2;
  color: #35A68A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #223659;
  z-index: 1400;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.54,.09,.24,.95);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 24px 12px 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 18px 0 6px 0;
  border-bottom: 1px solid rgba(232,240,242,0.16);
  width: 100%;
  transition: color 0.2s;
  margin-bottom: 7px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #35A68A;
  background: rgba(232,240,242,0.09);
}
/* Hide desktop nav on small screens, show hamburger */
@media (max-width: 992px) {
  header .container nav {
    display: none !important;
  }
  header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- RESPONSIVE FLEX LAYOUTS ---- */
@media (max-width: 900px) {
  .feature-grid, .project-grid, .innovation-grid, .blog-list, .card-container, .content-grid {
    gap: 16px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .hero .container {
    min-height: unset;
    padding: 20px 8px;
  }
  .feature-grid, .project-grid, .innovation-grid, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials {
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    flex-direction: row;
    padding: 12px 8px;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 0.98rem;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; margin-top: 1.1rem; }
  h3 { font-size: 1.06rem; }
  .hero .container, .section {
    padding-left: 4px; padding-right: 4px;
  }
}

/* ---- SPACING & FLOW ---- */
.section + .section,
.section + section,
main section + section,
main > section + section,
.section + .card-container,
.card-container + .section {
  margin-top: 40px;
}
.card + .card,
.card-container > .card + .card {
  margin-left: 0;
}
.feature-item + .feature-item,
.testimonial-card + .testimonial-card {
  margin-top: 14px;
}

/* ---- TRANSITIONS, EFFECTS ---- */
*:focus {
  outline: 2px solid #35A68A;
  outline-offset: 2px;
}

.card, .feature-grid > div, .project-grid > div, .innovation-grid > div, .blog-list > article, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.16s;
}
.cta, .mobile-menu-toggle {
  transition: background 0.18s, color 0.16s, box-shadow 0.2s;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #223659;
  color: #fff;
  z-index: 3100;
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 30px rgba(34,54,89,0.12);
  transition: transform 0.38s cubic-bezier(.52,.06,.36,.98), opacity 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner-content {
  text-align: center;
  max-width: 900px;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 18px;
  justify-content: center;
}
.cookie-btn {
  padding: 11px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.accept {
  background: #35A68A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #238068;
}
.cookie-btn.reject {
  background: #fff;
  color: #223659;
  border: 1.6px solid #35A68A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E8F0F2;
  color: #223659;
}
.cookie-btn.settings {
  background: #223659;
  color: #fff;
  border: 1.2px solid #E8F0F2;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #35A68A;
  color: #fff;
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,54,89,0.65);
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: #223659;
  border-radius: 12px;
  padding: 36px 32px 32px 32px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 2px 36px rgba(34,54,89,0.19);
  animation: slideUp 0.24s ease;
}
@keyframes slideUp {
  from { transform: translateY(48px); opacity: 0.64; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 26px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #E8F0F2;
  border-radius: 7px;
  padding: 10px 13px;
}
.cookie-category label {
  flex: 1 1 0;
  color: #223659;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background-color: #bbb;
  border-radius: 14px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.19s;
  box-shadow: 0 1px 2px rgba(35,166,138,0.06);
}
.cookie-toggle input:checked + .toggle-slider {
  background-color: #35A68A;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1.5px 3px rgba(34,54,89,0.12);
}
.cookie-toggle input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
/* Essential (disabled) */
.cookie-category.essential .cookie-toggle .toggle-slider {
  background: #d8e5ed;
}
.cookie-category.essential .cookie-toggle .toggle-slider:before {
  background: #cddbe4;
}
.cookie-category.essential .cookie-toggle input {
  pointer-events: none;
}
/* Modal close btn */
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  color: #223659;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-actions .cta {
  min-width: 120px;
}
@media (max-width: 540px) {
  .cookie-modal-content { padding: 18px 6vw 14px 6vw; }
}

/* ---- MISCELLANEOUS ---- */
hr {
  border: none;
  border-top: 1.5px solid #E8F0F2;
  margin: 34px 0;
}
blockquote {
  border-left: 4px solid #35A68A;
  margin-left: 0;
  padding-left: 18px;
  color: #223659;
  background: #F9FBFC;
  border-radius: 4px;
}

/* ---- UTILITY CLASSES ---- */
.text-center { text-align: center !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---- PRINT ---- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer, .cta {
    display: none !important;
  }
  main, section, body {
    background: #fff !important;
    color: #223659 !important;
  }
}

/* ---- END OF CSS ---- */
