/* Shared styles for the dedicated paid-search landing pages.
 *
 * These pages do not load /assets/styles.css. They are standalone, one-action
 * pages served to Google Ads traffic, so they ship only what they need:
 * a system font stack, a two-column hero on desktop, and a single-column form.
 * Only /assets/privacy-consent.css is shared with the rest of the site.
 */

:root {
  --plp-navy: #0d1f3c;
  --plp-navy-soft: #1b3358;
  --plp-ink: #1d2531;
  --plp-muted: #4a5566;
  --plp-line: rgba(13, 31, 60, 0.18);
  --plp-surface: #ffffff;
  --plp-canvas: #f4f6fa;
  --plp-accent: #8a6a2f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.paid-landing-page {
  margin: 0;
  background: var(--plp-surface);
  color: var(--plp-ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.paid-landing-page img {
  max-width: 100%;
  height: auto;
}

.paid-landing-page a {
  color: var(--plp-navy);
}

.paid-landing-page h1,
.paid-landing-page h2,
.paid-landing-page h3 {
  color: var(--plp-navy);
  line-height: 1.22;
  margin: 0 0 0.6rem;
}

.paid-landing-page h1 {
  font-size: 1.85rem;
}

.paid-landing-page h2 {
  font-size: 1.35rem;
}

.paid-landing-page h3 {
  font-size: 1.05rem;
}

.paid-landing-page p {
  margin: 0 0 0.85rem;
}

/* Focus and skip link ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: var(--plp-navy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.paid-landing-page a:focus-visible,
.paid-landing-page button:focus-visible,
.paid-landing-page input:focus-visible,
.paid-landing-page select:focus-visible,
.paid-landing-page textarea:focus-visible,
.paid-landing-page summary:focus-visible {
  outline: 3px solid #0b5cab;
  outline-offset: 2px;
}

/* Minimal header ----------------------------------------------------------- */

.plp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--plp-line);
  background: var(--plp-surface);
}

.plp-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--plp-navy);
}

.plp-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.plp-brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.plp-brand__text small {
  color: var(--plp-muted);
  font-size: 0.72rem;
}

.plp-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--plp-line);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero --------------------------------------------------------------------- */

.plp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 1.15rem 2rem;
  background: linear-gradient(180deg, var(--plp-canvas) 0%, var(--plp-surface) 100%);
}

.plp-kicker {
  margin: 0 0 0.35rem;
  color: var(--plp-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plp-hero__copy {
  max-width: 46rem;
}

.plp-lede {
  color: var(--plp-muted);
  font-size: 1.02rem;
}

/* Same consultation action as the submit button, not a second offer. On a
 * 390px viewport the hero copy pushes the submit control roughly 1,260px down
 * the page, so this jumps the short distance to the form. It is removed at the
 * desktop breakpoint, where the whole form is already beside the copy. */
/* Selector carries the element because .paid-landing-page a already paints
 * links navy at (0,1,1); a bare .plp-mobile-cta loses and the label renders
 * navy on the navy button. */
.paid-landing-page a.plp-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  background: var(--plp-navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.paid-landing-page a.plp-mobile-cta:hover {
  background: var(--plp-navy-soft);
  color: #fff;
}

.plp-hero__points {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.plp-hero__points li {
  margin-bottom: 0.4rem;
}

/* Form card ---------------------------------------------------------------- */

.plp-form-card {
  padding: 1.15rem;
  border: 1px solid var(--plp-line);
  border-radius: 10px;
  background: var(--plp-surface);
  box-shadow: 0 10px 28px rgba(13, 31, 60, 0.08);
}

.plp-form-card__title {
  font-size: 1.2rem;
}

.plp-form-card__note {
  margin-bottom: 1rem;
  color: var(--plp-muted);
  font-size: 0.88rem;
}

.plp-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.plp-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plp-navy);
}

.plp-field input,
.plp-field select,
.plp-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--plp-line);
  border-radius: 6px;
  background: #fff;
  color: var(--plp-ink);
  font: inherit;
  /* The label text is 0.85rem and `font: inherit` would carry that into the
   * control. iOS Safari zooms the page when a focused field is under 16px. */
  font-size: 1rem;
  font-weight: 400;
}

.plp-field textarea {
  min-height: 88px;
  resize: vertical;
}

