/* ---------------------------------------------------
   CSS RESET & NORMALIZE
-----------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #F3F5FA;
  color: #1A2942;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #1A2942;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dotted #4CAF7A;
}
ul, ol {
  list-style-position: inside;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  margin-bottom: 12px;
  color: #1A2942;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.2rem;
}
section, main {
  width: 100%;
}

/* ---------------------------------------------------
   CONTAINERS & LAYOUTS (FLEXBOX ONLY)
-----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(26,41,66,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  flex: 1 1 300px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(26,41,66,0.09);
  padding: 28px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 3px 20px 0 rgba(76,175,122,0.11);
  transform: translateY(-4px) scale(1.018);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials -- visually distinctive cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F3F5FA;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #E6EAF2;
  box-shadow: 0 4px 18px 0 rgba(26,41,66,0.07);
  color: #1A2942;
  max-width: 600px;
  width: 100%;
}
.testimonial-card p {
  color: #1A2942;
  line-height: 1.6;
  font-size: 1.16rem;
}
.testimonial-card span {
  color: #4CAF7A;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 1rem;
}

.section ul, .section ol {
  margin-left: 20px;
  margin-bottom: 10px;
  margin-top: 2px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section dl {
  margin-left: 0;
  margin-bottom: 10px;
}
.section dt {
  font-weight: 700;
  margin-top: 1em;
}
.section dd {
  margin-left: 0.5em;
  margin-bottom: 0.6em;
}

/* Hero cta button */
.cta-btn {
  background: #4CAF7A;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 34px;
  border: none;
  border-radius: 32px;
  margin-top: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(76,175,122,0.05);
  transition: background 0.16s, transform 0.15s, box-shadow 0.18s;
  display: inline-block;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #389d5d;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 18px 0 rgba(76,175,122,0.14);
  color: #fff;
}

/* Headings */
h1, .h1 {
  font-size: 2.4rem;
}
h2, .h2 {
  font-size: 2rem;
}
h3, .h3 {
  font-size: 1.25rem;
}

/* ---------------------------------------------------
   HEADER & NAVIGATION
-----------------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(26,41,66,0.03);
  padding: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-size: 1rem;
  color: #1A2942;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #4CAF7A;
  background: #F3F5FA;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 22px;
}

/* ---------------------------------------------------
   MOBILE MENU
-----------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 24px;
  z-index: 300;
  width: 45px;
  height: 45px;
  font-size: 2.1rem;
  color: #4CAF7A;
  background: rgba(255,255,255,0.96);
  border: none;
  box-shadow: 0 2px 10px 0 rgba(26,41,66,0.06);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, box-shadow 0.13s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #4CAF7A;
  background: #E6EAF2;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 32px -6px rgba(26,41,66,0.12);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,1.4,0.7,1.03);
  display: flex;
  flex-direction: column;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2942;
  padding: 22px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 15px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4CAF7A;
  background: #F3F5FA;
  border-radius: 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 32px;
  font-size: 1.1rem;
}
.mobile-nav a {
  color: #1A2942;
  padding: 12px 10px;
  font-weight: 600;
  border-radius: 9px;
  width: 100%;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #4CAF7A;
  color: #fff;
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px !important;
  }
  .cta-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  header nav {
    margin-left: 0;
    margin-top: 5px;
  }
}
@media (max-width: 820px) {
  header nav,
  header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* Keep the mobile-menu visible at all times for accessibility, but visually hidden when not active. */

@media (max-width: 820px) {
  .mobile-menu {
    display: flex;
  }
}

