/* === CSS RESET & BASE === */
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;
  background-color: #20262c;
  color: #f5f6fa;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #48A9A6;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFE1A8;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFE1A8;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.375rem;
}
h4 {
  font-size: 1.18rem;
}
p, label {
  font-size: 1rem;
  color: #dbe2ef;
  margin-bottom: 16px;
}
strong {
  color: #FFE1A8;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #232b32;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(28,33,37,0.20);
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  border: 1.5px solid #2b3640;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px 24px;
  min-width: 260px;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(72,169,166,0.15);
  transform: translateY(-4px) scale(1.01);
  border-color: #48A9A6;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #a4a5a9;
  color: #222731;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(32, 48, 74, 0.09);
  min-width: 255px;
  border-left: 4px solid #48A9A6;
  font-size: 1.08rem;
  transition: box-shadow 0.2s;
}
.testimonial-card strong {
  color: #20304A;
  font-size: 1rem;
  margin-top: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(72,169,166,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FLEX HEADERS & FOOTERS === */
.flex-header,
.flex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 0;
  gap: 20px;
}
.flex-footer > * {
  margin-right: 32px;
}
.flex-footer > *:last-child {
  margin-right: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFE1A8;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.85;
}
.footer-contact {
  font-size: 0.98rem;
  color: #aebbd5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img {
  width: 18px;
  margin-right: 9px;
  vertical-align: middle;
  filter: grayscale(1) contrast(120%);
}

/* === HEADER === */
header {
  background: #20304A;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(32,48,74,0.07);
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #f5f6fa;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 2px;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.18s, color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #48A9A6;
  border-color: #48A9A6;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #FFE1A8;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  z-index: 91;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #48A9A6;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,48,74,0.98);
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-left: 0;
  padding-right: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #48A9A6;
  font-size: 2rem;
  position: absolute;
  right: 30px;
  top: 22px;
  cursor: pointer;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 62px 0 0 0;
  gap: 24px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: #FFE1A8;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 0;
  border-bottom: 2.5px solid transparent;
}
.mobile-nav a:active, .mobile-nav a:focus {
  color: #48A9A6;
  border-color: #48A9A6;
  outline: none;
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(125deg, #222D35, #20304A 67%, #232b32 100%);
  padding: 60px 0 38px 0;
  display: flex;
  align-items: center;
}
.hero h1, .hero h2 {
  color: #FFE1A8;
}
.hero .btn-primary {
  margin-top: 20px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #48A9A6;
  color: #232b32;
  border: none;
  border-radius: 9px;
  transition: background 0.19s, box-shadow 0.21s, color 0.19s, transform 0.18s;
  box-shadow: 0 2px 8px 0 rgba(32,48,74,0.09);
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFE1A8;
  color: #20304A;
  box-shadow: 0 6px 32px 0 rgba(72,169,166,0.20);
  outline: none;
  transform: translateY(-2px);
}
.btn-secondary {
  background: #232b32;
  color: #48A9A6;
  border: 2px solid #48A9A6;
  padding: 12px 28px;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.18s;
  margin-left: 9px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #474c52;
  color: #FFE1A8;
}

/* === CTA SECTIONS === */
.cta {
  background: #232b32;
  border-radius: 15px;
  margin: 0 auto 60px auto;
  box-shadow: 0 3px 24px rgba(72,169,166,0.07);
  padding: 60px 0 52px 0;
}
.cta h2 {
  color: #FFE1A8;
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta .btn-primary {
  margin-top: 18px;
}

/* === FEATURES === */
.features .feature-grid, .features .blog-teaser-grid, .features .resource-cards, .features .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div, .blog-teaser-grid > div, .resource-cards > div, .service-cards > div {
  flex: 1 1 240px;
  background: #232b32;
  border: 1.5px solid #394759;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 14px 0 rgba(32,48,74,0.08);
  transition: box-shadow 0.23s, border 0.22s, transform 0.18s;
}
.feature-grid > div:hover, .blog-teaser-grid > div:hover, .resource-cards > div:hover, .service-cards > div:hover {
  border-color: #48A9A6;
  box-shadow: 0 6px 26px 0 rgba(72,169,166,0.10);
  transform: translateY(-4px) scale(1.009);
}
.feature-grid img, .integration-icons img {
  width: 42px;
  margin-bottom: 18px;
  filter: grayscale(1) brightness(0.93) contrast(1.19);
}

.integration-icons {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}
.integration-icons img {
  width: 54px;
}
.integration-descriptions ul {
  margin-left: 0;
}
.benefit-list li {
  color: #FFE1A8;
  margin-bottom: 8px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.98rem;
  align-items: center;
}
.category-filters span {
  color: #aebbd5;
  margin-right: 5px;
}
.category-filters a {
  color: #48A9A6;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 7px;
  border-radius: 5px;
  transition: background 0.17s, color 0.15s;
}
.category-filters a:hover {
  background: #333a41;
  color: #FFE1A8;
}

/* === STEPPER TIMELINE (ol) === */
.stepper-timeline {
  margin: 28px 0 10px 24px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: step;
}
.stepper-timeline li {
  list-style: none;
  position: relative;
  padding-left: 46px;
  min-height: 42px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #dbe2ef;
}
.stepper-timeline li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: #232b32;
  color: #48A9A6;
  border: 2.5px solid #48A9A6;
  border-radius: 50%;
  font-size: 1.18rem;
  text-align: center;
  line-height: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 7px 0 rgba(72,169,166,0.12);
}

/* --- SECTION SPACING & ALIGNMENT --- */
.about, .features, .testimonials, .services, .legal, .contact-details {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.customer-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
}
.customer-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(1) brightness(1.15);
}

.resource-cards a, .service-cards a, .blog-teaser-grid a {
  color: #48A9A6;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  margin-top: 8px;
  transition: color 0.2s;
}
.resource-cards a:hover, .service-cards a:hover, .blog-teaser-grid a:hover {
  color: #FFE1A8;
}

/* --- Newsletter --- */
.newsletter-signup-form {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.newsletter-signup-form input[type="email"] {
  background: #222D35;
  border: 1.5px solid #48A9A6;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 210px;
  color: #FFE1A8;
}
.newsletter-signup-form button[type="submit"] {
  margin-left: 0;
  margin-top: 0;
}

/* --- Contact Details --- */
.contact-details h3 {
  color: #FFE1A8;
  font-size: 1.06rem;
  margin-top: 19px;
}
.contact-details p {
  margin-bottom: 7px;
  color: #dbe2ef;
}
.contact-details img {
  width: 22px;
  margin-right: 10px;
  vertical-align: middle;
}

.no-form {
  margin-top: 28px;
  color: #AEBBD5;
}

/* === LEGAL PAGES === */
.legal h1, .legal h2 {
  color: #FFE1A8;
}
.legal ul {
  margin-bottom: 16px;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: #232b32;
  color: #FFE1A8;
  box-shadow: 0 -2px 18px #20304A11;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100vw;
  animation: fadeInBanner 0.6s;
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #FFE1A8;
  font-size: 1.02rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner .btn-primary {
  padding: 10px 22px;
  font-size: 0.98rem;
  background: #48A9A6;
  color: #232b32;
}
.cookie-banner .btn-primary:hover {
  background: #FFE1A8;
  color: #20304A;
}
.cookie-banner .btn-secondary {
  background: #232b32;
  color: #FFE1A8;
  border: 2px solid #48A9A6;
  padding: 8px 18px;
  font-size: 0.97rem;
}
.cookie-banner .btn-secondary:hover {
  background: #333a41;
  color: #FFE1A8;
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32, 48, 74, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOverlay 0.4s;
}
@keyframes fadeOverlay { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: #232b32;
  color: #FFE1A8;
  border-radius: 18px;
  max-width: 390px;
  width: 96vw;
  padding: 34px 26px 26px 26px;
  box-shadow: 0 4px 32px #232b3230;
  animation: popModal 0.42s;
}
@keyframes popModal { from { opacity:0; transform: scale(0.93);} to { opacity:1; transform: scale(1);} }
.cookie-modal h3 {
  font-size: 1.23rem;
  margin-bottom: 12px;
  color: #FFE1A8;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-option input[type="checkbox"] {
  accent-color: #48A9A6;
  width: 20px; height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  font-size: 0.98rem;
  padding: 7px 19px;
}
.cookie-modal .btn-secondary {
  margin-left: 0;
}

/* === MEDIA QUERIES (RESPONSIVE) === */
@media (max-width: 1160px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .flex-header,
  .flex-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-contact {
    font-size: 0.95rem;
    gap: 2px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero, .cta {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .features .feature-grid, .features .blog-teaser-grid, .features .resource-cards, .features .service-cards {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: unset;
  }
  .stepper-timeline li {
    padding-left: 36px;
    font-size: 1rem;
  }
}
@media (max-width: 580px) {
  .content-wrapper {
    gap: 14px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .hero, .cta {
    padding: 20px 0 !important;
  }
  .section, .about, .features, .testimonials, .services, .legal, .contact-details {
    padding: 26px 8px;
    margin-bottom: 34px;
  }
  .card, .feature-grid > div, .service-cards > div, .resource-cards > div {
    padding: 18px 12px;
  }
  .footer-nav {
    gap: 6px;
  }
  .footer-contact img {
    width: 15px;
    margin-right: 5px;
  }
}

/* --- Z-INDEX MANAGEMENT --- */
header { z-index: 20; }
.mobile-menu { z-index: 99; }
.mobile-menu-close { z-index: 100; }
.cookie-banner { z-index: 150; }
.cookie-modal-overlay { z-index: 200; }

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- VISUAL EFFECTS --- */
.card, .feature-grid > div, .service-cards > div, .resource-cards > div, .testimonial-card {
  box-shadow: 0 2px 16px 0 #232b3240;
}
.btn-primary, .btn-secondary, .cookie-banner .btn-primary, .cookie-modal .btn-primary {
  transition: background 0.22s, color 0.16s, box-shadow 0.17s, border-color 0.21s, transform 0.19s;
}

/* --- List tokens --- */
ul > li::marker {
  color: #48A9A6;
}

/* === ACCESSIBILITY: FOCUS VISIBLE === */
*:focus-visible {
  outline: 2px dashed #48A9A6;
  outline-offset: 2px;
}

/* === END OF MAIN STYLES === */