/* =======================
   RESET & BASE STYLES
=========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FDF6ED;
  color: #181A24;
  min-height: 100vh;
  transition: background 0.3s;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #25498C;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #F0B325;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Verdana', Arial, sans-serif;
  color: #25498C;
  line-height: 1.22;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {font-size: 2.375rem; margin-bottom: 20px;}
h2 {font-size: 1.75rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1.125rem; margin-bottom: 10px;}

p {
  margin-bottom: 16px;
  color: #222C3A;
  font-size: 1rem;
}
strong {font-weight: 700;}
.text-center { text-align: center; }

/* =======================
   BRAND COLORS & VARIABLES
=========================== */
:root {
  --color-primary: #25498C;
  --color-secondary: #F0B325;
  --color-accent: #FFFFFF;
  --color-bg: #FDF6ED;
  --color-surface: #FFF9F2;
  --color-card-shadow: rgba(37,73,140,0.07);
  --color-card-active: #E8EEFC;
  --color-danger: #DE3F3F;
  --color-body: #181A24;
  --color-footer-bg: #243563;
  --color-footer-text: #FFF;
  --color-muted: #7096D1;
}

/* ==========
 CONTAINER
============ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========
 HEADER
============ */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  box-shadow: 0 3px 20px -6px var(--color-card-shadow);
  position: relative;
  z-index: 30;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
  padding: 0;
}
.logo-link img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.18s;
}
.logo-link img:hover {
  transform: rotate(-6deg) scale(1.08);
}
.main-nav {
  display: flex;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  border-radius: 18px;
  padding: 7px 14px;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  font-weight: 500;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px #FFE59A44;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  padding: 11px 28px;
  border-radius: 28px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 3px 12px -3px #F0B32555;
  transition: background 0.23s, color 0.17s, transform 0.16s, box-shadow 0.18s;
  margin-left: 10px;
  outline: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #fff3;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFCC49;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px -5px #F0B32577;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 9px -4px #F0B32599;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, transform 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: #fff;
}


/*************************
   MOBILE MENU OVERLAY
**************************/
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.86,.18,.64,1.13), opacity 0.25s;
  box-shadow: 0 0 0 0 #fff;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 2px 24px 0 #25498C22;
}
.mobile-menu-close {
  margin-top: 22px;
  margin-left: 24px;
  margin-bottom: 22px;
  align-self: flex-start;
  font-size: 2.1rem;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 88vw;
  margin: 0 auto;
  gap: 0.6em;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  font-size: 1.22rem;
  color: var(--color-primary);
  border-bottom: 1px solid #E9EAF1;
  font-weight: 600;
  text-align: left;
  transition: color 0.17s, background 0.13s, padding 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF9E3;
  color: #F0B325;
  padding-left: 10px;
}

/********************
  HERO SECTION/TITLES
*********************/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
section:first-of-type {
  margin-top: 12px;
}
section .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.text-center { text-align: center; }

