/* ============================================================
   Get in Touch — CTA buttons
   Site-wide CTA accent color: deep CTA blue (#2658fa), the exact
   brand blue provided for this project. Used for every button-style
   CTA across the site.
   ============================================================ */

.cta-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #fff;
  background-color: #2658fa;
  border: 2px solid #2658fa;
  border-radius: 100px;
  padding: 12px 26px;
  font-family: Generalsans, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.cta-nav:hover {
  background-color: #000;
  border-color: #000;
}

@media (max-width: 479px) {
  .cta-nav {
    padding: 10px 16px;
    font-size: 12px;
  }
}

.cta-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  color: #fff;
  background-color: #2658fa;
  border: 2px solid #2658fa;
  border-radius: 100px;
  padding: 22px 40px;
  font-family: Generalsans, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.cta-hero:hover {
  background-color: #000;
  border-color: #000;
}

/* ============================================================
   Sticky glass header
   Permanent glass treatment (not scroll-triggered): the header now
   pushes page content down by its own height (see body padding-top
   below) instead of overlapping the hero the way the original
   transparent 12em bar did, so there's nothing left for it to
   "blend into" at scroll position 0 — an always-on glass surface
   reads more intentional than a see-through bar floating over flat
   page background.
   ============================================================ */

.navbar-wrapper {
  z-index: 500;
}

.navbar {
  height: 80px !important;
  background-color: rgba(248, 247, 245, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

body {
  padding-top: 80px;
}

@media (max-width: 767px) {
  .navbar {
    height: 70px !important;
  }
  body {
    padding-top: 70px;
  }
}

/* In-page anchor targets need scroll-margin so the fixed header doesn't cover them */
#work {
  scroll-margin-top: 80px;
}
@media (max-width: 767px) {
  #work {
    scroll-margin-top: 70px;
  }
}

/* ============================================================
   404 page
   ============================================================ */

.error-page-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 24px;
}

.error-page-section .content-wrapper {
  text-align: center;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.error-page-eyebrow {
  font-family: Generalsans, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2658fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* ============================================================
   About page — inline CTAs (replaces the old Webflow email-gate
   form and adds a CTA under the intro paragraph)
   ============================================================ */

.about-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 80px 24px;
}

.about-cta-inline {
  margin-top: 32px;
}

/* ============================================================
   Contact page — two-column layout (form + stacked cards)
   ============================================================ */

.contact-header {
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}
/* Webflow's .content-wrapper hardcodes text-align:left + align-items:flex-start —
   override both so the heading actually centers instead of just its box. */
.contact-header .content-wrapper {
  text-align: center;
  align-items: center;
}
.contact-header .index-header-heading {
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background: #fff;
  border: 2px solid #1c1c1c;
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}
@media (max-width: 479px) {
  .contact-card {
    padding: 28px 20px;
  }
}

.contact-card-title {
  font-family: Generalsans, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0 0 8px;
}

.contact-card-sub {
  font-family: Generalsans, sans-serif;
  font-size: 15px;
  color: #5c5c5c;
  line-height: 1.5;
  margin: 0 0 28px;
}

/* 120px of breathing room before the footer */
.contact-cards-section {
  padding-bottom: 120px;
}

#contact-form .content-wrapper.form {
  margin-bottom: 20px;
}

.contact-form-success,
.contact-form-error {
  display: none;
  font-family: Generalsans, sans-serif;
  font-size: 15px;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}
.contact-form-success.is-visible,
.contact-form-error.is-visible {
  display: block;
}
.contact-form-success {
  background: #85eca9;
  color: #1c1c1c;
}
.contact-form-error {
  background: #ffdede;
  color: #1c1c1c;
}

/* ============================================================
   Case study images — contained white cards, not full-bleed.
   Images keep their native 4:3 proportions (no stretching); the
   card just frames them at a sane reading width instead of 100vw.
   ============================================================ */

.case-image-frame {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px;
}
@media (max-width: 767px) {
  .case-image-frame {
    padding: 60px 20px;
  }
}

.case-image-card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(28, 28, 28, 0.08);
}
.case-image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
@media (max-width: 479px) {
  .case-image-card {
    border-radius: 16px;
    padding: 10px;
  }
  .case-image-card img {
    border-radius: 10px;
  }
}

/* Case study text content — centered column, tighter section rhythm,
   and card-specific type sizes (distinct from the shared heading-small
   / main-paragraph classes those are based on, which are reused
   elsewhere on the site). */
.case-content-col {
  margin: 0 auto;
}

