/* ----------------------------
   BlueShadow Valley Style CSS
   Modern Gradient Design (gradient_modern)
   Flexbox-Only Responsive Layout
-----------------------------*/

/* --- CSS RESET AND NORMALIZE (modernized) --- */
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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f1faee 0%, #eaeff6 100%);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1D3557;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #457B9D;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* Typography Scale & Brand Fonts */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: #1D3557;
  margin-bottom: 0.6em;
  font-weight: 800;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1.17;
  margin-bottom: 1em;
  font-weight: 700;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.7em;
  font-weight: 700;
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
p, .p {
  font-size: 1rem;
  color: #22304d;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* --- Containers and Layout Spacing --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER AND NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 4px 20px 0 rgba(29,53,87,0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  margin-right: 24px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #f1faee;
  color: #457B9D;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: linear-gradient(90deg, #457B9D 0%, #1D3557 100%);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 24px;
  padding: 12px 36px;
  margin-left: 16px;
  box-shadow: 0 2px 12px 0 rgba(69,123,157,0.07);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #1D3557 0%, #457B9D 100%);
  color: #f1faee !important;
  box-shadow: 0 6px 24px 0 rgba(29,53,87,0.10);
  transform: translateY(-2px) scale(1.03);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #457B9D;
  cursor: pointer;
  margin-left: 18px;
  z-index: 1202;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: #1D3557;
}
/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 12px 64px 0 rgba(29,53,87,0.09);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.61, -.12, .41, 1.08);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
  transition-delay: 0s;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 28px 0 0;
  background: #f1faee;
  border: none;
  color: #1D3557;
  font-size: 2.2rem;
  font-weight: 400;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #eaeff6;
  color: #457B9D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 60px 40px;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #1D3557;
  padding: 16px 6px 16px 0;
  border-bottom: 1px solid #eaeff6;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #457B9D;
  background: #f1faee;
}

