/* Whitmans Lawyers: site-specific CSS (never touched by Baby Shark updates). */

/* Hero: keep the message + form inside the content width and centred on wide screens. */
.ff-section-2-component {
  align-self: center;
  width: 100%;
  max-width: var(--container-max, 1312px);
  justify-content: space-between;
}

/* Enquiry forms, as drawn in Figma (bordered fields, full-width button). */
.ff-form-desc {
  margin: -8px 0 4px;
  font-family: var(--font-accent, 'Source Sans 3', sans-serif);
  font-size: 16px;
  line-height: 1.5;
  color: #5a6570;
}
body .ff-form .gform_wrapper.gform-theme .gfield input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
body .ff-form .gform_wrapper.gform-theme .gfield select,
body .ff-form .gform_wrapper.gform-theme .gfield textarea {
  border: 1px solid #8a96a3;
  border-radius: 2px;
  padding-inline: 14px;
  background-color: #ffffff;
  min-block-size: 52px;
  font-family: var(--font-accent, 'Source Sans 3', sans-serif);
  font-size: 17px;
  color: #2e3338;
}
body .ff-form .gform_wrapper.gform-theme .gfield input:focus,
body .ff-form .gform_wrapper.gform-theme .gfield select:focus,
body .ff-form .gform_wrapper.gform-theme .gfield textarea:focus {
  border-color: #2bb7b3;
  outline: 2px solid rgba(43, 183, 179, 0.35);
  outline-offset: 0;
}
body .ff-form .gform_wrapper.gform-theme .gfield textarea {
  min-block-size: 52px;
  block-size: 52px;
  resize: vertical;
}
body .ff-form .gform_wrapper.gform-theme .gform_footer .gform_button,
body .ff-form .gform_wrapper.gform-theme .gform_page_footer .gform_next_button {
  inline-size: 100% !important;
  flex: 1 1 100%;
  background-color: #2bb7b3;
  border-color: #2bb7b3;
  color: #14213f;
  border-radius: 2px;
  min-block-size: 56px;
  font-family: var(--font-accent, 'Source Sans 3', sans-serif);
  font-size: 18px;
  font-weight: 600;
}
body .ff-form .gform_confirmation_message {
  font-family: var(--font-accent, 'Source Sans 3', sans-serif);
  font-size: 18px;
  line-height: 1.5;
  color: #2e3338;
}

/* Anchor jumps to the final enquiry form land with breathing room. */
#contact { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The design has no "(Required)" markers on the enquiry fields. */
.ff-form .gfield_required { display: none; }

