/* =========================================================
   CSS RESET & NORMALIZATION (modern default)
   ========================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F6FA;
  color: #1d3140;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
  display: block;
}
a {
  color: #31A0B8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1d3140;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 16px;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
::selection {
  background: #FFE268;
  color: #1d3140;
}

/* =============================
   BRAND TYPOGRAPHY
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #1d3140;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  color: #31A0B8;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  color: #1D3140;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  color: #3872ff;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D3140;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: #1D3140;
}

/* Stylized playful section labels (for dynamic aesthetic) */
.section-label {
  display: inline-block;
  background: #FFE268;
  color: #1D3140;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 14px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px rgba(49,160,184,0.07);
}

/* ===============
   LAYOUT CONTAINERS
   =============== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 26px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ==============
   HEADER & NAVIGATION
   ==============
*/
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 3px 16px rgba(49,160,184,0.10);
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
}
header img {
  height: 46px;
  width: auto;
}
header nav {
  display: flex;
  gap: 26px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: #1d3140;
  padding: 6px 10px;
  border-radius: 9px;
  position: relative;
  background: none;
  transition: background 0.13s, color 0.13s;
}
header nav a:hover,
header nav a:focus {
  background: #FFE268;
  color: #31A0B8;
}
.cta-btn.primary {
  background: #31A0B8;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 10px 28px;
  margin-left: 22px;
  font-size: 1.08rem;
  box-shadow: 0 3px 12px rgba(49,160,184,0.16);
  transition: background 0.18s, transform 0.18s, color 0.18s;
  border: none;
  outline: none;
  position: relative;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: #1D3140;
  color: #FFE268;
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
  box-shadow: 0 7px 20px rgba(49,160,184,0.18);
}
.cta-btn {
  background: #FFE268;
  color: #1D3140;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 10px 26px;
  font-size: 1.02rem;
  display: inline-block;
  margin-top: 14px;
  box-shadow: 0 2px 12px rgba(49,160,184,0.13);
  transition: background 0.18s, color 0.18s, transform 0.16s;
  border: none;
  text-align: center;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #31A0B8;
  color: #fff;
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 7px 18px rgba(49,160,184,0.19);
}

/* 
  MOBILE MENU 
  ============
*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 90;
  background: #31A0B8;
  border-radius: 50%;
  color: #fff;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s, color 0.13s;
  border: none;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFE268;
  color: #1D3140;
  box-shadow: 0 7px 14px rgba(49,160,184,0.17);
}
.mobile-menu {
  position: fixed;
  top: 0; 
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  z-index: 1000;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.61,.05,.38,1.06), opacity 0.23s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 18px 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: #FFE268;
  color: #1d3140;
  border-radius: 50%;
  padding: 8px 15px;
  margin-bottom: 28px;
  margin-right: 6px;
  box-shadow: 0 2px 13px rgba(49,160,184,0.16);
  transition: background 0.18s, color 0.17s;
  border: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #31A0B8;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 22px;
  width: 95vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.44rem;
  font-weight: 700;
  color: #1D3140;
  border-radius: 10px;
  padding: 13px 6px;
  margin-bottom: 4px;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE268;
  color: #31A0B8;
  transform: scale(1.07) rotate(-2deg);
}

/*
  MAIN STRUCTURE & PAGE SECTIONS
  ============================= */
main {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 100%;
}

/* Spacing containers as required */
.card-container, .card-grid, .feature-grid, .service-grid, .industry-grid, .teaser-grid, .sample-list, .service-briefs, .value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-container { gap: 24px; }
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3.5px 24px rgba(49,160,184,0.13);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 24px 20px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 7px 32px rgba(49,160,184,0.16);
  transform: translateY(-4px) scale(1.025) rotate(-1.5deg);
}

/* Utilitarian content flex layouts */
.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 {
  background: #fff;
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 25px rgba(49,160,184,0.12), 0 1.5px 6px rgba(49,160,184,0.07);
  display: flex;
  /* flex-direction: column; */
  align-items: flex-start;
  gap: 20px;
  min-width: 220px;
  max-width: 560px;
  color: #1d3140;
}

