/* ---------------------------------------------
   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, 
main, 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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background: #fff;
  color: #212D44;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #00A8A0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #212D44;
  outline: none;
}
ul, ol {
  margin: 0 0 1.4em 1.2em;
  padding-left: 1.2em;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------------------------------------------
   TYPOGRAPHY
---------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.22;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}
h4, h5, h6 {
  font-size: 1.1rem;
  line-height: 1.32;
}
p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------------------------------------
   GEOMETRIC/STRUCTURED BASE ELEMENTS
---------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border: 2px solid #EAEAEA;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33, 45, 68, 0.07);
  padding: 32px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #00A8A0;
  box-shadow: 0 6px 24px rgba(33, 45, 68, 0.13);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid,
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.feature-grid > div,
.benefit-grid > div {
  background: #fff;
  border: 2px solid #EAEAEA;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(33,45,68,0.06);
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  transition: box-shadow 0.18s, border-color 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover,
.benefit-grid > div:hover {
  border-color: #00A8A0;
  box-shadow: 0 6px 24px rgba(33,45,68,0.15);
}
.feature-grid img,
.benefit-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F5F5F5;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(33,45,68,0.07);
  margin-bottom: 20px;
  color: #212D44;
  position: relative;
  flex-wrap: wrap;
  flex-direction: column;
}
.testimonial-card strong {
  font-weight: 700;
  font-family: 'Roboto Slab', Arial, sans-serif;
  color: #00A8A0;
}
.star-rating {
  color: #00A8A0;
  font-size: 1.35rem;
  font-family: 'Roboto Slab', monospace, sans-serif;
  margin-left: auto;
}
.real-case-card {
  background: #fff;
  border: 2.5px solid #00A8A0;
  border-radius: 18px;
  margin-top: 24px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 3px 24px rgba(0,168,160,0.07);
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.text-section ul, .text-section ol {
  margin-bottom: 0.4em;
  margin-top: 0.3em;
}

.trust-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Content spacing enforcement */
ul > li, ol > li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.7;
}

.history-timeline ul {
  margin-left: 1.2em;
}
.history-timeline h3 {
  font-size: 1.16rem;
  margin-bottom: 7px;
}