/* Header: no navigation on this landing page, so no burger; phone is a tap-to-call link. */
.ff-fig-header .ff-burger { display: none !important; }
.ff-fig-header a.ff-fig-header-phone { display: block; text-decoration: none; color: #ffffff; }
@media (max-width: 767px) {
  .ff-fig-header .ff-fig-header-container { gap: 12px; }
  .ff-fig-header .ff-fig-header-content { flex: 0 0 auto; }
  .ff-fig-header .ff-fig-header-image-1 { width: 150px; height: auto; object-fit: contain; }
  .ff-fig-header .ff-fig-header-text,
  .ff-fig-header .ff-fig-header-button-primary { display: none; }
  .ff-fig-header .ff-fig-header-header-actions { gap: 0; margin-left: auto; }
  .ff-fig-header a.ff-fig-header-phone { font-size: 18px; white-space: nowrap; }
}

/* Phones: let stacked cards size to their content (flex-basis 0 collapsed them). */
@media (max-width: 900px) {
  .ff-section-5-card,
  .ff-section-5-column,
  .ff-section-5-card_2,
  .ff-section-5-card_3,
  .ff-section-5-card_4,
  .ff-section-5-card_5 { flex: none; width: 100%; }
  .ff-section-5-card { min-height: 0; }

  /* Final CTA: the desktop layout pins content absolutely inside a fixed-height box. */
  .ff-section-8-hero { height: auto; }
  .ff-section-8-container {
    position: relative;
    left: auto;
    top: auto;
    margin-top: 0;
    padding: 64px 20px;
  }
  .ff-section-8-vector { display: none; }
}

/* Italic "Will" in the final CTA heading overhangs the following space; give it a hair of room. */
.ff-section-8-h2 span { padding-right: 0.1em; }

@media (max-width: 900px) {
  .ff-fig-footer .ff-fig-footer-text { white-space: normal; }
}

/* FAQ: keep the chevron beside the question on phones. */
@media (max-width: 900px) {
  .ff-section-7 .ff-section-7-question { flex-direction: row; align-items: center; gap: 16px; }
  .ff-section-7 .ff-section-7-question_2 { flex: 1 1 auto; min-width: 0; }
  .ff-section-7 .ff-section-7-keyboard-arrow-up { flex: 0 0 auto; }
}
/* Footer credits wrap before the litigation link gets squeezed. */
@media (max-width: 1279px) {
  .ff-fig-footer .ff-fig-footer-row { flex-wrap: wrap; gap: 8px 28px; }
  .ff-fig-footer .ff-fig-footer-frame-5 { flex-wrap: wrap; gap: 4px 28px; }
  .ff-fig-footer .ff-fig-footer-text_2 { white-space: nowrap; }
}

/* Final CTA on laptops/tablets: the pinned container started off-screen (left: 50% - 640px). */
@media (max-width: 1279px) and (min-width: 901px) {
  .ff-section-8 .ff-section-8-container { left: 0; padding: 0 var(--gutter-x, 64px); box-sizing: border-box; }
  .ff-section-8 .ff-section-8-component { flex-wrap: nowrap; gap: 48px; }
  .ff-section-8 .ff-section-8-details { flex: 1 1 0; min-width: 0; width: auto; }
  .ff-section-8 .ff-section-8-details * { white-space: normal; overflow-wrap: anywhere; }
  .ff-section-8 .ff-section-8-hero-form { flex: 0 0 460px; }
}

/* Who we help (desktop): feature card and 2x2 grid share one height, as in Figma.
   Rows split the right column evenly; the photo fills whatever is left under the intro text. */
@media (min-width: 901px) {
  .ff-section-5 .ff-section-5-container { min-height: 0; }
  .ff-section-5 .ff-section-5-row { align-items: stretch; }
  .ff-section-5 .ff-section-5-card { min-height: 566px; }
  .ff-section-5 .ff-section-5-placeholder-image { flex: 1 1 0; height: 0; min-height: 280px; }
  .ff-section-5 .ff-section-5-column { align-self: stretch; }
  .ff-section-5 .ff-section-5-row_2,
  .ff-section-5 .ff-section-5-row_3 { flex: 1 1 0; }
  .ff-section-5 .ff-section-5-card_2,
  .ff-section-5 .ff-section-5-card_3,
  .ff-section-5 .ff-section-5-card_4,
  .ff-section-5 .ff-section-5-card_5 { min-height: 268px; }
  .ff-section-5 .ff-section-5-content_3,
  .ff-section-5 .ff-section-5-content_9 { min-height: 0; }
}

/* How a claim works: Figma's dark navy base sits under the glow image (the import dropped it). */
.ff-section-4 { background-color: #10182c; }

/* Final CTA glow: soft circular blur like Figma, no hard ellipse edge */
.ff-section-8-glow {
  background: radial-gradient(closest-side, rgba(54,83,148,0.85) 0%, rgba(54,83,148,0.45) 45%, rgba(54,83,148,0) 100%);
  border-radius: 0;
  filter: blur(40px);
}

/* Footer credits: Figma size (15px), global .t-p was making them 17px+ */
.ff-fig-footer-body_2,
.ff-fig-footer-text,
.ff-fig-footer-text_2,
.ff-fig-footer-text_3 { font-size: 15px !important; line-height: 1.5 !important; }

/* How a claim works, phones: a divider line above every step, not just every pair */
@media (max-width: 900px) {
  .ff-section-4-row,
  .ff-section-4-row_2 { gap: 48px; }
  .ff-section-4-row > * + *,
  .ff-section-4-row_2 > * + * {
    border-top: 1px solid var(--color-3, #2bb7b3);
    padding-top: 48px;
  }
}

/* Phones: looser line height on the big serif headings */
@media (max-width: 900px) {
  .ff-section-2-h1,
  .ff-section-8-h2 { line-height: 1.12 !important; }
}

/* Hero: teal arc in the bottom-right (Figma has it baked into the hero design; reuse the CTA arc, rotated) */
.ff-section-2 { position: relative; overflow: hidden; }
.ff-section-2 > * { position: relative; z-index: 1; }
.ff-section-2::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 560px;
  height: 530px;
  right: -15px;
  bottom: 15px;
  background: url("/wp-content/uploads/2026/11/icon-d239f0.svg") no-repeat center / 100% 100%;
  transform: rotate(90deg);
  pointer-events: none;
}
@media (max-width: 900px) {
  .ff-section-2::before { width: 320px; height: 303px; right: -9px; bottom: 9px; }
}

/* Hero: keep the background visible on load (no white flash); fade the content in instead */
.ff-section-2[data-ff-anim] { opacity: 1; transform: none; }
.ff-section-2[data-ff-anim] .ff-section-2-component { animation: ffHeroIn .8s ease both; }
@keyframes ffHeroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ff-section-2[data-ff-anim] .ff-section-2-component { animation: none; } }

/* Sticky header (.ff-page's overflow-x:hidden would block sticky, so clip instead) */
.ff-page { overflow-x: clip; overflow-y: visible; }
header.ff-section.ff-fig-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .2s ease;
}
.admin-bar header.ff-section.ff-fig-header { top: 32px; }
@media (max-width: 782px) { .admin-bar header.ff-section.ff-fig-header { top: 0; } }
#contact { scroll-margin-top: 97px; }
