/* ----------------------------------------------------
   CSS Reset & Base Styles (Normalize + Custom Reset)
----------------------------------------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  background: #fff;
  color: #19213C;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F7FA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0;
  font-weight: 800;
  color: #17418C;
  letter-spacing: 0.5px;
}
h1 {font-size: 2.625rem; margin-bottom: 12px;}
h2 {font-size: 2rem; margin-bottom: 10px;}
h3 {font-size: 1.375rem; margin-bottom: 8px;}
p, ul, ol {font-size:1rem; line-height:1.7; margin:0 0 16px 0;}
ul, ol {padding-left: 24px;}
strong {font-weight: 700;}
a {
  color: #17418C;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #E8C547;
  text-decoration: underline;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.18s, color 0.2s, box-shadow 0.16s;
}
:focus {
  outline: 2px solid #E8C547;
  outline-offset: 2px;
}

/* =============================================
   Brand Color Variables (with solid fallback)
============================================= */
:root {
  --color-primary: #17418C;
  --color-secondary: #E8C547;
  --color-accent: #F5F7FA;
  --color-dark: #141B2D;
  --color-mid: #19213C;
  --color-info: #13D2EA;
  --color-danger: #F95553;
  --color-success: #19E159;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(23, 65, 140, 0.09);
}

/* =============================================
   Layout Containers
============================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 22px;
}

.text-section {
  margin-bottom: 20px;
  background: none;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .section {
    padding: 56px 44px;
    margin-bottom: 72px;
  }
  .container {
    padding-left: 34px;
    padding-right: 34px;
  }
  .content-wrapper {
    gap: 24px;
  }
}

/* =============================================
   Header & Navigation
============================================= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #E8C547;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(23,65,140,0.04);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px 10px 18px;
}
@media (min-width:900px) {
  .header-container {
    padding: 16px 36px 16px 36px;
  }
}
.main-nav {
  display: none;
}
@media (min-width: 950px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }
  .main-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    padding: 8px 8px;
    border-radius: 7px;
    background: transparent;
    transition: color 0.18s, background 0.22s;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: var(--color-secondary);
    color: #19213C;
    text-decoration: none;
  }
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: bold;
  letter-spacing: 0.09em;
  color: #19213C;
  background: var(--color-secondary);
  border-radius: 23px;
  padding: 13px 32px;
  margin-left: 0;
  box-shadow: 0 2px 10px rgba(23, 65, 140, 0.10);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.19s, box-shadow 0.2s;
  text-transform: uppercase;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17418C;
  color: #fff;
  box-shadow: 0 4px 18px rgba(23,65,140,0.22);
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 10px;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
@media (min-width: 950px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* =============================================
   Mobile Menu Overlay
============================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 65, 140, 0.13);
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.7,0,.4,1);
  z-index: 2222;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  margin: 22px 22px 0 auto;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  background: var(--color-secondary);
}
.mobile-nav {
  margin: 38px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 34px 34px 34px;
}
.mobile-nav a {
  font-weight: 700;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-dark);
  padding: 13px 10px;
  border-radius: 12px;
  background: none;
  transition: color .18s, background .19s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  text-decoration: none;
}
@media (min-width: 950px){
  .mobile-menu {display:none;}
}

/* =============================================
   Footer
============================================= */
footer {
  width: 100%;
  background: #20244A;
  color: #fff;
  box-shadow: 0 -2px 14px rgba(23,65,140,0.06);
  margin-top: 60px;
  padding: 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 12px;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  justify-content: center;
  margin-bottom: 0;
}
.footer-nav a {
  color: #E8C547;
  font-size: 1.01rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  opacity: 0.87;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  opacity: 1;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.footer-branding img {
  width: 34px; height: 34px;
}
@media (min-width: 768px){
  .footer-container { flex-direction: row; gap: 0; }
  .footer-nav { margin-bottom: 0; }
}

/* =============================================
   Hero Section
============================================= */
.hero {
  background: linear-gradient(90deg, #E8C547 0%, #F5F7FA 60%);
  padding: 48px 18px;
  border-radius: 0 0 22px 22px;
  margin-bottom: 40px;
  box-shadow: 0 2px 26px 0 rgba(23, 65, 140, 0.10);
}
.hero .container {
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.3rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px #fff3, 0 1px 0 #F5F7FA;
}
.hero p {
  color: #141B2D;
  font-size: 1.25rem;
  margin-bottom: 17px;
  font-weight: 500;
}
.hero .cta-btn {
  margin-top: 10px;
}
@media (min-width:900px) {
  .hero {
    padding: 80px 0 66px 0;
    margin-bottom: 50px;
    border-radius: 0 0 52px 52px;
  }
  .hero h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
  }
  .hero .container {
    align-items: flex-start;
  }
}

/* =============================================
   Card, Grid & Flexbox Patterns
============================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 4px 18px var(--color-card-shadow);
  padding: 30px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.20s, transform 0.13s;
  min-width: 260px;
  max-width: 100%;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 36px rgba(23,65,140,0.18);
  transform: translateY(-5px) scale(1.03);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
@media (max-width:900px) {
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

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

@media (min-width: 600px) {
  .feature-item {
    flex-direction: row;
    align-items: center;
    gap: 17px;
  }
}

/* =============================================
   Testimonial Cards
============================================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(44,44,130,0.10);
  border-left: 7px solid #E8C547;
  position: relative;
  color: #222;
  max-width: 700px;
  transition: box-shadow 0.17s, border-color 0.20s;
}
.testimonial-card p {
  color: #141B2D;
  font-size: 1.10rem;
  margin: 0 0 4px 0;
  font-weight: 600;
}
.testimonial-card span {
  color: #17418C;
  font-size: .96rem;
  font-weight: bold;
  opacity: 0.88;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 28px #E8C54744;
  border-left-color: #17418C;
  z-index: 1;
}

/* =============================================
   FAQ, Blog List, Team Grid
============================================= */
.faq-list, .blog-list, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item, .blog-list .text-section, .team-grid .text-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23, 65, 140, 0.085);
  padding: 20px 24px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
}
.faq-item strong {
  color: #17418C;
}
@media (max-width: 900px) {
  .faq-list, .blog-list, .team-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* =============================================
   Section Lists with Icons & Features
============================================= */
.content-wrapper ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #19213C;
  font-size: 1.04rem;
  gap: 10px;
  background: none;
  padding: 0;
}
.content-wrapper ul li img {
  width: 25px;
  height: 25px;
  margin-right: 4px;
  display: inline-block;
}

