/* ========================================================
   CSS RESET & NORMALIZE
======================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F5F5;
  color: #262840;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  box-sizing: border-box;
}
/* ========================================================
   FONT IMPORT
======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F5F5;
  color: #262840;
  font-size: 1rem;
  min-height: 100vh;
}

/* ========================================================
   TYPOGRAPHY - Modern Bold
======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #38478B;
}
h1 {
  font-size: 2.75rem; /* 44px */
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li, ul, ol {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #262840;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: #38478B;
}

/* Modern, bold micro-typography */
::selection {
  background: #F7CC68;
  color: #38478B;
}

/* Basic anchor style */
a {
  font-weight: 700;
  color: #38478B;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7CC68;
}

/* ========================================================
   CONTAINER & STRUCTURE
======================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(56,71,139,0.08);
}
@media (max-width: 768px) {
  .section {
    padding: 26px 9px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ========================================================
   HEADER & NAV BAR
======================================================== */
header {
  background: #fff;
  box-shadow: 0 4px 28px 0 rgba(56,71,139,0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
header img {
  height: 42px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #38478B;
  padding: 9px 0;
  border-bottom: 3px solid transparent;
  transition: border 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7CC68;
  border-bottom: 3px solid #F7CC68;
}
/* CTA btn right of nav */
header .btn-primary {
  margin-left: 32px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #38478B;
  border-radius: 8px;
  padding: 6px 9px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7CC68;
  color: #38478B;
}

@media (max-width: 1000px) {
  .main-nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================================================
   MOBILE MENU (SLIDE IN)
======================================================== */
.mobile-menu {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 18px rgba(56,71,139,0.13);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.7,0.12,0.22,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #38478B;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 16px 18px 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F7CC68;
  color: #38478B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 24px 28px;
}
.mobile-nav a {
  color: #38478B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 12px 0;
  border-radius: 7px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #38478B;
}

/* Overlay effect for menu (optional for focus background) */
@media (max-width: 1000px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/* ========================================================
   HERO SECTION
======================================================== */
.hero {
  background: linear-gradient(105deg, #F7CC68 44%, #fff 100%);
  border-bottom: 4px solid #38478B;
  padding: 60px 0 32px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 560px;
}
.hero h1 {
  color: #38478B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
}
.hero p {
  color: #444;
  font-size: 1.13rem;
  line-height: 1.5;
}
.hero .btn-primary {
  margin-top: 14px;
}
@media (max-width: 900px) {
  .hero {
    padding: 40px 0 22px 0;
  }
  .hero .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 660px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* ========================================================
   BUTTONS - PRIMARY / SECONDARY
======================================================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px 0 rgba(56,71,139,0.14);
  border: none;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.19s;
  line-height: 1;
}
.btn-primary {
  background: #38478B;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #222c6a;
  color: #F7CC68;
  box-shadow: 0 6px 20px 0 rgba(56,71,139,0.2);
}
.btn-secondary {
  background: #fff;
  color: #38478B;
  border: 2px solid #38478B;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F7CC68;
  color: #38478B;
  border-color: #F7CC68;
  box-shadow: 0 6px 24px 0 rgba(247,204,104,0.17);
}

/* Slight animation for all buttons */
.btn-primary, .btn-secondary {
  will-change: background, color, box-shadow, border-color;
}

/* ========================================================
   CARD & SECTION FLEX CONTAINERS
======================================================== */
.card-container, .service-cards, .feature-grid, .team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 14px 0 rgba(56,71,139,0.07);
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(56,71,139,0.13);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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;
  }
  .card-container, .service-cards, .feature-grid, .content-grid, .team-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* Many simple boxes: feature-grid, service-cards, team-section */
.feature-grid > div,
.service-cards > div,
.team-member-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px 0 rgba(56,71,139,0.06);
  padding: 22px 22px 15px 22px;
  min-width: 228px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid transparent;
  transition: border-color 0.19s, box-shadow 0.19s;
}
.feature-grid > div:hover,
.service-cards > div:hover,
.team-member-card:hover {
  border-color: #F7CC68;
  box-shadow: 0 6px 28px 0 rgba(56,71,139,0.19);
}

/* Smaller screens adjustment */
@media (max-width: 900px) {
  .feature-grid > div,
  .service-cards > div,
  .team-member-card {
    min-width: 160px;
    padding: 14px 12px 11px 12px;
  }
}

/* ========================================================
   FEATURE LISTS & ITEM VARIANTS
======================================================== */
.feature-list, .benefit-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.feature-list li, .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 8px rgba(56,71,139,0.05);
  padding: 12px 18px 12px 9px;
  border-radius: 8px;
  color: #38478B;
}
.feature-list img, .feature-grid img {
  width: 36px;
  height: 36px;
  margin-right: 6px;
  flex-shrink: 0;
}
.benefit-list li {
  background: #F7CC68;
  color: #38478B;
  font-weight: 900;
  box-shadow: none;
  border-radius: 10px;
  padding: 14px 22px 14px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

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

/* ========================================================
   SERVICE LIST
======================================================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-list li {
  background: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56,71,139,0.07);
  margin-bottom: 0;
  transition: box-shadow 0.19s, border-color 0.18s;
}
.service-list li:hover {
  box-shadow: 0 5px 18px 0 rgba(56,71,139,0.13);
  border-left: 5px solid #F7CC68;
}

/* ========================================================
   FAQ ACCORDION & TEXT SECTION
======================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.faq-item {
  background: #FCFAF3;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(56,71,139,0.06);
  padding: 18px 20px 12px 20px;
  margin-bottom: 0;
}

.text-section {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.text-section ul,
.text-section ol {
  margin-left: 23px;
}
.text-section li {
  margin-bottom: 6px;
}

/* ========================================================
   TESTIMONIALS
======================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px 0 rgba(56,71,139,0.10);
  margin-bottom: 24px;
  min-width: 0;
  color: #262840;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #262840;
  font-size: 1.05rem;
}
.testimonial-card .stars {
  color: #F7CC68;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.testimonial-card strong {
  display: inline-block;
  margin-top: 7px;
  font-weight: 700;
  color: #38478B;
}
@media (max-width: 650px) {
  .testimonial-card {
    padding: 13px 8px;
    border-radius: 7px;
  }
}

/* ========================================================
   FOOTER
======================================================== */
footer {
  background: #38478B;
  width: 100%;
  padding: 38px 0 14px;
  color: #fff;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 18px;
  padding-right: 18px;
}
footer img {
  height: 38px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 0 18px 0;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  border-radius: 8px;
  padding: 5px 5px;
  transition: color 0.18s, background 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7CC68;
  background: #fff2;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 5px;
  color: white;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ========================================================
   COOKIE BANNER & COOKIE MODAL
======================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  color: #262840;
  padding: 18px 24px;
  box-shadow: 0 -3px 18px 0 rgba(56,71,139,0.11);
  border-top: 3px solid #F7CC68;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.98rem;
  flex-wrap: wrap;
  min-height: 52px;
  transition: transform 0.29s cubic-bezier(.7,.18,.41,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(56,71,139,0.07);
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .accept {
  background: #38478B;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #222c6a;
  color: #F7CC68;
}
.cookie-banner .reject {
  background: #F7CC68;
  color: #38478B;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #FFE9B2;
}
.cookie-banner .settings {
  background: #fff;
  color: #38478B;
  border: 2px solid #38478B;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F7CC68;
  color: #38478B;
  border-color: #F7CC68;
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(56,71,139,0.20);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(56,71,139,0.18);
  max-width: 400px;
  padding: 34px 36px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  position: relative;
  animation: popin 0.33s cubic-bezier(.81,.07,.47,1.19);
}
@keyframes popin {
  0% { transform: scale(0.87) translateY(60px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 0.6em;
  font-size: 1.3rem;
  color: #38478B;
}
.cookie-modal .category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 1.05rem;
}
.cookie-modal .toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .slider {
  width: 35px;
  height: 18px;
  background: #F5F5F5;
  border-radius: 15px;
  margin-left: 10px;
  position: relative;
  transition: background 0.2s;
}
.cookie-modal .slider:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: #38478B;
  border-radius: 50%;
  transition: left 0.2s, background 0.17s;
}
.cookie-modal .toggle-switch input[type="checkbox"]:checked + .slider {
  background: #F7CC68;
}
.cookie-modal .toggle-switch input[type="checkbox"]:checked + .slider:after {
  left: 20px;
  background: #222c6a;
}
.cookie-modal .category.essential .slider,
.cookie-modal .category.essential .slider:after {
  background: #38478B !important;
}
.cookie-modal .category.essential label {
  font-weight: 700;
  color: #38478B;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 13px;
}
.cookie-modal .modal-actions button {
  padding: 9px 18px;
  font-weight: 700;
  border-radius: 7px;
  border: none;
  transition: background 0.15s;
}
.cookie-modal .save {
  background: #38478B;
  color: #fff;
}
.cookie-modal .save:focus, .cookie-modal .save:hover {
  background: #F7CC68;
  color: #38478B;
}
.cookie-modal .close {
  background: #fff;
  color: #38478B;
  border: 2px solid #38478B;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: #F7CC68;
  border-color: #F7CC68;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px;
    font-size: 0.93rem;
  }
  .cookie-modal {
    padding: 22px 10px 14px 10px;
    min-width: 0;
    width: 98%;
    max-width: 98vw;
  }
}

/* ========================================================
   GENERAL RESPONSIVE ADJUSTMENTS
======================================================== */
@media (max-width: 600px) {
  h1 { font-size: 1.45rem !important; }
  h2 { font-size: 1.14rem !important; }
  h3 { font-size: 1.04rem !important; }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 12px 18px;
    border-radius: 8px;
  }
}

/* Typography keeps modern bold contrast. Margin between cards/sections is always at least 20px. */
section:not(:last-child) {
  margin-bottom: 50px;
}

/* ========================================================
   ANIMATIONS & MICRO-INTERACTIONS
======================================================== */
.card, .team-member-card, .feature-grid > div, .service-cards > div {
  transition: box-shadow 0.17s, border-color 0.15s, transform 0.19s;
}
.card:hover, .team-member-card:hover, .feature-grid > div:hover, .service-cards > div:hover {
  transform: translateY(-4px) scale(1.02);
}
.btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal button {
  transition: background 0.17s, color 0.18s, box-shadow 0.18s;
}

/* Subtle fade on section load */
.section, .hero, .testimonial-card, .team-member-card, .feature-grid > div {
  opacity: 0;
  transform: translateY(27px);
  animation: fadeinup 0.65s cubic-bezier(.33,.88,.56,1.19) forwards;
  animation-delay: 0.07s;
}
@keyframes fadeinup {
  0% { opacity: 0; transform: translateY(27px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   MISC & UTILITIES
======================================================== */
::-webkit-scrollbar {
  width: 11px;
  background: #F5F5F5;
}
::-webkit-scrollbar-thumb {
  background: #F7CC68dd;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38478B99;
}

/* Error/success states for forms (if needed) */
.input-error {
  border: 2px solid #E16032;
  background: #F8EAE6;
}
.input-success {
  border: 2px solid #78CC6B;
  background: #ECFCEE;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================
   HIGH CONTRAST ACCESSIBILITY
======================================================== */
.btn-primary, .feature-grid > div, .service-cards > div, .testimonial-card, .team-member-card, .cookie-modal, .section {
  border: none;
}
.testimonial-card, .section, .feature-list li {
  color: #262840;
  background: #fff;
}

/* General geometric accent shape */
.geoshape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

section {
  padding: 20px 0;
}

/* ========================================================
   FINAL - NO GRID/FLEXBOX OVERRIDES
======================================================== */
/* (All multi-column layouts use ONLY flexbox with gap) */

/* END OF CSS */