/* RESET AND 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #212427;
  color: #ECECEC;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* VARIABLES WITH FALLBACKS */
:root {
  --primary: #26405D;
  --secondary: #B0B5B8;
  --accent: #FFFDF7;
  --metallic: #6D7B8A;
  --card-bg: #262A30;
  --text-light: #ECECEC;
  --text-dark: #242728;
  --brand-blue: #26405D;
  --border-dark: #393C3F;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #232427;
  color: var(--text-light);
  min-height: 100vh;
}

/* CONTAINER AND WRAPPERS */
.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}
h1 {
  font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 1px 2px 2px #10111520;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  color:var(--primary);
  margin-bottom: 16px;
  border-left: 4px solid var(--metallic);
  padding-left: 15px;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.22;
}
h4, h5, h6 {
  font-size: 1.07rem;
  margin-bottom: 6px;
  color: var(--secondary);
}

p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 18px;
  max-width: 37em;
}
strong {
  color: var(--accent);
  font-weight: 700;
}
em {
  color: var(--secondary);
  font-style: italic;
}
dt {
  font-weight: 700;
}
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: #181A1B;
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 6px 16px #0002;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 68px;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--metallic);
  font-weight: 600;
  letter-spacing: 1.1px;
  padding: 6px 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.18s;
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
  margin: 0 auto 0.25em auto;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 70%;
}
.main-nav .btn-primary {
  margin-left: 8px;
  background: var(--primary);
  color: var(--accent);
  padding: 10px 30px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 18px #18181825, 0 1.5px 0 #233857;
  border: none;
  transition: background 0.17s, color 0.12s, transform 0.15s;
  position: relative;
  outline: none;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #345477;
  color: #FFF;
  transform: translateY(-1.5px) scale(1.03);
}

/* BURGER MOBILE NAV */
.mobile-menu-toggle {
  background: none;
  color: var(--secondary);
  font-size: 2rem;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  margin-left: 16px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #232529ee;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.68,-0.2,.37,1.28), opacity 0.22s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--secondary);
  background: none;
  border: none;
  margin: 20px 0 20px 20px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 2060;
  transition: color 0.18s, transform 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 15px;
  padding: 0 36px;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  padding: 9px 0;
  border-radius: 4px;
  transition: background 0.14s, color 0.12s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #FFF;
}
@media (max-width: 1100px) {
  .main-nav .btn-primary {
    padding: 8px 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
  }
  .main-nav .btn-primary {
    padding: 7px 13px;
  }
}
@media (max-width: 870px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    padding: 18px;
    gap: 20px;
  }
  .mobile-menu-close {
    margin: 20px 0 10px 10px;
  }
}

/* MAIN CTA BUTTONS */
.btn-primary, a.btn-primary, button.btn-primary {
  background: var(--primary);
  color: var(--accent) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 12px 34px;
  transition: background 0.18s, box-shadow 0.12s, color 0.14s, transform 0.11s;
  border: none;
  display: inline-block;
  font-size: 1.06rem;
  line-height: 1.22;
  cursor: pointer;
  box-shadow: 0 2.5px 12px #14284d29;
  letter-spacing: 1.2px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #3F5870;
  color: #FFFFFC;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 18px #13254849;
}

/* LAYOUT FLEX GROUPS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: var(--card-bg);
  border: 1px solid var(--metallic);
  border-radius: 14px;
  padding: 22px 24px 22px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  box-shadow: 0 3px 20px #10151B18, 0 1.5px 0 #3641541e;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.12s, transform 0.14s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 7px 26px #21304128, 0 2.5px 0 #2C375121;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.025);
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  filter: grayscale(45%) brightness(1.17);
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 2.5px 16px #232E4715;
  border: 1px solid var(--metallic);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.14s, border 0.14s;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 32px #31476834;
  border-color: var(--primary);
}

.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: 15px;
    align-items: stretch;
  }
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  color: var(--text-dark);
  border-left: 6px solid var(--primary);
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2.5px 14px #1d263418;
  position: relative;
  transition: box-shadow 0.15s, border 0.13s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card .testimonial-meta {
  font-size: 0.97rem;
  color: var(--metallic);
  font-style: normal;
  font-weight: bold;
  margin-left: 14px;
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px #1b262d22;
  border-left: 6px solid #3776b8;
}

@media (max-width: 900px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .footer-nav,
  .content-wrapper,
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.text-section ul, .text-section ol {
  margin-left: 22px;
  margin-bottom: 10px;
  color: var(--text-light);
}
.text-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.text-section a {
  text-decoration: underline;
  color: var(--primary);
  transition: color 0.13s;
}
.text-section a:hover {
  color: #436da9;
}

/* PAGE LENIENCY */
ul, ol {
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
}

