/* ==== CSS 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, menu, 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;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #f7f7f7;
  color: #263859;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: background 0.3s;
  -webkit-font-smoothing: antialiased;
}
img, video {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
a {
  text-decoration: none;
  color: #20947e;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17695b;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

/* ===== BRANDING COLORS & FONTS ===== */
:root {
  --primary: #263859;
  --secondary: #f7f7f7;
  --accent: #20947e;
  --accentDark: #17695b;
  --white: #ffffff;
  --black: #131b2c;
  --grayLight: #f0f1f7;
  --grayMedium: #dbe3ef;
  --neon: #17ffd3;
  --boxShadow: 0 2px 16px rgba(32, 148, 126, 0.18), 0 1.5px 1.5px rgba(38, 56, 89, 0.08);
  --radius: 16px;
  --transition: 0.25s cubic-bezier(0.5,0.2,0.6,1.0);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;500;600&display=swap');

h1, h2, h3, .cta-button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-shadow: 0 0 8px var(--neon);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--primary);
  text-shadow: 0 0 6px #17ffd355;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary);
}
p, li, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}
blockquote {
  font-size: 1.125rem;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  margin: 0 0 8px 0;
  padding: 0 0 0 14px;
  font-style: italic;
}

strong {
  font-weight: 600;
}


/* ===== CONTAINER & LAYOUT SPACING ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== MAIN NAVBAR & BRAND HEAD ===== */
header {
  background: var(--primary);
  box-shadow: 0 2px 20px #0002;
  position: relative;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 68px;
  padding: 0 24px;
}
nav.main-nav a img {
  height: 38px;
  width: auto;
  margin-right: 14px;
}
nav.main-nav a {
  color: var(--white);
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  font-size: 1.06rem;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--neon);
  background: #202849;
}
nav.main-nav .cta-button {
  margin-left: auto;
  margin-right: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--accentDark), var(--accent));
  font-size: 1.12rem;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #17ffd360, 0 1px 4px #17695b44;
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
nav.main-nav .cta-button:hover, nav.main-nav .cta-button:focus {
  background: var(--accent);
  color: #131b2c;
  box-shadow: 0 4px 24px #17ffd370;
}

/* ===== MOBILE NAVIGATION (BURGER) ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 16px;
  right: 24px;
  width: 48px;
  height: 48px;
  z-index: 1002;
  font-size: 2.2rem;
  color: var(--accent);
  border-radius: 8px;
  background: transparent;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #1c2742;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,24,44,0.98);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.6,0,0.6,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--neon);
  background: transparent;
  margin: 20px 0 0 22px;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  z-index: 1102;
  align-self: flex-start;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #222d47;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0 0 0;
  width: 100%;
}
.mobile-nav a {
  color: var(--neon);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 16px 32px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #131b2c;
  color: var(--white);
}

@media (max-width: 1024px) {
  nav.main-nav {
    gap: 12px;
  }
  nav.main-nav a {
    font-size: 1rem;
    padding: 8px 6px;
  }
}
@media (max-width: 900px) {
  nav.main-nav .cta-button {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  nav.main-nav a:not(:first-child), nav.main-nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Hamburger stays hidden on desktop */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== HERO & SECTIONAL STYLES ===== */
section {
  padding: 40px 0;
  margin: 0;
  background: var(--secondary);
  position: relative;
}
section:nth-of-type(even) {
  background: #e9f6f4;
}
section .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============== CARDS, FEATURES, LISTS =============== */
.feature-grid, .feature-list, .service-list, .training-list, .support-methods, .values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
  justify-content: flex-start;
}
.feature, .service-item, .training-item, .support-item, .value-item {
  flex: 1 1 230px;
  min-width: 250px;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--boxShadow);
  padding: 26px 20px 24px 20px;
  transition: transform 0.2s, box-shadow 0.23s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e0eaef;
  margin-bottom: 20px;
}
.feature:hover, .service-item:hover, .training-item:hover, .support-item:hover, .value-item:hover {
  box-shadow: 0 6px 32px #17ffd370, 0 2px 6px #26385923;
  transform: translateY(-2px) scale(1.025);
}
.feature img, .service-item img, .training-item img, .support-item img, .value-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px #17ffd3);
}
.value-item span {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 1.09rem;
  text-shadow: 0 0 2px #17ffd380;
}