/* =============================================
   Miscellaneous
============================================= */
.text-section h3, .text-section h4 {
  color: #17418C;
  margin-bottom: 7px;
  margin-top: 0;
}
/* Spacing for card and section pattern */
section {
  margin-bottom: 40px;
  width: 100%;
}
@media (min-width: 768px) {
  section {
    margin-bottom: 60px;
  }
}

/* =============================================
   Vibrant Energetic Visual Accents
============================================= */
/* Subtle accent bars for headings */
h2, h1 {
  position: relative;
}
h2::after, h1::after {
  content: '';
  display: block;
  background: #E8C547;
  height: 5px;
  width: 62px;
  border-radius: 7px;
  margin-top: 8px;
}

/* Card emphasis (shadow & accent border on hover) */
.card, .faq-item, .blog-list .text-section, .team-grid .text-section {
  transition: box-shadow .18s, border-color .19s, transform .19s;
}
.card:hover, .faq-item:hover, .blog-list .text-section:hover, .team-grid .text-section:hover {
  box-shadow: 0 9px 38px rgba(23,65,140,0.18);
  border-color: #E8C547;
  transform: translateY(-2px) scale(1.01);
}

/* Dynamic energetic button effect */
.cta-btn {
  box-shadow: 0 3px 20px #E8C54718;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  left: -75px;
  top: 0;
  width: 59px;
  height: 100%;
  background: #13D2EA;
  opacity: 0.16;
  border-radius: 2em;
  z-index: 2;
  transition: left 0.23s cubic-bezier(.7,0,.6,1);
}
.cta-btn:hover::before, .cta-btn:focus::before {
  left: 100%;
}

/* Tag styles */
.text-section ul li {
  border-radius: 8px;
  background: #F5F7FA;
  padding: 7px 16px;
  margin: 0 9px 10px 0;
  font-size: 0.99rem;
  color: #19213C;
  font-weight: bold;
}

