/* ====================================================
   CSS 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, 
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 {
  font-size: 16px; /* base for resizing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F3F7FB;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #1b3a5a;
  background: #F3F7FB;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #245387;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #F99522;
  text-decoration: none;
}

ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}
strong {
  font-weight: bold;
}

/* ====================================================
   TYPOGRAPHY (Elegant Classic)
   ==================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1b3a5a;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
  margin-top: 8px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.subline {
  font-family: 'Roboto', 'Georgia', serif;
  color: #556987;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  margin-bottom: 28px;
}
p {
  color: #26354c;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
}

/* Consistent typography scale */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ====================================================
   BRAND COLORS & VARIABLES (Fallbacks included)
   ==================================================== */
:root {
  --primary: #245387;
  --primary-dark: #1b3a5a;
  --secondary: #F3F7FB;
  --background: #ffffff;
  --accent: #F99522;
  --gray: #dbe3eb;
  --dark: #2c2c2c;
  --muted-text: #556987;
}

/* ====================================================
   LAYOUT CONTAINERS & SECTIONS (Flexbox)
   ==================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 rgba(36,83,135,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--background);
  border-radius: 12px;
  box-shadow: 0 3px 24px 0 rgba(36,83,135,0.09);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 7px 32px 0 rgba(36,83,135,0.15);
}

.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;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(36,83,135,0.06);
  margin-bottom: 20px;
  min-width: 260px;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  color: #222b3a;
  font-size: 1.1rem;
  font-family: 'Roboto', 'Georgia', serif;
  margin-right: 16px;
}
.testimonial-card strong {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.testimonial-card .stars {
  margin-left: 8px;
  color: var(--accent);
  font-family: 'Georgia', serif;
}
.testimonial-card:hover {
  box-shadow: 0 5px 22px 0 rgba(36,83,135,.16);
  background: #f9fbfd;
}

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

/* Layout for FAQ style accordions */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe3eb;
  padding: 20px;
  transition: box-shadow 0.18s;
  box-shadow: 0 1px 8px 0 rgba(36,83,135,0.05);
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.09rem;
  color: #245387;
  cursor: pointer;
}
.faq-item div {
  color: #26354c;
}
.faq-item:hover,
.faq-item:focus-within {
  box-shadow: 0 4px 16px 0 rgba(36,83,135,0.11);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ===============
   BUTTONS & CTA
 =============== */
.btn-primary, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 12px 0 rgba(36,83,135,0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  text-decoration: none;
  margin-top: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus, .cta:hover, .cta:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 18px 0 rgba(249, 149, 34, 0.19);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 32px;
  padding: 10px 28px;
  transition: background 0.16s, color 0.16s, border 0.16s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Price Badges */
.price {
  background: var(--secondary);
  color: var(--primary);
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 0.97rem;
  font-family: 'Montserrat', 'Georgia', serif;
  margin-left: 10px;
  letter-spacing: 0.04em;
}

/* ===============
   HEADER & NAV
 =============== */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(36,83,135,0.08);
  position: sticky;
  top: 0;
  z-index: 800;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
header nav a:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 12px;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray);
}
@media (max-width: 1100px) {
  header nav {
    gap: 8px;
  }
}

/* ===============
   MOBILE NAVIGATION (Burger Menu)
 =============== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(27, 58, 90, 0.96);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.6,.29,.7,1);
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.4rem;
  border: none;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #1b3a5a;
}
@media (max-width: 1024px) {
  header nav { display: none; }
  .cta { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ===============
   MAIN, SECTION, CARDS, SPACING
 =============== */
main {
  width: 100%;
  min-height: 60vh;
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: none;
}
.section:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0 0 0;
    margin-bottom: 36px;
  }
  .section { padding: 26px 8px; }
  .container { padding-left: 8px; padding-right: 8px; }
}

/* ===============
   CARDS, GRID CARDS
 =============== */
.card-container, .content-grid {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
  min-width: 210px;
}
@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
  }
  .card {
    min-width: unset;
    width: 100%;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .faq-item { padding: 15px; }
}

/* ===============
   TEXT & IMAGE SECTIONS
 =============== */
.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===============
   FOOTER
 =============== */
footer {
  background: #fff;
  border-top: 1.5px solid #dbe3eb;
  margin-top: 44px;
  font-size: 0.95rem;
}
footer .container {
  padding-top: 42px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-family: 'Georgia', serif;
  font-size: 1rem;
}
footer nav a {
  color: #245387;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
.legal-links, .footer-contact, .social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
}
.social-links img {
  height: 28px;
  width: auto;
  filter: grayscale(0.35) brightness(0.90);
  transition: filter 0.18s;
}
.social-links img:hover,
.social-links img:focus {
  filter: grayscale(0) brightness(1.15);
}
.copyright {
  margin-top: 12px;
  color: #8C97A6;
  font-size: 0.97rem;
}
@media (max-width: 768px) {
  .footer-contact, .legal-links, .social-links {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}

/* ===============
   COOKIE CONSENT BANNER & MODAL
 =============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  background: #fff;
  color: #26354c;
  padding: 20px 16px;
  box-shadow: 0 -3px 24px 0 rgba(36, 83, 135, 0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: 'Georgia', serif;
  font-size: 1.08rem;
  animation: cookie-slideup 0.6s cubic-bezier(.7,.33,.7,1.04);
}
@keyframes cookie-slideup {
  0% { transform: translateY(100%); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner button {
  margin-left: 10px;
  margin-right: 10px;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  padding: 8px 28px;
  margin: 0 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(36, 83, 135, 0.08);
  transition: background 0.166s, color 0.166s;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.accept {
  background: var(--accent);
}
.cookie-btn.reject {
  background: #eceff5;
  color: #1b3a5a;
  border: 1.5px solid #dbe3eb;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #eceff5;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fafbfc;
}
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 99999;
  background: rgba(36,83,135, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.33s both;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 40px rgba(36,83,135,.13);
  padding: 34px 32px 18px 32px;
  max-width: 430px;
  min-width: 300px;
  font-family: 'Georgia', serif;
  font-size: 1.04rem;
  color: #1b3a5a;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 11px;
  color: var(--primary);
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  margin: 10px 0 10px 0;
  gap: 14px;
}
.cookie-modal .category input[type='checkbox'] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #245387;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-modal { min-width: unset; max-width: 96vw; padding: 24px 10px 12px 10px; }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.98rem;
    padding: 14px 6px;
  }
}

/* ===============
   HELPER CLASSES & MICRO-ANIMATIONS
 =============== */
.text-center { text-align: center; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.shadow {
  box-shadow: 0 3px 22px 0 rgba(36,83,135,0.11);
}
.rounded {
  border-radius: 12px;
}
/* Buttons motion effect */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.21s, border 0.18s;
}

/* Subtle fade-in for testimonials */
.testimonial-card {
  animation: testimonials-fade .7s cubic-bezier(.6,.4,.85,1.12);
}
@keyframes testimonials-fade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===============
   RESPONSIVE RULES
 =============== */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
  header .container { padding-left: 8px; padding-right: 8px; }
  .section, section { padding: 15px 2px 0 2px; }
}

/* Ensure NO grid/column-class layouts appear */
/* All layout containers are display:flex & flex-wrap: wrap where needed! */

/* ===============
   ACCESSIBILITY & FOCUS STYLES
 =============== */
a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close,
.cookie-btn, .cookie-modal-close {
  outline: none;
}
a:focus, .btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  box-shadow: 0 0 0 2.5px var(--accent);
  outline: none;
}

/* ===============
   PRINT STYLES
 =============== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .section, section { box-shadow: none; }
}
