/* HOA Letter Service — Custom component styles (Tailwind covers utilities) */

/* ===== ACCESSIBILITY ===== */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-nav:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.375rem;
  z-index: 9999;
  text-decoration: none;
}

/* ===== CTA BUTTONS ===== */
.cta-btn {
  display: inline-block;
  background-color: #c8922a;
  color: #1e3a5f;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(200, 146, 42, 0.35);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.cta-btn:hover {
  background-color: #e5a832;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 146, 42, 0.45);
}
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(200, 146, 42, 0.3);
}

.cta-btn-sm {
  display: inline-block;
  background-color: #c8922a;
  color: #1e3a5f;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.cta-btn-sm:hover {
  background-color: #e5a832;
  transform: translateY(-1px);
}
.cta-btn-sm:active {
  transform: translateY(0);
}

/* ===== TRUST BADGES ===== */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.trust-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #c8922a;
  flex-shrink: 0;
}

/* ===== PROBLEM CARDS ===== */
.problem-card {
  background: #ffffff;
  border: 1px solid #ddd8cf;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.problem-card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  transform: translateY(-2px);
}

.problem-stat {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #c8922a;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* ===== HOW-IT-WORKS STEPS ===== */
.step-card {
  background: #ffffff;
  border: 1px solid #ddd8cf;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.step-card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  background: #1e3a5f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(200, 146, 42, 0.1);
  border-radius: 0.75rem;
  margin: 0.75rem auto 1rem;
}

/* ===== LETTER PREVIEW ===== */
.letter-preview-card {
  background: #ffffff;
  border: 1px solid #ddd8cf;
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.12);
  overflow: hidden;
  font-family: 'Georgia', serif;
}

.letter-preview-header {
  background: #faf7f2;
  border-bottom: 1px solid #ddd8cf;
  padding: 2rem 2rem 1.5rem;
}

.letter-preview-body {
  padding: 1.5rem 2rem;
}

.letter-preview-footer {
  background: #faf7f2;
  border-top: 1px solid #ddd8cf;
  padding: 1rem 2rem;
}

.letter-line {
  display: block;
  color: #1e3a5f;
}
.letter-line-full     { width: 100%; }
.letter-line-three-quarter { width: 75%; }
.letter-line-two-thirds    { width: 66.667%; }
.letter-line-half     { width: 50%; }

.letter-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8888aa;
  text-transform: uppercase;
  font-family: 'Inter', system-ui, sans-serif;
}

.letter-citation-block {
  background: rgba(200, 146, 42, 0.06);
  border-left: 3px solid #c8922a;
  padding: 0.75rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  margin: 1rem 0;
}

.letter-para-blur {
  position: relative;
  overflow: hidden;
}
.letter-para-blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.75) 45%, #ffffff 100%);
  pointer-events: none;
}
.letter-para-blur .letter-line {
  height: 0.875rem;
  background: #ddd8cf;
  border-radius: 2px;
  display: block;
}

/* ===== SOCIAL PROOF ===== */
.stars {
  color: #c8922a;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #ddd8cf;
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  transform: translateY(-2px);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: #1e3a5f;
  color: #c8922a;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #ddd8cf;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e3a5f;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.faq-question:hover {
  background: rgba(30, 58, 95, 0.03);
}
.faq-question[aria-expanded="true"] {
  color: #a37520;
  border-bottom: 1px solid #ddd8cf;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: #8888aa;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.15s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #c8922a;
}

/* Grid-rows accordion — zero height when collapsed, natural height when open */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4a4a6a;
  transition: padding 0.28s ease;
}
.faq-answer.open .faq-answer-inner {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

/* ===== SECTION REVEAL ANIMATION ===== */
.section-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #c8922a 0%, #e5a832 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESPONSIVE: tiny screens ===== */
@media (max-width: 374px) {
  .cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  .trust-badge {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.875rem;
  }
  .problem-stat {
    font-size: 2rem;
  }
  .letter-preview-header,
  .letter-preview-body {
    padding: 1.25rem 1rem;
  }
}
