/* -----------------------
   CRYSTALWIND CSS RESET
------------------------ */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, button, input, textarea, table, th, td, dl, dt, dd {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 12px; text-align: left; }
:root {
  --clr-primary: #2242A2;
  --clr-secondary: #F5F6FA;
  --clr-accent: #20BC8A;
  --clr-bg: #ffffff;
  --clr-dark: #181A26;
  --clr-link: #2242A2;
  --clr-alert: #FF4E65;
  --clr-yellow: #F5B301;
  --clr-vibrant1: #00E1F7;
  --clr-vibrant2: #FF4E65;
  --clr-vibrant3: #FFE600;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius-main: 18px;
  --radius-btn: 32px;
  --shadow-card: 0 4px 24px rgba(34,66,162,0.08);
  --shadow-btn: 0 2px 8px rgba(32,188,138,0.10);
  --shadow-hero: 0 6px 40px rgba(0,225,247,0.07); }

body {
  font-family: var(--font-body);
  background: var(--clr-secondary);
  color: var(--clr-dark);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------------------------------
   HEADINGS / TYPOGRAPHY
--------------------------------- */
h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
@media (min-width: 600px) { h1 { font-size: 3.5rem; } }

h2 {
  font-family: var(--font-display);
  font-size: 2.0rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.subheadline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

p, li, td, th { font-size: 1rem; color: var(--clr-dark); }
strong { font-weight: 700; color: var(--clr-primary); }

small {
  font-size: 0.875rem;
  color: #8993b4;
}

/* ---------------------------------
   FLEX UTILITY LAYOUTS
--------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
}
.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;
}

/* Override layouts for specific application layouts: */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding: 40px 0 20px 0;
  align-items: flex-start;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Responsive layout adjustments */
@media (max-width: 1080px) {
  .footer-main { flex-direction: column; gap: 24px; align-items: stretch; }
}
@media (max-width: 768px) {
  .section { padding: 24px 10px; margin-bottom: 36px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer-main   { flex-direction: column; gap: 22px; }
  .content-grid, .card-container { gap: 14px; }
}

/* ---------------------------------
   HEADER & NAVIGATION
--------------------------------- */
header {
  background: var(--clr-bg);
  box-shadow: 0 2px 12px rgba(34,66,162,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background .18s, color .18s;
}
nav a:hover, nav a:focus {
  background: var(--clr-accent);
  color: #fff;
}
header img[alt*='CrystalWind'] { height: 40px; }
.btn-primary {
  background: linear-gradient(90deg, var(--clr-accent) 70%, var(--clr-primary) 120%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 11px 32px;
  margin-left: 18px;
  box-shadow: var(--shadow-btn);
  display: inline-block;
  transition: background 0.18s, transform .13s;
  letter-spacing: 0.03em;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--clr-primary) 20%, var(--clr-accent) 95%);
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: var(--clr-vibrant1);
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  margin-top: 8px;
  box-shadow: 0 3px 14px rgba(0,225,247,.10);
  transition: background 0.18s, transform .13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--clr-vibrant2);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  background: var(--clr-primary);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 12px;
  padding: 4px 14px 0 14px;
  transition: background .19s;
  z-index: 102;
  margin-left: 12px;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--clr-accent);
}
@media (max-width: 980px) {
  nav { display: none; }
  .btn-primary { margin-left: 0; }
  header .container { flex-wrap: nowrap; }
  .mobile-menu-toggle { display: block; }
  header .container { gap: 0; }
}

/* -----------------------
   MOBILE MENU
------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: var(--clr-secondary);
  z-index: 110;
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.74,.27,.26,.99);
  box-shadow: -10px 0 35px rgba(34,66,162,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--clr-primary);
  font-size: 2.3rem;
  margin: 16px 24px 0 0;
  align-self: flex-end;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--clr-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 42px 30px 0 36px;
  width: 100%;
}
.mobile-nav a {
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 7px;
  width: 100%;
  transition: background .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-vibrant1);
}

@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Make sure mobile menu covers entire viewport on small screens */
@media (max-width: 480px) {
  .mobile-nav { padding-left: 20px; padding-right: 10px; }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---------------------------------
   HERO SECTION
--------------------------------- */
.hero {
  background: linear-gradient(100deg, var(--clr-vibrant1) 30%, var(--clr-primary) 95%);
  color: #fff;
  box-shadow: var(--shadow-hero);
  padding: 56px 0 36px 0;
  margin-bottom: 0;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  max-width: 620px;
  color: #fff;
  gap: 22px;
  margin: 0 auto;
  align-items: flex-start;
}
.hero h1 { color: #fff; text-shadow: 0 3px 14px rgba(34,66,162,0.09); }
.hero .subheadline { color: #fff; font-size: 1.35rem; font-weight: 400; opacity: 0.97; }
.hero .btn-primary { background: var(--clr-accent); }
.hero .btn-primary:hover { background: var(--clr-vibrant2); color: #fff; }
@media (max-width: 768px) {
  .hero { padding: 30px 0 18px 0; }
  .hero .content-wrapper { max-width: 100%; padding: 0; gap: 18px; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------------------------------
   FEATURES / CARDS
--------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius-main);
  flex-basis: 300px;
  flex-grow: 1;
  padding: 28px 24px 24px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .20s, transform .17s;
  min-width: 250px;
  min-height: 170px;
}
.feature-grid li:hover, .feature-grid li:focus {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 8px 36px rgba(32,66,162,0.15);
}
.feature-grid img {
  width: 42px;
  margin-right: 4px;
  margin-top: 4px;
}
.feature-grid h3 {margin-bottom: 8px; color: var(--clr-primary);}
@media (max-width: 880px) {
  .feature-grid { gap: 12px; }
  .feature-grid li { min-width: 180px; padding: 18px 10px 14px 12px; }
  .feature-grid img { width: 38px; }
}
@media (max-width: 620px) {
  .feature-grid { flex-direction: column; gap: 14px; }
  .feature-grid li { width: 100%; min-width: 0; }
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-main);
  flex: 1 1 260px;
  box-shadow: var(--shadow-card);
  padding: 26px 22px 22px 22px;
  min-width: 240px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: box-shadow .19s, transform .17s;
}
.service-card:hover {
  box-shadow: 0 10px 36px rgba(34,66,162,0.14);
  transform: translateY(-2px) scale(1.03);
}
.service-card h3 { color:var(--clr-accent); margin-bottom:6px; }
.service-price {
  background: var(--clr-vibrant1);
  color: var(--clr-primary);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 14px;
  padding: 4px 14px;
  position: absolute;
  right: 16px; bottom: 16px;
  box-shadow: 0 1px 3px rgba(32,188,138,.10);
}
@media (max-width: 900px) {
  .service-cards { flex-direction: column; gap: 16px; }
  .service-card { width: 100%; min-width: 0; min-height: 0; padding-right: 16px; }
  .service-price { position: static; margin-top: 10px; }
}

/* ---------------------------------
   TABLES
--------------------------------- */
.pricing-table,
.comparison-table {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.pricing-table th,
.comparison-table th {
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px;
}
.pricing-table td,
.comparison-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--clr-secondary);
  color: var(--clr-dark);
}
.pricing-table tr:last-child td, .comparison-table tr:last-child td { border-bottom: none; }
.pricing-notes { font-size: .97rem; color: #5d678a; margin-top: 12px; }

/* ---------------------------------
   CTA BANNER
--------------------------------- */
.cta-banner {
  background: linear-gradient(95deg, var(--clr-vibrant2) 6%, var(--clr-primary) 94%);
  color: #fff;
  border-radius: var(--radius-main);
  margin-top: 16px;
  margin-bottom: 60px;
  box-shadow: 0 6px 30px rgba(34,66,162,.07);
  padding: 38px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 20px; font-size: 2rem; }
.cta-banner .btn-primary:hover { background: var(--clr-vibrant3); color: var(--clr-primary); }
@media (max-width: 768px) { .cta-banner { padding: 24px 0; margin-bottom: 32px; border-radius: 16px; } }

/* ---------------------------------
   TESTIMONIALS / CARDS
--------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  color: var(--clr-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 390px;
  min-width: 250px;
  border-left: 8px solid var(--clr-vibrant1);
  padding: 22px 24px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow .13s, transform .1s;
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--clr-accent);
  font-size: 1.05rem;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px rgba(32,188,138,0.12);
  transform: scale(1.02) translateY(-1px);
}
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .testimonial-slider, .testimonial-list { flex-direction: column; gap: 14px; }
}

.success-story-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.success-story {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  min-width: 240px;
  flex: 1 1 260px;
  padding: 24px 22px 18px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 8px solid var(--clr-vibrant2);
}
.story-meta {
  color: var(--clr-primary);
  font-weight: 700;
  font-size: .97rem;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .success-story-cards { flex-direction: column; gap: 12px; }
  .success-story { min-width: 0; }
}

/* ---------------------------------
   CLIENT LOGOS
--------------------------------- */
.client-logos {
  display: flex;
  gap: 34px;
  margin-top: 20px;
  align-items: center;
}
.client-logos img {
  width: 70px;
  filter: grayscale(0.20) brightness(.98) contrast(1.14);
  transition: filter .2s;
}
.client-logos img:hover { filter: grayscale(0) brightness(1.2); }
@media (max-width: 600px) {
  .client-logos { flex-direction: column; gap: 15px; }
}

/* ---------------------------------
   BLOG & POSTS
--------------------------------- */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.blog-toolbar input {
  border: 2px solid var(--clr-vibrant1);
  padding: 7px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1.04rem;
  outline: none;
  transition: border-color .14s;
}
.blog-toolbar input:focus {
  border-color: var(--clr-accent);
}
.categories-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  font-family: var(--font-display);
}
.categories-filter a {
  background: var(--clr-vibrant1);
  color: var(--clr-primary);
  border-radius: 16px;
  padding: 4px 13px;
  font-weight: 600;
  transition: background .17s;
}
.categories-filter a:hover { background: var(--clr-vibrant2); color: #fff; }

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.blog-post {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  flex: 1 1 290px;
  min-width: 210px;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .15s, transform .14s;
}
.blog-post:hover {
  box-shadow: 0 9px 36px rgba(32,188,138,.13);
  transform: scale(1.015) translateY(-2px);
}
.blog-post a {
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  transition: color .14s;
}
.blog-post a:hover { color: var(--clr-vibrant2); }
@media (max-width:800px) {
  .blog-grid { flex-direction: column; gap: 14px; }
  .blog-post { min-width: 0; }
}

/* ---------------------------------
   FORM/CONTACT/INFO SECTIONS
--------------------------------- */
.contact-info {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-main);
  padding: 26px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info img { height: 22px; width: 22px; margin-right: 9px; vertical-align: middle; }
.office-hours {
  background: var(--clr-vibrant1);
  color: var(--clr-primary);
  border-radius: var(--radius-main);
  padding: 18px 22px;
  margin-top: 14px;
  font-family: var(--font-display);
}

/* ---------------------------------
   TEAM / VALUE SECTIONS
--------------------------------- */
.team-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.team-member {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  flex: 1 1 220px;
  min-width: 175px;
  padding: 22px 16px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  transition: box-shadow .13s, transform .13s;
}
.team-member:hover {
  box-shadow: 0 8px 38px rgba(34,66,162,0.14);
  transform: translateY(-2px) scale(1.025);
}
.team-member img { width: 44px; margin-bottom: 7px; }
.team-member h3 { color: var(--clr-accent); font-size: 1.11rem; margin-bottom: 7px; }
@media (max-width: 850px) {
  .team-grid { flex-direction: column; gap: 12px; }
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.values-list li {
  background: var(--clr-bg);
  border-radius: 11px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
  box-shadow: 0 0 6px rgba(32,188,138,0.04);
}
.values-list img{width:30px;} 
@media (max-width: 700px) { .values-list { flex-direction: column; gap: 10px; } }

/* ---------------------------------
   CASE STUDIES
--------------------------------- */
.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.case-snippet {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px 20px;
  margin-bottom: 5px;
  min-width: 220px;
}
.impact-statistics {
  background: var(--clr-vibrant1);
  color: var(--clr-primary);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 15px;
  display: inline-block;
  padding: 5px 15px;
  margin-top: 9px;
}

/* ---------------------------------
   FOOTER
--------------------------------- */
footer {
  background: var(--clr-bg);
  border-top: 4px solid var(--clr-vibrant1);
  margin-top: 36px;
}
.footer-main nav {
  flex-direction: column;
  gap: 10px;
}
.footer-main nav a {
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: color .17s;
  margin-bottom: 0;
}
.footer-main nav a:hover, .footer-main nav a:focus {
  color: var(--clr-accent);
}
.footer-contact {
  color: #5d678a;
  font-size: .98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.footer-contact img { vertical-align: middle; width:18px; margin-right:8px; }
.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-brand img { width: 44px; } 
.footer-brand span {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-size: 1.09rem;
  font-weight: 700;
  display: inline-block;
}
.newsletter-signup {
  background: var(--clr-secondary);
  border-radius: var(--radius-main);
  padding: 18px 18px 14px 18px;
  box-shadow: 0 0 12px rgba(0,225,247,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-signup h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--clr-accent); margin-bottom: 3px; }
.newsletter-signup p { font-size: 1rem; color: #6e7abf; }

/* ---------------------------------
   Cookie Consent Banner
--------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--clr-bg);
  box-shadow: 0 -2px 22px rgba(32,66,162,0.09);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 14px;
  gap: 25px;
  border-radius: 20px 20px 0 0;
  transition: transform .32s cubic-bezier(.60,0,.6,1.5),opacity .21s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%) scale(0.98);
}
.cookie-banner.visible {
  opacity: 1; pointer-events: all; transform: translateY(0) scale(1);
}
.cookie-banner .cookie-text {
  max-width: 600px;
  color: var(--clr-primary);
  font-size: 1.05rem;
  margin-right: 22px;
}
.cookie-banner button {
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 9px 22px;
  margin-left: 8px;
  margin-top: 6px;
  box-shadow: var(--shadow-btn);
  transition: background .14s, transform .13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--clr-vibrant2);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.cookie-banner .cookie-settings {
  background: #fff;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
  margin-right: 6px;
  transition: border-color .18s, color .18s;
}
.cookie-banner .cookie-settings:hover {
  color: var(--clr-primary);
  border-color: var(--clr-vibrant2);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 5px 22px 5px;
  }
  .cookie-banner .cookie-text { margin-right: 0; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32,66,162,0.16);
  z-index: 3200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: 0 7px 44px rgba(34,66,162,0.09);
  max-width: 380px;
  width: 92vw;
  padding: 32px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalPop .4s cubic-bezier(.76,-0.08,.71,1.22) both;
}
@keyframes modalPop { 0% { transform: scale(0.89) translateY(32px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.cookie-modal .modal-content h2 {
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: 1.16rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
  font-size: 1rem;
}
.cookie-category .toggle {
  width: 36px; height: 22px;
  background: var(--clr-secondary);
  border-radius: 13px;
  border: 2px solid var(--clr-accent);
  position: relative;
  transition: background .15s, border-color .14s;
  outline: none;
  appearance: none;
}
.cookie-category .toggle:checked {
  background: var(--clr-accent);
  border-color: var(--clr-primary);
}
.cookie-category .toggle:before {
  content: '';
  display: block;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  box-shadow: 0 1px 3px rgba(32,66,162,0.12);
  transition: left .16s;
}
.cookie-category .toggle:checked:before {
  left: 15px;
  background: var(--clr-vibrant1);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 7px 14px;
  font-size: 1rem;
  margin: 0;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 14px;
  top: 9px;
  font-size: 1.65rem;
  color: var(--clr-accent);
  background: transparent;
}
.cookie-modal .close-modal:hover { color: var(--clr-primary); }

/* ---------------------------------
   SPACING ADJUSTMENTS & MISC
--------------------------------- */
main { min-height: 70vh; margin-bottom: 48px; }
.content-wrapper > * + * { margin-top: 0; }
.content-wrapper > h2:not(:first-child) { margin-top: 10px; }

ul, ol { margin-bottom: 4px; }
li + li { margin-top: 4px; }

/* Prevent card/content overlapping on small screens */
@media (max-width: 600px) {
  .card, .card-container, .feature-grid, .service-card, .testimonial-card, .success-story, .blog-post {
    margin-bottom: 18px;
  }
  .section { padding: 12px 2px; margin-bottom: 22px; }
}

/* Utility for hidden */
.sr-only { position: absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* Error and info alerts */
.alert {
  background: var(--clr-alert);
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(255,78,101,0.10);
  font-weight: 600;
}

/* SELECTED FLEXBOX LAYOUTS for MARKED HTML STRUCTURE */
.service-list, .marketplace-list, .benefits-list, .process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list li, .marketplace-list li, .benefits-list li, .process-steps li {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  flex: 1 1 220px;
  min-width: 180px;
  padding: 16px 18px 13px 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.process-steps img { width: 30px; margin-bottom: 7px; }
.process-steps strong { color: var(--clr-primary); }
@media (max-width:600px) {
  .service-list, .marketplace-list, .benefits-list, .process-steps { flex-direction: column; gap: 12px; }
}

/* ---------------------------------
   ACCESSIBLE FOCUS STYLES
--------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--clr-vibrant2);
  outline-offset: 2px;
  z-index: 2;
}

/* ---------------------------------
   ANIMATIONS & HOVERS
--------------------------------- */
.btn-primary, .btn-secondary, .cookie-banner button, .blog-post, .service-card, .testimonial-card, .success-story, .feature-grid li, .team-member {
  transition: box-shadow .15s, transform .15s, background .15s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(.98);
}

/* ---------------------------------
   COLORS & CONTRAST for testimonials
--------------------------------- */
.testimonial-card, .success-story, .testimonial-list .testimonial-card {
  background: #fff;
  color: var(--clr-dark);
  box-shadow: var(--shadow-card);
}
.testimonial-card p, .testimonial-card span,
.success-story p, .success-story .story-meta { color: var(--clr-dark); font-size: 1.07rem; }

/* High contrast for review/testimonial selector */
.testimonial-card strong {color: var(--clr-accent);}

/* -------------
   MISC
-------------- */
::-webkit-scrollbar { width: 9px; background: var(--clr-secondary); }
::-webkit-scrollbar-thumb { background: var(--clr-vibrant1); border-radius: 5px; }

/* BRAND VIBRANT ELEMENTS: section accents, icon highlights etc. */
.section-accent, .highlight {
  color: var(--clr-vibrant2);
  background: var(--clr-vibrant1);
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 6px;
}

/* Hide elements initially if necessary */
[hidden] { display: none !important; }

/*
  END OF CSS
*/
