/* RESET & BASE STYLES -------------------------------------------------*/
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;
}
html {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  background: #F9FAF2;
  color: #18455E;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #277DA1;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #337055;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}

/* TYPOGRAPHY --------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23513E;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.13;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #277DA1;
}
p, ul, li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
@media (min-width: 850px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
  p, ul, li { font-size: 1.1rem; }
}

/* CONTAINERS & SECTIONS --------------------------------------------------*/
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 992px) {
  .section { padding: 60px 32px; }
}

/* FLEXBOX LAYOUTS ---------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(39,125,161,0.10), 0 1.5px 4px rgba(51,112,85,.10);
  transition: box-shadow 0.2s, transform 0.18s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(39,125,161,0.18), 0 3px 12px rgba(51,112,85,.13);
  transform: translateY(-2px) scale(1.025);
}
.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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* FEATURE ITEM -----------------------------------------------------------*/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* TESTIMONIALS -----------------------------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
  color: #18455E;
  border-radius: 18px;
  box-shadow: 0 2.5px 18px rgba(39,125,161,0.13);
  padding: 20px;
  margin-bottom: 22px;
  min-width: 0;
  min-height: 120px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card strong {
  color: #277DA1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(39,125,161,0.24);
  transform: scale(1.022);
}
@media (min-width: 900px) {
  .testimonial-card {
    flex-direction: row;
    gap: 28px;
  }
}

/* HEADER & MAIN NAV ------------------------------------------------------*/
header {
  background: #fff;
  border-bottom: 2.5px solid #337055;
  box-shadow: 0 2px 12px 0 rgba(51,112,85,.09);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.logo img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #18455E;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #277DA1;
  color: #fff;
}

/* BUTTONS --------------------------------------------------------------*/
.btn-primary, button.btn-primary, .btn-secondary, button.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  text-align: center;
  padding: 13px 30px;
  border-radius: 40px;
  border: 0;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.12s, box-shadow 0.13s;
  box-shadow: 0 2px 12px 0 rgba(39,125,161,0.13);
  margin-top: 8px;
  line-height: 1;
}
.btn-primary, button.btn-primary {
  color: #fff;
  background: #337055;
  letter-spacing: 0.5px;
}
.btn-primary:hover, .btn-primary:focus, button.btn-primary:hover {
  background: #277DA1;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(39,125,161,0.22);
}
.btn-secondary, button.btn-secondary {
  background: #F9FAF2;
  color: #277DA1;
  border: 2px solid #277DA1;
  font-weight: 700;
}
.btn-secondary:hover, .btn-secondary:focus, button.btn-secondary:hover {
  background: #277DA1;
  color: #fff;
  border-color: #277DA1;
  transform: scale(1.045);
}

/* PRICING BADGES ---------------------------------------------------------*/
.price {
  display: inline-block;
  background: #337055;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 16px;
  margin-top: 9px;
  font-size: 1rem;
}

/* ICON/FEATURES IN LISTS -------------------------------------------------*/
ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
ul li img {
  width: 28px;
  height: 28px;
}

/* NEWSLETTER/BLOG TAGS ---------------------------------------------------*/
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.topic-tags span {
  background: #277DA1;
  color: #fff;
  border-radius: 12px;
  padding: 5px 13px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.15s;
}
.topic-tags span:hover {
  background: #337055;
}

/* FORMS -----------------------------------------------------------------*/
form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
input[type="email"], input[type="text"], textarea {
  border: 2px solid #337055;
  border-radius: 10px;
  font-size: 1rem;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.17s;
  width: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #18455E;
}
input[type="email"]:focus, input[type="text"]:focus, textarea:focus {
  border-color: #277DA1;
}
form button {
  min-width: 144px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  background: #277DA1;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 40px;
  transition: background 0.17s, transform 0.12s;
  cursor: pointer;
}
form button:hover {
  background: #337055;
  transform: scale(1.045);
}