/* ===== TESTIMONIALS ============ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--grayLight);
  border-radius: var(--radius);
  box-shadow: var(--boxShadow);
  border-left: 5px solid var(--accent);
  transition: box-shadow 0.18s;
  color: #191825;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px #17ffd370, 0 2px 7px #26385928;
}
.testimonial-card blockquote {
  color: #191825;
  font-style: italic;
  font-size: 1.15rem;
  border-left: none;
  padding-left: 0;
}
.testimonial-details {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.94;
  font-weight: 600;
  margin-left: 2px;
}

/* ===== CTA BUTTONS ===== */
.cta-button {
  display: inline-block;
  color: var(--white);
  background: linear-gradient(90deg, var(--accentDark) 0%, var(--accent) 100%);
  padding: 15px 38px;
  font-size: 1.17rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 2px 10px #20947e45;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin: 10px 0 0 0;
  border: none;
  outline: none;
  transition: background 0.24s, box-shadow 0.22s, color 0.15s, transform 0.16s;
  text-align: center;
  text-shadow: 0 0 6px #17ffd3a5;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: #181f33;
  box-shadow: 0 6px 30px #17ffd360;
  transform: translateY(-1.5px) scale(1.02);
}

/* ====== CARD CONTAINER AND CONTENT GRID (FLEXBOX MANDATORY) =========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  padding: 24px 18px;
  border-radius: var(--radius);
  box-shadow: var(--boxShadow);
  flex: 1 1 300px;
  min-width: 240px;
  border: 1px solid #e0eaef;
  transition: box-shadow 0.20s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 7px 30px #20947e38;
  transform: translateY(-2px) scale(1.015);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** CONTACT & FOOTER ****/
.contact-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  font-size: 1.01rem;
  color: var(--primary);
}
.contact-details div, .footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin: 30px 0 14px 0;
}
.footer-nav a {
  color: var(--primary);
  opacity: 0.80;
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accentDark);
  border-bottom: 2px solid var(--neon);
}
footer {
  background: var(--grayLight);
  padding: 40px 0 14px 0;
  border-top: 2px solid var(--grayMedium);
  margin-top: 40px;
}

/******** VALUES, UL/OL, ETC. *******/
ul, ol {
  margin: 16px 0 16px 22px;
  padding-left: 18px;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.7;
}
ul li, ol li {
  margin-bottom: 9px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.value-item {
  flex: 1 1 230px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--boxShadow);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
}

/***** MODAL & ANIMATIONS (COOKIE CONSENT) *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #1f2e49fd;
  color: var(--white);
  padding: 22px 18px;
  box-shadow: 0 -2px 22px #17ffd325;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 1200;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.32s, transform 0.35s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-message {
  flex: 2;
  max-width: 660px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex: 1;
}
.cookie-banner .btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 0 10px #17ffd370;
  margin-right: 4px;
  transition: background 0.22s, color 0.15s, transform 0.12s;
}
.cookie-banner .btn:not(.accept) {
  background: #222b44;
  color: var(--neon);
  border: 1.5px solid var(--neon);
}
.cookie-banner .btn:focus, .cookie-banner .btn:hover {
  background: var(--neon);
  color: #1b272c;
  transform: scale(1.03);
}

.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,30,0.85);
  z-index: 1300;
  transition: opacity 0.23s;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #222d42;
  color: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 44px #17ffd320;
  padding: 38px 28px 28px 28px;
  width: 90%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalSlide 0.45s cubic-bezier(0.55,0,0.45,1.1);
}
@keyframes cookieModalSlide {
  from {transform: translateY(40px); opacity: 0;} to {transform: translateY(0); opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--neon);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}
.cookie-modal label {
  font-size: 1.03rem;
  color: var(--white);
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #263859;
  border-radius: 12px;
  transition: background 0.2s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--neon);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 14px; width: 14px;
  left: 4px; bottom: 4px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(14px);
  background: var(--accentDark);
}
.cookie-modal .btn {
  width: 100%;
  display: block;
  margin-top: 12px;
  padding: 12px 0;
  background: var(--accent);
  color: var(--white);
  font-size: 1.09rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  transition: background 0.16s, color 0.12s;
}
.cookie-modal .btn:hover, .cookie-modal .btn:focus {
  background: var(--neon);
  color: #222d42;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--neon);
  position: absolute;
  right: 18px;
  top: 10px;
  cursor: pointer;
  border-radius: 7px;
 }
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #20947e22;
}

/***** MICRO-INTERACTIONS & TRANSITIONS *****/
.card, .card *, .feature, .feature *, .service-item, .training-item, .value-item, .support-item, .testimonial-card, .cta-button, .mobile-menu-toggle, .mobile-menu-close, .btn {
  transition: box-shadow 0.12s, background 0.20s, color 0.13s, border 0.13s, transform 0.19s;
}

