/* --- CSS RESET & NORMALIZATION --- */
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;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F7F9;
  color: #253359;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.1px;
  transition: background 0.3s, color 0.3s;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- BRAND VARIABLES --- */
:root {
  --primary: #253359;
  --secondary: #F5A623;
  --accent: #F7F7F9;
  --danger: #D7263D;
  --success: #23CE6B;
  --info: #2096F3;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --shadow: 0 5px 24px 0 rgba(80,60,120,0.10), 0 2px 3px rgba(36,30,51,0.03);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
}


/* --- TYPE SCALE & HEADINGS --- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  color: var(--primary);
  text-shadow: 0 2px 16px rgba(245,166,35,0.14);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--secondary);
  text-shadow: 0 1px 8px rgba(245,166,35,0.08);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #222443;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 6px;
  position: relative;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* --- UTILITY CLASSES & CONTAINERS --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.text-section {
  margin-bottom: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: 96vw;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(245,166,35,0.25), 0 2px 3px rgba(36,30,51,0.07);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}


/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(37,51,89,0.07);
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 9px 0;
  gap: 18px;
  font-family: var(--font-display);
}
.main-nav > a {
  font-weight: 800;
  font-size: 1.08rem;
  padding: 10px 18px;
  color: var(--primary);
  border-radius: var(--radius-md);
  position: relative;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  margin-right: 4px;
}
.main-nav a.cta-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
  border-radius: 32px;
  padding: 11px 28px;
  box-shadow: 0 2px 9px 0 rgba(245,166,35,0.14);
  letter-spacing: 0.02em;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: #ffb62d;
  color: var(--primary);
}
.main-nav > a:not(.cta-primary):hover,
.main-nav > a:not(.cta-primary):focus {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 2px 4px 0 rgba(37,51,89,0.10);
}
.main-nav img {
  max-height: 38px;
  margin-right: 12px;
  vertical-align: middle;
}

/* -- Hide burger by default */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  margin-left: auto;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1400;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #ffb62d;
  color: var(--primary);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1900;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.81,-0.01,.32,1.14);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  padding: 14px 18px 8px 22px;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 10px;
  margin-right: 12px;
  z-index: 2000;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 4px;
  padding: 20px 42px 24px 42px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  padding: 11px 0 12px 0;
  color: var(--primary);
  border-bottom: 1px solid #eee;
  width: 100%;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

@media (max-width: 998px) {
  .main-nav > a:not(:first-child) {
    font-size: 0.99rem;
    padding: 8px 10px;
    margin-right: 0;
  }
  .main-nav img {
    max-height: 32px;
  }
}
@media (max-width: 940px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, #f5a623 0%, #ffe09e 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 48px;
  position: relative;
  box-shadow: 0 10px 24px -12px rgba(37,51,89,0.22);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 28px;
  animation: hero-in 1s cubic-bezier(.81,-0.01,.32,1.14);
}
@keyframes hero-in {
  0% { opacity: 0; transform: translateY(36px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.hero .content-wrapper {
  padding: 34px 8px 24px 8px;
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius-md);
  box-shadow: none;
  text-align: center;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.05rem;
}
@media (min-width: 720px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .content-wrapper {
    padding: 44px 52px 38px 52px;
    text-align: left;
  }
}

/* --- BUTTONS & CTAS --- */
.cta-primary, .btn, button, .accept-cookie-btn, .reject-cookie-btn, .cookie-settings-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  background: var(--secondary);
  color: #fff !important;
  padding: 12px 36px;
  border: none;
  border-radius: 34px;
  box-shadow: 0 2px 16px 0 rgba(245,166,35,0.12);
  margin-top: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: center;
  outline: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.18s;
}
.cta-primary:hover, .btn:hover, .accept-cookie-btn:hover, .reject-cookie-btn:hover, .cookie-settings-btn:hover {
  background: #ffb62d;
  color: var(--primary) !important;
  transform: translateY(-1px) scale(1.022);
  box-shadow: 0 4px 18px 0 rgba(245,166,35,0.36);
}
button:active, .btn:active {
  transform: scale(0.98);
}
.btn.secondary, .cookie-settings-btn {
  background: var(--primary);
  color: #fff !important;
}
.btn.secondary:hover, .cookie-settings-btn:hover {
  background: #394877;
}
.btn.danger, .reject-cookie-btn {
  background: var(--danger);
}
.btn.success, .accept-cookie-btn {
  background: var(--success);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #132042;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 24px 0 rgba(37,51,89,0.10);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 680px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: #132042;
  line-height: 1.7;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary);
  font-family: var(--font-display);
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(245,166,35,0.17), 0 2px 3px rgba(36,30,51,0.10);
  transform: translateY(-4px) scale(1.012);
}

