/* =======================
   RESET & BASE STYLES
   ======================= */

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #223247;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #223247;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #A21212;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: #223247;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 0.6em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.7em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.subheadline {
  color: #223247;
  font-size: 1.15rem;
  margin-bottom: 1.3em;
  opacity: 0.8;
}
p {
  margin-bottom: 1em;
  font-size: 1rem;
  color: #223247;
  opacity: 0.95;
}

/* ===============
   CONTAINERS
   =============== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
}

/* =============================
   HEADER & MAIN NAVIGATION
   ============================= */
header {
  background: #fff;
  border-bottom: 1px solid #E6E8EB;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
header img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 6px 0;
  color: #223247;
  opacity: 0.88;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a.cta.primary {
  padding: 8px 18px;
  background: #223247;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-left: 12px;
  box-shadow: 0 2px 10px 0 rgba(34,50,71,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: #A21212;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(162,18,18,0.12);
}
.main-nav a:hover,
.main-nav a:focus {
  color: #A21212;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #223247;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 14px;
  margin-left: 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A21212;
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 24px rgba(34,50,71,0.09);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.5,1.6,.5,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #223247;
  align-self: flex-end;
  cursor: pointer;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  color: #223247;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E6E8EB;
  color: #A21212;
}
.mobile-nav a.cta.primary {
  background: #223247;
  color: #fff;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
}

/* ========================
   LAYOUT & SECTIONS
   ======================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,50,71,0.03);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  width: 100%;
}
.features-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px 0 rgba(34,50,71,0.06);
  flex: 1 1 270px;
  min-width: 245px;
  padding: 26px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  transition: box-shadow 0.22s, transform 0.18s;
}
.features-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.features-grid > div:hover {
  box-shadow: 0 10px 32px 0 rgba(34,50,71,0.12);
  transform: translateY(-4px) scale(1.015);
}

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

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 rgba(34,50,71,0.08);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 240px;
  padding: 22px 18px 20px 18px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(34,50,71,0.16);
  transform: translateY(-3px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FAFAFA;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 rgba(34,50,71,0.08);
  margin-bottom: 20px;
  font-size: 1rem;
  color: #223247;
  transition: box-shadow 0.16s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(162,18,18,0.09);
  transform: translateY(-1.5px) scale(1.012);
}
.testimonial-meta {
  color: #A21212;
  font-weight: 500;
  font-size: 0.98rem;
  margin-top: 7px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============
   BUTTON STYLES
   ============= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 7px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.21s;
  box-shadow: 0 3px 14px rgba(162,18,18,0.05);
  letter-spacing: 0.015em;
  margin-top: 14px;
  min-width: 140px;
}
.cta.primary {
  background: #223247;
  color: #fff;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #A21212;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(162,18,18,0.08);
}
.cta.secondary {
  background: #fff;
  color: #223247;
  border: 1.5px solid #223247;
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: #E6E8EB;
  color: #A21212;
  border-color: #A21212;
}

button, .cta {
  outline: none;
}
button:focus-visible, .cta:focus-visible {
  outline: 2px solid #A21212;
}

/* ====================
   FOOTER & LEGAL NAV
   ==================== */
footer {
  background: #fff;
  border-top: 1px solid #E6E8EB;
  padding: 0;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 0 18px 0;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #223247;
  opacity: 0.75;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #A21212;
  opacity: 1;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-info {
  font-size: 0.92rem;
  color: #A3A7AF;
  margin-top: 6px;
}
/* Allow logo to breathe on mobile */
footer img {
  height: 30px;
  width: 30px;
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 12000;
  background: #223247;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 32px 22px 28px;
  box-shadow: 0 -2px 22px rgba(34,50,71,0.09);
  font-size: 1rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  animation: cookie-slide-in 0.7s cubic-bezier(.4,.88,.45,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  flex: 1 1 320px;
  color: #fff;
  font-size: 1rem;
  opacity: 0.93;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  border-radius: 5px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
  margin-right: 0;
}
.cookie-btn.accept {
  background: #A21212;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #223247;
  color: #fff;
  box-shadow: 0 2px 8px rgba(34,50,71,0.10);
}
.cookie-btn.reject {
  background: #fff;
  color: #223247;
  border: 1.1px solid #223247;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #E6E8EB;
  color: #A21212;
  border-color: #A21212;
}
.cookie-btn.settings {
  background: none;
  color: #fff;
  border: none;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
  min-width: unset;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  color: #A21212;
  background: none;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 50, 71, 0.33);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  color: #223247;
  border-radius: 16px;
  box-shadow: 0 4px 40px 0 rgba(34,50,71,0.14);
  padding: 32px 28px 26px 28px;
  max-width: 95vw;
  width: 420px;
  animation: cookie-modal-in 0.45s cubic-bezier(.5,1.7,.5,1);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: #223247;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-category input[type="checkbox"],
.cookie-category input[type="radio"] {
  accent-color: #A21212;
  width: 18px;
  height: 18px;
  margin: 0;
}
.cookie-label {
  font-size: 1rem;
  color: #223247;
}
.cookie-description {
  font-size: 0.97rem;
  color: #858B99;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #A21212;
  cursor: pointer;
  z-index: 10;
}

/* =====================
   RESPONSIVE (MOBILE)
   ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .features-grid > div,
  .card {
    min-width: 190px;
  }
}
@media (max-width: 950px) {
  .container {
    max-width: 100%;
  }
  section,
  .section {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 2px;
    font-size: 2rem;
  }
  .content-wrapper,
  .features-grid,
  .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .features-grid > div,
  .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section,
  section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .footer-nav,
  .social-links {
    gap: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 10px 16px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner-actions {
    gap: 10px;
  }
  .cookie-modal {
    padding: 18px 9px 14px 18px;
    min-width: 90vw;
    width: 97vw;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 4px;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .cta, .cta.primary, .cta.secondary {
    min-width: unset;
    font-size: 1rem;
    padding: 10px 10px;
  }
  .testimonial-card,
  .card {
    padding: 15px 8px 13px 8px;
  }
}

/* =====================
   UTILITIES
   ===================== */
.hide-mobile {
  display: block;
}
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
.hide-desktop {
  display: none !important;
}
@media (max-width: 768px) {
  .hide-desktop {
    display: block !important;
  }
}

/* ================
   MICROINTERACTIONS
   ================ */
.card, .features-grid > div, .testimonial-card {
  will-change: transform, box-shadow;
  transition: box-shadow 0.17s, transform 0.14s;
}
.cta, .cookie-btn {
  transition: background 0.19s, color 0.18s, box-shadow 0.13s;
}

/* ===============
   FOCUS VISIBLE  
   =============== */
:focus-visible {
  outline: 2px solid #A21212;
  outline-offset: 1px;
}

/* =====================
   ACCESSIBILITY FIXES
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================
   CUSTOM SCROLLBAR
   ===================== */
::-webkit-scrollbar {
  width: 8px;
  background: #F4F6FA;
}
::-webkit-scrollbar-thumb {
  background: #E6E8EB;
  border-radius: 4px;
}

