/* 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F8FBFF;
  color: #252b2e;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* BRAND FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #17687A;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 18px; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
h4, h5, h6 { font-weight: 500; color: #17687A; margin-bottom: 8px; }

p, li, dl, dd, dt, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #364350;
}
strong { font-weight: 600; }

/* GENERAL CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F3FAF5;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(60,140,168,0.10);
}

/* SPACING & FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(60,140,168,0.10);
  background: #fff;
  padding: 28px;
  transition: box-shadow 0.18s ease;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,112,121,0.18);
}
.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: #fafbfd;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(60,140,168,0.09);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid #e0f5ea;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg,#F3FAF5 65%,#E3EAF8 100%);
  border-bottom: 1px solid #eaf3fd;
  box-shadow: 0 1px 10px 0 rgba(20,92,120,0.07);
  position: sticky;
  top: 0; z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 54px;
  width: auto;
  vertical-align: middle;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #17687A;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a.active {
  background: #e8f8f5;
  color: #38A169;
}
nav a.btn-cta {
  background: #38A169;
  color: #fff;
  font-weight: 700;
  border-radius: 100px;
  padding: 8px 22px;
  margin-left: 18px;
  box-shadow: 0 2px 12px 0 rgba(56,161,105,0.08);
  transition: background 0.16s;
}
nav a.btn-cta:hover {
  background: #17687A;
  color: #fff;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #17687A;
  margin-left: 12px;
  cursor: pointer;
  display: none;
  z-index: 201;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #38A169;
}
@media (max-width: 1028px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(243,250,245, 0.98);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.65,.05,.36,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #38A169;
  margin: 24px 0 0 24px;
  cursor: pointer;
  transition: color 0.18s;
  align-self: flex-start;
}
.mobile-menu-close:focus {
  outline: 2px solid #17687A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 20px;
  padding: 10px 32px;
  width: 80vw;
  max-width: 340px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17687A;
  font-size: 1.3rem;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  background: none;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover {
  background: #E3EAF8;
  color: #38A169;
}
@media (max-width: 1028px) {
  header .container { flex-direction: row; }
}
@media (max-width: 680px) {
  .mobile-nav { width: 92vw; padding: 10px 12px; }
}

/* --- FLEX SPACING PATTERNS: reinforce --- */
.card-container, .content-grid, .service-cards, .feature-grid, .team-list, .case-study-list, .testimonial-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 16px;
}
.feature-grid>div, .service-cards>div, .team-list>div, .blog-list>article, .case-study-list>div {
  flex: 1 1 250px;
  min-width: 260px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(46,130,145,0.08);
  padding: 22px 20px 20px 20px;
  transition: box-shadow 0.19s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-grid>div:hover, .service-cards>div:hover, .team-list>div:hover, .case-study-list>div:hover, .blog-list>article:hover {
  box-shadow: 0 6px 24px 0 rgba(46,130,145,0.12);
}

/* BUTTONS & CALL TO ACTIONS */
.btn-cta {
  display: inline-block;
  background: #38A169;
  color: #fff;
  padding: 12px 34px;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.02em;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 16px 0 rgba(56,161,105,0.11);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
}
.btn-cta:hover, .btn-cta:focus {
  background: #17687A;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(23,104,122,0.14);
}
.btn-small {
  display: inline-block;
  background: #E3EAF8;
  color: #17687A;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.btn-small:hover, .btn-small:focus {
  background: #38A169;
  color: #fff;
}

/* LISTS, DL/DT */
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
  line-height: 1.9;
  color: #395D59;
}
ul li {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
dt {
  font-weight: 600;
  margin-top: 10px;
  color: #17687A;
}
dd {
  margin-bottom: 10px;
}

/* IMAGES & ICONS */
.feature-grid img, .service-cards img, .team-list img, .cert-icons img, .workflow-icons img, .social-links img, .map-placeholder img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(56,161,105,0.09));
}
.cert-icons, .workflow-icons {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
}