/* FOOTER */
footer {
  background: #1c1e21;
  padding: 28px 0 10px 0;
  border-top: 2px solid var(--border-dark);
  color: var(--secondary);
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--metallic);
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 0;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.13s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: #23262d;
}
.footer-contact {
  color: var(--metallic);
  font-size: 0.97rem;
}
.footer-contact p {
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  .container { padding: 0 6px; }
  .features-grid > div { padding: 14px 10px; }
  footer { padding: 16px 0; }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2C3240;
  color: #F5F5F2;
  border-top: 2.5px solid var(--primary);
  z-index: 3500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 14px 16px;
  box-shadow: 0 -2px 25px #0F111422;
  font-size: 1rem;
  animation: fadein 0.55s;
}
.cookie-banner.hide {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
@keyframes fadein {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity:1; transform: none; }
}
.cookie-banner-btn {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 16px;
  padding: 7px 22px;
  margin-left: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.11s, box-shadow 0.14s;
  font-size: 1.02rem;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: #40698d;
  color: #FFF;
}
.cookie-banner-btn.reject {
  background: #565E67;
  color: #eee;
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  background: #232529;
  color: #fff;
}
.cookie-banner-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  margin-left: 0;
}
.cookie-banner-btn.settings:hover, .cookie-banner-btn.settings:focus {
  background: #edece5;
  color: #232529;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: #212427;
  color: var(--accent);
  border-radius: 16px;
  z-index: 4100;
  min-width: 305px;
  max-width: 95vw;
  width: 450px;
  box-shadow: 0 9px 39px #091e392c;
  border: 2px solid var(--metallic);
  padding: 34px 32px 22px 32px;
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: modalfadein 0.38s;
}
.cookie-modal.show {
  display: flex;
}
@keyframes modalfadein {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.03rem;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--secondary);
}
.cookie-modal input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.cookie-modal-categories {
  margin: 8px 0 16px 0;
}
.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-btn {
  background: var(--primary);
  color: var(--accent);
  border-radius: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 22px;
  border: none;
  transition: background 0.12s, color 0.14s;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal-btn.close {
  background: #232529;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-modal-btn.close:hover, .cookie-modal-btn.close:focus {
  background: #cfcfcf;
  color: var(--primary);
}
.cookie-modal-btn.save:hover,.cookie-modal-btn.save:focus {
  background: #4574A8;
  color: #FFF;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #1c1d2194;
  z-index: 4000;
  display: none;
}
.cookie-modal-overlay.show {
  display: block;
}
@media (max-width:520px) {
  .cookie-modal { width: 92vw; min-width: 0; padding: 24px 10px 10px 10px; }
}

/* ANIMATION UTILITIES */
.fadein {
  animation: fadein 0.55s;
}
.slidein {
  animation: slidein 0.32s;
}
@keyframes slidein {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: none; }
}

/* UTILITY CLASSES */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.text-center { text-align: center; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* FOCUS OUTLINE ENHANCEMENTS */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1.5px;
}

/* HOVERS AND MICROINTERACTIONS */
button, a, .btn-primary, .cookie-banner-btn, .cookie-modal-btn {
  transition: background 0.16s, color 0.12s, box-shadow 0.13s, transform 0.12s;
}

/* REMOVE ABSOLUTE POSITION ON CARDS/TEXT */

/* ----------- END ------------ */