/* --- FOOTER --- */
footer {
  background: #253359;
  color: #fff;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  width: 100%;
  margin-top: 80px;
  padding-top: 24px;
}
footer .container {
  padding-top: 16px;
  padding-bottom: 7px;
}
footer .content-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.16s;
  font-size: 0.98rem;
}
footer nav a:hover,
footer nav a:active {
  background: #F5A623;
  color: var(--primary);
}
footer img {
  max-height: 40px;
  margin-right: 18px;
}
.address-block {
  font-size: 0.96rem;
  color: #ffe09e;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  background: #1A2642;
  padding: 10px 0;
  font-size: 0.98rem;
  margin-top: 18px;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* --- CUSTOM FLEXBOX LAYOUTS FOR SECTIONS --- */
/* -- Handled above with .container, .content-grid, .card-container, etc. -- */


/* --- SPACING BETWEEN CARDS/SECTIONS --- */
section {
  margin-bottom: 60px;
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .section {
    margin-bottom: 42px;
    padding: 22px 5px;
  }
  section {
    margin-bottom: 38px;
  }
}

/* --- LIST STYLES --- */
ul {
  margin-bottom: 12px;
}
ul li {
  padding-left: 22px;
  position: relative;
}
ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 11px;
  height: 11px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 10px;
}
ul li strong {
  color: var(--secondary);
}

/* --- LINKS & INTERACTIVITY --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
a:hover,
a:focus {
  color: var(--secondary);
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.cta-primary, .btn, button, .accept-cookie-btn, .reject-cookie-btn, .cookie-settings-btn {
  transition: background 0.23s, color 0.19s, transform 0.18s, box-shadow 0.17s;
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 24px 0 rgba(245,166,35,0.19), 0 4px 8px rgba(37,51,89,0.11);
  transform: translateY(-3px) scale(1.01);
}

/* --- INPUTS --- */
input[type=text], input[type=email], textarea, select {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #e4e3ec;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 98vw;
  max-width: 640px;
  background: #fff;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -4px 24px 0 rgba(37,51,89,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2200;
  padding: 22px 28px 18px 28px;
  gap: 16px;
  animation: cookie-slide-in .6s cubic-bezier(.81,-0.01,.32,1.14);
}
@keyframes cookie-slide-in {
  0% { transform: translateX(-50%) translateY(80px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.accept-cookie-btn, .reject-cookie-btn, .cookie-settings-btn {
  font-size: 0.99rem;
  padding: 10px 24px;
  border-radius: 22px;
  font-weight: 700;
  margin: 0 6px 0 0;
}
.accept-cookie-btn {
  background: var(--success);
  color: #fff;
}
.reject-cookie-btn {
  background: var(--danger);
  color: #fff;
}
.cookie-settings-btn {
  background: var(--primary);
  color: #fff;
}
.accept-cookie-btn:hover,
.accept-cookie-btn:focus {
  background: #16b462;
}
.reject-cookie-btn:hover,
.reject-cookie-btn:focus {
  background: #ae1737;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: #394877;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3000;
  min-width: 300px;
  max-width: 94vw;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 52px 0 rgba(37,51,89,0.14);
  padding: 36px 34px 30px 34px;
  animation: cookie-modal-in .35s cubic-bezier(.81,-0.01,.32,1.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translate(-50%,-40%) scale(.99); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.27rem;
  margin-bottom: 8px;
}
.cookie-modal ul {
  margin-left: 1rem;
}
.cookie-modal li {
  margin-bottom: 6px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category label {
  font-weight: 700;
  color: var(--primary);
}
.toggle-switch {
  width: 44px;
  height: 24px;
  background: #e1e1ea;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  transition: background 0.21s;
}
.toggle-switch input[type=checkbox] {
  display: none;
}
.toggle-switch .slider {
  position: absolute; top: 2px; left: 3px;
  width: 20px; height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.19s, background 0.14s;
}
.toggle-switch input[type=checkbox]:checked + .slider {
  left: 21px;
  background: var(--success);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 800;
  font-size: 1.22rem;
  cursor: pointer;
  position: absolute;
  top: 17px;
  right: 16px;
  z-index: 3300;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #b8142a;
}

/* --- ACCENT ANIMATIONS & VISUAL ELEMENTS --- */
.section {
  position: relative;
}
.section:after {
  content: '';
  position: absolute;
  top: 22px;
  right: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5a62344;
  z-index: 2;
  animation: pulse 2.2s infinite cubic-bezier(.81,-0.01,.32,1.14);
  pointer-events: none;
  opacity: 0.85;
  filter: blur(1.5px);
}
@keyframes pulse {
  0% { opacity: 0.25; transform: scale(.9); }
  50% { opacity: .65; transform: scale(1.08); }
  100% { opacity: 0.25; transform: scale(.9); }
}

.section:last-child:after {
  display: none;
}

/* --- RESPONSIVE HEADINGS SCALE --- */
@media (max-width: 550px) {
  h1, .h1 { font-size: 1.4rem; }
  h2, .h2 { font-size: 1.12rem; }
}

/* --- RESPONSIVE SPACING --- */
@media (max-width: 550px) {
  .cookie-banner {
    padding: 14px 6px 10px 10px;
  }
  .cookie-modal {
    padding: 17px 7vw 14px 7vw;
  }
  .card, .testimonial-card {
    padding: 16px 8px 12px 13px;
  }
  .hero .content-wrapper {
    padding: 18px 2vw 14px 2vw;
  }
}

/* --- ACCESSIBILITY: FOCUS STATES --- */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta-primary:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 9px;
}

/* --- MISCELLANEOUS (for error/thank you page) --- */
.thankyou-message {
  font-size: 1.25rem;
  color: var(--success);
  text-align: center;
  margin-bottom: 24px;
}

/* --- HIDE & SHOW FOR JS --- */
.is-hidden {
  display: none !important;
}

/* --- END of CSS --- */
