/* ===== 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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
  display:block;
}
body{
  line-height:1.5;
  background: #F6F7F9;
  color: #232942;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol,ul{
  list-style:none;
}
a{
  background-color:transparent;
  color: inherit;
  text-decoration:none;
  transition: color 0.2s;
}
img{
  max-width:100%;
  height:auto;
  display:block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border:none;
  background: none;
  cursor: pointer;
  outline: none;
}
hr {
  border: 0;
  height: 1px;
  background: #E8EAED;
  margin: 32px 0;
}

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

:root {
  --color-primary: #232942;
  --color-secondary: #057A5D;
  --color-accent: #F6F7F9;
  --color-dark: #181C2D;
  --color-light: #FFFFFF;
  --gradient-main: linear-gradient(98deg, #057A5D 0%, #232942 95%);
  --gradient-hero: linear-gradient(99deg, #057A5D 0%, #7DD9B9 100%);
  --gradient-hover: linear-gradient(98deg, #232942 0%, #057A5D 90%);
  --shadow-card: 0 2px 15px rgba(34,41,66,0.08), 0 1.5px 3px rgba(40,100,80,0.07);
  --radius-card: 18px;
  --radius-btn: 30px;
  --transition: 0.28s cubic-bezier(.5,.13,.3,1);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ======= UTILITY CLASSES ======= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ====== TYPOGRAPHY ====== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.12;
  margin-bottom: 16px;
}
h1{
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1.2px;
}
h2{
  font-size: 2rem;
  margin-bottom: 20px;
}
h3{
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4,h5,h6{
  font-size: 1rem;
}
p,li,em,strong {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.65;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
  opacity: 0.85;
}

/* ===== LINKS ===== */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
a:focus {
  color: #099371;
}

.cta-primary {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 14px 36px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(5,122,93,0.16);
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--gradient-hover);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 28px rgba(5,122,93,0.16);
}


/* ====== LAYOUT SPACING ====== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}

/* --------- FLEX LAYOUTS --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 26px 18px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 250px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 36px rgba(5,122,93,0.14);
  transform: translateY(-6px) scale(1.015);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 520px;
  width: 100%;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== FEATURE GRID (Homepage, etc.) ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 20px;
  width: 100%;
}
.feature-grid > li {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 22px 26px 22px;
  flex: 1 1 270px;
  max-width: 350px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature-grid > li:hover {
  box-shadow: 0 7px 24px rgba(5,122,93,0.12);
  transform: translateY(-3px) scale(1.012);
}
.feature-grid img {
  width: 38px;
  height: 38px;
}
.feature-grid h3 {
  margin: 0 0 9px 0;
  font-size: 1.15rem;
}


/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: var(--gradient-main);
  padding: 0;
  box-shadow: 0 2px 22px rgba(35,41,66,0.09);
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.main-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a.cta-primary {
  background: #fff;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 16px rgba(5,122,93,0.13);
  padding: 8px 22px;
  margin-left: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.03);
}
.main-nav a:hover:not(.cta-primary),
.main-nav a:focus:not(.cta-primary) {
  background: rgba(255,255,255,0.09);
}
.main-nav img {
  height: 37px;
  margin-right: 18px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 250;
  background: #fff;
  color: var(--color-secondary);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(5,122,93,0.12);
  transition: background var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2500;
  background: var(--gradient-main);
  box-shadow: 0 6px 80px rgba(35,41,66,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(.43,.46,.29,1.02), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2555;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.08);
  color: #7DD9B9;
}
.mobile-nav {
  margin-top: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90vw;
  max-width: 400px;
  gap: 10px;
}
.mobile-nav a {
  width: 100%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  background: transparent;
  padding: 16px;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.10);
  color: #7DD9B9;
}
/* Hide Main nav & show mobile menu button on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none;
  }
}

/* ===== HERO SECTION (INDEX) ===== */
main > section:first-of-type {
  background: var(--gradient-hero);
  border-bottom-left-radius: 52px;
  border-bottom-right-radius: 52px;
  color: #fff;
  min-height: 315px;
  padding-top: 70px;
  padding-bottom: 70px;
  box-shadow: 0 6px 38px rgba(87,217,185,0.09);
}
main > section:first-of-type .content-wrapper > * {
  color: #fff;
}
main > section:first-of-type .cta-primary {
  background: #fff;
  color: var(--color-secondary);
}
main > section:first-of-type .cta-primary:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* === GENERIC SECTION BACKGROUND VARIANTS === */
.section-alt {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 20px rgba(35,41,66,0.08);
}
.section-contrast {
  background: #232942;
  color: #fff;
}

/* ===== TESTIMONIALS ===== */
#testimonials h2 {
  margin-bottom: 36px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: #232942;
  font-size: 1.08rem;
  max-width: 450px;
  width: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 30px rgba(5,122,93,0.14);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  margin-bottom: 8px;
  font-style: italic;
  font-size: 1.01rem;
  color: #232942;
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 0.96rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 2px;
}