/* --- HERO SECTIONS --- */
.hero, .blog-hero, .thank-you {
  background: linear-gradient(120deg, #f1faee 0%, #e0eafc 100%);
  display: flex;
  align-items: center;
  min-height: 340px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero .container, .blog-hero .container, .thank-you .container {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
}

/* --- FEATURES, CARDS AND CONTENT BLOCKS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin: 36px 0 18px 0;
}
.feature {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(69,123,157,0.06);
  padding: 36px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature h3 {
  color: #1D3557;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 32px 0 rgba(29,53,87,0.13);
  transform: translateY(-3px) scale(1.03);
}

.case-study-cards, .case-snippets, .blog-post-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.case-study-card, .case-snippet, .blog-post-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(69,123,157,0.09);
  padding: 32px 24px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.case-study-card:hover, .case-snippet:hover, .blog-post-card:hover {
  box-shadow: 0 8px 28px 0 rgba(29,53,87,0.15);
  transform: translateY(-2px) scale(1.02);
}

/* --- FAQ Accordions --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 14px;
}
.faq-accordion h3 {
  cursor: pointer;
  font-size: 1.15rem;
  color: #457B9D;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0.5em;
}
.faq-accordion p {
  padding-left: 6px;
}

/* --- TESTIMONIALS & CLIENT LOGOS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 26px;
}
.testimonial-card {
  background: #f1faee;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(69,123,157,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 340px;
  color: #1D3557;
}
.testimonial-card p {
  color: #234;
  font-size: 1.05rem;
}
.testimonial-name {
  font-weight: 600;
  color: #457B9D;
  font-size: 1rem;
}
.client-logos {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: center;
  margin-top: 16px;
}
.client-logos img {
  height: 46px;
  width: auto;
  opacity: 0.92;
}

/* --- CTA LINKS AND FILTERS --- */
.cta-link {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #457B9D;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.07rem;
  transition: color 0.18s;
}
.cta-link:hover, .cta-link:focus {
  color: #1D3557;
  letter-spacing: 0.3px;
}
.case-study-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}
.case-study-filters span {
  font-weight: 600;
  margin-right: 8px;
  color: #457B9D;
}
.case-study-filters button {
  background: #fff;
  border: 1.5px solid #457B9D;
  border-radius: 18px;
  color: #457B9D;
  padding: 7px 18px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.case-study-filters button:hover, .case-study-filters button:focus {
  background: #457B9D;
  color: #fff;
}

/* --- SEARCH, FILTERS, FORMS, NEWSLETTER --- */
.filters-search {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 10px;
}
.filters-search select, .filters-search input[type="search"] {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e3e9f1;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  outline: none;
}
.filters-search select:focus,
.filters-search input[type="search"]:focus {
  border-color: #457B9D;
}
.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.newsletter-signup label {
  font-size: 1rem;
  color: #457B9D;
  margin-right: 8px;
}
.newsletter-signup input[type="email"] {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cfd8ee;
  font-size: 1rem;
  background: #fff;
  outline: none;
  min-width: 220px;
}
.newsletter-signup input:disabled {
  background: #f6f7fa;
  color: #b9c1cc;
}
.newsletter-signup button {
  background: #457B9D;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.18s, color 0.18s;
}
.newsletter-signup button:disabled {
  background: #b9c1cc;
  color: #fff;
  cursor: not-allowed;
}
.newsletter-signup .note {
  font-size: 0.95rem;
  color: #777f93;
  margin-left: 8px;
}

/* --- LEGAL SECTIONS --- */
.legal-policy {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(29,53,87,0.07);
  padding: 42px 32px;
  margin-bottom: 60px;
}
.legal-policy h1 {
  font-size: 2.15rem;
  margin-bottom: 0.6em;
}
.legal-policy h2 {
  font-size: 1.3rem;
  margin-top: 22px;
  margin-bottom: 0.8em;
}
.legal-policy ul {
  margin-bottom: 1.2em;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #eaeff6 0%, #f1faee 100%);
  color: #243c50;
  font-size: 1rem;
  border-top: 3px solid #457B9D;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 10px 0;
}
.footer-top nav {
  gap: 16px;
}
.footer-top a {
  color: #1D3557;
  font-weight: 500;
}
.footer-top a:hover, .footer-top a:focus {
  color: #457B9D;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #eaeff6;
  padding: 20px 0 8px 0;
  font-size: 0.97rem;
}

/* -- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.4s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px 0 rgba(29,53,87,0.13);
  padding: 20px 28px;
  max-width: 1120px;
  margin: 0;
}
.cookie-banner p {
  font-size: 1rem;
  color: #22304d;
  margin: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner .cookie-btn {
  background: #457B9D;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.cookie-banner .cookie-btn.reject {
  background: #eaeff6;
  color: #1D3557;
  border: 1.5px solid #457B9D;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #457B9D;
  border: 1.5px solid #457B9D;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #1D3557;
  color: #f1faee;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #457B9D;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(29,53,87,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 50px 0 rgba(29,53,87,0.19);
  padding: 36px 28px 30px 28px;
  max-width: 450px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.27s cubic-bezier(.23,1.02,.33,1) both;
}
@keyframes fadeIn { from { opacity:0;  transform: translateY(24px);} to { opacity:1; transform: none;}}
.cookie-modal h2 {
  color: #1D3557;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-category label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #234;
}
.cookie-toggle {
  margin-left: 10px;
  width: 38px; height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input[type=checkbox] {
  width: 0; height: 0; opacity: 0;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #eaeff6;
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .slider {
  background: #457B9D;
}
.cookie-toggle .slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
  box-shadow: 0 2px 6px rgba(29,53,87,0.07);
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  min-width: 92px;
}

/* --- Responsive Patterns --- */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .features-grid, .testimonials, .client-logos, .case-study-cards, .case-snippets, .blog-post-cards {
    gap: 18px;
  }
  .content-wrapper {
    padding: 0 0;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 14px;
  }
  .features-grid, .testimonials, .client-logos, .case-study-cards, .case-snippets, .blog-post-cards {
    flex-wrap: wrap;
    gap: 14px;
  }
  .feature, .case-study-card, .case-snippet, .blog-post-card {
    flex: 1 1 280px !important;
    min-width: 220px;
    max-width: 100%;
  }
  .client-logos img {
    height: 38px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    min-height: 62px;
    padding: 0 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .cta-btn {
    padding: 10px 22px;
    font-size: 0.99rem;
  }
  .features-grid, .testimonials, .case-study-cards, .case-snippets, .blog-post-cards {
    flex-direction: column;
    gap: 12px;
  }
  .feature, .case-study-card, .case-snippet, .blog-post-card {
    padding: 26px 14px;
    font-size: 0.98rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 0 6px 0;
  }
  .client-logos {
    gap: 16px;
  }
  .section, section {
    padding: 24px 6px;
  }
  .hero, .blog-hero, .thank-you {
    min-height: 170px;
    padding: 12px 4px;
  }
  .case-study-filters {
    gap: 8px;
  }
  .filters-search {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  h1, .h1 {
    font-size: 1.65rem;
  }
  h2, .h2 {
    font-size: 1.15rem;
  }
  .feature img {
    width: 36px; height: 36px;
  }
  .cookie-banner-inner {
    padding: 16px 8px;
    border-radius: 12px 12px 0 0;
  }
}
/* --- Utility Classes --- */
.text-center   { text-align: center !important; }
.display-flex  { display: flex !important; }
.flex-column   { flex-direction: column !important; }
.flex-row      { flex-direction: row !important; }
.align-center  { align-items: center !important; }
.gap-20        { gap: 20px !important; }
.m-0           { margin: 0 !important; }
.mb-24         { margin-bottom: 24px !important; }
.mt-24         { margin-top: 24px !important; }
.pt-24         { padding-top: 24px !important; }
.pb-24         { padding-bottom: 24px !important; }
.hide          { display: none !important; }

/* --- Standard Class Patterns from PROMPT --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px 0 rgba(69,123,157,0.07); }
.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; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .content-grid      { flex-direction: column; gap: 15px; }
  .card-container    { flex-direction: column; gap: 12px; }
}

/* --- Smooth Animations & Microinteractions --- */
.card, .feature, .testimonial-card, .case-study-card, .case-snippet, .blog-post-card {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .case-study-card:hover, .case-snippet:hover, .blog-post-card:hover {
  box-shadow: 0 6px 24px 0 rgba(29,53,87,0.11);
  transform: translateY(-2px) scale(1.01);
}
button, .cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, transform 0.12s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
}
[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
  color: #1D3557;
}

/* Hide scrollbars in mobile menu when not active */
.mobile-menu:not(.active) { overflow: hidden; }

/* --- End of Style CSS --- */