/****************
  GRID & FLEX UTILS
******************/
.features-grid, .testimonials-slider, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 8px;
}
.content-grid { gap: 20px; justify-content: space-between; }
.features-grid { gap: 24px; }
.card-container { gap: 24px; }
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #FFF9E3;
  border-radius: 20px;
  box-shadow: 0 6px 28px -7px var(--color-card-shadow);
  margin-right: 16px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 390px;
  transition: box-shadow 0.18s, transform 0.16s;
  font-size: 1.01rem;
  color: #181A24;
  border: 2px solid #FFE59A11;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 12px 40px -7px #F0B32566;
  border-color: #FFE59A88;
  transform: scale(1.03) rotate(-1deg);
  background: #FFFDE8;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 12px -4px var(--color-card-shadow);
  padding: 24px 22px 18px 22px;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 20px;
  min-width: 235px;
  max-width: 320px;
  transition: box-shadow 0.17s, transform 0.14s, background 0.18s;
  position: relative;
}
.feature-item img {
  background: #E8EEFC;
  border-radius: 50%;
  padding: 14px;
  height: 47px;
  width: 47px;
  margin-bottom: 2px;
  box-shadow: 0 2px 8px -3px #25498C23;
  transition: background 0.16s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 8px 26px -7px #25498C14;
  transform: scale(1.04) rotate(1.5deg);
  background: #E8EEFC;
}
.feature-item:hover img {
  background: #F0B325;
}
.feature-item h3 {
  font-size: 1.16rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-item p {
  color: #2D3548;
  font-size: 1rem;
}

/********************
 CARDS shared
********************/
.card {
  margin-bottom: 20px;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/********************
 CTA BOX
********************/
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #FFF6D8;
  border-radius: 18px;
  box-shadow: 0 3px 18px -8px var(--color-card-shadow);
  padding: 34px 20px;
  transition: box-shadow 0.2s, background 0.17s;
  margin-top: 14px;
}
.cta-box h3 {
  font-size: 1.33rem;
}
.cta-box .btn-primary {
  margin-left: 0;
  margin-top: 6px;
}

/***************
 TABLES
***************/
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 14px -7px var(--color-card-shadow);
  margin-bottom: 24px;
  font-size: 1rem;
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #E8EEFC;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
td {
  color: #181A24;
}
tbody tr:nth-child(odd) {
  background: #FFFBF2;
}
tbody tr:nth-child(even) {
  background: #FFF6D8;
}
tbody tr:hover {
  background: #FFE59A44;
  transition: background 0.18s;
}

/********************
 CONTACT/BLOCK STYLES
**********************/
.text-section {
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
}
.contact-data-block {
  margin-top: 12px;
  padding: 20px 18px;
  background: #E8EEFC;
  border-radius: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #25498C;
  box-shadow: 0 4px 12px -5px #25498C12;
}
.contact-data-block a {
  color: var(--color-primary);
  font-weight: 700;
}
.contact-data-block a:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

/*********************
   FOOTER
*********************/
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 38px 0 22px 0;
  font-size: 1rem;
  width: 100%;
  margin-top: 50px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px -5px #F0B32522;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a {
  color: #FFF9E3;
  margin: 0 3px;
  transition: color 0.16s;
  opacity: 0.92;
}
.footer-nav a:hover {
  color: #F0B325;
  text-decoration: underline;
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #DEEDF7;
  font-size: 0.99rem;
  opacity: 0.85;
}
@media (max-width: 900px){
  .footer-container { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { margin-top: 10px; }
}

/*********************
   COOKIE CONSENT BANNER
**********************/
.cookie-consent-banner {
  position: fixed;
  z-index: 10100;
  left: 0; right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFDE8;
  box-shadow: 0 -2px 24px -10px #25498C24;
  padding: 20px 10px 20px 10px;
  gap: 20px;
  transition: transform 0.31s cubic-bezier(.87,.23,.66,1.01), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #25498C;
  font-size: 0.99rem;
  max-width: 380px;
  margin-bottom: 0;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 10px 20px;
  margin-left: 6px;
  cursor: pointer;
  box-shadow: 0 1px 6px -3px #25498C23;
  transition: background 0.17s, color 0.12s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1E3368;
}
.cookie-btn.reject {
  background: #fff;
  color: #25498C;
  border: 1px solid #DAE7F8;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ECEFFE;
  color: #25498C;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #25498C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFD747;
  color: #25498C;
}

/*********************
 COOKIE SETTINGS MODAL
**********************/
.cookie-modal-overlay {
  position: fixed;
  z-index: 10110;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,30,40,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 22px;
  box-shadow: 0 8px 40px -14px #25498C32, 0 2px 16px -4px #F0B32544;
  width: 98vw;
  max-width: 410px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: modalPop .56s cubic-bezier(.78,-0.36,.27,1.44);
}
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.82) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}
.cookie-cat-row .label {
  flex: 1;
  color: #25498C;
  font-size: 1.01rem;
}
.cookie-toggle {
  appearance: none;
  width: 35px;
  height: 20px;
  border-radius: 20px;
  background: #E8EEFC;
  position: relative;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 10px -4px #25498C12;
  transition: background 0.12s;
}
.cookie-toggle:checked {
  background: #F0B325;
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.14s, background 0.14s;
}
.cookie-toggle:checked:after {
  left: 18px;
  background: #FFE59A;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #25498C;
  cursor: pointer;
}

/*******************
   ANIMATION EFFECTS
********************/
.btn, .btn-primary, .cookie-btn {
  transition: background 0.19s, color 0.15s, transform 0.13s, box-shadow 0.13s;
}
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.13s, background 0.19s;
}

/*******************
   PAGE SPACING PATTERNS
********************/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/*******************
   RESPONSIVE
********************/
@media (max-width: 1250px){
  .container { max-width: 970px; }
}
@media (max-width: 1020px){
  .main-nav { gap: 16px; }
  .header-container { gap: 10px; }
  .features-grid, .content-grid, .card-container, .testimonials-slider {
    gap: 14px;
  }
  .feature-item, .testimonial-card, .card {
    min-width: 160px;
    max-width: 97vw;
  }
}
@media (max-width: 900px){
  .section, section {padding: 34px 10px;}
  .footer-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px){
  html { font-size: 15px; }
  .header-container {
    gap: 8px;
    height: 60px;
    min-height: 60px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn-primary { margin-left: 0; font-size: 1rem; padding: 9px 22px; }
  .features-grid, .card-container, .testimonials-slider,
  .content-grid, .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .feature-item, .testimonial-card {
    min-width: unset;
    max-width: 100vw;
  }
  .cta-box { padding: 24px 10px; }
  table {
    font-size: 0.98rem;
  }
}
@media (max-width: 520px){
  html { font-size: 14px; }
  .logo-link img {height: 37px;}
  .btn-primary { font-size: 0.97rem; padding: 8px 16px; }
  .container { padding: 0 6px; }
  section, .section { padding: 24px 2px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .footer-logo img { width: 32px; height:32px; }
  .testimonial-card, .feature-item {padding: 14px 8px;}
  .cookie-modal {padding: 20px 7px;}
  .mobile-nav {width:99vw;}
}

/********************
   FUN/PERSONALITY EFFECTS & FONTS
********************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
}

/********************
   MICRO-INTERACTIONS
********************/
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.95);
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  animation: funbounce 0.45s cubic-bezier(.61,-0.18,.39,1.19) 1;
}
@keyframes funbounce {
  0% {transform: scale(1) rotate(-0.3deg);}
  23%{transform: scale(1.03) rotate(1.7deg);}
  60%{transform: scale(0.97) rotate(-1.7deg);}
  100%{transform: scale(1) rotate(0deg);}
}

/********************
 FORM DEFAULTS (if forms are added in future)
********************/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #DAE7F8;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #F0B325;
  border-color: #F0B325;
}

/*********
 MISC
**********/
::-webkit-scrollbar {
  width: 13px;
  background: #E8EEFC;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #F0B325;
  border-radius: 7px;
}

hr {
  margin: 34px 0;
  border: none;
  border-top: 2px dotted #F0B325;
  opacity: 0.29;
}

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