/* FOOTER ---------------------------------------------------------------*/
footer {
  background: #23513E;
  color: #fff;
  padding: 40px 0 25px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 38px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F9FAF2;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.15s;
  border-bottom: 1.5px dashed transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD600;
  border-bottom: 1.5px dashed #FFD600;
}
.footer-brand img {
  width: 54px;
  height: auto;
  margin-bottom: 9px;
  filter:drop-shadow(0 3px 8px #277DA1B8);
}
.footer-contact {
  text-align: center;
  font-size: 0.97rem;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.89;
  line-height: 1.7;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-contact {
    text-align: right;
  }
}

/* MOBILE MENU -----------------------------------------------------------*/
.mobile-menu-toggle {
  display: inline-flex;
  background: #277DA1;
  color: #fff;
  border: none;
  font-size: 2.15rem;
  border-radius: 8px;
  padding: 6px 18px 3px 18px;
  margin-left: 10px;
  cursor: pointer;
  align-items: center;
  transition: background 0.17s, transform 0.12s;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #337055;
  color: #fff;
  transform: scale(1.08);
}
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 28px 28px 28px;
  transform: translateX(-100vw);
  transition: transform 0.45s cubic-bezier(.77,0,.175,1);
  box-shadow: 0 8px 44px rgba(39,125,161,.22);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #23513E;
  border: none;
  font-size: 2.5rem;
  padding: 3px 4px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #277DA1;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
}
.mobile-nav a {
  color: #337055;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 10px 0 10px 0;
  border-radius: 8px;
  background: transparent;
  transition: background 0.16s, color 0.14s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9FAF2;
  color: #277DA1;
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* MAIN NAV HIDE/SHOW ON MOBILE ------------------------------------------*/
@media (max-width: 900px) {
  .main-nav { display: none !important; }
}
@media (max-width: 900px) {
  header .btn-primary {
    display: none !important;
  }
}

/* HERO/LEAD SECTIONS ----------------------------------------------------*/
section:first-of-type {
  background: linear-gradient(96deg, #F9FAF2 65%, #E8FFF2 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 28px 0 rgba(39,125,161,0.09);
}
section:first-of-type h1 {
  color: #277DA1;
}

/* ANIMATIONS/MICROINTERACTIONS ------------------------------------------*/
.btn-primary, .btn-secondary, .topic-tags span, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle {
  will-change: transform, box-shadow;
}

/* COOKIES BANNER --------------------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 15px;
  background: #277DA1;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 20px rgba(51,112,85,.17);
  z-index: 1202;
  padding: 22px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.04rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s cubic-bezier(.77,0,.175,1);
}
.cookie-consent-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  padding: 10px 22px;
  border-radius: 35px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.15s, color 0.16s, transform 0.15s;
  margin-top: 4px;
}
.cookie-btn-accept {
  background: #F9FAF2;
  color: #277DA1;
  border: 2px solid #277DA1;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #fff;
  color: #337055;
  border: 2px solid #337055;
  transform: scale(1.06);
}
.cookie-btn-reject {
  background: #FFD600;
  color: #277DA1;
  border: 2px solid #FFD600;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #fffbe7;
  color: #23513E;
  transform: scale(1.06);
}
.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #fff;
  color: #277DA1;
  transform: scale(1.06);
}

/* COOKIES MODAL ---------------------------------------------------------*/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,69,94,0.80);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #18455E;
  padding: 28px 30px;
  border-radius: 18px;
  box-shadow: 0 5px 32px rgba(39,125,161,0.19), 0 0.7px 2px rgba(51,112,85,.13);
  min-width: 295px;
  max-width: 98vw;
  max-height: 82vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  color: #277DA1;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #277DA1;
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-weight: 700;
}
.cookie-category .always-on {
  color: #337055;
  font-size: 0.97rem;
  font-weight: 700;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 17px;
  background: none;
  border: none;
  outline: none;
  color: #277DA1;
  font-size: 2.3rem;
  cursor: pointer;
  transition: color 0.12s, transform 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #337055;
  transform: scale(1.1);
}

/* RESPONSIVE DESIGN -----------------------------------------------------*/
@media (max-width: 700px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.32rem; }
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .footer-contact { font-size: 0.91rem; }
}
@media (max-width: 499px) {
  .cookie-consent-banner { padding: 18px 8px; font-size: 0.98rem; }
  .cookie-modal { padding: 18px 6px; font-size: 0.98rem; }
}
@media (max-width: 375px){
  .btn-primary, button.btn-primary, .btn-secondary, button.btn-secondary {
    padding: 12px 9px;
    font-size: 0.99rem;
  }
}

/* SECTION GAP CONTROL ---------------------------------------------------*/
section + section {
  margin-top: 16px;
}

/* ACCESSIBILITY: FOCUS VISIBLE ------------------------------------------*/
:focus {
  outline: 2.5px dashed #277DA1;
  outline-offset: 3px;
}

/* ADDITIONAL VIBRANT ENERGETIC ELEMENTS -------------------------------*/
/* High energy colored lines */
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
  margin-top: 7px;
}

.card, .testimonial-card {
  border-left: 7px solid #FFD600;
}

.topic-tags span {
  animation: pulse 2.3s infinite alternate cubic-bezier(0.77,0,.175,1);
}
@keyframes pulse {
  from { box-shadow: 0 0 0 rgba(255,214,0,0.18); }
  to { box-shadow: 0 0 16px 5px rgba(255,214,0,0.31); }
}

.btn-primary {
  animation: jump-btn 2.1s infinite cubic-bezier(.23,1.07,.79,1.23);
}
@keyframes jump-btn {
  4% { transform: translateY(-2.5px) scaleX(1.03); }
  8% { transform: translateY(-8px) scaleX(0.97); }
  13% { transform: translateY(-1px) scaleX(0.98); }
  16% { transform: translateY(0); }
}

/* VIBRANT, ENERGETIC HOVER CARDS ----------------------------------------*/
.card:hover, .testimonial-card:hover {
  border-left: 7px solid #277DA1;
}

/* Z-INDEX LAYERING -----------------------------------------------------*/
header,
.mobile-menu,
.cookie-consent-banner,
.cookie-modal-overlay,
.cookie-modal {
  z-index: 1200;
}

/* BODY OVERLAY WHEN MOBILE MENU/COOKIES OPEN ---------------------------*/
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}
