/* =============================================
   XHIRE LANDING PAGE — style.css
   Taste-skill: DESIGN_VARIANCE 7 | MOTION 5 | DENSITY 3
   Fonts: Bricolage Grotesque (display) + Outfit (body)
   ============================================= */

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

/* === Skip to content (accessibility) === */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #D4AF37;
  color: #1A1400;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 8px 8px;
  z-index: 999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* === text-wrap: balance on all headings === */
h1, h2, h3, h4 {
  text-wrap: balance;
}

/* === Hero grain texture (subtle, fixed pseudo-element) === */
.hero-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* === Gold CTA Button === */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D4AF37;
  color: #1A1400;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px -2px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background-color: #E8CC6A;
  box-shadow: 0 4px 20px -4px rgba(212, 175, 55, 0.45);
}

.btn-gold:active {
  transform: scale(0.98) translateY(1px);
  box-shadow: 0 1px 6px -2px rgba(212, 175, 55, 0.2);
}

/* === Form Input (dark variant) === */
.form-input {
  width: 100%;
  background-color: #2A2200;
  border: 1px solid #3A2E00;
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  color: #F5F0E0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.925rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(245, 240, 224, 0.25);
}

.form-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.5);
}

/* === Success Box === */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background-color: rgba(212, 175, 55, 0.07);
  max-width: 440px;
}

/* === Competition Badges === */
.badge-low {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-low::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #4ade80;
}

.badge-medium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.badge-medium::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #facc15;
}

.badge-high {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.badge-high::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #f87171;
}

/* === Job Card Stack — baseline positioning === */
.job-card {
  will-change: transform, opacity, box-shadow;
  backface-visibility: hidden;
  transform-origin: center bottom;
}

/* === Label Tags === */
.label-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8932A;
}

.label-tag-dark {
  color: rgba(212, 175, 55, 0.7);
}

/* === Pain Section Layout === */
.pain-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .pain-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .pain-row-flip {
    flex-direction: row-reverse;
  }
}

.pain-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: rgba(212, 175, 55, 0.1);
  user-select: none;
  flex-shrink: 0;
  width: clamp(100px, 15vw, 160px);
  text-align: right;
}

@media (max-width: 767px) {
  .pain-num {
    font-size: 4rem;
    text-align: left;
    width: auto;
  }
}

.pain-row-flip .pain-num {
  text-align: left;
}

/* === Step Cards === */
.step-card {
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 767px) {
  .step-card {
    padding: 1.75rem 1.5rem;
  }
}

.step-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.35);
  letter-spacing: -0.03em;
}

/* === Feature / Benefit Blocks === */
.benefit-featured {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(28, 28, 28, 0.06);
}

@media (min-width: 768px) {
  .benefit-featured {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.benefit-featured-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background-color: rgba(212, 175, 55, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item {
  padding: 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .benefit-item {
    padding: 2rem 2rem 2rem 0;
  }

  .benefit-item.md\:border-l {
    padding-left: 2rem;
    padding-right: 0;
  }
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background-color: rgba(212, 175, 55, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === FAQ Accordion === */
.faq-item {
  padding: 0;
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1C1C1C;
  transition: color 0.18s ease;
  user-select: none;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; }

.faq-summary:hover { color: #B8932A; }

details[open] .faq-summary { color: #B8932A; }

.faq-chevron {
  flex-shrink: 0;
  color: rgba(28, 28, 28, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  color: #B8932A;
}

.faq-body {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.7;
  padding-bottom: 1.25rem;
  max-width: 62ch;
}

/* === Scroll Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Stat block hover === */
.stat-block {
  transition: transform 0.2s ease;
}

/* === Section ambient depth (light sections) === */
.section-depth {
  position: relative;
}

.section-depth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-depth > * {
  position: relative;
  z-index: 1;
}

/* === FAQ 2-column editorial layout === */
.faq-grid {
  display: flex;
  flex-direction: column;
}

.faq-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(28, 28, 28, 0.07);
}

@media (min-width: 768px) {
  .faq-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.faq-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.5);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.faq-a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.975rem;
  color: #4B5563;
  line-height: 1.75;
}

/* === Nav smooth background on scroll === */
nav.scrolled {
  box-shadow: 0 1px 24px -4px rgba(0, 0, 0, 0.3);
}

/* === Focus ring for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
details summary:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Mobile padding fix for sections === */
@media (max-width: 640px) {
  .max-w-6xl { padding-left: 1.25rem; padding-right: 1.25rem; }
  .max-w-2xl { padding-left: 1.25rem; padding-right: 1.25rem; }
  .max-w-xl  { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* === Animate pulse override for subtlety === */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.animate-pulse {
  animation: subtle-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