/* ---------------------------------------------
   BUTTONS & CTA
---------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  background: #00A8A0;
  color: #fff;
  font-size: 1.14rem;
  padding: 13px 28px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 3px 14px rgba(0,168,160,0.09);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.19s, transform 0.125s;
  position: relative;
  margin-top: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #212D44;
  color: #fff;
  transform: translateY(-2px) scale(1.03) skew(-1deg, 0);
  box-shadow: 0 4px 22px rgba(33,45,68,0.23);
}
button,
input[type="submit"],
.mobile-menu-close,
.mobile-menu-toggle {
  font-family: 'Roboto Slab', Arial, sans-serif;
  background: #00A8A0;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 10px 18px;
  transition: background 0.17s, transform 0.115s;
  cursor: pointer;
  font-size: 1.2rem;
  outline: none;
}
button:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover, input[type=submit]:hover {
  background: #212D44;
  color: #fff;
  transform: scale(1.06) skew(-2deg, 0);
}

/* ---------------------------------------------
   HEADER & NAVIGATION (DESKTOP & MOBILE)
---------------------------------------------- */
header {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 14px rgba(33,45,68,0.09);
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 15px 20px;
}
.main-nav > a img {
  height: 47px;
  width: auto;
  margin-right: 18px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 22px;
  list-style: none;
  align-items: center;
}
.main-nav ul li a {
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  color: #212D44;
  border-bottom: 3px solid transparent;
  border-radius: 3px 3px 0 0;
  padding: 4px 0;
  transition: color 0.17s, border-color 0.21s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li a.active {
  color: #00A8A0;
  border-bottom: 3px solid #00A8A0;
}
.main-nav .cta-btn {
  margin-left: 30px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 22px;
  width: 50px;
  height: 44px;
  padding: 0;
  font-size: 2.13rem;
  background: #00A8A0;
  color: #fff;
  border-radius: 12px;
  z-index: 99;
  border: none;
  box-shadow: 0 2px 12px rgba(0,168,160,0.14);
  transition: background 0.2s, color 0.16s, box-shadow 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #212D44;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #212D44;
  color: #fff;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.82,.07,.36,.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 18px 18px 18px;
  box-shadow: 4px 0 32px rgba(33,45,68,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 18px;
  margin-right: 4px;
  box-shadow: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #00A8A0;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-size: 1.28rem;
  background: none;
  color: #fff;
  padding: 12px 3px 12px 0;
  border-bottom: 2.5px solid transparent;
  border-radius: 2px;
  transition: color 0.18s, border-bottom 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #00A8A0;
  border-bottom: 2.5px solid #00A8A0;
}

/* Hide menu on large screens, show burger menu on mobile */
@media (max-width: 1100px) {
  .main-nav ul { gap: 14px; }
  .main-nav .cta-btn{ margin-left:10px; }
}
@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .main-nav .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .main-nav { padding: 15px 7px 13px 7px; }
}

@media (max-width: 600px) {
  .main-nav > a img { height: 33px; }
  .container { padding: 0 0; }
}


/* ---------------------------------------------
   BLOG LIST, NEWSLETTER, etc.
---------------------------------------------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.blog-post-preview {
  background: #fff;
  border: 2px solid #EAEAEA;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(33, 45, 68, 0.07);
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 17px 17px 17px;
  transition: box-shadow 0.15s, border-color 0.17s;
  position: relative;
}
.blog-post-preview:hover {
  border-color: #00A8A0;
  box-shadow: 0 6px 24px rgba(33,45,68,0.13);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  margin-top: 10px;
}
.categories a {
  background: #efefef;
  color: #212D44;
  border-radius: 12px;
  padding: 4px 13px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 5px;
  transition: background 0.17s, color 0.15s;
}
.categories a:hover {
  background: #00A8A0;
  color: #fff;
}

.newsletter-signup {
  background: #F5F5F5;
  border-radius: 16px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.06rem;
  color: #212D44;
  font-style: italic;
}

/* ---------------------------------------------
   CONTACT, FOOTER, SOCIAL
---------------------------------------------- */
.contact-info, .office-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 10px;
}
.contact-info p img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 230px;
  margin-bottom: 24px;
}
.footer-contact img:first-child {
  height: 42px;
  width: auto;
  margin-bottom: 8px;
}
.footer-contact p img {
  width: 18px;
  height: 18px;
  margin-right: 9px;
  display: inline-block;
  vertical-align: middle;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: #212D44;
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid #00A8A0;
  border-radius: 2px;
  padding: 2px 0 2px 9px;
  transition: background 0.16s, color 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #00A8A0;
  color: #fff;
}
.social-links {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 14px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F5F5F5;
  transition: background 0.21s;
}
.social-links a:hover img {
  background: #00A8A0;
}

footer {
  margin-top: 40px;
  font-size: 0.98rem;
  background: #F5F5F5;
  color: #212D44;
}
footer section {
  margin-bottom: 0;
  padding: 30px 20px 0 20px;
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
}
footer > p {
  text-align: center;
  font-size: 0.97rem;
  color: #777;
  padding: 17px 0 13px 0;
  background: inherit;
  margin: 0;
}