/* ---------------------------------------------------
   FOOTER
-----------------------------------------------------*/
footer {
  background: #fff;
  border-top: 1px solid #E6EAF2;
  padding: 0;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  padding-top: 36px;
  padding-bottom: 36px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 38px;
}
footer nav a {
  color: #1A2942;
  font-size: 0.99rem;
  font-weight: 400;
  transition: color .15s;
}
footer nav a:hover {
  color: #4CAF7A;
}
.footer-contact {
  flex: 1;
  font-size: 0.97rem;
  color: #697185;
  line-height: 1.6;
  margin-left: 40px;
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-contact {
    margin-left: 0px;
  }
  footer nav {
    margin-left: 0;
    flex-direction: row;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .testimonial-card {
    padding: 14px;
  }
  .footer-contact {
    font-size: 0.94rem;
  }
}

/* ---------------------------------------------------
   FORM ELEMENTS (if present)
-----------------------------------------------------*/
input, textarea, select, button {
  font-family: inherit;
}
input, textarea {
  border: 1px solid #E6EAF2;
  border-radius: 9px;
  padding: 12px;
  width: 100%;
  font-size: 1rem;
  margin-top: 5px;
  margin-bottom: 12px;
  background: #F3F5FA;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border-color: #4CAF7A;
  outline: 2px solid #b6e6cb;
}
label {
  font-weight: 600;
  font-size: 0.99rem;
  margin-right: 5px;
}

/* Success, info, alert messages */
.alert, .info, .success {
  padding: 13px 20px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 1.03rem;
  border: 1px solid #E6EAF2;
}
.success { background: #e5f8eb; color: #20784b; }
.alert { background: #fff3e1; color: #855900; }
.info { background: #e5f0fa; color: #1A2942; }

/* ---------------------------------------------------
   COOKIES BANNER & COOKIE MODAL
-----------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 9700;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(76,175,122,0.13);
  border-top: 1px solid #4CAF7A15;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  gap: 24px;
  transition: transform 0.22s;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner__text {
  font-size: 1.01rem;
  color: #1A2942;
  flex: 2;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner .cookie-banner-btn {
  padding: 10px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  background: #4CAF7A;
  color: #fff;
  cursor: pointer;
  margin-right: 0;
  box-shadow: 0 2px 7px 0 rgba(76,175,122,0.09);
  transition: background 0.12s, color 0.12s, transform 0.13s;
}
.cookie-banner .cookie-banner-btn.secondary {
  background: #F3F5FA;
  color: #1A2942;
  border: 1px solid #E6EAF2;
}
.cookie-banner .cookie-banner-btn:hover, .cookie-banner .cookie-banner-btn:focus {
  background: #389d5d;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .cookie-banner-btn.secondary:hover, .cookie-banner .cookie-banner-btn.secondary:focus {
  background: #E6EAF2;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 10px;
  }
  .cookie-banner__actions {
    width: 100%;
    gap: 8px;
    flex-direction: column;
  }
}

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 11000;
  background: rgba(26,41,66,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.22s;
  visibility: visible;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.cookie-modal__dialog {
  background: #fff;
  max-width: 400px;
  width: 94vw;
  padding: 34px 26px 26px 26px;
  border-radius: 18px;
  box-shadow: 0 8px 38px -2px rgba(26,41,66,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2942;
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.13s;
  padding: 5px 14px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #F3F5FA;
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #1A2942;
}
.cookie-modal__cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal__cat label {
  margin: 0 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal__cat input[type="checkbox"] {
  accent-color: #4CAF7A;
  width: 18px; height: 18px;
}
.cookie-modal__cat-desc {
  margin-left: 29px;
  font-size: 0.97rem;
  color: #697185;
}
.cookie-modal__cat.essential label {
  color: #1A2942;
}
.cookie-modal__cat.essential input {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal__actions {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-modal__actions button {
  padding: 9px 22px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal__actions .save {
  background: #4CAF7A;
  color: #fff;
}
.cookie-modal__actions .cancel {
  background: #F3F5FA;
  color: #1A2942;
  border: 1px solid #E6EAF2;
}
.cookie-modal__actions .save:hover, .cookie-modal__actions .save:focus {
  background: #389d5d;
}
.cookie-modal__actions .cancel:hover, .cookie-modal__actions .cancel:focus {
  background: #E6EAF2;
}

/* ---------------------------------------------------
   TYPOGRAPHY & SPACING SYSTEM
-----------------------------------------------------*/
.font-display, .font-head, [class*="heading"] {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}
.font-body, .font-main, body, p, ul, ol, li, a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #1A2942;
}
strong {
  font-weight: 700;
  color: #1A2942;
}
li strong {
  color: #4CAF7A;
  font-weight: 700;
}
li img {
  margin-right: 8px;
  vertical-align: middle;
}

::selection {
  background: #C4ECD5;
}

hr {
  border: none;
  height: 1px;
  background: #E6EAF2;
  margin: 30px 0;
}

/* ---------------------------------------------------
   MICRO-INTERACTIONS & ANIMATION
-----------------------------------------------------*/
.cta-btn, .card, .cookie-banner-btn,
.cookie-modal__actions button {
  transition: background 0.17s, color 0.15s, box-shadow 0.18s, transform 0.17s;
}
.card {
  transition: box-shadow 0.14s, transform 0.14s;
}

/* ---------------------------------------------------
   RESPONSIVE DESIGN
-----------------------------------------------------*/
@media (max-width: 768px) {
  .container, .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .text-section {
    gap: 12px;
  }
  .section {
    padding: 24px 2px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .content-grid,
  .card-container {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  h1, .h1 {
    font-size: 1.55rem;
  }
  h2, .h2 {
    font-size: 1.19rem;
  }
  .section {
    border-radius: 7px;
    padding: 12px 2px;
  }
  .testimonial-card {
    border-radius: 7px;
  }
  .card {
    border-radius: 7px;
    padding: 12px 6px;
  }
}

@media (max-width: 480px) {
  .cta-btn {
    width: 100%;
    min-width: unset;
    padding: 13px 10px;
    border-radius: 20px;
    font-size: 1rem;
  }
  .cookie-banner {
    font-size: 0.99rem;
    padding: 11px 4px;
  }
  .cookie-modal__dialog {
    padding: 16px 5px 16px 9px;
  }
}

/* Prevent content overlap and add breathing room */
section, .section, .card, .testimonial-card, .card-container > * {
  margin-bottom: 20px;
}

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

/* ---------------------------------------------------
   DEFAULT STYLES FOR VARIOUS ELEMENTS
-----------------------------------------------------*/
blockquote {
  border-left: 4px solid #4CAF7A;
  padding-left: 18px;
  color: #425172;
  background: #F3F5FA;
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
}
th, td {
  padding: 10px 7px;
  border: 1px solid #E6EAF2;
  text-align: left;
}

/* ---------------------------------------------------
   OVERRIDE BROWSER AUTO-FILL BACKGROUND
-----------------------------------------------------*/
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #F3F5FA inset !important;
  box-shadow: 0 0 0 40px #F3F5FA inset !important;
  -webkit-text-fill-color: #1A2942 !important;
}
