/* Nurtured Nest UI contract. Keep this file small and semantic. */
:root {
  --nn-primary: #3e6a7e;
  --nn-primary-deep: #315e72;
  --nn-primary-soft: #b9e6fe;
  --nn-ink: #2d2c26;
  --nn-muted: #66645d;
  --nn-surface: #fffbff;
  --nn-surface-warm: #fdf9f1;
  --nn-surface-soft: #f7f3eb;
  --nn-surface-deep: #ece8de;
  --nn-warm: #f4e6d2;
  --nn-shadow: 0 20px 48px -26px rgba(45, 44, 38, 0.28);
}

/* The public pages use Tailwind utilities; these semantic rules keep the visual scale consistent. */
#desktop-nav {
  min-height: 5.5rem;
}

#desktop-nav > div {
  min-height: 5.5rem;
}

#desktop-nav > div > a:first-child img {
  width: 6.5rem;
  height: 6.5rem;
  margin-block: -0.5rem;
}

#desktop-nav > div > a:first-child span {
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
}

#home {
  min-height: clamp(42rem, 88vh, 52rem);
  padding-top: 7rem;
  padding-bottom: 5rem;
}

#home > div {
  max-width: 80rem;
}

#home h1 {
  max-width: 11ch;
  margin-bottom: 2rem;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

#home h1 + p {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

#home .hero-fade-2 {
  gap: 1rem;
}

#home .hero-fade-2 a:first-child,
#contact a.cta-shimmer {
  min-height: 3.25rem;
  padding-inline: 2rem;
  font-size: 0.95rem;
}

#home .lg\:h-\[800px\] {
  height: min(72vh, 43rem);
}

#services,
#resources,
#faqs,
#testimonials {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

#services .text-center {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

#services .grid {
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

#services article {
  min-height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--nn-shadow);
}

#services article h3 {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 1.18;
}

#services article p,
#services article li,
#why-hire li {
  font-size: 0.98rem;
  line-height: 1.65;
}

#why-hire {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

#why-hire h2 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

#why-hire .grid {
  gap: clamp(2.5rem, 6vw, 6rem);
}

#resources h2,
#faqs h2,
#testimonials h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

#resources a {
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 2rem;
  border: 0;
  box-shadow: var(--nn-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#resources a:hover {
  border: 0;
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -24px rgba(62, 106, 126, 0.22);
}

#faqs .grid {
  gap: 1.25rem;
}

#faqs details {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--nn-shadow);
}

#faqs summary {
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  line-height: 1.35;
  list-style-position: inside;
}

#faqs details[open] summary {
  padding-bottom: 0.35rem;
}

#faqs details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

#faqs summary::marker {
  color: var(--nn-primary);
}

#testimonials blockquote {
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--nn-shadow);
}

#contact {
  padding-block: clamp(5rem, 9vw, 8rem);
}

footer {
  border-top: 0;
}

@media (max-width: 767px) {
  #desktop-nav,
  #desktop-nav > div {
    min-height: 4.75rem;
  }

  #desktop-nav > div {
    padding-inline: 1rem;
  }

  #desktop-nav > div > a:first-child img {
    width: 4.75rem;
    height: 4.75rem;
  }

  #desktop-nav > div > a:first-child span {
    font-size: 1.55rem;
  }

  #home {
    min-height: auto;
    padding-top: 6.25rem;
    padding-bottom: 4.5rem;
  }

  #home h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  #home .lg\:h-\[800px\] {
    height: 23rem;
  }

  #home .hero-fade-2 a:first-child,
  #contact a.cta-shimmer {
    width: 100%;
    text-align: center;
  }

  #services article,
  #resources a,
  #faqs details {
    border-radius: 2rem 1rem;
  }

  #why-hire h2 {
    max-width: none;
  }
}
