/* ===== CSS RESET & NORMALIZATION ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body, html { height: 100%; }
body {
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  color: #222;
  background: #F2F3F7;
  line-height: 1.7;
  letter-spacing: .01em;
}
img { max-width: 100%; display: block; height: auto; }
ul, ol { padding-left: 1.2em; margin-bottom: 1.25em; }
li { margin-bottom: 0.6em; }
a { color: #23638D; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #4CAF50; text-decoration: underline; }

/* ====== BRAND FONTS (Web-safe elegant serif for classic style + fallbacks) ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #14405A;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.13; }
h2 { font-size: 2rem; margin-bottom:18px; line-height: 1.17; }
h3 { font-size: 1.4rem; margin-bottom:12px; }
h4 { font-size: 1.2rem; margin-bottom:10px; }

p, li, blockquote, label, input, textarea, button {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #273342;
}
blockquote {
  font-style: italic;
  color: #44566c;
  border-left: 3px solid #23638D;
  padding-left: 20px;
  margin: 18px 0 18px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(35,99,141,.05);
}
@media (max-width: 992px) {
  .section { padding: 32px 10px; }
}
@media (max-width: 768px) {
  .section { padding: 24px 3vw; }
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper { gap: 32px; }
}

.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: 20px; }
}
.text-section { flex: 1 1 280px; }


/* ------ Card Layouts ------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(35,99,141,.09);
  padding: 32px 26px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 240px;
  transition: box-shadow .2s, background .2s;
}
.card:hover {
  box-shadow: 0 6px 30px rgba(35,99,141,.10);
  background: #f6f8fb;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: #F2F3F7;
  padding: 18px 22px;
  border-radius: 12px;
}
.features { display: flex; flex-wrap: wrap; gap: 20px; }

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid { flex-direction: column; gap: 18px; }
}


/* ------ Testimonial card ------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #FAFAFC;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(35,99,141,.06);
  margin-bottom: 24px;
  border-left: 5px solid #23638D;
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(76,175,80,.09);
  border-color: #4CAF50;
}
.testimonial-card p {
  flex: 1;
  color: #222;
  font-size: 1.125rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #23638D;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card span {
  color: #4CAF50;
  font-size: 1.15em;
  margin-left: 9px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 12px;
  }
}

/* ===== HEADER NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(35,99,141,.07);
  padding: 0;
  margin-bottom: 30px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top:12px;
  padding-bottom:12px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #14405A;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background .2s, color .2s;
}
header nav a:hover, header nav a:focus {
  background: #F2F3F7;
  color: #23638D;
}
.btn-primary {
  background: #23638D;
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  font-size: 1.08rem;
  border-radius: 32px;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(35,99,141,.09);
  transition: background .20s, box-shadow .20s;
  margin-left: 15px;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #4CAF50;
  box-shadow: 0 4px 22px rgba(76,175,80,.12);
  color: #fff;
}
.btn-secondary {
  background: none;
  color: #23638D;
  border: 2px solid #23638D;
  padding: 10px 24px;
  font-size: 1.01rem;
  border-radius: 28px;
  font-weight: 700;
  transition: background .13s, color .13s, border-color .13s;
  display: inline-block;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #23638D;
  color: #fff;
  border-color: #23638D;
}

/* ----- Hamburger & Mobile Nav ----- */
.mobile-menu-toggle {
  background: #23638D;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 3px 20px 2px 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: none;
  margin-left: 10px;
  transition: background .15s, box-shadow .15s;
  z-index: 101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #4CAF50;
  color: #fff;
}
@media (max-width: 992px) {
  .mobile-menu-toggle { display: block; }
  header nav { display: none; }
  .btn-primary { margin-left: 0;}
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 30px rgba(35,99,141,.13);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(0.7,0,0.33,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 38px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: #23638D;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 13px;
  padding: 3px 16px 2px 14px;
  position: absolute;
  top: 16px; right: 22px;
  z-index: 1002;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(35,99,141,0.07);
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #4CAF50; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
  margin-top: 45px;
  align-items: flex-start;
  padding-left: 10vw;
}
.mobile-nav a {
  color: #23638D;
  font-size: 1.17rem;
  font-weight: 600;
  padding: 12px 0;
  transition: color .18s, background .13s;
  width: max-content;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #F2F3F7; color: #4CAF50; }
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  padding: 40px 0 14px 0;
  border-top: 1px solid #ececec;
  font-size: 1rem;
  margin-top: 40px;
  box-shadow: 0 -2px 20px rgba(35,99,141,.03);
}
footer nav {
  margin-bottom: 22px;
  color: #888;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
}
footer nav a {
  color: #23638D;
  margin: 0 8px;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .13s, color .13s;
}
footer nav a:hover { background: #F2F3F7; color: #4CAF50; }
.footer-info, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
  justify-content: center;
  align-items: center;
  font-size: 0.97rem;
}
.footer-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}
.footer-social img {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  margin-right: 10px;
  transition: opacity .18s;
}
.footer-social img:hover {
  opacity: 1;
}