/**** RESPONSIVE DESIGN: MOBILE-FIRST *****/
@media (max-width: 768px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  nav.main-nav {
    min-height: 54px;
    padding: 0 8px;
  }
  section {
    padding: 28px 0;
  }
  .container {
    padding: 0 7px;
  }
  .feature-grid, .feature-list, .service-list, .training-list, .values-list, .support-methods {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service-item, .training-item, .support-item, .value-item {
    min-width: unset;
    max-width: unset;
    padding: 17px 12px 15px 12px;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    gap: 10px;
    padding: 13px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 540px) {
  h1, h2, h3 {
    text-shadow: none;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 8px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-banner-message {
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 22px 6px 14px 9px;
  }
}

/***** SCROLLBAR (FUTURISTIC NEON) *****/
::-webkit-scrollbar {
  width: 12px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), var(--neon));
  border-radius: 9px;
  box-shadow: 0 0 12px #20947e66;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon);
}

/*********************************
  TECH FUTURISTIC NEON ACCENTS
*********************************/
.card, .feature, .service-item, .training-item, .value-item, .testimonial-card {
  border: 1.5px solid #e9f6f4;
  box-shadow: 0 2px 12px #17ffd340, 0 1px 6px #26385922;
  position: relative;
}
.card:before, .feature:before, .service-item:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.17s;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
}
.card:hover:before, .feature:hover:before, .service-item:hover:before, .testimonial-card:hover:before {
  border-color: var(--neon);
  box-shadow: 0 0 12px #17ffd324, 0 3px 9px #17ffd324;
}

.cta-button {
  text-shadow: 0 0 12px #17ffd345;
  box-shadow: 0 2px 12px #17ffd330, 0 1px 5px #26385922;
}
.cta-button:after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  margin-bottom: 2px;
  width: 16px;
  height: 16px;
  background: url('assets/icons/icon-chevron-right.svg') no-repeat center/contain;
}
.cta-button[href='/']::after {
  background: url('assets/icons/icon-home.svg') no-repeat center/contain;
}

/* Misc. Fixes for Inputs/Buttons */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #e0eaef;
  padding: 10px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accentDark);
  box-shadow: 0 0 0 2px #17ffd369;
  outline: none;
}

/* Prevent text overlap in edge-cases */
.feature h3, .service-item h3, .training-item h3, .value-item span {
  line-height: 1.25;
  word-break: break-word;
}

/* ====== OVERRIDES AND A11Y STYLES ===== */
[tabindex="0"]:focus, a:focus, button:focus {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  z-index: 2;
}

@media (max-width: 340px) {
  h1, h2, h3, .cta-button {
    font-size: 1rem;
    padding: 8px 10px;
  }
}

/* Utility Classes for Spacing & Flex Alignment */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ============ END ============= */
