/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@font-face {
  font-family: Staatliches;
  src: url("https://cdn.prod.website-files.com/67208f30550b8df208a02ea9/68381cc931de7271d0182360_Staatliches-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("https://cdn.prod.website-files.com/67208f30550b8df208a02ea9/68381cefed040101afce422a_PlusJakartaSans-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f7f9ff;
  --color-white: #ffffff;

  --color-text-main: #495766;
  --color-text-dark: #094067;
  --color-text-light: #7c8b9b;

  --color-primary: #005dd5;
  --color-primary-light: #e3edfe;

  --color-red: #db4437;
  --color-green: #09ff00;
  --color-yellow: #ffd400;

  --radius: 0.5rem;
  --border-color: #e4ebf3;

  --font-heading: "Staatliches", Verdana, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;

  /* Spacing Scale (Desktop Default) */
  --space-xs: 10px; /* Smallest gaps */
  --space-s: 20px; /* Standard padding, small margins */
  --space-m: 30px; /* Card gaps */
  --space-l: 40px; /* Grid gaps, large margins */
  --space-xl: 60px; /* Split gaps, panel padding */
  --space-xxl: 80px; /* Section padding */

  /* Dot Pattern Variables */
  --dot-bg: #ffffff;
  --dot-color: #8291a0;
  --dot-size: 1px;
  --dot-space: 22px;
}

/* Responsive Spacing Adjustment */
@media screen and (max-width: 767px) {
  :root {
    --space-l: 30px;
    --space-xl: 40px;
    --space-xxl: 60px;
  }
}

/*need to delete this later & fix arrows*/
.stage-arrow {
  display: none !important;
}

/* =========================================
     2. RESET & BASE
     ========================================= */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  /* background: linear-gradient(
        90deg,
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    linear-gradient(
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    var(--dot-color); */
  background: /* 1. Side Fade Overlay (Adjusted for smaller area) */ linear-gradient(
      to right,
      var(--dot-bg) 0%,
      transparent 10%,
      /* Fade completes very quickly at 10% width */ transparent 90%,
      /* Fade starts very late at 90% width */ var(--dot-bg) 100%
    ),
    /* 2. Vertical Grid Lines */
      linear-gradient(
        90deg,
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    /* 3. Horizontal Grid Lines */
      linear-gradient(
        var(--dot-bg) calc(var(--dot-space) - var(--dot-size)),
        transparent 1%
      )
      center / var(--dot-space) var(--dot-space),
    /* 4. Base Dot Color */ var(--dot-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul {
  padding-left: var(--space-s);
}

/* =========================================
     3. TYPOGRAPHY
     ========================================= */
h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--color-text-dark);
}

h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 400;
}
h2 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin-bottom: var(--space-xs);
  margin-top: var(--space-xs);
  color: var(--color-text-main);
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.text-light {
  color: var(--color-text-light);
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-10 {
  margin-bottom: 10px !important;
}
.mb-20 {
  margin-bottom: var(--space-s) !important;
}
.mb-40 {
  margin-bottom: var(--space-l) !important;
}
.mb-50 {
  margin-bottom: 50px !important; /* Keeping 50 as distinct visual break */
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-10 {
  margin-top: var(--space-xs) !important;
}
.mt-20 {
  margin-top: var(--space-s) !important;
}
.mt-40 {
  margin-top: var(--space-l) !important;
}
.mt-50 {
  margin-top: 50px !important; /* Keeping 50 as distinct visual break */
}
.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}
.pt-0 {
  padding-top: 0 !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}
.p-0 {
  padding: 0 !important;
}
.p-xs {
  padding: var(--space-xs) !important;
}
.p-s {
  padding: var(--space-s) !important;
}
.p-m {
  padding: var(--space-m) !important;
}
.p-l {
  padding: var(--space-l) !important;
}
.p-xl {
  padding: var(--space-xl) !important;
}
.p-xxl {
  padding: var(--space-xxl) !important;
}
/* Tags */
.tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 400;
}
.tag-red {
  background: var(--color-red);
  color: var(--color-white);
}
.tag-green {
  background: var(--color-green);
  color: var(--color-text-dark);
}
.tag-yellow {
  background: var(--color-yellow);
  color: black;
}
.tag-blue {
  background: var(--color-primary-light);
  color: var(--color-text-dark);
}
.case-study-tag {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.no-box-shadow,
.no-box-shadow img {
  box-shadow: none !important;
}
/* =========================================
     4. BUTTONS
     ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(0, 93, 213, 0.3);
}
.btn-secondary {
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-small {
  padding: 8px 16px;
}
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.text-center .btn-group {
  justify-content: center;
}

/* =========================================
     5. LAYOUT COMPONENT: WRAPPERS
     ========================================= */
.section {
  padding: var(--space-xxl) var(--space-s);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.bg-panel {
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-l);
  margin: var(--space-l) 0;
}

/* =========================================
     6. LAYOUT COMPONENT: FLEX SPLIT
     ========================================= */
.split-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

.split-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-media {
  width: 100%;
  position: relative;
}
.split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.split-reverse {
  flex-direction: row-reverse;
}

/*  =========================================
     7. LAYOUT COMPONENT: CARDS & LISTS
    ========================================= */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  justify-content: center;
}

