/* ==========================================================================
   Shared pieces of the redesigned Elementor pages (homepage, Book a consultation).
   Loaded when either page is the queried page (body.nw-redesign, see functions.php).
   Behaviour: js/app.js "Redesign: shared".
   ========================================================================== */

.nw-redesign { --nw-ease: cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Buttons without a fill of their own (outline / link styles): Elementor's default colour
   scheme would paint them in the kit's accent green. A colour set in Elementor still wins. */
.nw-redesign .elementor-widget-button .elementor-button { background-color: transparent; }

/* Section heads: the action button (e.g. "Follow on Instagram") keeps its one-line width. */
.e-con.nw-sec-head > .elementor-widget-button { flex-shrink: 0; }

/* Line breaks that only exist for the desktop layout (class nw-br-d on the heading). */
@media (max-width: 767px) {
  .nw-redesign .nw-br-d br { display: none; }
}

/* ---- FAQ accordion ------------------------------------------------------- */
/* Each .nw-faq__item holds a .nw-faq__q heading and a .nw-faq__a answer (a text widget,
   or a container of several Q&As). js/app.js moves the question's text into a button
   inside the heading, so it stays a heading and gets native keyboard behaviour. */
.nw-redesign .nw-faq__item[hidden] { display: none !important; }
.nw-redesign .nw-faq__item.is-first { border-top-width: 0 !important; }
.nw-redesign .nw-faq__item.is-last { border-bottom: 1px solid var(--nw-line); }
.nw-redesign .nw-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  cursor: pointer;
}
.nw-redesign .nw-faq__toggle:hover,
.nw-redesign .nw-faq__toggle:focus { background: none; color: inherit; }
/* Plus / minus circle; size per page via --nw-faq-icon. */
.nw-redesign .nw-faq__toggle::after {
  content: "";
  flex: none;
  width: var(--nw-faq-icon, 34px);
  height: var(--nw-faq-icon, 34px);
  border: 1px solid var(--nw-ink);
  border-radius: 99px;
  background: url(../images/icons/plus.svg) center / 47% no-repeat;
}
.nw-redesign .nw-faq__item.is-open .nw-faq__toggle::after { border-color: var(--nw-burgundy); background: var(--nw-burgundy) url(../images/home/icons/icon-minus-white.svg) center / 47% no-repeat; }
.nw-redesign .nw-faq__toggle:focus-visible { outline: 2px solid var(--nw-navy); outline-offset: 4px; }
.nw-redesign .nw-faq__item:not(.is-open) .nw-faq__a { display: none; }

/* ---- Category FAQ band (Book a consultation, Contact) --------------------- */
:is(.nw-faq--cats, .nw-book-faq) { --nw-faq-icon: 32px; }
@media (max-width: 767px) {
  :is(.nw-faq--cats, .nw-book-faq) { --nw-faq-icon: 24px; }
}
/* Space between an open category's row and its first question (Figma 21px). */
:is(.nw-faq--cats, .nw-book-faq) .e-con.nw-faq__item { gap: 21px 0; }

/* ---- Elementor Pro forms (Book a consultation, Contact) ------------------- */
/* Labels, colours and the button come from the form's Elementor style settings; these add
   the Figma field height, focus ring, placeholder colour, chevron and consent row. */
.nw-redesign :is(.nw-book-form, .nw-form) .elementor-field-textual,
.nw-redesign :is(.nw-book-form, .nw-form) select.elementor-field {
  min-height: 46px;
  padding: 12px 14px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nw-redesign :is(.nw-book-form, .nw-form) textarea.elementor-field-textual { resize: vertical; }
.nw-redesign :is(.nw-book-form, .nw-form) .elementor-field::placeholder { color: #8f8f8f; opacity: 1; }
.nw-redesign :is(.nw-book-form, .nw-form) .elementor-field-textual:focus,
.nw-redesign :is(.nw-book-form, .nw-form) select.elementor-field:focus {
  border-color: var(--nw-navy-600);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 52, 107, 0.12);
}
/* Select arrow: the Figma chevron in place of Elementor's filled caret. */
.nw-redesign :is(.nw-book-form, .nw-form) .elementor-select-wrapper .select-caret-down-wrapper { right: 14px; display: flex; align-items: center; color: var(--nw-body); }
.nw-redesign :is(.nw-book-form, .nw-form) .select-caret-down-wrapper > * { display: none; }
.nw-redesign :is(.nw-book-form, .nw-form) .select-caret-down-wrapper::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url(../images/icons/chev-down.svg) center / contain no-repeat;
          mask: url(../images/icons/chev-down.svg) center / contain no-repeat;
}
/* Consent checkbox. */
.nw-redesign .elementor-field-group-consent .elementor-field-option { display: flex; align-items: flex-start; gap: 10px; }
.nw-redesign .elementor-field-group-consent input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--nw-navy-600); }
.nw-redesign .elementor-field-group-consent label { color: var(--nw-ink); font: 400 12px/1.5 var(--nw-font-body); }
.nw-redesign .elementor-field-group-consent label a { color: var(--nw-navy-600); text-decoration: underline; }
/* Full-width submit pill. */
.nw-redesign :is(.nw-book-form, .nw-form) .elementor-button[type="submit"] { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; }