/* === LISTS === */
ul, ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
  padding-left: 0;
}
ul.feature-grid {
  padding-left: 0;
  margin-bottom: 10px;
}
.text-section ul {
  margin-bottom: 20px;
}
.text-section li {
  position: relative;
  padding-left: 20px;
}
.text-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.65;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  position: relative;
  font-size: 1rem;
  padding-top: 36px;
  padding-bottom: 16px;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}
footer .contact-short {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
footer .contact-short p {
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 5px;
  font-size: 1rem;
  gap:7px;
}
footer .contact-short img {
  margin-right: 8px;
  width: 25px;
  height: 25px;
}
footer .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 160px;
}
footer .footer-menu a {
  color: #fff;
  opacity: 0.82;
  font-size: 1rem;
  transition: color var(--transition), opacity var(--transition);
}
footer .footer-menu a:hover, footer .footer-menu a:focus {
  color: #7DD9B9;
  opacity: 1;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 21px;
  flex: 1 1 120px;
}
footer .social-links a img {
  filter: brightness(1.15) grayscale(0.05);
  transition: filter var(--transition), transform var(--transition);
}
footer .social-links a:hover img,
footer .social-links a:focus img {
  filter: brightness(2) grayscale(0) saturate(2);
  transform: scale(1.12);
}

/* ===== TEXT SECTIONS & SPECIALS ===== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.text-section h3 {
  margin-top: 12px;
  margin-bottom: 7px;
}

/* === FORM ELEMENTS (Contact, Cookie Modal, etc.) === */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid #C9D6DF;
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 16px;
  background: #fff;
  color: var(--color-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  outline: none;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 4px rgba(5,122,93,0.19);
}

button, .button, .btn {
  display: inline-block;
  padding: 11px 32px;
  background: var(--gradient-main);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin: 0 7px 0 0;
  border: none;
  outline: none;
  box-shadow: 0 2px 14px rgba(5,122,93,0.09);
}
button:hover, .btn:hover, .button:hover,
button:focus, .btn:focus, .button:focus {
  background: var(--gradient-hover);
  color: #fff;
  transform: scale(1.03);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3333;
  background: #fff;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -2px 24px rgba(35,41,66,0.15);
  padding: 28px 26px 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 80px;
  animation: fadeInUp 0.6s cubic-bezier(.36,.04,.38,1.12);
}
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
  flex: 3 1 240px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex: 1 0 auto;
}
.cookie-banner .accept-btn {
  background: var(--gradient-main);
  color: #fff;
}
.cookie-banner .reject-btn {
  background: #fff;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  font-weight: 600;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .settings-btn {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid #C9D6DF;
  font-weight: 600;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3340;
  inset: 0;
  background: rgba(35,41,66,.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 430px;
  width: 92vw;
  box-shadow: 0 10px 48px rgba(35,41,66,0.22);
  padding: 34px 26px 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: fadeInModal 0.38s cubic-bezier(.49,.2,.49,1.08);
}
@keyframes fadeInModal {
  from { transform: translateY(32px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--color-secondary);
  font-size: 1.8rem;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .modal-close:hover {
  color: #232942;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-options label {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-options input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
  border-radius:6px;
}
.cookie-options .essential-label {
  opacity: 0.68;
}
.cookie-options .essential-label input {
  pointer-events: none;
  accent-color: #C9D6DF;
}
.cookie-modal .modal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
  .main-nav { max-width: 96vw; }
}
@media (max-width: 900px) {
  .footer .content-wrapper,footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .feature-grid { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .section {
    padding: 32px 6px;
    margin-bottom: 38px;
  }
  main > section:first-of-type {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding-top: 36px;
    padding-bottom: 36px;
    min-height: 170px;
  }
  .container {
    padding: 0 5px;
  }
  .footer .content-wrapper,footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 1.38rem; margin-bottom: 16px; }
  h2 { font-size: 1.1rem; }
  .testimonial-card, .feature-grid>li {
    min-width: 160px;
    max-width:88vw;
    padding: 19px 8px 16px 12px;
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    min-height: 110px;
    padding: 21px 7px;
  }
}

/* ====== RESPONSIVE FLEX-DIRECTIONS FOR FLEX LAYOUTS ====== */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}

/* ==== VISUAL ELEVATION, ANIMATIONS & EFFECTS ==== */
.card, .feature-grid > li, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:focus-within,
.feature-grid > li:focus-within,
.testimonial-card:focus-within {
  box-shadow: 0 10px 48px rgba(5,122,93,.15);
}

/* === MICRO INTERACTIONS: subtle scale & color === */
.card:hover, .card:focus-within,
.feature-grid > li:hover, .feature-grid > li:focus-within,
.cta-primary:active {
  transform: scale(1.014);
}

/* ==== HELPER CLASSES ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ===== THEME OVERRIDES ===== */
body {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === Z-INDEX STACKING === */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {
  z-index: 500;
}
footer {
  z-index: 100;
}

/* === FOCUS STYLES for ACCESSIBILITY === */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

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