/* ========================= CSS RESET & NORMALIZE ========================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #244B5A;
  background: #F4F7FA;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
a {
  text-decoration: none;
  color: #244B5A;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #DE6C00;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* ======================== TYPOGRAPHY ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #1d3842;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.167rem; margin-bottom: 10px; font-weight: 600; }
p, .content-wrapper ul, .content-wrapper ol {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: #244B5A;
}

/* ===================== CONTAINERS & LAYOUT ======================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(36,75,90,0.07);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

main {
  margin-top: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  align-items: flex-start;
}

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

.feature-grid, .article-grid, .service-cards, .articles-preview, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature-item, .service-card, .faq-item, .articles-preview article, .article-grid article {
  flex: 1 1 250px;
  background: #F4F7FA;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(36,75,90,0.04);
  padding: 24px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  transition: box-shadow 0.2s, transform 0.12s;
}
.feature-item:hover, .service-card:hover, .articles-preview article:hover, .article-grid article:hover {
  box-shadow: 0 6px 24px rgba(36,75,90,0.14);
  transform: translateY(-2px) scale(1.01);
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(36,75,90,.10);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #E6EFF4;
  border-left: 5px solid #244B5A;
  border-radius: 9px;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(36,75,90,0.08);
  color: #244B5A;
  font-size: 1.1rem;
  max-width: 550px;
  transition: box-shadow 0.15s;
}
.testimonial-card strong {
  color: #243546;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(36,75,90,0.14);
}

@media (max-width: 900px) {
  .feature-grid, .article-grid, .service-cards, .card-container {
    gap: 18px;
    flex-direction: column;
  }
  .articles-preview {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .service-card, .feature-item, .faq-item, .articles-preview article, .article-grid article {
    padding: 16px 10px;
  }
}

/* ============ HERO & CTA BANNER =============== */
.hero {
  background: linear-gradient(120deg, #F4F7FA 30%, #e7edf2 100%);
  padding-top: 56px;
  padding-bottom: 40px;
  margin-bottom: 40px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #244B5A;
}
.cta-banner {
  background: #244B5A;
  color: #fff;
  border-radius: 14px;
  margin-bottom: 48px;
  box-shadow: 0 2px 22px rgba(36,75,90,0.09);
}
.cta-banner .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.cta-banner h2 {
  color: #fff;
}
.cta-banner p {
  color: #e9f1f7;
}

/* =================== HEADER ===================== */
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
  background: #fff;
  border-bottom: 1.5px solid #E6EFF4;
  position: sticky;
  top: 0;
  z-index: 120;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #244B5A;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 4px 2px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #DE6C00;
}
header a.button.primary {
  margin-left: 24px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 24px;
  vertical-align: middle;
}

@media (max-width: 1020px) {
  header nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  header nav,
  header a.button.primary {
    display: none;
  }
  header {
    flex-wrap: wrap;
    padding: 11px 9px 11px 9px;
  }
  header img {
    height: 36px;
    margin-right: 11px;
  }
}

/* =================== BUTTONS ==================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 12px 26px;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: #F4F7FA;
  color: #244B5A;
  cursor: pointer;
  text-align: center;
  margin-top: 0;
  outline: none;
  box-shadow: 0 1px 8px rgba(36,75,90,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.button.primary {
  background: #244B5A;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #1d3842;
  color: #fff;
  box-shadow: 0 4px 16px rgba(36,75,90,0.18);
  transform: scale(1.03);
}
.button.secondary {
  background: #fff;
  color: #244B5A;
  border: 1.5px solid #244B5A;
}
.button.secondary:hover, .button.secondary:focus {
  background: #244B5A;
  color: #fff;
  box-shadow: 0 4px 16px rgba(36,75,90,0.09);
}
.button.accent {
  background: #F59235;
  color: #fff;
  border: none;
}
.button.accent:hover, .button.accent:focus {
  background: #DE6C00;
  color: #fff;
}

/* =============== MOBILE MENU =============== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  background: #244B5A;
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2.1rem;
  z-index: 140;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(36,75,90,0.11);
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.12s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #1d3842;
  transform: scale(1.07);
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(36,75,90,0.90);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), opacity 0.32s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.17s, transform 0.10s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #F59235;
  transform: scale(1.18);
}
.mobile-menu nav.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.23rem;
  padding: 14px 0 14px 0;
  width: 90vw;
  text-align: center;
  background: none;
  border-radius: 7px;
  transition: background 0.22s, color 0.22s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F59235;
  color: #fff;
}

/* ================ FOOTER ================ */
footer {
  background: #f6fafc;
  color: #244B5A;
  text-align: center;
  padding: 38px 0 16px 0;
  border-top: 1.5px solid #E6EFF4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 65px;
  position: relative;
}
footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
}
footer nav a {
  color: #244B5A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  padding: 3px 4px;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:focus, footer nav a:hover {
  color: #fff;
  background: #244B5A;
}
footer img {
  height: 40px;
  margin-bottom: 5px;
}
@media (max-width: 600px) {
  footer {
    padding: 18px 0 10px 0;
    gap: 11px;
    margin-top: 36px;
  }
  footer nav {
    gap: 10px;
    flex-direction: column;
  }
  footer img {
    height: 30px;
  }
}