.card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-width: 280px;
}

.col-3 .card {
  flex-basis: calc(33.333% - var(--space-m));
}

/* 4 Columns */
.col-4 .card {
  /* Calc: (100% - (3 gaps * 30px)) / 4 items = 22.5px */
  flex-basis: calc(25% - 22.5px);
  min-width: 220px;
}

.grid-2x2 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  justify-content: center;
}

.grid-item {
  width: calc(50% - (var(--space-l) / 2));
  min-width: 300px;
  margin-bottom: var(--space-s);
}

.text-left .grid-item {
  text-align: left;
  align-items: flex-start;
}
.text-center .grid-item {
  text-align: center;
  align-items: center;
}
.text-right .grid-item {
  text-align: right;
  align-items: flex-end;
}

/*  =========================================
    8. FOOTER
  ========================================= */

.footer {
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
  padding: 50px var(--space-s);
  text-align: center;
}

.footer-links a {
  margin: 0 15px;
  font-weight: 600;
}
/* =========================================
   9. QUOTES
   ========================================= */
/* Base Quote Structure (Layout Only) */
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: var(--space-m);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.quote-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: var(--space-s);
  font-style: italic;
  flex-grow: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto; /* Pushes author to bottom */
}

.quote-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background-color: #ccc; /* Placeholder */
  object-fit: cover;
}

.quote-meta h5 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-dark);
}
.quote-meta span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: block;
}

/* --- VARIATION 1: BOXED (Classic) --- */
/* Standard white card with border */
.quote-boxed {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
}

/* --- VARIATION 2: BUBBLE (Friendly) --- */
/* Solid background color, no border */
.quote-bubble {
  background-color: var(--color-primary-light);
  border: 1px solid transparent;
}
.quote-bubble .quote-text {
  color: var(--color-text-dark);
}

/* --- VARIATION 3: LEFT ACCENT (Minimal) --- */
.quote-minimal {
  background: var(--color-white);
  padding-left: var(--space-m);
  border: 1px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
}
/* =========================================
   MEDIA CARDS (New Addition)
   ========================================= */

