/* ----------------------------------
   CSS RESET & BASE 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F6F1ED;
  color: #173960;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img, picture {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ----------------------------------
   BRAND FONTS
----------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #173960;
  font-weight: 900;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, blockquote {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #23395d;
  margin-bottom: 8px;
}
strong { font-weight: 700; }
blockquote {
  color: #173960;
  font-style: italic;
  border-left: 4px solid #B9231E;
  padding-left: 16px;
  margin: 0 0 12px 0;
}

/* ----------------------------------
   CONTAINER & GLOBAL SPACING
----------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 24px 0 rgba(23,57,96,0.08), 0 4px 8px 0 rgba(185,35,30,0.03);
}

/* ----------------------------------
   HEADER + NAVIGATION
----------------------------------- */
header {
  background: linear-gradient(90deg, #173960 0%, #B9231E 100%);
  color: #fff;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a:not(.cta-primary):hover {
  color: #F6F1ED;
  opacity: 0.8;
  text-shadow: 0 1px 2px #23395d22;
}
.cta-primary {
  background: linear-gradient(90deg, #B9231E 0%, #173960 100%);
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 10px 26px;
  border-radius: 50px;
  box-shadow: 0 2px 8px 0 rgba(185,35,30,0.10);
  margin-left: 8px;
  letter-spacing: 0.03em;
  transition: background 0.25s, box-shadow 0.25s, transform 0.12s;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #173960 0%, #B9231E 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(23,57,96,0.10);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #fff;
  background: transparent;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  transition: color 0.2s;
  z-index: 1251;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #B9231E;
}

/* ----------------------------------
   MOBILE MENU
----------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #173960 70%, #B9231E 100%);
  color: #fff;
  z-index: 1250;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.7,0.1,0.4,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  margin: 18px 0 0 24px;
  align-self: flex-start;
  cursor: pointer;
  border: none;
  z-index: 1251;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #F6F1ED;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  width: 100%;
  gap: 16px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  padding: 14px 0 14px 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.08);
  color: #F6F1ED;
  outline: none;
  text-decoration: underline;
}

/* ----------------------------------
   HERO SECTIONS
----------------------------------- */
.hero {
  background: linear-gradient(105deg, #173960 60%, #B9231E 105%);
  color: #fff;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 56px 0 rgba(23,57,96,0.06);
  margin-bottom: 56px;
  padding: 0;
}
.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  padding: 0;
}
.hero h1 {
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.16;
  margin-bottom: 12px;
}
.hero p {
  color: #f8eaea;
  font-size: 1.18rem;
  margin-bottom: 22px;
}
.hero .cta-primary {
  margin-top: 12px;
  background: linear-gradient(90deg, #B9231E 0%, #fff 100%);
  color: #173960 !important;
  box-shadow: 0 2px 8px 0 #fff2;
}

/* ----------------------------------
   GENERAL SECTIONS & LISTS
----------------------------------- */
section {
  margin-bottom: 48px;
  width: 100%;
}
section ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 10px 0;
}
section ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0 0 0;
  font-size: 1.06rem;
}
section ul li img {
  margin-right: 10px;
  width: 32px;
  height: 32px;
  align-self: flex-start;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 8px 0;
}
.text-section a.cta-primary {
  align-self: flex-start;
  margin-top: 16px;
}

/* ----------------------------------
   CARDS & CARD-CONTAINER STYLES
----------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 22px 18px 22px;
  box-shadow: 0 2px 20px 0 rgba(23,57,96,0.08);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  min-width: 220px;
  flex: 1 1 320px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(23,57,96,0.14);
  transform: translateY(-2px) scale(1.025);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ----------------------------------
   TESTIMONIAL CARDS
----------------------------------- */
.testimonial-card {
  background: #F6F1ED;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(23,57,96,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  color: #173960;
  font-size: 1.08rem;
  border-left: 6px solid #B9231E;
  min-width: 260px;
  max-width: 790px;
}
.testimonial-card blockquote {
  color: #173960;
  font-size: 1.04rem;
  font-style: italic;
  margin: 0 18px 0 0;
  border: none;
  padding-left: 0;
}
.testimonial-card p {
  color: #B9231E;
  font-size: 1.01rem;
  font-style: normal;
  margin: 0;
}

/* ----------------------------------
   FEATURE & FLEXIBLE CONTENT GRIDS
----------------------------------- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/* ----------------------------------
   GENERAL BUTTONS
----------------------------------- */
button, .btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 40px;
  border: none;
  transition: background 0.22s, color 0.17s, box-shadow 0.22s, transform 0.13s;
  background: #173960;
  color: #fff;
  margin-right: 8px;
}
.btn:hover, button:focus {
  background: #B9231E;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 16px 0 rgba(185,35,30,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* ----------------------------------
   FOOTER STYLES
----------------------------------- */
footer {
  background: linear-gradient(95deg, #173960 65%, #B9231E 105%);
  color: #fff;
  box-shadow: 0 -1px 32px 0 rgba(23,57,96,0.08);
  margin-top: 56px;
  padding-top: 30px;
  padding-bottom: 18px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer a {
  color: #fff;
  opacity: 0.96;
  font-size: 1rem;
  transition: opacity 0.2s;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a:hover, .footer a:focus {
  opacity: 1;
  text-decoration: underline;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
}
.brand-info ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fce5e3;
  font-size: 0.98rem;
}
footer img {
  height: 34px;
  margin-right: 8px;
}

/* ----------------------------------
   COOKIE CONSENT BANNER
----------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #173960;
  box-shadow: 0 -2px 21px 0 rgba(23,57,96,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 16px;
  z-index: 2000;
  transition: transform 0.33s;
  font-size: 1.06rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-btn, .cookie-banner button {
  font-size: 0.98rem;
  padding: 8px 18px;
  border-radius: 34px;
  border: none;
  font-family: 'Roboto', sans-serif;
  margin-left: 6px;
  background: #173960;
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-banner .cookie-btn.accept {
  background: #B9231E;
}
.cookie-banner .cookie-btn.reject {
  background: #23395d;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #173960;
  border: 1.6px solid #173960;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  opacity: 0.95;
  box-shadow: 0 2px 12px 0 rgba(185,35,30,0.14);
  outline: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    padding: 16px 8px 15px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,57,96,0.18);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(23,57,96,0.12);
  max-width: 430px;
  width: 95vw;
  padding: 32px 26px 21px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalFadeIn 0.36s ease;
}
@keyframes cookieModalFadeIn {
  0% { transform: scale(0.85) translateY(75px); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #173960;
}
.cookie-toggle input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: #B9231E;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  color: #B9231E;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 8px 19px;
  border-radius: 20px;
  font-size: 0.99rem;
}

/* ----------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST)
----------------------------------- */
@media (max-width: 1024px) {
  .content-wrapper, .card-container, .content-grid {
    gap: 16px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .card-container, .content-grid {
    gap: 14px;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 9px;
    border-radius: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 9px 15px 13px;
  }
  .text-image-section { gap: 15px; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    gap: 4px;
    min-height: 56px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  main .container {
    padding-right: 2px;
    padding-left: 2px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .hero .container {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .content-wrapper, .card-container, .content-grid {
    gap: 7px;
  }
}

/* ----------------------------------
   VISUAL MICROTWEAKS & UTILITIES
----------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #dbe8f3ff;
}
::-webkit-scrollbar-thumb {
  background: #17396077;
  border-radius: 7px;
}

hr {
  border: none;
  border-top: 1.5px solid #f1dbda;
  margin: 30px 0 24px 0;
}

/* ----------------------------------
   MISC COMPONENTS
----------------------------------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #17396022;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(185,35,30,0.05);
  margin-bottom: 14px;
  width: 100%;
  color: #173960;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #B9231E;
}

/* ----------------------------------
   FLEXBOX LAYOUT PATTERNS & ISOLATED CLASSES
----------------------------------- */
.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;
}

@media (max-width: 768px) {
  .section {
    padding: 18px 4px;
    margin-bottom: 34px;
    border-radius: 10px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 6px 11px 9px;
  }
}

/*
  -- END GRADIENT MODERN STYLES --
*/
