/* RESET & NORMALIZE */
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,
main, 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;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.45;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f4f7fa;
  color: #242b33;
  min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { background: none; border: none; cursor: pointer; }

/* BRAND VARIABLES (FALLBACKS) */
:root {
  --primary: #262626;
  --secondary: #990000;
  --accent: #f4f4f4;
  --brand-blue: #2b4f7c;
  --brand-blue1: #24406a;
  --brand-blue2: #205493;
  --brand-gray: #e3e8ee;
  --brand-dark-gray: #222b35;
  --brand-light-gray: #f8fafd;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow: 0 2px 16px 0 rgba(36, 44, 59, 0.09);
  --radius: 10px;
}

/* TYPOGRAPHY */
h1, .h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.15; color: var(--brand-blue1); margin-bottom: 18px; letter-spacing: -1px; }
h2, .h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.2; color: var(--brand-blue2); margin-bottom: 18px; letter-spacing: -0.5px; }
h3, .h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--brand-dark-gray); margin-bottom: 12px; }
h4, .h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--brand-dark-gray); margin-bottom: 8px; }
p, li, span, strong, b {  font-family: var(--font-body); font-size: 1rem; color: var(--primary); }
p { margin-bottom: 18px; }
strong, b { font-weight: 600; }
.text-section {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.55;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--primary);
}
ul li, ol li { margin-bottom: 10px; line-height: 1.5; display: flex; align-items: center; gap: 10px; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

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

/* HEADER/NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(36,44,59,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 98;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-blue1);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header .btn-primary {
  margin-left: 28px;
  min-width: 120px;
  text-align: center;
}
header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--brand-blue1);
  border: none;
  cursor: pointer;
  margin-left: 20px;
  padding: 4px 8px;
  transition: background .2s;
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: var(--brand-gray);
  border-radius: 7px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 34px rgba(44,54,69,0.17);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.7,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 24px 22px 32px 22px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.25rem;
  color: var(--brand-blue1);
  background: none;
  align-self: flex-end;
  border: none;
  cursor: pointer;
  margin-bottom: 18px;
  padding: 4px 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--brand-blue2);
  font-weight: 500;
  padding: 13px 0 11px 2px;
  border-radius: 7px;
  transition: background .18s, color .19s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: var(--brand-gray);
}

/* HIDE DESKTOP NAV ON MOBILE, HIDE BURGER ON DESKTOP */
@media (max-width: 1024px) {
  header nav { display: none; }
  header .mobile-menu-toggle { display: block; }
  header .btn-primary { display: none; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* MAIN LAYOUT SECTIONS */
main {
  min-height: 70vh;
}
section {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 768px) {
  section { padding: 26px 6vw; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 22px 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 4px 18px 0 rgba(36, 44, 59, 0.13);
}
.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: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 18px; }
}

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

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 7px rgba(44,54,69, 0.06);
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  background-color: var(--brand-blue1);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(153,0,0,0.13);
}
.btn-secondary {
  background: #fff;
  color: var(--brand-blue2);
  border: 2px solid var(--brand-blue1);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-blue1);
  color: #fff;
}

/* LIST ICONS */
ul li img, ol li img { width: 26px; height: 26px; margin-right: 8px; vertical-align: middle; }

/* TESTIMONIAL CARD */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--brand-gray);
  margin-bottom: 28px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(36, 44, 59, 0.07);
  min-width: 225px;
  max-width: 680px;
  font-size: 1.08rem;
  color: #222;
}
.testimonial-card p {
  font-weight: 500;
  color: #142130;
  margin-bottom: 6px;
  font-size: 1.06rem;
}
.testimonial-card span, .testimonial-card strong {
  color: var(--brand-blue2);
  font-size: 0.98rem;
  font-weight: 700;
}
.testimonial-card img { height: 20px; width: 20px; margin-right: 1px; }
.testimonial-card div { display: flex; flex-direction: row; gap: 1px; }

