/* CSS RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }
html, body { height: 100%; }
body { min-height: 100vh; background: #F9FAFB; color: #26303D; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
a { color: #1A4372; text-decoration: none; transition: color 0.16s; }
a:hover, a:focus { color: #D4E157; }
ul, ol { margin: 16px 0 16px 24px; }
li { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; margin: 32px 0; background: #fff; border-radius: 18px; box-shadow: 0 1px 4px rgba(26,67,114,0.07); overflow: hidden; }
th, td { padding: 16px 12px; border-bottom: 1px solid #f1f1f1; text-align: left; }
th { background: #D4E157; color: #1A4372; font-weight: bold; font-family: 'Montserrat', Arial, sans-serif; font-size: 18px; }
thead tr { border-radius: 10px 10px 0 0; }
tr:last-child td { border-bottom: none; }

/* TYPOGRAPHY SCALE */
h1, .h1 { font-family: 'Montserrat', Arial, sans-serif; font-size: 32px; font-weight: 700; color: #1A4372; margin-bottom: 16px; }
@media (min-width: 600px) { h1, .h1 { font-size: 48px; } }
h2, .h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 24px; font-weight: 700; color: #1A4372; margin-bottom: 16px; }
@media (min-width: 600px) { h2, .h2 { font-size: 32px; } }
h3, .h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 18px; font-weight: 600; color: #26303D; margin-bottom: 10px; }
h4, .h4 { font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; font-weight: 600; color: #26303D; }
p, ul, ol { font-size: 16px; margin-bottom: 14px; }
strong, b { font-weight: 700; }

/* GLOBAL CONTAINER */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.text-section { max-width: 900px; margin: 0 auto; }

/* FLEXBOX SPACING AND PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; background: #fff; border-radius: 24px; box-shadow: 0 2px 12px rgba(26,67,114,0.06); }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.card { margin-bottom: 20px; position: relative; background: #fffdf6; border-radius: 20px; box-shadow: 0 2px 10px rgba(212,225,87,0.11); padding: 28px 20px; transition: box-shadow 0.23s; }
.card:hover { box-shadow: 0 6px 24px rgba(212,225,87,0.23); }
.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: #fffbe8; border-radius: 20px; box-shadow: 0 2px 12px rgba(26,67,114,0.06); margin-bottom: 20px; margin-top: 24px; position: relative; transition: box-shadow 0.23s, transform 0.23s; }
.testimonial-card:hover { box-shadow: 0 8px 28px rgba(212,225,87,0.16); transform: translateY(-4px); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: #fffdf6; border-radius: 18px; box-shadow: 0 1px 6px rgba(212,225,87,0.06); padding: 18px 16px; margin-bottom: 20px; }

/* SPECIFIC FLEX LAYOUTS FROM HTML STRUCTURE */
.features, .feature-grid, .team-bios, .articles-grid, .training-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.features > .container > .content-wrapper > .feature-grid > div,
.team-bios > div,
.training-grid > div,
.articles-grid > article {
  flex: 1 1 270px; background: #fffdf6; border-radius: 18px; box-shadow: 0 2px 10px rgba(26,67,114,0.05); margin-bottom: 20px; padding: 22px 16px; transition: box-shadow 0.23s; display: flex; flex-direction: column; align-items: flex-start;
}
.articles-grid > article { min-width: 250px; }
.training-grid > div { min-width: 250px; }
.team-bios > div { min-width: 200px; }

@media (max-width: 900px) {
  .features > .container > .content-wrapper > .feature-grid > div, .team-bios > div, .training-grid > div, .articles-grid > article { flex: 1 1 100%; }
  .features, .feature-grid, .team-bios, .articles-grid, .training-grid { gap: 16px; }
}

.featured-tip { background: #FFFDE1; border-radius: 18px; box-shadow: 0 1px 8px rgba(212,225,87,0.09); padding: 15px 18px; margin: 24px 0 32px 0; font-size: 17px; }
.callout { background: #D4E157; border-radius: 16px; padding: 30px 20px; color: #1A4372; box-shadow: 0 4px 18px rgba(212,225,87,0.15); margin-top: 32px; margin-bottom: 60px; }
.callout .cta-btn { background: #fff; color: #1A4372; border: 2px solid #1A4372; }
.callout .cta-btn:hover,
.callout .cta-btn:focus { background: #1A4372; color: #fff; border-color: #D4E157; outline: none; }

/* HERO SECTION */
.hero { background: linear-gradient(120deg, #fffdf6 60%, #D4E157 100%); padding: 56px 0 64px 0; border-radius: 0 0 32px 32px; box-shadow: 0 8px 38px rgba(26,67,114,0.07); margin-bottom: 40px; }
.hero .content-wrapper {display: flex; flex-direction: column; align-items: flex-start; gap: 22px;}
.hero h1 { color: #1A4372; letter-spacing: -1px; }
.hero p { color: #26303d; font-size: 20px; max-width: 520px; }

/* BUTTONS */
.cta-btn {
  display: inline-block;
  background: #D4E157;
  color: #1A4372;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 12px 38px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(212,225,87,0.13);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  letter-spacing: 0.06em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1A4372;
  color: #fff;
  box-shadow: 0 6px 24px rgba(26,67,114,0.17);
}

/* HEADER NAVIGATION */
header {
  width: 100%;
  background: #fffdf6;
  box-shadow: 0 1px 8px rgba(26,67,114,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 48px; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #1A4372;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus { background: #D4E157; color: #1A4372; }
header .cta-btn { margin-top: 0; margin-bottom: 0; }

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #D4E157;
  color: #1A4372;
  border: none;
  font-size: 32px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  box-shadow: 0 1px 10px rgba(212,225,87,0.14);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s;
  z-index: 1100;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: #fef8c6; outline: none; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffdf6;
  z-index: 2000;
  transition: transform 0.32s cubic-bezier(.39,.575,.565,1), opacity 0.22s;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 20px 20px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #D4E157;
  color: #1A4372;
  border: none;
  font-size: 30px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #fffbe8; outline: none; }
.mobile-nav { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif; font-size: 22px; color: #1A4372;
  padding: 10px 0; border-radius: 16px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #D4E157; color: #1A4372; }

@media (max-width: 1100px) {
  header .container { gap: 10px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 800px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* Show mobile nav */
@media (max-width: 800px) {
  header .cta-btn { display: none; }
}

/* FOOTER */
footer {
  background: #fffdf6;
  color: #1A4372;
  padding: 30px 0 0 0;
  margin-top: 48px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -1px 10px rgba(212,225,87,0.08);
}
footer .container { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: space-between; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; margin:16px 0; }
.footer-nav a { color: #1A4372; font-size: 15px; padding: 4px 8px; border-radius: 11px; transition: background 0.19s; }
.footer-nav a:hover, .footer-nav a:focus { background: #D4E157; color: #1A4372; }
.footer-contact { font-size: 15px; color: #26303d; display: flex; flex-direction: column; gap: 6px; }
.footer-contact img { width: 17px; height: 17px; margin-right: 8px; vertical-align: middle; }
footer img { min-width: 48px; max-width: 56px; border-radius: 14px; }
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-nav {flex-direction: column; gap:10px; margin-left:0;}
}

/* TESTIMONIALS - HIGH CONTRAST CARD */
.testimonial-card { background: #fff; border-left: 8px solid #D4E157; color: #1A4372; box-shadow: 0 4px 18px rgba(212,225,87,0.08); min-width: 230px; }
.testimonial-card p { font-size: 18px; color: #1A4372; margin-bottom: 10px; }
.testimonial-card span { font-size: 16px; color: #26303d; font-style: italic; font-family: 'Roboto', Arial, sans-serif; }

/* CALL TO ACTION */
.cta { background: linear-gradient(93deg, #fffdf6 20%, #D4E157 85%); border-radius: 20px; box-shadow: 0 2px 20px rgba(212,225,87,0.14); margin-bottom:60px; text-align:center; }
.cta h2 { color: #1A4372; font-size: 28px; font-weight: 700; margin: 10px 0 16px 0; }
.cta p { color: #3b464f; font-size: 19px; max-width: 500px; margin: 0 auto 24px auto; }
.cta .cta-btn { margin-bottom: 0; }

/* CARDS, TIPS, FEATURED */
.card, .feature-item, .articles-grid > article, .training-grid > div, .team-bios > div { box-shadow: 0 1px 8px rgba(26,67,114,0.06); border-radius:18px; }
.card:hover, .feature-item:hover, .articles-grid > article:hover, .training-grid > div:hover, .team-bios > div:hover {
  box-shadow: 0 6px 24px rgba(212,225,87,0.13);
  transform: translateY(-2px) scale(1.012);
}
.articles-grid > article h3, .training-grid > div h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1A4372;
}
.articles-grid > article p, .training-grid > div p { font-size: 16px; margin-bottom: 6px; color: #26303d; }

/* SPECIAL LAYOUTS */
.team-bios {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 24px; }
.team-bios > div {
  flex: 1 1 230px; align-items: center; text-align: center; background: #FFFDE1;
  padding: 24px 12px;
}
.team-bios img { margin: 0 auto 12px auto; }

/* MAP, CONTACT INFO */
.contact-info p, .map p { font-size: 17px; display: flex; align-items: center; margin-bottom: 9px; }
.contact-info img, .map img { width: 22px; margin-right: 8px; display: inline; vertical-align: middle; }
.contact-info a { color: #1A4372; word-break: break-word; }
.map { background: #f9faeb; border-radius: 16px; padding: 16px 18px; margin: 18px 0 26px 0; }

/* BUSINESS HOURS */
.business-hours { background: #FFFDE1; border-radius: 16px; box-shadow: 0 2px 10px rgba(212,225,87,0.13); margin: 22px 0 40px 0; }

/* TABLES AND PRICE LIST */
.pricing table th, .pricing table td { font-family: 'Roboto', Arial, sans-serif; font-size: 16px; color: #1A4372; }
.pricing table th { background: #D4E157; color: #1A4372; }
.pricing table td ul { padding-left: 22px; }
.features-comparison { margin-top: 24px; background: #fffbe8; border-radius: 14px; padding: 18px 16px; box-shadow: 0 1px 10px rgba(212,225,87,0.08); }
.features-comparison h3 { font-size: 18px; color: #1A4372; }
.features-comparison ul { padding-left: 18px; }

/* FORM, CONFIRMATION, AND NEXT STEPS */
.confirmation { background: #FFFDFA; border-radius: 22px; box-shadow: 0 2px 18px rgba(212,225,87,0.07); margin: 32px 0; text-align: center; }
.confirmation .next-steps { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.confirmation .cta-btn { margin: 0 auto; }

/* LEGAL SECTIONS */
.legal { background: #fff; border-radius: 24px; box-shadow: 0 1px 12px rgba(26,67,114,0.07); padding: 40px 20px; margin-bottom: 60px; }
.legal h1 { font-size: 30px; }
.legal ul, .legal ol { margin-left: 32px; }
.legal ul li, .legal ol li { font-size: 15px; margin-bottom: 7px; }

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.19s, box-shadow 0.18s, transform 0.17s;
}
.cta-btn:active, .main-nav a:active, .footer-nav a:active, .mobile-nav a:active {
  transform: scale(0.97);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 24px;
  background: #fffbe8;
  box-shadow: 0 4px 36px rgba(212,225,87,0.19);
  border-radius: 18px;
  color: #1A4372;
  padding: 20px 24px 18px 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
.cookie-buttons {
  display: flex; gap: 16px; margin-top: 4px;
}
.cookie-btn {
  background: #D4E157;
  color: #1A4372;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus { background: #1A4372; color: #fff; }
.cookie-btn.settings { background: #fff; color: #1A4372; border: 1.5px solid #1A4372; }
.cookie-btn.settings:hover { background: #D4E157; color: #1A4372; }

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed; z-index: 3100; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,48,61, 0.34); display: flex; align-items: center; justify-content: center;
  animation: fadeModalBg 0.32s;
}
@keyframes fadeModalBg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fffbe8; color: #1A4372;
  border-radius: 20px; box-shadow: 0 4px 38px rgba(212,225,87,0.11);
  padding: 34px 24px 20px 24px;
  max-width: 380px; width: 100%;
  animation: fadeModalContent 0.39s cubic-bezier(.51,.92,.24,1.07);
  position: relative;
}
@keyframes fadeModalContent {
  from { transform: translateY(50px) scale(0.93); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 { font-size: 22px; margin-bottom: 18px; font-family: 'Montserrat', Arial, sans-serif; }
.cookie-category { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cookie-category .toggle-switch { position: relative; width: 40px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; width: 40px; height: 24px;
  background: #D4E157;
  border-radius: 24px;
  transition: background 0.19s;
}
.toggle-switch input:checked + .toggle-slider { background: #1A4372; }
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-actions { margin-top: 22px; display: flex; gap: 20px; }
.cookie-modal .cookie-preference-note { font-size: 14px; color: #6E7C90; margin-bottom: 10px; }
.cookie-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; font-size: 28px; color: #1A4372;
  cursor: pointer; border-radius: 50%; transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #D4E157; color: #1A4372; }


/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { padding: 0 11px; }
  .section, .legal { padding: 26px 11px; }
  .features, .feature-grid, .content-grid { gap: 14px; }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0; }
  .content-wrapper { padding: 0; }
}
@media (max-width: 768px) {
  .section { margin-bottom: 38px; padding: 22px 3vw; }
  .hero { padding: 32px 0; border-radius: 0 0 24px 24px; }
  .content-wrapper { padding: 0; }
  .footer-nav { gap: 8px; }
  .cta { padding: 20px 3vw; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 13px; }
  .features, .feature-grid, .team-bios, .articles-grid, .training-grid, .content-grid { flex-direction: column; gap: 12px; }
  .team-bios > div, .training-grid > div, .articles-grid > article { min-width: 0; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 16px; }
}
@media(max-width:600px){
  .container { padding: 0 6px; }
  .main-nav, .footer-nav { gap: 0; }
  header, footer { padding-left: 0; padding-right: 0; }
  .feature-item, .section, .legal {padding: 10px 2px;}
  .cookie-banner { max-width: 99vw; left:2vw; right:2vw; padding: 16px 10px;}
}

/* UTILS */
.rounded { border-radius: 20px; }
.shadow { box-shadow: 0 2px 14px rgba(212,225,87,0.09); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-20 { gap: 20px; }

/* Hide visually but keep accessible for screen readers */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* END OF CSS */