/* ===== CSS 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;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #EFEFEF;
  color: #23304A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1f3452;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23304A;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #23304A;
}
ul, ol {
  padding-left: 20px;
  list-style: disc;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.90em;
}

/* ===== LAYOUT STRUCTURE ===== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(33, 42, 67, 0.04);
}

@media (max-width: 900px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 3px 12px rgba(33, 42, 67, 0.05);
  position: sticky;
  z-index: 40;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #274472;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #A5C9CA33;
  color: #23304A;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #274472;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  box-shadow: 0 2px 8px 0 rgba(33, 42, 67, 0.08);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  margin-left: 18px;
}
.button-primary:hover, .button-primary:focus {
  background: #39658f;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(33, 42, 67, 0.10);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #A5C9CA;
  color: #23304A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  margin-top: 14px;
  margin-bottom: 4px;
  box-shadow: 0 2px 7px 0 rgba(33, 42, 67, 0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.button-secondary:hover, .button-secondary:focus {
  background: #7ba9ac;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(33, 42, 67, 0.10);
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .button-primary {
    display: none !important;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #274472;
  display: none;
  z-index: 60;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #274472;
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0.3,0.2,1);
  box-shadow: 0 4px 32px 0 rgba(33, 42, 67, 0.14);
  width: 90vw;
  max-width: 350px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A5C9CA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  padding: 10px 0;
  border-radius: 5px;
  transition: background 0.20s, color 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A5C9CA33;
  color: #A5C9CA;
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== MAIN LAYOUT/SECTIONS ===== */
main {
  flex: 1;
  width: 100%;
  padding-top: 30px;
  margin-bottom: 28px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 26px 6px;
    margin-bottom: 34px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.text-section {
  margin-bottom: 26px;
}
.text-section ul {
  margin-bottom: 0;
}

/* ===== FLEXBOX PATTERNS FOR PAGE CONTENT ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.feature {
  background: #F7FAFC;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(33, 42, 67, 0.03);
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 310px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 18px rgba(33,42,67,0.07);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 900px) {
  .features-grid {
    gap: 16px;
    flex-wrap: wrap;
  }
  .feature {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}
.service-card {
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 330px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(33, 42, 67, 0.04);
  padding: 26px 21px 22px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 7px 18px 0 rgba(33, 42, 67, 0.10);
  transform: translateY(-3px) scale(1.02);
}
.price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #274472;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .services-list {
    gap: 14px;
  }
  .service-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 2px;
}
.article-preview {
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 350px;
  background: #FBFCFE;
  border-radius: 12px;
  box-shadow: 0 1px 5px 0 rgba(33, 42, 67, 0.04);
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-preview:hover, .article-preview:focus-within {
  box-shadow: 0 6px 14px rgba(33,42,67,0.06);
  transform: translateY(-2px) scale(1.03);
}
.link-read {
  color: #274472;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.20s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  margin-top: 7px;
  display: inline-block;
}
.link-read:hover, .link-read:focus {
  color: #A5C9CA;
}
@media (max-width: 900px) {
  .articles-list {
    gap: 12px;
  }
  .article-preview {
    min-width: 0;
    max-width: 100%;
  }
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px 22px 20px;
  flex: 1 1 280px;
  min-width: 230px;
  max-width: 390px;
  background: #F0F5F9;
  border-radius: 13px;
  box-shadow: 0 2px 14px 0 rgba(33, 42, 67, 0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 22px 0 rgba(33, 42, 67, 0.13);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  color: #23304A;
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 1px;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #274472;
  font-weight: 600;
  margin-bottom: 2px;
}
.stars {
  color: #274472;
  font-size: 1.2rem;
}
@media (max-width: 900px) {
  .testimonials-grid {
    gap: 10px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 26px;
}
.text-section ul{
  padding-left: 18px;
}
.text-section li {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 1rem;
}
.text-section img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* ==== CTA/newsletter ==== */
.cta-section {
  background: #274472;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 22px rgba(33,42,67,0.075);
}
.cta-section h2,
.cta-section p {
  color: #fff;
}
.cta-section .button-primary {
  background: #A5C9CA;
  color: #23304A;
}
.cta-section .button-primary:hover { background: #7ba9ac; color:#fff; }

/* === Responsive for text-image sections === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #274472;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav, .footer-legal, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-nav a,
.footer-legal a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: #A5C9CA;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #F7FAFC;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-social {
  flex-direction: row;
  gap: 17px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(0) brightness(1.2);
  transition: filter 0.2s;
}
.footer-social a:hover img { filter: grayscale(0.4) brightness(1.6); }

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-left: 10px;
  }
  .footer-social { margin-bottom: 10px; }
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23304A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 16px 22px 26px;
  z-index: 2000;
  box-shadow: 0 -3px 24px 0 rgba(33,42,67,0.09);
  font-size: 1rem;
  animation: banner-in 0.55s cubic-bezier(.7,.3,.2,1);
}
@keyframes banner-in {
  from { transform: translateY(50px); opacity: 0.4; }
  to   { transform: none; opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  max-width: 660px;
  margin-bottom: 0;
  font-size: 1rem;
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-button {
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 0;
}
.cookie-button.accept {
  background-color: #A5C9CA;
  color: #23304A;
}
.cookie-button.accept:hover, .cookie-button.accept:focus {
  background-color: #7ba9ac;
  color: #fff;
}
.cookie-button.reject {
  background-color: #fff;
  color: #274472;
}
.cookie-button.reject:hover, .cookie-button.reject:focus {
  background-color: #A5C9CA;
  color: #23304A;
}
.cookie-button.settings {
  background: none;
  color: #A5C9CA;
  border: 1.5px solid #A5C9CA;
}
.cookie-button.settings:hover, .cookie-button.settings:focus {
  background: #A5C9CA33;
  color: #fff;
  border-color: #A5C9CA;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 8px;
    gap: 10px;
    font-size: 0.98rem;
  }
  .cookie-consent-actions {
    padding-bottom: 4px;
    gap: 7px;
  }
}

/* ===== COOKIE MODAL POPUP ===== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33,42,67,0.32);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.32s cubic-bezier(.47,.1,.56,1.13);
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px 0 rgba(33,42,67,0.20);
  padding: 38px 28px 24px 28px;
  max-width: 420px;
  width: 95vw;
  color: #23304A;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: modal-in 0.4s cubic-bezier(.7,.3,.2,1);
}
@keyframes modal-in {
  from { transform: translateY(60px) scale(0.98); opacity: 0.7;}
  to   { transform: none; opacity: 1;}
}
.cookie-modal h3 {
  margin-bottom: 11px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-category label {
  color: #23304A;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #A5C9CA;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #274472;
}
.cookie-toggle:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s, background 0.2s;
}
.cookie-toggle:checked:before {
  left: 19px;
  background: #A5C9CA;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 19px;
}
.cookie-modal .cookie-button {
  min-width: 95px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #23304A;
  font-size: 1.6rem;
  position: absolute;
  top: 16px;
  right: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: #A5C9CA; }

/* ====== SPACING & UTILITIES ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FBFCFE;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(33,42,67,0.03);
  padding: 18px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Utility classes */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.gap-20 { gap: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ====== FORM, INPUTS ====== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  border: 1.2px solid #A5C9CA;
  padding: 10px 13px;
  margin-bottom: 18px;
  width: 100%;
  background: #FBFCFE;
  color: #23304A;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #274472;
  box-shadow: 0 0 0 2px #A5C9CA44;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #274472;
  margin-bottom: 6px;
  display: block;
}

/* ====== ANIMATIONS AND INTERACTIONS ====== */
.button-primary, .button-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.button-primary:active, .button-secondary:active {
  transform: scale(0.97);
}

.feature:active,
.service-card:active,
.article-preview:active,
.testimonial-card:active {
  transform: scale(0.98);
}

/* ====== MEDIA QUERIES ====== */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  main {
    padding-top: 20px;
    margin-bottom: 18px;
  }
  .features-grid, .services-list, .articles-list, .testimonials-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 0.97rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .testimonial-card {
    padding: 10px;
  }
}

/* ===== END ===== */