/* =================== Cookie Consent Banner and Modal =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #23638D;
  box-shadow: 0 -2px 14px rgba(35,99,141,0.09);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  transition: transform .29s;
  font-family: 'Georgia', serif;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.btn-cookie {
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  font-weight: 700;
  margin-left: 0;
  cursor: pointer;
  background: #4CAF50;
  color: #fff;
  transition: background .17s, box-shadow .15s;
}
.btn-cookie.reject {
  background: #bbb;
  color: #fff;
}
.btn-cookie.settings {
  background: #23638D;
  color: #fff;
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #23638D;
}
.btn-cookie.settings:hover, .btn-cookie.settings:focus {
  background: #4CAF50;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 14px;
  }
  .cookie-banner-actions { width:100%; }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(35,99,141,.18);
  backdrop-filter: blur(2px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  padding: 38px 30px 28px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 42px rgba(35,99,141,.15);
  min-width: 310px;
  max-width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 15px;
  background: transparent;
  color: #23638D;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.03rem;
  color: #14405A;
}
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  background: #F2F3F7;
  border-radius: 14px;
  cursor: pointer;
  transition: background .16s;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.cookie-toggle .slider {
  position: absolute;
  left: 3px; top: 3px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #bbb;
  transition: left .16s, background .16s;
}
.cookie-toggle input[type="checkbox"]:checked + .slider {
  background: #4CAF50;
  left: 21px;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .cookie-modal-dialog { padding: 18px 8vw; min-width: 0; }
}


/* ======= GENERAL UI ELEMENTS ======= */
main {
  margin-bottom: 60px;
  margin-top: 10px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

ul, ol {
  margin-bottom: 16px;
  margin-top: 7px;
  padding-left: 22px;
}
ul ul, ol ol, ul ol, ol ul {
  margin-top: 0;
  margin-bottom: 0;
}
strong { font-weight: 700; color: #14405A; }
.section ul {
  margin-bottom: 0;
}

/* ------ Icon + text patterns ------ */
li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}
li strong {
  vertical-align: middle;
}

/* ------ Spacing utilities ------ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ========== RESPONSIVE DESIGN (MOBILE-FIRST) ========== */
@media (max-width: 1050px) {
  .container { max-width: 970px; }
  .card { padding: 22px 7vw; }
}
@media (max-width: 900px) {
  .container { max-width: 680px; }
  header .container, .footer-info, .footer-social { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  header .container { flex-direction: row; flex-wrap: wrap; gap:10px; }
  section { padding: 24px 3vw; }
  main { margin-bottom: 20px; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.25rem; }
  .testimonial-card, .card { padding: 10px 4vw; }
}

/* ========== MICRO-INTERACTIONS & ANIMATIONS ========== */
.btn-primary, .btn-secondary, .btn-cookie {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, border-color 0.19s;
}
section, .card, .testimonial-card, .feature-item {
  transition: box-shadow .15s, background .15s, border-color .15s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 7px 32px 0 rgba(35,99,141,.11);
  background: #F6F8FB;
}

/* ----------- Accessibility ----------- */
:focus { outline: 2px solid #23638D; outline-offset: 2px; }

/* ========== CUSTOM SCROLLBAR (Webkit only) ========== */
body::-webkit-scrollbar { width:12px; background: #eff1f5; }
body::-webkit-scrollbar-thumb { background: #d5dde7; border-radius:5px; }
body::-webkit-scrollbar-thumb:hover { background: #bfc9d5; }

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