/* ===========================
   CSS RESET + NORMALIZE (basic)
   =========================== */
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;
}
:root {
  --color-primary: #21264C;
  --color-secondary: #42CCE4;
  --color-accent: #FFFFFF;
  --color-bg: #F8F9FA;
  --color-text: #22272B;
  --color-muted: #EDEFF2;
  --color-neutral: #F5F6F8;
  --color-card: #fff;
  --color-shadow: rgba(33,38,76,0.06);
  --radius: 14px;
  --shadow: 0 4px 16px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

/* =======================
   TYPOGRAPHY & HEADINGS
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-text);
}
strong, b { font-weight: 600; }
.text-section h1, .text-section h2, .text-section h3 {
  color: var(--color-primary);
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* =====================
   FLEX CONTAINER CLASSES
   ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Section spacing per requirements */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* no abs pos for content */
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 275px;
  flex: 1 1 320px;
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  flex: 1 0 300px;
  margin-bottom: 20px;
  color: #1a2038;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  background: var(--color-accent);
  border-bottom: 1px solid var(--color-muted);
  position: sticky;
  top: 0;
  z-index: 300;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 18px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 2px;
  color: var(--color-primary);
  opacity: 0.94;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-neutral);
}
.cta-button {
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.17s, box-shadow 0.22s, color 0.22s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: #FFF;
  box-shadow: 0 6px 16px rgba(33,38,76,0.16);
}

/* Hide desktop nav on mobile + Responsive nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 8px;
  z-index: 501;
  transition: color 0.2s;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100%;
  background: var(--color-card);
  box-shadow: 0 4px 24px rgba(33,38,76,0.06);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.74,0.04,0.26,0.99);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 12px 20px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 22px;
  align-items: flex-start;
  padding-left: 32px;
  padding-bottom: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--color-primary);
  padding: 10px 0;
  border-radius: 4px;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-neutral);
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 2px;
  }
  .main-nav a, .cta-button {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .cta-button {
    margin-left: 0;
    padding: 12px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    padding: 10px 12px;
  }
}

/* ====================
   HERO SECTIONS & CTA
   ==================== */
.hero {
  background: linear-gradient(122deg, var(--color-neutral) 0%, var(--color-bg) 85%);
  padding-top: 48px;
  padding-bottom: 48px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 18px var(--color-shadow);
  margin-bottom: 36px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.hero h1 {
  font-size: 2.6rem;
  color: var(--color-primary);
}
.hero p {
  color: #555a65;
  font-size: 1.19rem;
  margin-bottom: 18px;
}
.hero .cta-button {
  margin-top: 12px;
}

/* ================
   FEATURES
   ================ */
.feature-grid, .solution-list, .solution-grid, .category-list, .product-overview-grid, .popular-post-highlights, .before-after-examples, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature {
  flex: 1 1 215px;
  min-width: 215px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.27s, transform 0.27s;
}
.feature img {
  width: 38px;
  margin-bottom: 10px;
}
.feature h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  font-weight: 600;
}
.feature p {
  color: #485055;
  font-size: 1rem;
}
.feature:hover {
  box-shadow: 0 8px 24px rgba(33,38,76,0.11);
  transform: translateY(-2px) scale(1.025);
}

/* ================
   SOLUTIONS / CATEGORY CARDS
   ================ */
.solution-item, .category-featured-item, .product-item, .blog-post, .popular-post-highlights > div, .before-after-examples > div {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  flex: 1 1 250px;
  min-width: 225px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.22s;
}
.solution-item:hover, .category-featured-item:hover, .product-item:hover, .blog-post:hover, .popular-post-highlights > div:hover, .before-after-examples > div:hover {
  box-shadow: 0 8px 24px rgba(33,38,76,0.13);
  transform: translateY(-2px) scale(1.020);
}
.product-item h2 {
  font-size: 1.35rem;
}
.product-tags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.product-tags li {
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 0.97em;
  list-style: none;
  font-family: var(--font-display);
}