.case-section-pad {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (max-width: 767px) {
  .case-section-pad {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Matched to .main-paragraph.text-medium's specificity (2 classes) so
   these overrides actually win regardless of source order. */
.text-medium.case-prose {
  font-weight: 400;
}

.heading-small.case-detail-card-title {
  font-size: 26px;
}

.text-medium.case-detail-card-body {
  font-size: 22px;
  font-weight: 400;
}

/* ============================================================
   Page headers — case study detail pages + /case-studies + /blog
   Big heading, thin divider, 4-column meta row (label + value),
   all in Generalsans (the site's real heading font — no Vollkorn,
   no uppercase transform).
   ============================================================ */

.case-header-summary {
  margin: 16px 0 0;
  max-width: 700px;
}

.case-meta-divider {
  width: 100%;
  height: 1px;
  background: #e2e2e2;
  margin: 32px 0 24px;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 479px) {
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
}

.case-meta-label {
  font-family: Generalsans, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 6px;
}

.case-meta-value {
  font-family: Generalsans, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #5c5c5c;
}

.case-meta-value a {
  color: #2658fa;
  font-weight: 600;
  text-decoration: none;
}
.case-meta-value a:hover {
  text-decoration: underline;
}

/* Index-page hero header (/case-studies, /blog): replaces the old
   small all-caps .detail-text H1 with a real page-title treatment. */
.index-header-heading {
  font-family: Generalsans, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #1c1c1c;
  line-height: 1.15;
  margin: 0 0 16px;
}
@media (max-width: 767px) {
  .index-header-heading {
    font-size: 32px;
  }
}

/* ============================================================
   Case studies index page
   ============================================================ */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.case-card:hover {
  border-color: #494949;
  transform: translate(0, -5px);
}

.case-card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e9ea;
}

.case-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card-body {
  padding: 20px 16px 16px;
}

.case-card-title {
  font-family: Generalsans, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  font-family: Generalsans, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5c5c5c;
  background: #f0f0f0;
  border-radius: 100px;
  padding: 5px 12px;
}

/* ============================================================
   Footer
   Oversized name treatment reuses the site's own giant-wordmark
   font stack (Impact/Haettenschweiler/Franklin Gothic Bold — the
   same stack behind the homepage's huge "STEFAN" heading) sized
   down to fit two words, rather than introducing a new font.
   ============================================================ */

.site-footer {
  background: #1c1c1c;
  color: #fff;
  padding: 180px 60px 60px;
  overflow: hidden;
}

.footer-cta-heading {
  font-family: Generalsans, sans-serif;
  font-size: 101px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  max-width: none;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2658fa;
  text-decoration: none;
  transition: color .25s ease;
}
.footer-cta-link:hover {
  color: #ffe837;
}
.footer-cta-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.footer-cta-link:hover .footer-cta-arrow {
  transform: translateX(8px);
}

.footer-subtext {
  font-family: Generalsans, sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin: 28px 0 0;
}

.site-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 72px 0 96px;
}

.site-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 16px 32px;
  font-family: Generalsans, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.site-footer-cta.solid {
  background: #2658fa;
  border: 2px solid #2658fa;
  color: #fff;
}
.site-footer-cta.solid:hover {
  background: #000;
  border-color: #000;
}
.site-footer-cta.outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.site-footer-cta.outline:hover {
  background: #fff;
  color: #1c1c1c;
  border-color: #fff;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer-nav a {
  font-family: Generalsans, sans-serif;
  font-size: 17px;
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity .2s;
}
.site-footer-nav a:hover {
  opacity: 1;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer-social a {
  font-family: Generalsans, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity .2s;
}
.site-footer-social a:hover {
  opacity: 1;
}

.site-footer-copyright {
  font-family: Generalsans, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 40px;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 96px 24px 48px;
  }
  .footer-cta-heading {
    font-size: 32px;
  }
  .site-footer-ctas {
    flex-direction: column;
    margin: 48px 0 64px;
  }
  .site-footer-cta {
    width: 100%;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Blog — index grid + article prose
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover {
  border-color: #494949;
  transform: translate(0, -5px);
}

.blog-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e9ea;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-category {
  font-family: Generalsans, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #2658fa;
}

.blog-card-date {
  font-family: Generalsans, sans-serif;
  font-size: 12px;
  color: #8a8a8a;
}

.blog-card-title {
  font-family: Generalsans, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-family: Generalsans, sans-serif;
  font-size: 14px;
  color: #5c5c5c;
  line-height: 1.5;
  margin: 0 0 16px;
}

.blog-card-readmore {
  font-family: Generalsans, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1c1c1c;
}

.article-prose {
  max-width: 760px;
  margin: 0 auto;
}

.article-h2 {
  font-family: Generalsans, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #1c1c1c;
  margin: 48px 0 16px;
}

.article-prose > .article-h2:first-child {
  margin-top: 0;
}

.article-p {
  font-family: Generalsans, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0 0 20px;
}

.article-p a {
  color: #2658fa;
  font-weight: 600;
}

.article-ul {
  margin: 0 0 20px;
  padding-left: 24px;
}
.article-ul li {
  font-family: Generalsans, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a3a;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .article-h2 {
    font-size: 22px;
    margin: 36px 0 14px;
  }
  .article-p, .article-ul li {
    font-size: 16px;
  }
}
