/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Burger → X icon animation */
.burger-line {
  position: absolute;
  width: 16px;
  height: 1px;
  background: #18181A;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-line:first-child  { transform: translateY(-5px); }
.burger-line:nth-child(2) { transform: translateY(0); }
.burger-line:last-child   { transform: translateY(5px); }

.is-open > .burger-line:first-child  { transform: rotate(45deg); }
.is-open > .burger-line:nth-child(2) { opacity: 0; }
.is-open > .burger-line:last-child   { transform: rotate(-45deg); }

/* ── Blog card inline link ── */
.blog-card-link {
  transition: color 0.15s ease;
}
.blog-card-link:hover {
  color: #18181A !important;
}
.blog-card-link:active {
  color: #18181A66 !important;
}

/* ── Audit curtain reveal ── */
.curtain-container {
}
/* Mobile */
.audit-problem-section {
  padding: 8px 8px 40px !important;
  gap: 60px !important;
}
.audit-problem-section .audit-header {
  padding: 24px 12px !important;
  gap: 12px !important;
}
.audit-problem-section .audit-headline {
  font-size: 24px !important;
  line-height: 130% !important;
  width: auto !important;
}
.audit-problem-section .audit-body {
  font-size: 15px !important;
  width: auto !important;
  color: #4A4A6A !important;
}
.audit-problem-section .audit-browser-wrap {
  padding: 0 !important;
  gap: 20px !important;
}
.audit-problem-section .audit-browser-wrap .eyebrow {
  padding-left: 12px !important;
}
.audit-problem-section .audit-footer {
  flex-direction: column !important;
  padding: 24px 12px 0 !important;
}
.audit-problem-section .audit-footer-text {
  font-size: 15px !important;
  max-width: none !important;
}
.audit-browser-frame {
  padding: 32px 28px 0 !important;
}
.audit-sticky-header {
  padding: 20px 16px 12px;
}
.audit-sticky-meta {
  display: none !important;
}
@media (min-width: 768px) {
  .audit-sticky-meta {
    display: flex !important;
  }
}
.audit-content-body {
  padding: 16px 16px 24px;
}
@media (min-width: 768px) {
  .audit-sticky-header {
    padding: 24px 32px 16px;
  }
  .audit-content-body {
    padding: 24px 32px 32px;
  }
}
.audit-problem-section .audit-footer {
  align-items: flex-start !important;
}
@media (min-width: 768px) {
  .audit-problem-section .audit-footer {
    align-items: flex-end !important;
  }
}
.audit-browser-frame .curtain-front img {
  height: 280px;
  object-fit: cover;
  object-position: top;
}
/* Tablet */
@media (min-width: 768px) {
  .audit-browser-frame .curtain-front img {
    height: auto;
    object-fit: initial;
  }
  .audit-problem-section {
    padding: 32px !important;
    gap: 120px !important;
  }
  .audit-problem-section .audit-header {
    padding: 0 !important;
    gap: 16px !important;
  }
  .audit-problem-section .audit-headline {
    font-size: 30px !important;
    width: 418px !important;
  }
  .audit-problem-section .audit-body {
    font-size: 15px !important;
    width: 371px !important;
    color: #18181AB3 !important;
  }
  .audit-problem-section .audit-browser-wrap {
    gap: 24px !important;
  }
  .audit-problem-section .audit-browser-wrap .eyebrow {
    padding-left: 0 !important;
  }
  .audit-problem-section .audit-footer {
    flex-direction: row !important;
    padding: 24px 0 0 !important;
  }
  .audit-browser-frame {
    padding: 32px 32px 0 !important;
  }
}
/* Desktop */
@media (min-width: 1024px) {
  .audit-problem-section {
    padding: 40px !important;
    gap: 160px !important;
  }
  .audit-problem-section .audit-header {
    gap: 24px !important;
  }
  .audit-problem-section .audit-headline {
    font-size: 36px !important;
    line-height: 120% !important;
    width: 418px !important;
  }
  .audit-problem-section .audit-body {
    width: 548px !important;
  }
  .audit-problem-section .audit-footer-text {
    max-width: 584px !important;
  }
  .audit-browser-frame {
    padding: 60px 80px 0 !important;
  }
}
/* Wide desktop */
@media (min-width: 1280px) {
  .audit-browser-frame {
    padding: 80px 120px 0 !important;
  }
}
@media (min-width: 1024px) {
  .audit-browser-frame {
    padding: 60px 80px 0 !important;
  }
}
@media (min-width: 1280px) {
  .audit-browser-frame {
    padding: 80px 120px 0 !important;
  }
}
.curtain-card {
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.curtain-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.curtain-front {
  position: relative;
  z-index: 2;
}
.curtain-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #18181A;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}
.curtain-handle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  will-change: top, left;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #18181A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s ease;
}
.curtain-handle-arrow {
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.curtain-handle-arrow-left {
  border-right: 5px solid #FCFCFD;
}
.curtain-handle-arrow-right {
  border-left: 5px solid #FCFCFD;
}
.curtain-back [data-audit-flip-target="scroller"] {
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
}
.curtain-back [data-audit-flip-target="scroller"]::-webkit-scrollbar {
  display: none;
}

/* ── Eyebrow label ── */
.eyebrow {
  font-family: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  line-height: 130%;
  color: #18181A99;
  text-transform: none;
  letter-spacing: normal;
}

/* ── Nav menu item hover ── */
.nav-menu-item {
  background: #FCFCFD;
  color: #18181A;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu-item:hover {
  background: #18181A;
  color: #FCFCFD;
}

/* ── Mobile menu link hover ── */
.mobile-menu-link {
  transition: background 0.15s ease;
}
.mobile-menu-link:hover {
  background: #E9E9F2;
}
.mobile-menu-link .menu-arrow {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mobile-menu-link:hover .menu-arrow {
  opacity: 1;
}

/* ── Hide scrollbar for carousels ── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ── Reveal animations ── */
.reveal-hidden {
  opacity: 0;
  transform: translateY(1.5rem);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 0;
    transform: none;
  }
  .revealed {
    transition-duration: 0.01ms;
  }
}