/* ---------------------------------------------
   COOKIE BANNER & COOKIE MODAL
---------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #212D44;
  color: #fff;
  padding: 24px 19px 22px 22px;
  box-shadow: 0 -3px 22px rgba(33, 45, 68, 0.26);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 1.08rem;
  animation: cookieSlideIn 0.87s cubic-bezier(.85,.01,.46,1.01);
}
@keyframes cookieSlideIn {
  from { transform: translateY(150px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner button {
  background: #00A8A0;
  color: #fff;
  border-radius: 13px;
  border: none;
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 19px;
  margin: 0;
  cursor: pointer;
  transition: background 0.19s, color 0.13s;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #00A8A0;
  border: 2px solid #00A8A0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #212D44;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,45,68,0.62);
  z-index: 7000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.32s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #212D44;
  max-width: 390px;
  padding: 38px 26px 22px 26px;
  border-radius: 18px;
  box-shadow: 0 10px 38px 6px rgba(33,45,68,0.24);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: scaleAppear 0.27s;
}
@keyframes scaleAppear {
  from { transform: scale(0.82); opacity:0; } 
  to   { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.23rem;
  margin-bottom: 7px;
}
.cookie-modal ul {
  list-style: none;
  padding-left: 6px;
  margin: 0 0 10px 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.cookie-modal label {
  font-size: 1.01rem;
  font-weight: 500;
  margin-left: 4px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border: none;
  background: #EAEAEA;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle[aria-checked="true"] {
  background: #00A8A0;
}
.cookie-toggle:focus {
  outline: 2px solid #00A8A0;
}
.cookie-toggle .cookie-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s;
}
.cookie-toggle[aria-checked="true"] .cookie-slider {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .modal-actions button {
  background: #00A8A0;
  color: #fff;
  border-radius: 10px;
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-size: 1rem;
  padding: 8.5px 18px;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .modal-actions button:hover {
  background: #212D44;
}

/* ---------------------------------------------
   RESPONSIVE DESIGN (Mobile First)
---------------------------------------------- */
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .feature-grid, .benefit-grid, .card-container, .content-grid, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .footer .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .trust-badges {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 25px 6px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .feature-grid, .benefit-grid, .card-container, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper, .footer .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .trust-badges {
    gap: 10px;
  }
  .testimonial-card {
    padding: 13px 8px;
    font-size: 0.98rem;
    gap: 13px;
  }
  .real-case-card {
    padding: 17px 11px;
  }
  .main-nav {
    padding: 10px 5px 9px 5px;
  }
}
@media (max-width: 540px) {
  .blog-post-preview, .feature-grid > div, .benefit-grid > div, .card {
    min-width: unset;
    padding: 13px 8px 10px 8px;
  }
  .cta-btn {
    width: 100%;
    padding: 11px 0;
    font-size: 1.04rem;
  }
  .footer-contact img:first-child {
    height: 29px;
  }
}

/* Ensure .text-image-section column on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* Ensure spacing is always respected */
.card, .feature-grid > div, .benefit-grid > div, .real-case-card, .testimonial-card {
  margin-bottom: 20px;
}

/* ---------------------------------------------
   GEOMETRIC/STRUCTURED DECOR & MICRO-ANIMATIONS
---------------------------------------------- */
h1, h2, h3 {
  letter-spacing: 0.015em;
  text-shadow: 1px 1px 0 #EAEAEA;
}
.feature-grid > div, .benefit-grid > div, .blog-post-preview, .card {
  position: relative;
  overflow: hidden;
}
.feature-grid > div:before, .benefit-grid > div:before, .blog-post-preview:before {
  content: '';
  position: absolute;
  right: -26px;
  top: -18px;
  width: 66px;
  height: 60px;
  background: #00A8A0;
  opacity: 0.06;
  border-radius: 20px 0 60px 0;
  z-index: 0;
}
.feature-grid > div:after, .benefit-grid > div:after, .blog-post-preview:after {
  content: '';
  position: absolute;
  left: -26px;
  bottom: -25px;
  width: 36px;
  height: 36px;
  background: #212D44;
  opacity: 0.05;
  border-radius: 60px 0 20px 0;
  z-index: 0;
}


/* ---------------------------------------------
   UTILITY CLASSES
---------------------------------------------- */
.m-0 { margin: 0!important; }
.mt-0 { margin-top: 0!important; }
.mt-16 { margin-top: 16px!important; }
.pt-0 { padding-top: 0!important; }
.pt-16 { padding-top: 16px!important; }
.pb-0 { padding-bottom: 0!important; }
.pb-16 { padding-bottom: 16px!important; }
.text-center { text-align: center!important; }
.text-accent { color: #00A8A0!important; }

/* Hide visually (for accessibility) */
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; border: 0!important; }

/* ---------------------------------------------
   END OF STYLES
---------------------------------------------- */