/* =========== ARTICLE FILTERS & FAQ ============= */
.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.article-filters a {
  padding: 7.5px 18px;
  background: #E6EFF4;
  color: #244B5A;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.15s, color 0.16s;
}
.article-filters a:focus, .article-filters a:hover {
  background: #244B5A;
  color: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item h3 {
  margin-bottom: 7px;
  font-size: 1.1rem;
  color: #244B5A;
  font-weight: 600;
}
.faq-item p {
  margin-bottom: 0;
}

.contact-info {
  background: #F4F7FA;
  border-radius: 7px;
  padding: 15px 18px;
  margin-top: 6px;
  margin-bottom: 6px;
}
.contact-info a {
  color: #F59235;
  text-decoration: underline;
  word-break: break-all;
}
.contact-info a:hover,
.contact-info a:focus {
  color: #DE6C00;
}

/* =============== MODALS & OVERLAY =============== */
/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #244B5A;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 16px 16px 16px;
  box-shadow: 0 -2px 20px rgba(36,75,90,0.18);
  font-size: 1rem;
  animation: fadebannerIn 0.5s;
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 220px;
  max-width: 600px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner .button {
  min-width: 120px;
  font-size: 0.97rem;
  padding: 10px 20px;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 6px 12px 6px;
    font-size: 0.97rem;
  }
}
@keyframes fadebannerIn {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie Consent Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,75,90,0.60);
  z-index: 3020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 50px)) scale(0.97);
  min-width: 97vw;
  max-width: 410px;
  background: #fff;
  color: #244B5A;
  border-radius: 14px;
  z-index: 3030;
  box-shadow: 0 18px 68px rgba(36,75,90,0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 22px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s, transform 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1.03);
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  flex: 1;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .button {
  font-size: 0.95rem;
  min-width: 110px;
  padding: 9px 18px;
}

/* =========== MISCELLANEOUS & UTILITY ============ */
::-webkit-input-placeholder { color: #8C9AA7; }
::-moz-placeholder { color: #8C9AA7; }
:-ms-input-placeholder { color: #8C9AA7; }
::placeholder { color: #8C9AA7; }

hr {
  border: 0;
  border-top: 1px solid #E6EFF4;
  margin: 28px 0;
}

/* Hide scrollbar for flex wrappers if needed */
.feature-grid, .article-grid, .service-cards {
  scrollbar-width: thin;
  scrollbar-color: #D4DDE5 #F4F7FA;
}
.feature-grid::-webkit-scrollbar, .article-grid::-webkit-scrollbar, .service-cards::-webkit-scrollbar {
  height: 7px;
  background: #F4F7FA;
  border-radius: 3px;
}
.feature-grid::-webkit-scrollbar-thumb, .article-grid::-webkit-scrollbar-thumb, .service-cards::-webkit-scrollbar-thumb {
  background: #D4DDE5;
  border-radius: 3px;
}

/* =============== FORMS & INPUTS (if needed) ================= */
input, textarea, select {
  border: 1.3px solid #CED6DF;
  background: #fff;
  border-radius: 5px;
  padding: 12px 10px;
  font-size: 1rem;
  color: #244B5A;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.16s;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #244B5A;
  box-shadow: 0 2px 8px rgba(36,75,90,0.06);
}
label {
  font-weight: 500;
  color: #244B5A;
  margin-bottom: 3px;
  display: block;
}

/* =========== RESPONSIVE TRUNCATION =========== */
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.02rem; }
}

/* =============== VISUAL ENHANCEMENTS =============== */
.featured-article article {
  background: #244B5A;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 22px rgba(36,75,90,0.09);
  padding: 24px 20px;
}
.featured-article h3 {
  color: #fff;
  margin-bottom: 12px;
}
.featured-article p { color: #E4EEF4; }
.featured-article a.button.primary {
  margin-top: 8px;
}

/* =============== ACCESSIBILITY =============== */
:focus-visible {
  outline: 2px solid #F59235;
  outline-offset: 2px;
}

/* =============== PRINT RULES =============== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner{display:none !important;}
  main, section, .container, .content-wrapper { background: #fff !important; color: #000 !important; }
}

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

/* =============== Z-INDEX MANAGEMENT =============== */
header { z-index: 130; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 2000; }

/* =============== ANIMATIONS =============== */
@keyframes modalFadeIn {
  from {opacity: 0; transform: scale(0.92);}
  to {opacity: 1; transform: scale(1);}
}
.cookie-modal.active { animation: modalFadeIn 0.35s; }

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