/* Warm design of the home page. Only public/index.html loads this file.
   The --warm-* colors come from layout.css, which every page loads. */

/* ---------- Backgrounds ---------- */

#home {
  background: var(--warm-hero);
}

.home-band {
  margin: 0 8px;
  border-radius: 40px;
  background: var(--warm-peach);
}

.ig-band,
.dark .ig-band {
  background: transparent;
}

/* ---------- Cards ---------- */

.home-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--warm-card);
  box-shadow: var(--warm-card-shadow);
}

/* ---------- Service cards ---------- */

/* The entry animation fixes transform, so the hover lift uses the translate property. */
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--warm-card);
  box-shadow: var(--warm-card-shadow);
  transition: translate 0.2s ease-out;
}

.feature-card:hover {
  translate: 0 -4px;
}

.feature-icon-container {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--warm-peach);
}

.feature-icon-container img {
  width: 40px;
  height: 40px;
}

.dark .feature-description p {
  color: var(--warm-text-soft);
}

@media (max-width: 767px) {
  .features-grid {
    grid-auto-rows: auto;
    gap: 16px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    column-gap: 16px;
    padding: 20px;
  }

  .feature-icon-container {
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 16px;
  }

  .feature-card h3 {
    margin-bottom: 8px;
  }

  .feature-cta {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: none;
  }

  .feature-card:hover {
    translate: none;
  }
}

/* ---------- Steps ---------- */

.home-steps {
  display: grid;
  gap: 20px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.home-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #ea7e34;
  color: #0f0f23;
  font-size: 22px;
  font-weight: 800;
}

.home-details > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .home-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Services and what sets the firm apart ---------- */

#about p.flex > span:first-child {
  flex-shrink: 0;
}

.dark .home-card .text-body-color {
  color: var(--warm-text-soft);
}

@media (max-width: 1023px) {
  .home-illustration {
    display: none;
  }
}

/* ---------- Frequently asked questions ---------- */

#faq details {
  margin-bottom: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--warm-card);
  box-shadow: var(--warm-card-shadow);
}

#faq details[open] {
  padding-bottom: 12px;
}

#faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

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

#faq summary::after {
  content: "+";
  color: var(--warm-link);
}

#faq details[open] > summary::after {
  content: "\2212";
}

/* ---------- Contact and newsletter forms ---------- */

#contact .shadow-three {
  border-radius: 24px;
  background: var(--warm-card);
}

#contact input,
#contact select,
#contact textarea {
  border-radius: 12px;
}

#contact button[type="submit"],
#contact input[type="submit"] {
  border-radius: 999px;
}

/* ---------- Orange links that keep their contrast on cream and peach ---------- */

main a.text-\[\#EA7E34\] {
  color: var(--warm-link);
}
