/* === CSS 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,
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F8FAFC;
  color: #232C41;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #48A9E6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #232C41;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
}
hr {
  border: none;
  border-top: 1px solid #DFE3E8;
  margin: 32px 0;
}


/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #232C41;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, .text-section p, .content-wrapper p {
  color: #394867;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: #232C41;
}


/* === GENERIC CLASSES & CONTAINERS === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(35,44,65,0.04);
}

/* === HEADER === */
header {
  background: #232C41;
  color: #fff;
  box-shadow: 0 2px 8px rgba(35,44,65,0.07);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

/* === MAIN NAVIGATION === */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  letter-spacing: 0.02em;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #48A9E6;
  color: #fff;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #48A9E6;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  font-size: 1.075rem;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px rgba(35,44,65,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  cursor: pointer;
  margin-left: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #232C41;
  color: #fff;
  box-shadow: 0 6px 16px rgba(35,44,65,0.15);
  outline: none;
}

/* === HEADER: MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.16s;
  z-index: 1011;
}
.mobile-menu-toggle:focus {
  color: #48A9E6;
}


/* === MOBILE MENU === */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #232C41;
  z-index: 1200;
  padding: 30px 16px 16px 32px;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.6,0.04,0.15,1.2);
  box-shadow: 0 8px 32px rgba(35,44,65,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus {
  color: #48A9E6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #48A9E6;
  color: #fff;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === MAIN === */
main {
  padding-bottom: 48px;
  background: #F8FAFC;
  min-height: 65vh;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,44,65,0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
section:last-child { margin-bottom: 0; }

/* === FLEXBOX LAYOUTS FOR CONTENT === */
.card-container,
.content-grid,
.card-grid,
.card-row,
.feature-grid,
.service-cards,
.article-grid,
.client-logos,
.trust-badges,
.topics-list ul,
.infographic-teasers ul,
.downloads-list,
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.feature-grid li,
.service-cards > div,
.article-grid > div,
.downloads-list li,
.industry-list li {
  flex: 1 1 220px;
  background: #F6F8FB;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35,44,65,0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 310px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.19s;
  border: 1px solid #E5EAF1;
}
.feature-grid li:hover,
.service-cards > div:hover,
.article-grid > div:hover,
.downloads-list li:hover,
.industry-list li:hover {
  box-shadow: 0 6px 22px rgba(35,44,65,0.11);
  background: #DBF7F3;
}

.feature-grid img,
.service-cards img,
.article-grid img,
.downloads-list img,
.industry-list img {
  width: 48px;
  aspect-ratio: 1 /1;
  margin-bottom: 8px;
  margin-top: -8px;
}

/* === SPECIFIC FLEX COMPONENTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
}
.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: 20px;
  background: #F0F5FA;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(35,44,65,0.07);
  border-left: 7px solid #48A9E6;
  max-width: 500px;
}
.testimonial-card p {
  color: #232C41;
  font-size: 1.07rem;
  font-weight: 500;
}
.testimonial-details {
  color: #476482;
  font-size: 0.98rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === PRICING TABLE === */
.pricing-table {
  background: #F7FBFC;
  border: 1px solid #E4ECF4;
  border-radius: 12px;
  margin-top: 24px;
  overflow-x: auto;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.pricing-table caption {
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-align: left;
  padding: 12px 0 6px 10px;
  color: #232C41;
}
.pricing-table th,
.pricing-table td {
  padding: 14px 22px;
  border-bottom: 1px solid #E4ECF4;
  text-align: left;
}
.pricing-table th {
  background: #DBF7F3;
  color: #232C41;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.pricing-table td {
  color: #394867;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

.price {
  color: #48A9E6;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  margin-top: 8px;
}

/* === TRUST BADGES / CLIENT LOGOS === */
.trust-badges, .client-logos, .service-icons {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 18px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.trust-badges img, .client-logos img, .service-icons img {
  width: 56px;
  height: auto;
  filter: saturate(0.85);
  opacity: 0.94;
  transition: opacity 0.14s;
}
.trust-badges img:hover, .client-logos img:hover, .service-icons img:hover {
  opacity: 1;
  filter: saturate(1);
}

/* === TEXT SECTION === */
.text-section {
  margin-bottom: 18px;
  padding: 18px 0 6px 0;
}
.text-section h3 {
  color: #232C41;
  font-size: 1.16rem;
}
.text-section ul, .text-section ol {
  margin-bottom: 6px;
}

/* === FORM ELEMENTS (Contact, Newsletter, Cookie) === */
input,
select,
textarea,
button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #D1D9E0;
  border-radius: 5px;
  padding: 10px 14px;
  margin: 6px 0 18px 0;
  transition: border-color 0.15s, box-shadow 0.16s;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #48A9E6;
  border-color: #48A9E6;
  box-shadow: 0 0 0 2px #DBF7F3;
}
button {
  background: #48A9E6;
  color: #fff;
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  padding: 10px 22px;
}
button:hover, button:focus {
  background: #232C41;
  color: #fff;
  box-shadow: 0 4px 16px rgba(35,44,65,0.15);
  outline: none;
}

/* === FOOTER === */
footer {
  background: #232C41;
  color: #F6F8FB;
  border-top: 1px solid #E5EAF1;
  padding: 36px 0 28px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #DBF7F3;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.16s, background 0.16s;
}
.footer-nav a:hover {
  color: #48A9E6;
  background: rgba(219,247,243,0.08);
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}
footer p {
  color: #F0F5FA;
  font-size: 0.98rem;
  margin: 0;
}

/* === READ MORE, NEWSLETTER SIGNUP === */
.read-more {
  font-size: 1rem;
  color: #232C41;
  font-weight: 600;
  text-decoration: underline;
}
.read-more:hover, .read-more:focus { color: #48A9E6; }

.newsletter-signup a {
  color: #fff;
  background: #48A9E6;
  padding: 8px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(35,44,65,0.10);
  font-weight: 700;
  display: inline-block;
  transition: background 0.19s, color 0.17s, box-shadow 0.15s;
}
.newsletter-signup a:hover, .newsletter-signup a:focus {
  background: #232C41;
  color: #fff;
  box-shadow: 0 6px 22px rgba(72,169,230,0.18);
}

/* === MAP EMBED PLACEHOLDER === */
.map-embed {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #F0F5FA;
  border-radius: 10px;
  padding: 18px;
  margin-top: 10px;
}
.map-embed img {
  width: 32px;
  height: 32px;
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232C41;
  color: #DBF7F3;
  z-index: 1550;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 20px 24px;
  box-shadow: 0 -4px 24px rgba(35,44,65,0.13);
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner-text {
  max-width: 640px;
  margin-bottom: 8px;
  color: #DBF7F3;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 5px;
}
.cookie-btn, .cookie-banner button {
  background: #48A9E6;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(72,169,230,0.10);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #36B5C3;
  color: #fff;
}
.cookie-btn.settings {
  background: #DBF7F3;
  color: #232C41;
  border: 1px solid #48A9E6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E6F4F3;
  color: #232C41;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 1px solid #48A9E6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #2A354D;
}

/* Cookie settings modal */
.cookie-settings-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,44,65,0.56);
  z-index: 1560;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.cookie-settings-modal .modal-content {
  background: #fff;
  color: #232C41;
  border-radius: 14px;
  max-width: 420px;
  width: 98%;
  box-shadow: 0 12px 48px rgba(35,44,65,0.22);
  padding: 30px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 22px;
  animation: modalPopIn 0.3s cubic-bezier(0.58,0,0.33,1) 1;
}
@keyframes modalPopIn {
  from {transform: scale(0.97) translateY(25px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-settings-modal h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #232C41;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #48A9E6;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: #232C41;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #232C41;
  cursor: pointer;
  transition: color 0.17s;
  line-height: 1;
}
.cookie-modal-close:focus { color: #48A9E6; }


/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 992px) {
  .container { max-width: 820px; }
  .feature-grid li, .service-cards > div, .article-grid > div { max-width: 48%; min-width: 240px; }
  .footer-nav { flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container { max-width: 98vw; padding: 0 8px; }
  .content-wrapper {
    gap: 16px;
  }
  section {
    padding: 24px 8px;
    gap: 12px;
  }
  .trust-badges, .client-logos, .service-icons {
    gap: 18px;
    justify-content: flex-start;
  }
  .feature-grid, .service-cards, .article-grid, .downloads-list, .industry-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid li, .service-cards > div, .article-grid > div, .downloads-list li, .industry-list li {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 12px;
  }
  .map-embed { flex-direction: column; gap: 8px; padding: 8px; }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .main-nav, .cta-btn { display: none; }
}
@media (max-width: 480px) {
  html, body { font-size: 15px; }
  h1 { font-size: 1.22rem; }
  .container { padding: 0 2vw; }
  .cookie-settings-modal .modal-content { padding: 16px 6px 14px 6px; }
}


/* === ANIMATIONS/MICRO-INTERACTIONS === */
.cta-btn, button, .cookie-btn, .newsletter-signup a {
  transition: background 0.20s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta-btn:active, button:active, .cookie-btn:active, .newsletter-signup a:active {
  transform: translateY(2px) scale(0.98);
}
.card-container > *,
.feature-grid > *, .service-cards > *, .article-grid > * {
  transition: box-shadow 0.18s, background 0.16s, transform 0.13s;
}
.card-container > *:hover,
.feature-grid > *:hover, .service-cards > *:hover, .article-grid > *:hover {
  transform: translateY(-3px) scale(1.01);
}

/* === UTILITY === */
.d-none { display: none !important; }
.section-title {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  color: #232C41;
}

/* === OVERRIDE FOR PAGE ELEMENTS REQUIRING DARK TEXT === */
.testimonial-card, .testimonial-details, .testimonial-card p {
  color: #232C41 !important;
  background: #F0F5FA !important;
}

/* === Focus Outline for Accessibility === */
a:focus,button:focus,input:focus,.cookie-modal-close:focus {
  outline: 2px dashed #48A9E6;
  outline-offset: 2px;
}

/* === END === */