/* TESTIMONIALS -- Ensure excellent contrast */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.testimonial-card {
  background: #fff;
  color: #222d34;
  border: 1.5px solid #E3EAF8;
  box-shadow: 0 2px 15px 0 rgba(99,159,152,0.09);
  border-radius: 20px;
  min-width: 230px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 30px 22px 26px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card p {
  color: #17687A;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card span {
  color: #38A169;
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: #F3FAF5;
  border-top: 1px solid #eaf3fd;
  margin-top: 80px;
  padding-top: 38px;
  padding-bottom: 24px;
}
footer .container {
  gap: 30px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
footer nav a {
  color: #17687A;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  margin-right: 6px;
}
footer nav a:hover {
  color: #38A169;
}
footer .copyright {
  text-align: center;
  color: #869199;
  font-size: 0.99rem;
  margin-top: 14px;
}

/* --- PAGE-SPECIFIC COMPONENTS --- */
/* Map section placeholder styling */
.map-placeholder {
  background: #F3FAF5;
  border: 1px solid #E3EAF8;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(60,140,168,0.05);
  padding: 18px 26px;
  margin: 18px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

/* Newsletter/Category cards */
.blog-list {
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list article {
  background: #fff;
  padding: 24px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 9px 0 rgba(56,161,105,0.06);
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow 0.16s;
}
.blog-list article:hover {
  box-shadow: 0 8px 25px 0 rgba(56,161,105,0.12);
}

/* FAQ styling */
dd, dt {
  margin-left: 0;
}
dl {
  margin-bottom: 18px;
}
dl dt {
  font-weight: 600;
  color: #17687A;
  font-size: 1.11rem;
  margin-top: 16px;
}
dl dd {
  margin-bottom: 12px;
  color: #395D59;
  font-size: 1rem;
  border-left: 2px solid #38A169;
  padding-left: 14px;
}

/* Category tabs */
.categories-list, .categories-list ul {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.categories-list li {
  display: inline-block;
  background: #E3EAF8;
  padding: 6px 18px;
  border-radius: 100px;
  font-family: 'Montserrat';
  font-size: 1.01rem;
  color: #17687A;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #F3FAF5;
  border-top: 2px solid #E3EAF8;
  box-shadow: 0 -2px 18px 0 rgba(60,140,168,0.14);
  z-index: 2200;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: slideUp 0.45s cubic-bezier(.6,1.6,.45,1.08);
}
@keyframes slideUp {
  from {transform: translateY(110%);} to {transform: none;}
}
.cookie-banner-content {
  font-size: 1rem;
  color: #17687A;
  margin-right: 15px;
}
.cookie-banner button, .cookie-banner .btn {
  background: #38A169;
  color: #fff;
  border-radius: 100px;
  border: none;
  outline: none;
  padding: 9px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 8px;
  margin-top: 5px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.2s;
  box-shadow: 0 2px 10px 0 rgba(56,161,105,0.08);
}
.cookie-banner button:last-child {
  margin-right: 0;
}
.cookie-banner .btn-cookies-settings {
  background: #E3EAF8;
  color: #17687A;
}
.cookie-banner .btn-cookies-settings:hover { background: #38A169; color: #fff; }
.cookie-banner .btn-cookies-reject {
  background: #fff;
  color: #17687A;
  border: 1.1px solid #38A169;
}
.cookie-banner .btn-cookies-reject:hover { background: #38A169; color: #fff; }
.cookie-banner .btn-cookies-accept:hover { background: #17687A; color: #fff; }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  background: rgba(23,104,122,0.22);
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2220;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(23,104,122,0.23);
  max-width: 440px;
  width: 94vw;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pop-in 0.38s cubic-bezier(.3,1.2,.44,1.03);
  position: relative;
}
@keyframes pop-in {
  0% { transform: scale(0.85) translateY(40px); opacity: 0; }
  90% {transform: scale(1.035) translateY(-4px);} 
  100% { transform: scale(1) translateY(0px); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat';
  font-size: 1.26rem;
  color: #17687A;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  margin: 13px 0;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.cookie-modal .btn-cookie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.58rem;
  color: #17687A;
  cursor: pointer;
}
@media (max-width: 530px) {
  .cookie-modal {
    padding: 16px 10px 14px 10px;
    font-size: 0.98rem;
  }
}

/* Cookie modal toggle switches */
.cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 18px;
  background: #E3EAF8;
  display: inline-block;
  position: relative;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: #38A169;
  border-radius: 32px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .slider {
  background: #17687A;
}
.cookie-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 1.4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(.5,1.6,.78,1.2);
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(14px);
}

/* Utility classes */
.mt-20 { margin-top: 20px; }
.mb-24 { margin-bottom: 24px !important; }
.pt-16 { padding-top: 16px; }
.pb-16 { padding-bottom: 16px; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
 .container { max-width: 92vw; }
 .content-wrapper { gap: 26px; }
 footer .content-wrapper { gap: 20px; flex-direction: column; align-items: flex-start; }
 .card-container, .content-grid, .service-cards, .feature-grid, .team-list, .case-study-list, .testimonial-list, .blog-list {
  gap: 18px;
 }
 .section { padding: 24px 8px; }
 .feature-grid>div,
 .service-cards>div,
 .team-list>div,
 .case-study-list>div,
 .blog-list>article {
    min-width: 180px;
    font-size: 0.97rem;
    padding: 16px 12px;
 }
}
@media (max-width: 768px) {
 .container { padding: 0 6px; }
 header .container { flex-direction: row; }
 .content-wrapper { gap: 18px; }
 .card-container, .content-grid, .feature-grid, .service-cards, .testimonial-list, .blog-list, .team-list, .case-study-list {
  flex-direction: column;
  gap: 16px;
 }
 .feature-grid>div,
 .service-cards>div,
 .team-list>div,
 .case-study-list>div,
 .blog-list>article {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
 }
 .text-image-section { flex-direction: column; gap: 18px; }
 h1 { font-size: 2rem; }
 h2 { font-size: 1.36rem; }
 h3 { font-size: 1.04rem; }
 nav { display: none; }
 .mobile-menu-toggle { display: block; }
}
@media (max-width: 480px) {
  header .container { padding-left: 4px; padding-right: 4px; }
  .logo img { height: 39px; }
  .section { padding: 18px 3.5vw; }
  .testimonial-card { padding: 16px 10px; font-size: 0.98rem; }
  footer .copyright { font-size: 0.93rem; }
}

/* --- MICRO-INTERACTIONS & STATES --- */
a, button, .btn-cta, .btn-small, input, .cookie-banner button {
  outline: none;
  transition: box-shadow 0.17s, background 0.13s, color 0.13s;
}
a:focus, button:focus, .btn-cta:focus, .btn-small:focus {
  box-shadow: 0 0 0 2px #38A169, 0 2px 8px 0 rgba(56,161,105,0.09);
}

/* --- SOFT PASTEL PALETTE ADDITIONAL COLORS (for accents) --- */
:root {
  --brand-primary: #17687A;
  --brand-secondary: #38A169;
  --brand-accent: #F3FAF5;
  --pastel-blue: #E3EAF8;
  --pastel-green: #E7F8EF;
  --pastel-mint: #F3FAF5;
  --pastel-yellow: #FFF8E7;
  --pastel-pink: #FBEFF4;
}

/* --- DREAMY TOUCHES (background tints) --- */
body, .section {
  background: linear-gradient(145deg, #F3FAF5 0%, #E3EAF8 60%, #FBEFF4 100%);
}
.section {
  background: linear-gradient(120deg, #F3FAF5 80%, #FFF8E7 100%);
}
.card, .testimonial-card, .feature-grid>div,
.service-cards>div, .team-list>div, .blog-list>article {
  background: linear-gradient(110deg, #fff 66%, #E7F8EF 100%);
}

/* --- CUSTOM SCROLLBAR (soft, subtle) --- */
::-webkit-scrollbar { width: 10px; background: #E3EAF8; border-radius: 9px; }
::-webkit-scrollbar-thumb { background: #E7F8EF; border-radius: 7px; }
