/* RESET & FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* Normalize & 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; font-size:100%; font:inherit; vertical-align:baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display:block;
}
body {
  line-height:1.5;
  background: #FBFAFF;
  color: #21324C;
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; border:0; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  resize: none;
}

/* ----------- BRAND COLOR PALETTE: SOFT PASTELS --------- */
:root {
  --primary: #193153;
  --secondary: #F3F6FB;
  --accent: #36B480;
  --white: #FFF;
  --gray-light: #F2F4FA;
  --pastel-blue: #d8eafe;
  --pastel-purple: #e2e6fa;
  --pastel-mint: #dbf5ea;
  --pastel-yellow: #fff8d8;
  --pastel-pink: #fae2f0;
  --soft-shadow: 0 4px 24px 0 rgba(31, 65, 141, 0.10);
  --border-radius: 18px;
}

/* ------------------ GENERAL LAYOUT --------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
main {
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
}
/* Each section */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* Layout helpers */
.card-container, .card-grid, .blog-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card,
.service-card {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 285px;
  flex:1 1 320px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover,
.service-card:hover {
  box-shadow: 0 6px 36px 0 rgba(54, 180, 128, 0.25);
  transform: translateY(-5px) scale(1.02);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--pastel-mint);
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  color: #21324C;
  min-width: 280px;
  max-width: 420px;
  flex: 1 1 340px;
  transition: box-shadow 0.23s;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* ----------- TYPOGRAPHY -------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
h4 { font-size: 1.05rem; }
p, li, dl, dt, dd {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #21324C;
}
p {
  margin-bottom: 10px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
/* For trust signals and certifications */
.trust-signals, .certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--accent);
  margin-top: 10px;
  font-family: 'Montserrat',sans-serif;
}

/* ---------------- NAVIGATION ----------------- */
header {
  background: var(--white);
  box-shadow: var(--soft-shadow);
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
  background: transparent;
}
.main-nav > a img {
  height: 44px;
}
.main-nav ul {
  display: flex;
  gap: 24px;
}
.main-nav ul li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.15s;
}
.main-nav ul li a:hover:not(.btn-primary) {
  background: var(--pastel-purple);
  color: var(--accent);
}
/* NAV BUTTONS */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', sans-serif;
  padding: 11px 29px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 1px 9px 0 rgb(54 180 128 / 15%);
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.22s, transform 0.18s;
  outline: none;
  display: inline-block;
  line-height: 1.25;
}
.btn-primary:hover, .btn-primary:focus {
  background: #219d6b;
  color: var(--white);
  box-shadow: 0 3px 16px 2px rgba(31,60,100,0.09);
  transform: translateY(-2px) scale(1.045);
}
.btn-secondary {
  background: var(--pastel-blue);
  color: var(--primary);
  font-weight: 600;
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--pastel-mint);
  color: var(--accent);
  border-color: #137852;
}

/* --------------- MOBILE MENU --------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  z-index: 99;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: var(--accent);
  background: var(--pastel-blue);
  border-radius: 50%;
  border: none;
  transition: background 0.19s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--white);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--secondary);
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 100vw;
  z-index: 130;
  padding: 36px 24px 18px 24px;
  box-shadow: 0 8px 24px rgba(60,80,160,0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.36,0.66,0.04,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.15rem;
  background: transparent;
  color: var(--accent);
  border: none;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.21s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #219d6b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem;
  color: var(--primary);
  padding: 12px;
  border-radius: 10px;
  background: var(--pastel-blue);
  text-align: left;
  font-weight: 600;
  transition: background 0.2s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 992px) {
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Overlay effect for mobile menu */
.mobile-menu.open::before {
  content: '';
}

/* --------- FOOTER ----------- */
footer {
  background: var(--pastel-purple);
  border-top: 2px solid var(--pastel-blue);
  padding: 28px 0 10px 0;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.footer-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.2s, color 0.15s;
  padding: 5px 11px;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--white);
}
.footer-info {
  text-align: center;
  color: #203954;
  font-size: 14px;
  opacity: .85;
}

/* --------- HERO SECTION EXTRAS --------- */
section:first-of-type {
  background: linear-gradient(90deg, var(--pastel-blue) 0%, var(--pastel-purple) 80%);
  border-radius: 0 0 50px 50px;
  box-shadow: 0 8px 28px 0 rgba(88, 145, 195, 0.10);
  margin-bottom: 45px;
  padding-top: 60px;
}

