/*
 * NOVA shared component styles.
 * Global reusable components only — never page-specific overrides.
 */

/* FAQ --------------------------------------------------------------------- */

.nova-faq {
  --nova-faq-border: rgba(12, 39, 34, .16);
  --nova-faq-copy: #53645f;
  width: 100%;
}

.nova-faq__header {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.nova-faq__header .nova-eyebrow {
  margin-bottom: 18px;
}

.nova-faq__title {
  margin-bottom: 0;
  color: var(--nova-ink);
  font-family: var(--nova-display);
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}

.nova-faq__items {
  border-top: 1px solid var(--nova-faq-border);
}

.nova-faq__item {
  margin: 0;
  border-bottom: 1px solid var(--nova-faq-border);
}

.nova-faq__question {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  color: var(--nova-ink);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.nova-faq__question::-webkit-details-marker {
  display: none;
}

.nova-faq__question-text {
  font-family: var(--nova-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.nova-faq__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--nova-faq-border);
  border-radius: 50%;
}

.nova-faq__toggle::before,
.nova-faq__toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  background: var(--nova-gold);
  transition: transform 180ms var(--nova-ease);
}

.nova-faq__toggle::after {
  transform: rotate(90deg);
}

.nova-faq__item[open] .nova-faq__toggle::after {
  transform: rotate(0deg);
}

.nova-faq__answer {
  max-width: 780px;
  padding: 0 68px 28px 0;
  color: var(--nova-faq-copy);
  font-size: 1rem;
  line-height: 1.75;
}

.nova-faq__answer > :last-child {
  margin-bottom: 0;
}

.nova-faq__answer a {
  color: var(--nova-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nova-section--ink .nova-faq {
  --nova-faq-border: rgba(242, 238, 233, .18);
  --nova-faq-copy: rgba(242, 238, 233, .72);
}

.nova-section--ink .nova-faq__title,
.nova-section--ink .nova-faq__question,
.nova-section--ink .nova-faq__answer a {
  color: var(--nova-ivory);
}

/* Forminator -------------------------------------------------------------- */

.nova-form .forminator-ui,
.nova-contact-form .forminator-ui {
  font-family: var(--nova-sans) !important;
}

.nova-form .forminator-label,
.nova-contact-form .forminator-label {
  margin-bottom: 8px !important;
  color: var(--nova-ink) !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

.nova-form .forminator-input,
.nova-form .forminator-textarea,
.nova-form .forminator-select2 + .forminator-select,
.nova-contact-form .forminator-input,
.nova-contact-form .forminator-textarea {
  min-height: 52px !important;
  border: 1px solid rgba(12, 39, 34, .22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nova-ink) !important;
  box-shadow: none !important;
  font-family: var(--nova-sans) !important;
  font-size: 1rem !important;
}

.nova-form .forminator-textarea,
.nova-contact-form .forminator-textarea {
  min-height: 150px !important;
  resize: vertical;
}

.nova-form .forminator-input:focus,
.nova-form .forminator-textarea:focus,
.nova-contact-form .forminator-input:focus,
.nova-contact-form .forminator-textarea:focus {
  border-color: var(--nova-gold) !important;
  outline: 2px solid rgba(197, 160, 89, .25) !important;
  outline-offset: 1px;
}

.nova-form .forminator-button-submit,
.nova-contact-form .forminator-button-submit {
  min-height: 50px !important;
  padding: 13px 24px !important;
  border: 1px solid var(--nova-ink) !important;
  border-radius: 999px !important;
  background: var(--nova-ink) !important;
  color: var(--nova-white) !important;
  -webkit-text-fill-color: var(--nova-white) !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  box-shadow: none !important;
  font-family: var(--nova-sans) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
}

.nova-form .forminator-error-message,
.nova-contact-form .forminator-error-message {
  margin-top: 7px !important;
  font-size: .88rem !important;
}

/* Global type scale ------------------------------------------------------- */

body.nova-theme h1,
body.nova-theme h2,
body.nova-theme h3,
body.nova-theme h4,
body.nova-theme h5,
body.nova-theme h6 {
  font-family: var(--nova-display);
  font-weight: 500;
  letter-spacing: -.025em;
}

body.nova-theme h1 {
  font-size: clamp(2.7rem, 4.55vw, 5.15rem) !important;
  line-height: .98 !important;
}

body.nova-theme h2,
body.nova-theme .nova-faq__title {
  font-size: clamp(2.05rem, 3.15vw, 3.55rem) !important;
  line-height: 1.03 !important;
}

body.nova-theme h3 {
  font-size: clamp(1.42rem, 1.85vw, 1.9rem) !important;
  line-height: 1.12 !important;
}

body.nova-theme h4 {
  font-size: clamp(1.2rem, 1.35vw, 1.45rem) !important;
  line-height: 1.18 !important;
}

body.nova-theme h5 {
  font-size: 1.08rem !important;
  line-height: 1.25 !important;
}

body.nova-theme h6 {
  font-size: .96rem !important;
  line-height: 1.3 !important;
}

/* Footer navigation headings are semantic H2s but intentionally use the small label style. */
body.nova-theme .nova-site-footer__title {
  color: var(--nova-gold);
  font-family: var(--nova-sans) !important;
  font-size: .7rem !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

/* Hero rhythm: breadcrumb-based pages use the compact Expertises cadence. */
body.nova-theme .nova-institutional-hero,
body.nova-theme .nova-resources-hero {
  padding-top: clamp(28px, 3vw, 44px) !important;
}

@media (max-width: 767px) {
  .nova-faq__header {
    margin-bottom: 28px;
  }

  .nova-faq__question {
    min-height: 68px;
    gap: 16px;
    padding-block: 19px;
  }

  .nova-faq__question-text {
    font-size: 1.32rem;
  }

  .nova-faq__answer {
    padding-right: 0;
    padding-bottom: 24px;
  }

  body.nova-theme h1 {
    font-size: clamp(2.45rem, 10.2vw, 3.55rem) !important;
    line-height: 1 !important;
  }

  body.nova-theme h2,
  body.nova-theme .nova-faq__title {
    font-size: clamp(1.9rem, 7.5vw, 2.65rem) !important;
    line-height: 1.05 !important;
  }

  body.nova-theme h3 {
    font-size: clamp(1.32rem, 5.4vw, 1.65rem) !important;
    line-height: 1.14 !important;
  }

  body.nova-theme .nova-institutional-hero,
  body.nova-theme .nova-resources-hero {
    padding-top: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-faq__toggle::before,
  .nova-faq__toggle::after {
    transition: none;
  }
}