/* =============================================
   Cookie Consent Banner & Modal
============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 5120;
  background: #19213C;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 -2px 15px #20244a53;
  padding: 20px 20px 16px 22px;
  gap: 17px;
  border-radius: 20px 20px 0 0;
  animation: cookieSlideIn 0.45s cubic-bezier(.7,0,.6,1);
}
@keyframes cookieSlideIn {
  0% {transform: translateY(120%); opacity:0;}
  75% {transform: translateY(-14px); opacity:1;}
  100% {transform: translateY(0);}
}
.cookie-banner strong {
  color: #E8C547;
}
.cookie-banner .cookie-btns{
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 9px 22px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: background .18s, color .18s, box-shadow .18s;
  box-shadow: 0 1px 4px #17418c20;
}
.cookie-btn.accept {
  background: #E8C547;
  color: #17418C;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #17418C;
  color: #fff;
}
.cookie-btn.reject {
  background: #F95553;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #19213C;
  color: #F95553;
}
.cookie-settings-btn {
  background: #fff;
  color: #19213C;
  border: 1px solid #E8C547;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #E8C547;
  color: #19213C;
}

.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(23,65,140,0.70);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.45s cubic-bezier(.7,0,.6,1);
}
@keyframes cookieModalIn {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: #19213C;
  border-radius: 23px;
  box-shadow: 0 9px 55px #17418c44;
  padding: 34px 24px;
  min-width: 300px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: cookieModalScale 0.28s cubic-bezier(.7,0,.6,1);
}
@keyframes cookieModalScale {
  0%{ transform: scale(.87); opacity:0;}
  100%{ transform: scale(1); opacity:1;}
}
.cookie-modal h2 {
  color: #17418C;
  font-size: 1.48rem;
  margin-bottom: 8px;
}
.cookie-close-modal {
  background: none;
  border: none;
  color: #F95553;
  font-size: 1.8rem;
  position: absolute;
  top: 12px; right: 14px;
  cursor: pointer;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.09rem;
  font-weight: 600;
}
.cookie-category input[type='checkbox']{
  width: 21px;
  height: 21px;
  accent-color: #E8C547;
}
.cookie-category.essential {
  color: #19213C;
}
.cookie-category .cookie-toggle:disabled{
  opacity: .5;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 24px 10px;
    min-width: 0;
  }
}

/* =============================================
   Utility & Accessibility
============================================= */
.hide { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.uppercase {text-transform: uppercase;}

/* =============================================
   Responsive breakpoints: Layouts & Font Sizes
============================================= */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width:600px){
  .footer-branding { flex-direction: column; gap: 8px; }
  section, .section {margin-bottom: 25px; padding: 28px 6px;}
  .container { padding-left:8px; padding-right:8px; }
  h1, h2, h3 {line-height:1.15;}
  .testimonial-card, .faq-item, .blog-list .text-section, .team-grid .text-section { padding: 14px 10px; }
}
/* =============================================
   Animations & Micro-interactions
============================================= */
@media (hover: hover) {
  .cta-btn, .card, .faq-item, .blog-list .text-section, .team-grid .text-section, .testimonial-card {
    transition: box-shadow 0.19s cubic-bezier(.49,0,.3,1), color 0.16s, background 0.13s, border-color 0.13s;
  }
  .cta-btn:hover {
    box-shadow: 0 7px 29px #17418c33, 0 4px 17px #E8C54740;
    transform: scale(1.04);
  }
  .testimonial-card:hover {
    background: #F5F7FA;
  }
}

/* =============================================
   Typography Responsive Scale
============================================= */
@media (max-width: 380px){
  h1 {font-size: 1.4rem;}
  h2 {font-size: 1.17rem;}
}

/* =============================================
   Form & Input Styles (for future extensibility)
============================================= */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #E8C547;
  padding: 10px 14px;
  background: #fff;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #17418C;
}

/* =============================================
   Vibrant/Energetic Utility highlights (e.g. mark)
============================================= */
mark {
  background: #13D2EA;
  color: #191E4D;
  font-weight: bold;
  border-radius: 4px;
  padding: 0 4px;
}

/* =============================================
   Accessibility Utility
============================================= */
.skip-link {
  position: absolute;
  left: -999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
  z-index: 3000;
  background: #E8C547;
  color: #17418C;
  font-weight: bold;
  border-radius: 8px;
}
.skip-link:focus {
  position: fixed;
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 12px 18px;
  font-size: 1.03rem;
  outline: 2px solid #17418C;
}

/* =============================================
   END OF CSS: All visual elements styled, layout by flexbox only!
============================================= */