.plp-contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--plp-ink);
  font-size: 0.82rem;
  line-height: 1.45;
  cursor: pointer;
}

.plp-contact-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--plp-navy);
}

.plp-contact-consent input:focus-visible {
  outline: 2px solid var(--plp-accent);
  outline-offset: 2px;
}

.plp-more {
  border: 1px solid var(--plp-line);
  border-radius: 6px;
  background: #fbfcfe;
}

.plp-more > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  cursor: pointer;
  color: var(--plp-navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.plp-more__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0 0.75rem 0.85rem;
}

.plp-optional-note {
  margin: 0;
  color: var(--plp-muted);
  font-size: 0.76rem;
}

.plp-consent {
  margin: 0;
  color: var(--plp-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.plp-submit {
  min-height: 52px;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 6px;
  background: var(--plp-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.plp-submit:hover {
  background: var(--plp-navy-soft);
}

.plp-form-note {
  margin: 0;
  font-size: 0.82rem;
}

.plp-trust {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--plp-line);
}

.plp-trust p {
  margin: 0 0 0.5rem;
  color: var(--plp-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* Honeypot: hidden here too, because these pages do not load styles.css. */
.guide-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Supporting content ------------------------------------------------------- */

.plp-steps,
.plp-corridor,
.plp-next,
.plp-guide-link {
  padding: 1.5rem 1.15rem;
  border-top: 1px solid var(--plp-line);
}

.plp-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.plp-steps__grid article {
  padding: 0.9rem 1rem;
  border: 1px solid var(--plp-line);
  border-radius: 8px;
  background: var(--plp-canvas);
}

.plp-steps__grid p,
.plp-corridor p,
.plp-next li {
  color: var(--plp-muted);
}

.plp-next ol {
  margin: 0;
  padding-left: 1.2rem;
}

.plp-next li {
  margin-bottom: 0.45rem;
}

.plp-guide-link p {
  margin: 0;
  color: var(--plp-muted);
  font-size: 0.9rem;
}

.plp-quiet-link {
  color: var(--plp-navy);
  text-decoration: underline;
}

/* Footer ------------------------------------------------------------------- */

.plp-footer {
  padding: 1.5rem 1.15rem 2.25rem;
  border-top: 1px solid var(--plp-line);
  background: var(--plp-canvas);
}

.plp-footer p {
  color: var(--plp-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.plp-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.plp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
}

.plp-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
}

/* Desktop split ------------------------------------------------------------ */

@media (min-width: 900px) {
  .paid-landing-page a.plp-mobile-cta {
    display: none;
  }

  .plp-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.25rem;
    padding: 1.5rem 2.25rem 2.5rem;
  }

  .paid-landing-page h1 {
    font-size: 2.35rem;
  }

  .plp-form-card {
    position: sticky;
    top: 1.25rem;
    padding: 1.25rem;
  }

  .plp-header,
  .plp-steps,
  .plp-corridor,
  .plp-next,
  .plp-guide-link,
  .plp-footer {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }

  .plp-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .paid-landing-page *,
  .paid-landing-page *::before,
  .paid-landing-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Privacy choice on paid landing pages -------------------------------------
 * privacy-consent.js inserts the choice panel in normal document flow between
 * the minimal header and the hero on these two pages. Keeping it in flow means
 * it cannot cover the consultation form, its submit button, or keyboard focus.
 * The global consent palette and controls stay unchanged.
 */

body.paid-landing-page .privacy-consent {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0.75rem 1.15rem !important;
  gap: 1rem !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 14px rgba(13, 31, 60, 0.16) !important;
}

body.paid-landing-page .privacy-consent__eyebrow {
  display: none !important;
}

body.paid-landing-page .privacy-consent h2 {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

body.paid-landing-page .privacy-consent__copy > p:not(.privacy-consent__eyebrow) {
  max-width: 76ch !important;
  margin-top: 0.25rem !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

body.paid-landing-page .privacy-consent__copy > a {
  min-height: 32px !important;
  font-size: 0.74rem !important;
}

body.paid-landing-page .privacy-consent button {
  min-height: 44px !important;
}

@media (max-width: 760px) {
  body.paid-landing-page .privacy-consent {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    padding: 0.65rem 0.9rem 0.75rem !important;
  }

  body.paid-landing-page .privacy-consent__actions {
    gap: 0.5rem !important;
  }
}