/* ================
   TESTIMONIALS
   ================ */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.testimonial-card {
  flex: 1 1 320px;
  min-width: 270px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(33,38,76,0.11);
  padding: 28px 20px;
  align-items: flex-start;
  color: #151728;
  font-size: 1.1rem;
  position: relative;
}
.testimonial-card .star-rating {
  color: #fdc929;
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.testimonial-card p strong {
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
}

/* Make sure text always dark on light bg for accessibility */
.testimonial-card p {
  color: #22263a;
}

/* ============================
   BLOG & POST/LIST PREVIEWS
   ============================ */
.blog-categories {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-categories span {
  background: var(--color-muted);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 4px 16px;
  font-family: var(--font-display);
  font-size: 0.99em;
}
.blog-post-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-post {
  min-width: 220px;
  flex: 1 1 260px;
}
.blog-post h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
}
.blog-post a {
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 8px;
  display: inline-block;
  transition: color 0.21s;
}
.blog-post a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.popular-post-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.popular-post-highlights > div {
  flex: 1 1 260px;
  min-width: 220px;
}

/* ==================
   FOOTER
   ================== */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 60px;
  padding-top: 32px;
  padding-bottom: 36px;
}
footer .container {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.19rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #cfcfe0;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #eaeaef;
}
.footer-contact img {
  height: 18px;
  margin-right: 8px;
  vertical-align: -0.23em;
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-card);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(33,38,76,0.09);
  padding: 20px 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideUpCookie 0.6s cubic-bezier(0.67,0.01,0.57,1.02);
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-primary);
  font-size: 1.01rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .2s, box-shadow .18s;
  margin: 0 2px;
}
.cookie-accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-accept:hover {
  background: var(--color-primary);
}
.cookie-reject {
  background: #EAEAF2;
  color: var(--color-primary);
}
.cookie-reject:hover {
  background: #BBBCC5;
  color: #fff;
}
.cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,38,76,0.44);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.36s cubic-bezier(0.67,0.01,0.57,1.02);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(33,38,76,.18);
  padding: 40px 28px 24px;
  max-width: 380px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  text-align: left;
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-modal-content .category-toggle {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 12px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 2px 6px;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 20px 6vw 15px;
    max-width: 99vw;
    font-size: 1rem;
  }
}

/* ===================
   GENERAL ELEMENTS
   =================== */
.text-section {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===================
   LISTS, TABLES, ETC.
   =================== */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--color-card);
  margin: 18px 0;
}
thead tr, th {
  background: var(--color-muted);
}
th, td {
  padding: 10px 14px;
  border: 1px solid #ececec;
  font-size: 1rem;
}

/* =====================
   SPACING / FLEX HELPERS
   ===================== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}

/* =============================
   RESPONSIVE LAYOUT & FLEX ONLY!
   ============================= */
@media (max-width: 1000px) {
  .container {
    max-width: 95vw;
    padding-left: 12px; padding-right: 12px;
  }
  .footer-brand img {
    height: 24px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 6px; padding-right: 6px;
  }
  .solution-list, .feature-grid, .category-list, .popular-post-highlights, .before-after-examples {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 26px 7px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .text-section {
    padding: 18px 6px;
    font-size: 1rem;
  }
  .footer-brand img {
    height: 21px;
  }
  .solution-list,
  .feature-grid,
  .solution-grid,
  .category-list,
  .product-overview-grid,
  .popular-post-highlights,
  .before-after-examples,
  .blog-post-list {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav {
    display: none !important;
  }
  .footer-contact, .footer-brand, .footer-nav {
    align-items: flex-start;
    text-align: left;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider {
    gap: 12px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
  .footer-brand,
  .footer-contact,
  .footer-nav {
    font-size: 1rem;
  }
  .container {
    padding-left: 2vw; padding-right: 2vw;
  }
}

/* ===================
   MICRO-INTERACTIONS
   =================== */
.feature, .solution-item, .category-featured-item, .product-item, .blog-post, .popular-post-highlights > div, .testimonial-card, .card {
  transition: box-shadow 0.22s, transform 0.17s;
}
.feature:hover, .solution-item:hover, .category-featured-item:hover, .product-item:hover, .blog-post:hover, .popular-post-highlights > div:hover, .testimonial-card:hover, .card:hover {
  box-shadow: 0 9px 28px rgba(33,38,76,0.14);
  transform: translateY(-3px) scale(1.015);
}

.cta-button, .cookie-banner button, .cookie-modal-buttons button {
  transition: background 0.21s, color 0.21s, box-shadow 0.23s;
}

/* ==========================
   MISC / UTILITY
   ========================== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--color-neutral);
}
::-webkit-scrollbar-thumb {
  background: #D5D5E3;
  border-radius: 10px;
}

/* ==========================
   END: NO grid or column props are used!
   ========================== */
