/* ============================================================
   Etsy SEO Audit — Warm Craft Theme
   Palette: cream bg, white cards, terracotta/rust CTAs, warm text
   Target audience: Etsy sellers (crafty, organic, handmade)
   ============================================================ */

/* --- Base --------------------------------------------------- */
html { scroll-behavior: smooth; }

::selection {
  background: rgba(194, 65, 12, 0.15);
  color: #1f1a14;
}

/* --- Gradient heading text ---------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- CTA Buttons -------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.25), 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.3), 0 2px 6px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
}
.cta-btn:active { transform: translateY(0); }

.cta-btn-sm {
  background: #c2410c;
  color: #ffffff;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.cta-btn-sm:hover { background: #9a3412; }

/* --- Urgency bar -------------------------------------------- */
.urgency-bar {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  color: #92400e;
  text-align: center;
  padding: 10px 16px;
}

/* --- Problem cards ------------------------------------------ */
.problem-card {
  background: #ffffff;
  border: 1px solid #e0d6c8;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.problem-card:hover {
  border-color: #c2410c;
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.08);
}
.problem-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

/* --- Audit cards -------------------------------------------- */
.audit-card {
  background: #ffffff;
  border: 1px solid #e0d6c8;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.audit-card:hover {
  border-color: #c2410c;
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.08);
}
.audit-number {
  font-size: 14px;
  font-weight: 700;
  color: #c2410c;
  background: rgba(194, 65, 12, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

/* --- Testimonial cards -------------------------------------- */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e0d6c8;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease;
}
.testimonial-card:hover {
  border-color: #d4a574;
}
.stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #9a3412;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- FAQ ---------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid #e0d6c8;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-weight: 600;
  font-size: 15px;
  color: #1f1a14;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.15s ease;
}
.faq-question:hover { color: #c2410c; }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #9b9085;
  transition: transform 0.25s ease, color 0.15s ease;
}
.faq-item.expanded .faq-chevron {
  transform: rotate(180deg);
  color: #c2410c;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}
.faq-item.expanded .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  color: #6b5e4f;
  font-size: 14px;
  line-height: 1.7;
}

/* --- Scroll reveal ------------------------------------------ */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero decorative background ----------------------------- */
#hero {
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(194, 65, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#hero > div {
  position: relative;
  z-index: 1;
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .animate-pulse { animation: none; }
}