@media (max-width: 600px) {
  .testimonial-card { padding: 16px 10px; font-size: 0.99rem; }
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 20px 0;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -3px 15px rgba(36,44,59,0.05);
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer img {
  height: 38px;
  margin-right: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #ccd6e3;
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .22s;
  padding-bottom: 3px;
}
footer nav a:hover, footer nav a:focus { color: #fff; border-color: var(--secondary); }
footer .text-section {
  min-width: 200px;
  max-width: 320px;
  font-size: 0.98rem;
  color: #f4f7fa;
  line-height: 1.55;
}
footer a { color: #e3e8ee; word-break: break-all; }
footer a:hover, footer a:focus { color: var(--secondary); }

@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
  footer nav { gap: 16px; margin-top: 8px; }
}

/* SECTION SPACING & CARDS */
.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;
}

/* FORMS - (None in base but for possible extension) */
input, textarea, select {
  border: 1px solid #cdd3df;
  border-radius: 5px;
  padding: 10px 14px;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-blue2);
  outline: none;
}
label { font-size: 1rem; margin-bottom: 4px; color: var(--primary); }

/* TABLES (if used) */
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td { padding: 11px 14px; border: 1px solid #e5e9ef; text-align: left; font-size: 1rem; }
th { background: var(--brand-gray); font-family: var(--font-display); font-weight: 600; color: var(--brand-blue1); }

/* TRANSITIONS & EFFECTS */
section, .card, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow .2s, background .18s, border-color .13s, color .15s;
}

/* MICRO-INTERACTIONS */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-blue1);
  outline-offset: 2px;
}

/* Scrollbar style */
body::-webkit-scrollbar { width: 10px; background: #e9edf1; }
body::-webkit-scrollbar-thumb { background: #c4ccda; border-radius: 5px; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #f8fafd;
  color: var(--primary);
  box-shadow: 0 -4px 16px rgba(36,44,59,0.10);
  padding: 22px 18px 20px 18px;
  z-index: 3002;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  transition: transform 0.28s cubic-bezier(.7,0,.4,1);
  border-radius: 11px 11px 0 0;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner-message {
  font-size: 0.99rem;
  color: var(--primary);
  max-width: 420px;
  line-height: 1.6;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 7px;
  border: none;
  margin-right: 5px;
  margin-bottom: 5px;
  transition: background .18s, color .1s;
  min-width: 120px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-accept {
  background: var(--brand-blue2);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus { background: var(--secondary); color: #fff; }
.cookie-reject {
  background: #e3e8ee;
  color: var(--brand-blue2);
}
.cookie-reject:hover, .cookie-reject:focus { background: #c5ccdb; color: var(--brand-blue1); }
.cookie-settings {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--brand-gray);
  color: var(--brand-blue1);
  border-color: var(--secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    padding: 19px 6vw 18px 6vw;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,44,71,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(44,54,69,0.25);
  padding: 36px 28px 32px 28px;
  max-width: 450px;
  width: 92vw;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalOpen .3s cubic-bezier(.67,.05,.2,1);
  position: relative;
}
@keyframes modalOpen { from { transform: scale(0.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  font-size: 1.75rem;
  color: var(--brand-blue1);
  border: none;
  cursor: pointer;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
  font-size: 1rem;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  background: #dee6f3;
  border-radius: 13px;
  position: relative;
  margin-right: 4px;
  flex-shrink: 0;
  border: none;
  transition: background .15s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 2px 8px rgba(36,44,59,0.13);
}
.cookie-toggle[aria-checked="true"]:before {
  transform: translateX(20px);
}
.cookie-modal-category .cookie-toggle[disabled],
.cookie-modal-category .cookie-toggle[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* ACCESSIBILITY HELPERS  */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* RESPONSIVE UTILITIES */
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.58rem; }
  h2, .h2 { font-size: 1.28rem; }
  .container { padding: 0 8px; }
  main, footer { font-size: 0.97rem; }
}

@media (max-width: 430px) {
  section { padding: 18px 2vw; }
  .card { padding: 18px 5px 16px 5px; }
  .testimonial-card { padding: 10px 5px; }
  .cookie-modal { padding: 17px 6vw 15px 6vw; }
}

/* Z-INDEX LAYERING */
header { z-index: 98; position: sticky; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 3002; }
.cookie-modal-overlay { z-index: 4000; }

/* MISC VISUALS */
hr { border: none; height: 1px; background: #e5eaf2; margin: 22px 0; }

/* Prevent layout overlapping & ensure white space */
section, .card, .testimonial-card, .text-section {
  margin-bottom: 20px;
}

/* ENSURE ALL IMAGES, ICONS SCALE RESPONSIVELY */
img, svg {
  max-width: 100%;
}