.testimonial-card p {
  color: #222d3a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
}
.testimonial-card img {
  height: 22px;
  width: 22px;
  display: inline-block;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #31A0B8;
  font-weight: 700;
}

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

/* Emphasized highlight containers */
.contact-info-highlight,
.address-block,
.phone-email-highlight {
  background: #FFF3BC;
  border-radius: 13px;
  padding: 16px 20px;
  margin: 18px 0;
  box-shadow: 0 1.5px 6px rgba(49,160,184,0.11);
  font-weight: 600;
  color: #1D3140;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ==============
   CARDS, GRIDS AND STRUCTURE
   ============= */
.feature-grid > div, .service-grid > div, .industry-grid > div, .sample-list > div, .service-briefs > div, .value-list > div, .teaser-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3.5px 14px rgba(49,160,184,0.11);
  padding: 28px 18px 22px 18px;
  min-width: 220px;
  flex: 1 1 260px;
  max-width: 346px;
  transition: box-shadow 0.19s, transform 0.17s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid > div:hover, .service-grid > div:hover, .industry-grid > div:hover, .sample-list > div:hover, .service-briefs > div:hover, .value-list > div:hover, .teaser-grid > div:hover {
  box-shadow: 0 8px 36px rgba(49,160,184,0.17);
  transform: translateY(-5px) scale(1.03) rotate(-1.2deg);
}
.feature-grid img, .service-grid img, .industry-grid img, .value-list img, .service-briefs img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.value-list {
  gap: 24px;
}
.value-list > div {
  background: #eafffb;
  box-shadow: 0 2px 10px rgba(73,229,247,0.08);
}

/certificates-badges {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 22px;
  align-items: center;
}
.certificates-badges img {
  width: 52px;
  height: 52px;
}
.map-snippet, .map {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
}
.map-snippet span {
  font-size: 1rem;
  color: #1d3140;
  font-weight: 600;
}

.tag-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.tag-filter a {
  color: #fff;
  background: #31A0B8;
  padding: 1px 12px 3px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 3px;
  transition: background 0.17s;
}
.tag-filter a:hover {
  background: #FFE268;
  color: #1d3140;
}

blockquote {
  font-style: italic;
  font-size: 1.15rem;
  padding: 15px 22px 15px 30px;
  border-left: 7px solid #31A0B8;
  margin-bottom: 16px;
  color: #31A0B8;
  background: #eafffb;
  border-radius: 16px;
  margin-top: 20px;
}
blockquote span {
  display: block;
  color: #1d3140;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 12px;
}

/**********************
    TABLES
***********************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(49,160,184,0.08);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  font-size: 1rem;
}
th {
  background: #31A0B8;
  color: #fff;
  font-weight: 700;
}
tr:nth-child(even) td {
  background: #F5F6FA;
}
tr:nth-child(odd) td {
  background: #fff;
}

/**********************
    FOOTER
***********************/
footer {
  background: #1d3140;
  color: #fff;
  padding: 38px 0 22px 0;
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: #FFE268;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.4;
  margin-top: 0;
}
.footer-contact p {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
}

/****************************
   COOKIE BANNER & MODAL
*****************************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  background: #fff;
  color: #1d3140;
  box-shadow: 0 -3px 18px rgba(49,160,184,0.13);
  padding: 20px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  animation: cookieSlidein 0.6s cubic-bezier(.34,1.56,.64,1);
  font-size: 1rem;
}
@keyframes cookieSlidein {
  from {transform: translateY(100%); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-banner-content {
  flex: 1 1 auto;
  color: #1d3140;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: #FFE268;
  color: #1D3140;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 8px 22px;
  border: none;
  font-size: 0.99rem;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  box-shadow: 0 2.5px 11px rgba(49,160,184,0.09);
  margin-right: 4px;
}
.cookie-btn.accept {
  background: #31A0B8;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #1D3140;
  color: #FFE268;
}
.cookie-btn.reject:hover, .cookie-btn.settings:hover {
  background: #FFE268;
  color: #31A0B8;
  transform: scale(1.06);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44,52,62, 0.32);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 38px rgba(49,160,184,0.16);
  padding: 36px 32px 32px 32px;
  min-width: 330px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: cookieModalIn 0.33s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes cookieModalIn {
  from {opacity:0; transform: scale(0.81)}
  to {opacity:1; transform: scale(1)}
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #1D3140;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  background: #FFE268;
  border-radius: 13px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #31A0B8;
  transition: left 0.18s;
}
.cookie-toggle input[type=checkbox]:checked + .cookie-slider {
  background: #31A0B8;
}
.cookie-toggle input[type=checkbox]:checked + .cookie-slider::before {
  left: 22px;
  background: #FFE268;
}
.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #FFE268;
  transition: background 0.18s;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #31A0B8;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.45rem;
  background: #FFF3BC;
  color: #1D3140;
  border-radius: 30px;
  padding: 2px 13px;
  border: none;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #31A0B8;
  color: #fff;
}

/*********************************
   PLAYFUL, DYNAMIC ANIMATIONS
*********************************/
.cta-btn, .cta-btn.primary, .feature-grid > div, .service-grid > div, .industry-grid > div, .teaser-grid > div, .card {
  transition: transform 0.17s cubic-bezier(.23,1.23,.61,0.87), box-shadow 0.19s, background 0.17s, color 0.15s;
}
.cta-btn:active { transform: scale(0.96) rotate(-2deg); }
.cta-btn.primary:active { transform: scale(0.96) rotate(1.5deg); }
/* Fun hover moves on features */
.feature-grid > div:hover, .service-grid > div:hover, .industry-grid > div:hover, .teaser-grid > div:hover, .sample-list > div:hover {
  transform: translateY(-6px) scale(1.04) rotate(-2deg);
  background: #FFF3BC;
}

/************************************
   ADDITIONAL SPACING & LAYOUT REQUIREMENTS
************************************/
.feature-grid, .service-grid, .industry-grid, .teaser-grid, .sample-list, .value-list {
  margin-bottom: 30px;
}
.content-wrapper, .text-section {
  margin-bottom: 0;
}
.content-wrapper > *, .text-section > * {
  margin-bottom: 8px;
}
.card, .testimonial-card, .feature-grid > div, .service-grid > div, .teaser-grid > div, .industry-grid > div, .sample-list > div, .service-briefs > div, .value-list > div {
  margin-bottom: 24px;
}
.section:last-child {
  margin-bottom: 0;
}

/************************************
   MEDIA QUERIES (RESPONSIVE)
************************************/
@media (max-width: 1180px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  header nav { gap: 13px; }
  .industry-grid > div, .feature-grid > div, .service-grid > div, .teaser-grid > div, .sample-list > div, .service-briefs > div, .value-list > div { min-width: 155px; }
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 768px) {
  header nav,
  .cta-btn.primary {
    display: none !important;
  }
  header {
    padding: 10px 12px;
    min-height: 56px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container { padding-left: 4px; padding-right: 4px; }
  .section {
    padding: 28px 4px;
    margin-bottom: 38px;
  }
  .content-wrapper, .text-section {
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
  .card-container, .card-grid, .feature-grid, .service-grid, .industry-grid, .teaser-grid, .sample-list, .service-briefs, .value-list {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    font-size: 0.98rem;
  }
}
@media (max-width: 520px) {
  header img {
    height: 38px;
  }
  .container { padding-left: 2px; padding-right: 2px; }
  .footer-contact p, footer nav a {
    font-size: 0.90rem;
  }
  .section { padding: 14px 2px; }
}

/************************************
   SPECIAL: FAQ/INLINE CLASSES & COMPONENTS
************************************/
.faq-snippet {
  background: #eafffb;
  border-radius: 17px;
  padding: 17px 21px;
  margin-top: 14px;
  box-shadow: 0 2px 11px rgba(49,160,184,0.08);
  font-size: 1rem;
}
.faq-snippet h3 {
  font-size: 1.14rem;
  color: #31A0B8;
}

/************************************
   PRINT STYLES (just a minimal reset for modern output)
************************************/
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cta-btn, header nav, footer nav { display: none !important; }
  .container { width: 100vw; max-width: 100vw; }
  .section { box-shadow: none !important; background: #fff !important; }
}

/*
  End of playful dynamic, flexbox-only, responsive, branded design system for TransSpign Content Solutions
*/