/* Modifier to remove default card padding so images sit flush */
.card-media {
  padding: 0;
  overflow: hidden; /* Ensures image respects border-radius */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-media:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Image Containers */
.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card Footer for links/dates */
.card-footer {
  margin-top: auto;
  padding-top: var(--space-s);
}

.card-link {
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link:hover {
  text-decoration: underline;
}

/* --- Variation: Horizontal Card --- */
.card-horizontal {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

.card-horizontal .card-img-side {
  width: 40%;
  min-width: 200px;
  object-fit: cover;
  border-right: 1px solid var(--border-color);
  border-bottom: none;
}

/* --- Variation: Overlay/Case Study Card --- */
.card-overlay {
  height: 400px;
  padding: 0;
  border: none;
  justify-content: flex-end;
  position: relative;
  color: var(--color-white);
  border: 1px solid var(--border-color);
}

.card-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.card-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 50%;
  z-index: 1;
}

.card-overlay .card-body {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
}
.card-overlay h4,
.card-overlay p {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-overlay:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments for horizontal card */
@media screen and (max-width: 767px) {
  .card-horizontal {
    flex-direction: column;
  }
  .card-horizontal .card-img-side {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}
/* =========================================
   13. Stats, Comparison, CTA
   ========================================= */

/* --- Component: Stats Bar --- */
.stats-section {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-l);
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-yellow); /* Pop color */
  margin-bottom: 5px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--base--light-blue);
  font-weight: 500;
}

/* --- Component: Comparison Table (Us vs Them) --- */
.comparison-wrapper {
  display: flex;
  gap: var(--space-m);
  align-items: stretch;
}

.comparison-col {
  flex: 1;
  padding: var(--space-l);
  border-radius: var(--radius);
}

/* The "Bad" Column */
.col-neutral {
  background: var(--color-white);
  border: 1px solid var(--border-color);
}
.col-neutral h3 {
  color: var(--color-text-light);
  font-size: 1.25rem;
}

/* The "Good" Column */
.col-highlight {
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}
.col-highlight h3 {
  color: var(--color-primary);
  font-size: 1.5rem; /* Slightly larger */
}

/* Check/Cross Lists */
.comp-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-s);
}

.comp-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1rem;
  align-items: flex-start;
}

.icon-cross {
  filter: grayscale(1) opacity(0.5);
}
.icon-check {
  color: var(--color-green);
  font-weight: bold;
}

/* --- Component: Boxed CTA Banner --- */
.cta-banner {
  background-color: var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-l);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  /* Adding a subtle pattern overlay using your CSS variables */
  background-image: radial-gradient(
    circle at 10% 10%,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-s);
}
.cta-banner p {
  color: var(--base--lighter-blue);
  max-width: 600px;
  margin: 0 auto var(--space-l);
}

/* Button Override for dark background */
.btn-inverse {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
}
.btn-inverse:hover {
  background: var(--color-white);
  transform: translateY(-3px);
}

/* Responsive Fixes */
@media screen and (max-width: 767px) {
  .comparison-wrapper {
    flex-direction: column;
  }
  .stats-grid {
    gap: var(--space-xl);
  }
}

/* =========================================
   Forms, Timeline, Features
   ========================================= */

/* --- Component: Lead Magnet / Newsletter --- */
.lead-wrapper {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-l);
  display: flex;
  align-items: center;
  gap: var(--space-l);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.lead-content {
  flex: 1;
}

.lead-form {
  flex: 1;
  display: flex;
  gap: 10px;
}

/* Basic Form Inputs (New to your system) */
.input-field {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fcfcfc;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

/* --- Component: Vertical Timeline (Process) --- */
.timeline-wrapper {
  position: relative;
  padding-left: 30px;
  max-width: 800px;
  margin: 0 auto;
}

/* The vertical line */
.timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 7px; /* Centers line with the 16px dots */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-l);
}

.timeline-marker {
  position: absolute;
  left: -30px;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  margin-top: 6px; /* visual alignment with text title */
}

.timeline-date {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* --- Component: Compact Feature Grid --- */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-s);
}

.compact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-white);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary-light);
}

.compact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: bold;
  flex-shrink: 0;
}

.compact-text strong {
  display: block;
  color: var(--color-text-dark);
  line-height: 1.2;
}
.compact-text span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Responsive */
@media screen and (max-width: 767px) {
  .lead-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-form {
    flex-direction: column;
  }
}

/* =========================================
     RESPONSIVE
     ========================================= */
@media screen and (max-width: 991px) {
  .split-wrapper {
    gap: var(--space-l);
  }
  h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 767px) {
  .split-wrapper {
    flex-direction: column;
  }
  .split-reverse {
    flex-direction: column-reverse;
  }

  .split-col,
  .grid-item,
  .card {
    width: 100%;
    flex-basis: 100%;
    max-width: none;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
