/* CSS RESET & BASE STYLES */
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 { font-size: 100%; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; }
*, *:before, *:after { box-sizing: inherit; }

/* BRAND FONTS - using Google Fonts (link in HTML)*/
body {
  background: #161d24;
  color: #ececec;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #FAFAFA;
  margin-bottom: 16px;
  line-height: 1.17;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; letter-spacing: 0.01em; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #ececec;
}
strong {
  color: #FAFAFA;
  font-weight: bold;
}
blockquote {
  font-style: italic;
  font-size: 1.15rem;
  padding-left: 16px;
  border-left: 4px solid #27A9E1;
  color: #183059;
  background: #FAFAFA;
  margin-bottom: 8px;
}

/* ---------- COLORS & METALLIC ACCENTS ---------- */
:root {
  --primary: #183059;
  --secondary: #27A9E1;
  --accent: #FAFAFA;
  --bg: #161d24;
  --surface-dark: #212c36;
  --surface: #232f3b;
  --surface-light: #2e4158;
  --border-metal: #7A869A;
  --highlight-metal: #b0bdce;
  --shadow-rim: rgba(24,48,89,0.45);
  --btn-gradient: linear-gradient(90deg, #27A9E1 0%, #183059 100%);
}

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

/* MANDATORY SPACING CLASSES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface-dark);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow-rim), 0 1.5px 0 var(--highlight-metal) inset;
  border: 1px solid var(--border-metal);
  padding: 24px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 6px 32px var(--shadow-rim), 0 2.5px 0 var(--highlight-metal) inset;
  transform: translateY(-4px) scale(1.02);
}
.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;
  background: #FAFAFA;
  color: #183059;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(24,48,89,.06), 0 1.5px 0 var(--highlight-metal) inset;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #b0bdce;
  flex-direction: column;
}
.testimonial-card blockquote {
  color: #183059;
  background: transparent;
  border-left: 4px solid #27A9E1;
  padding-left: 16px;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #273654;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPECIAL GRIDS IN DESIGN */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--surface);
  border-radius: 15px;
  border: 1px solid var(--border-metal);
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 2px 8px var(--shadow-rim), 0 1px 0 var(--highlight-metal) inset;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 30px var(--shadow-rim), 0 2px 0 var(--highlight-metal) inset;
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  filter: grayscale(30%) drop-shadow(0 1px 2px #18305933);
}
.feature-grid h3 { color: #FAFAFA; font-size: 1.19rem; }
.feature-grid p { color: #b0bdce; }
.feature-grid span {
  color: #27A9E1;
  font-weight: 600;
  font-size: 1.05rem;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.text-section ul {
  padding-left: 20px;
  list-style: disc;
  color: #b0bdce;
}
.text-section ul li {
  margin-bottom: 8px;
}


/* ---------- HEADER/NavBar (Desktop & Mobile) ------------ */
header {
  background: var(--primary);
  border-bottom: 3px solid var(--border-metal);
  position: relative;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  height: 72px;
}
.main-nav > a img {
  height: 38px;
  margin-right: 14px;
  vertical-align: middle;
}
.main-nav > a {
  color: #FAFAFA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 2px;
  transition: color .17s;
}
.main-nav > a:not(.cta-primary):hover,
.main-nav > a:not(.cta-primary):focus {
  color: white;
}
/* CTA Button Navigation */
.cta-primary {
  background: var(--btn-gradient);
  color: #FAFAFA !important;
  border-radius: 32px;
  padding: 10px 30px;
  margin-left: 18px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 5px var(--shadow-rim);
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.22s, box-shadow .19s, color .19s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #183059 0%, #27A9E1 100%);
  color: #27A9E1 !important;
  box-shadow: 0 6px 18px var(--shadow-rim);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #FAFAFA;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 1010;
  transition: color .15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { color: var(--secondary); }

@media (max-width: 1020px) {
  .main-nav { gap: 10px; font-size: 0.93rem; }
}
@media (max-width: 900px) {
  .main-nav { gap: 7px; font-size: 0.90rem; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE NAVIGATION SIDEBAR & OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  z-index: 2020;
  background: rgba(24,48,89,0.92);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.52,.23,.34,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #FAFAFA;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  margin: 24px 0 0 24px;
  align-self: flex-start;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 0 0 36px;
  width: 100%;
}
.mobile-nav a {
  color: #ececec;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid rgba(39, 169, 225, 0.07);
  border-radius: 0;
  transition: color .19s, background .14s;
  background: transparent;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(39,169,225,0.095);
}


/* -------------- MAIN SECTIONS --------------- */
main {
  overflow-x: hidden;
  min-height: 62vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  border-radius: 7px;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}


/* Call-to-action secondary */
.cta-secondary {
  background: var(--accent);
  color: var(--primary);
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 1px 6px rgba(39, 169, 225, .18);
  margin-top: 16px;
  transition: background .21s, color .18s, box-shadow .13s;
  cursor: pointer;
  outline: none;
  margin-bottom: 10px;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: #FAFAFA;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow-rim);
}


/* -------------- FOOTER -------------- */
footer {
  width: 100%;
  padding: 38px 20px 22px 20px;
  background: var(--surface-light);
  color: #b0bdce;
  border-top: 3px solid var(--border-metal);
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 0.98rem;
}
footer > div {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
footer img {
  width: 42px; height: 42px; margin-bottom: 0;
  filter: grayscale(30%) drop-shadow(0 1px 2px #18305933);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #b0bdce;
  transition: color .18s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
}
footer nav a:hover, footer nav a:focus {
  color: white;
}
footer .text-section {
  color: #b0bdce;
  font-size: 0.97rem;
  text-align: center;
}

/* ------------- FORMS & LINKS -------------- */
a {
  color: var(--secondary);
  transition: color .20s;
  text-decoration: underline dotted 1.5px #27A9E199;
}
a:hover, a:focus {
  color: #FAFAFA;
  background: var(--secondary);
  border-radius: 6px;
  text-decoration: none;
  transition: background .18s, color .20s;
}
.text-section a {
  text-decoration: underline dotted 1.3px #27A9E1;
  color: var(--secondary);
}
.text-section a:hover { color: var(--primary); background: #27A9E1; }

input, textarea, select {
  background: #232f3b;
  border: 1.5px solid var(--border-metal);
  border-radius: 6px;
  color: #ececec;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  box-shadow: 0 2px 7px rgba(24,48,89,0.04);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: #FAFAFA;
  cursor: pointer;
  transition: background .2s, color .14s, box-shadow .18s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 17px var(--shadow-rim);
}

ul {
  margin-bottom: 6px;
}
li {
  line-height: 1.55;
  margin-bottom: 4px;
}

/* --------------- RESPONSIVE & FLEXBOX --------------- */
@media (max-width: 1024px) {
  .container { max-width: 960px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; padding: 0 10px; }
  .content-wrapper { gap: 20px; }
  .feature-grid > div { min-width: 210px; max-width: 270px; padding: 20px 12px 15px 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.92rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.07rem; }
  main { min-height: 56vh; }
  footer { padding: 26px 10px 14px 10px; font-size: 0.96rem; }
  .section, section { margin-bottom: 28px; padding: 16px 2px; }
  .content-wrapper { gap: 14px; padding: 0 2px; }
  .feature-grid { gap: 16px; }
  .feature-grid > div { min-width: 100%; max-width: 100%; }
  .content-grid { gap: 12px; flex-direction: column; }
  .testimonial-card { padding: 14px; margin-bottom: 14px; }
  .card { padding: 14px 8px; }
}
@media (max-width: 600px) {
  .container { padding: 0 2px; }
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: .99rem; }
  .main-nav { height: 53px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Ensure no element overlaps and enough vertical spacing */
section, .card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}

/* ------------------ COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  padding: 20px 18px 16px 28px;
  background: #1b2331;
  color: #FAFAFA;
  border-top: 3px solid #27A9E1;
  box-shadow: 0 -10px 30px rgba(24,48,89,0.2);
  z-index: 5200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-msg {
  flex: 1 1 60%;
  color: #FAFAFA;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin: 0 2px;
  border-radius: 28px;
  font-size: 1.01rem;
  padding: 8px 22px;
  border: none;
  box-shadow: 0 1px 4px rgba(39, 169, 225, 0.14);
  transition: background 0.21s, color 0.15s, box-shadow .14s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #FAFAFA;
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .reject {
  background: #232f3b;
  color: #ED6060;
  border: 1.5px solid #ED6060;
  font-weight: 700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ED6060;
  color: #FAFAFA;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--highlight-metal);
  color: var(--primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px 10px 8px;
    font-size: 0.99rem;
    align-items: flex-start;
  }
}

/* ---------- COOKIE PREFERENCE MODAL ---------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0;left: 0;right: 0;bottom: 0;
  background: rgba(24,48,89,0.64);
  z-index: 5400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s;
}
.cookie-modal {
  background: #1b2331;
  color: #FAFAFA;
  border-radius: 18px;
  box-shadow: 0 10px 38px rgba(24,48,89,.23);
  padding: 36px 24px 28px 28px;
  min-width: 310px;
  max-width: 96vw;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2, .cookie-modal h3 {
  color: #27A9E1;
  margin-bottom: 8px;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: #232f3b;
  border-radius: 8px;
  padding: 9px 14px 8px 14px;
  margin-bottom: 10px;
}
.cookie-modal .category label {
  flex: 1 1 60%;
  font-weight: 500;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: #27A9E1;
  width: 20px;
  height: 20px;
}
.cookie-modal .essential {
  color: #b0bdce;
  font-style: italic;
}
.cookie-modal .modal-actions {
  margin-top: 12px;
  display: flex; flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 22px;
  border-radius: 22px;
  font-size: 1.02rem;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 0;
  cursor: pointer;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  color: #27A9E1;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  outline: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FAFAFA;
  background: var(--secondary);
  border-radius: 8px;
  padding: 2px 8px;
}

/* Modal Animations */
.cookie-modal-overlay,
.cookie-modal {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-overlay.hide,
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 500px) {
  .cookie-modal { padding: 18px 6px 18px 16px; min-width: 90vw; }
}

/* -------------- ANIMATIONS & MICRO-INTERACTIONS -------------- */
button, .button, .cta-primary, .cta-secondary {
  transition: background 0.19s, color 0.16s, box-shadow .14s, border .12s;
}
.card, .feature-grid > div {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 7px 32px var(--shadow-rim), 0 2px 0 var(--highlight-metal) inset;
}
.cta-primary,.cta-secondary {
  transition: box-shadow 0.23s, background 0.18s, color 0.16s;
}

/* ------------ INDUSTRIAL MODERN DECORATIVE EFFECTS ------------- */
.card, .feature-grid > div, .testimonial-card {
  border: 1.5px solid var(--border-metal);
  box-shadow:
    0 1.5px 0 var(--highlight-metal) inset,
    0 6px 32px 0 rgba(24,48,89,.11);
}

.card:before, .feature-grid>div:before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  pointer-events: none;
  border-top: 0.5px solid var(--highlight-metal);
  border-left: 0.5px solid var(--highlight-metal);
  opacity: .17;
  z-index: 0;
}

/* ---------------------------------------------------------- */

::selection { background: #27A9E1; color: #fff; }
::-webkit-scrollbar {
  width: 8px;
  background: #232f3b;
}
::-webkit-scrollbar-thumb {
  background: #2e4158;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #183059;
}

/* ------------- ACCESSIBILITY CONTRAST ------------- */
.testimonial-card, 
.testimonial-card * { color: #183059 !important; background: #FAFAFA !important; }
.testimonial-card blockquote { color: #183059; background: transparent; }

/* Visually hidden for a11y */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