/* ------ FEATURES UL LIST (ICONS, ETC) ------ */
.content-wrapper ul, .content-wrapper ol, .values ul, .tag-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-wrapper ul li, .content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0 13px 0;
  font-size: 1rem;
  background: var(--white);
  border-radius: 12px;
  color: var(--primary);
}
.content-wrapper ul li img {
  height: 32px;
  width: 32px;
}
.tag-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin: 5px 0 0 0;
}
.tag-list li a {
  background: var(--pastel-mint);
  color: var(--primary);
  display: inline-block;
  border-radius: 18px;
  font-size: 0.98rem;
  padding: 6px 18px;
  font-weight: 600;
  transition: background 0.16s, color 0.13s;
}
.tag-list li a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ------------- BLOG LIST ------------- */
.blog-list {
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: var(--pastel-pink);
  padding: 22px 18px 18px 18px;
  border-radius: var(--border-radius);
  box-shadow: var(--soft-shadow);
  margin-bottom: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  transition: box-shadow 0.19s;
}
.blog-list article h2 {
  font-size: 1.18rem;
  margin-bottom: 0;
}
.blog-list article a {
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
  padding-left: 0;
  text-decoration: underline wavy 1px var(--accent);
  transition: color 0.2s;
}
.blog-list article a:hover {
  color: var(--primary);
}

input[type="search"] {
  width: 100%;
  max-width: 400px;
  margin-top: 3px;
  background: var(--pastel-blue);
  border-radius: 13px;
  border: 1.5px solid var(--accent);
  padding: 11px 28px;
  font-size: 1rem;
  transition: border-color 0.18s, box-shadow 0.19s;
  margin-bottom: 20px;
}
input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px 0 #B4DFCE44;
}

/* ------------ CONTACT INFO, FAQ, DL/DT ------------ */
dl dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 1px;
  color: var(--accent);
}
dl dd {
  margin-left: 10px;
  font-size: 1rem;
  margin-bottom: 7px;
  color: #21324C;
}
dl {
  margin-bottom: 16px;
}

/* -------------- MAP STUB (CONTACT) ------------- */
.map-placeholder {
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  min-height: 170px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #768598;
  letter-spacing: 0.01em;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* -------------- COOKIE CONSENT BANNER ------------ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right:0; bottom:0;
  z-index: 120;
  background: var(--pastel-yellow);
  box-shadow: 0 -2px 16px rgba(209,166,96,0.10);
  padding: 21px 16px 21px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 56px;
  justify-content: center;
  transition: transform 0.35s, opacity 0.19s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-text {
  font-family: 'Open Sans',sans-serif;
  color: #566;
  font-size: 0.99rem;
  margin-right: 10px;
}
.cookie-consent-btn,
.cookie-settings-btn {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  border-radius: 30px;
  padding: 8px 24px;
  border: none;
  margin-left: 8px;
  box-shadow: 0 1px 6px rgba(31,65,141,0.05);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
}
.cookie-consent-btn.accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-consent-btn.reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-consent-btn.accept:hover {
  background: #219d6b;
  color: #fff;
}
.cookie-consent-btn.reject:hover {
  background: #eeaed1;
  color: var(--primary);
}
.cookie-settings-btn {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #d1e2f7;
  color: var(--accent);
}

/* Cookie Modal Popup */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 170;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,33,48,0.18);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 38px 28px 28px 28px;
  min-width: 318px;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(31,65,141,0.13);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: scaleIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover {
  color: #179b68;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-category-toggle {
  width: 42px;
  height: 24px;
  background: var(--pastel-mint);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
  border: 1px solid #c2e6cf;
}
.cookie-category-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-category-toggle .slider {
  position: absolute;
  top: 1.5px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent);
  transition: left 0.2s, background 0.2s;
}
.cookie-category-toggle input:not(:checked) + .slider {
  background: #c1e6d3;
  left:2px;
}
.cookie-category-toggle input:checked + .slider {
  background: var(--accent);
  left: 19px;
}
.cookie-category[aria-disabled="true"]{
  opacity:.7;
}

/* ------------ UTILITIES, ANIMATIONS ---------- */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes scaleIn {
  0% { transform:scale(0.88) translateY(12px); opacity:0.42; }
  100% { transform:scale(1); opacity:1; }
}

/* ----------- RESPONSIVE DESIGN ----------- */
@media (max-width: 1100px) {
  .container { max-width: 970px; }
}
@media (max-width: 992px) {
  .container { max-width: 760px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  .container { max-width: 97vw; }
  .main-nav > a img { height: 34px; }
  section { padding:32px 0; margin-bottom:48px; }
  .content-wrapper, .card-container, .card-grid, .blog-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .service-card, .testimonial-card, .card {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    padding: 17px 8px;
    text-align:center;
  }
  .footer-nav ul { gap: 13px; }
  .map-placeholder { min-height: 110px; }
}

@media (max-width: 540px) {
  .container { padding: 0 8px; }
  .card, .service-card, .testimonial-card { padding: 20px 10px; }
  .cookie-modal-content { min-width:210px; max-width:97vw; padding:18px 7px 16px 10px; }
}

/* ---- Extra adjust for CTA ---- */
section:last-of-type .container .content-wrapper {
  align-items: center;
  text-align:center;
}
section:last-of-type .btn-primary { margin-top:18px; }

/* --------- ADDITIONAL SPACING ------- */
.card:not(:last-child), .service-card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}


/* -------- AVISO: NO GRID USAGE! All flex layouts. -------- */
