/* === ENGAGED SUPER OVERRIDES - managed by the client repo, build/theme/es-overrides.css === */
/*
 * The last-resort layer. Anything YOOtheme can set as a setting is set there,
 * not here (website-build non-negotiables 2 and 13). Every rule below carries
 * a one-line WHY and the phase that added it.
 *
 * Served by functions.php (build/scripts/install_cachebust.mjs) with a
 * filemtime version, last in <head>, so an edit is live on the next load.
 * Do not put Engaged Super rules in custom.css: it is served under a fixed
 * ?ver= and browsers keep it for a week.
 *
 * Layout of this file, keep it: grouped by section in page order, then every
 * media query together at the end.
 */

/* --- Global ------------------------------------------------------------- */

/*
 * Email addresses may break (Phase 8, M63, 14/10/26).
 * WHY: "mail@engagedsuper.com.au" is one unbreakable string; at 200% text on a
 * 390px phone the contact band's copy ran 97px past the screen and the whole
 * page scrolled sideways (WCAG 1.4.4). Every mailto link (contact band, footer,
 * mobile menu, utility bar) may now break anywhere; at normal sizes nothing moves.
 * No element has a word-break field.
 */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/*
 * Headline highlight (Phase 3, 12/10/26).
 * WHY: the mockup puts one phrase of each display heading in a mint box
 * ("SMSF auditor.", "relationship", "every audit.", "Send it through.").
 * The heading content marks it with <mark>. UIkit only exposes the mark's
 * colours as variables (@base-mark-background #c4e9df, @base-mark-color
 * #234c84, set in the style); the box's shape has no variable. All values are
 * em-based, read off the export at three sizes and identical at each:
 * padding 15.2/14.44px at 76px, 10.4/9.88 at 52, 9.6/9.12 at 48 = .2em/.19em;
 * radius 16.72/11.44/10.56 = .22em; line-height 68.4/46.8/43.2 = .9.
 */
mark {
    display: inline-block;
    padding: 0 .2em .19em;
    border-radius: .22em;
    line-height: .9;
    font-weight: 600;
}

/*
 * Highlight on navy bands (Phase 3, 12/10/26; selectors widened Phase 6).
 * WHY: on the How it works band the highlighted phrase ("phone call") is mint
 * text with no box, at the heading's own line height. UIkit has no inverse
 * mark variables, so the light-band box is undone here. Navy sections, tiles
 * and cards are inverse through their own classes, not .uk-light (Phase 6:
 * the steps band showed the light box), so each is named.
 */
.uk-light mark,
.uk-section-primary:not(.uk-preserve-color) mark,
.uk-section-secondary:not(.uk-preserve-color) mark,
.uk-tile-primary:not(.uk-preserve-color) mark,
.uk-tile-secondary:not(.uk-preserve-color) mark,
.uk-card-primary.uk-card-body mark,
.uk-card-secondary.uk-card-body mark {
    display: inline;
    padding: 0;
    border-radius: 0;
    line-height: inherit;
    background: none;
    color: #6bc6af;
}

/*
 * Anchors and keyboard focus land below the sticky header (Phase 8, 12/10/26).
 * WHY: the header is sticky (design brief) and 92px tall; without this a jump to
 * #contact or a tabbed-to link scrolls under it (M42). No setting for it.
 */
html { scroll-padding-top: 104px; }

/*
 * Section kicker dash (Phase 6, 12/10/26).
 * WHY: every kicker in the mockup ("Why Engaged Super", "Meet the team" ...) is
 * the h6 style led by a 28 x 3 mint dash, 12px before the text. The heading
 * has no decoration of that shape (title_decoration offers divider, bullet and
 * line only). Applied by the builder class es-eyebrow.
 */
.es-eyebrow { display: flex; align-items: center; gap: 12px; }
.es-eyebrow::before { content: ''; flex: 0 0 28px; height: 3px; border-radius: 2px; background: #6bc6af; }

/*
 * Text links keep their rule (Phase 6, 12/10/26).
 * WHY: "How we work", "All services" and the like sit on a permanent 2px mint
 * rule, 4px under the text. fuse's text button draws its rule (@button-text-border,
 * set in the style) only on hover; there is no variable to keep it on.
 */
.uk-button-text { padding-bottom: 4px; }
.uk-button-text::before { right: 0; }

/*
 * Button hovers: the export's colour wipe (Kacey's style pass, 12/10/26).
 * WHY: every button in the export fills from the left on hover: a two-tone
 * gradient twice the button's width slides across in .45s (build/tokens/hovers.txt).
 * UIkit buttons only swap a flat colour, and no setting draws a gradient. The
 * hover colours themselves are still the style's (@button-*-hover-*).
 *   primary   navy -> deep navy #1a3b69
 *   secondary mint -> light mint #8ad3c0
 *   default   navy outline -> navy fill (light bands; not in the export, kept in family)
 *   on navy   white outline -> 22% mint tint, border mint (the colours are LESS)
 */
.uk-button-primary,
.uk-button-secondary,
.uk-button-default { background-size: 201% 100%; background-position: 100% 0; background-repeat: no-repeat; transition: background-position .45s ease, border-color .45s ease, color .2s ease; }
.uk-button-primary { background-image: linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%); }
.uk-button-secondary { background-image: linear-gradient(90deg, #8ad3c0 0 50%, #6bc6af 50% 100%); }
.uk-button-default { background-image: linear-gradient(90deg, #234c84 0 50%, transparent 50% 100%); }
.uk-light .uk-button-default,
.uk-section-primary:not(.uk-preserve-color) .uk-button-default,
.uk-section-secondary:not(.uk-preserve-color) .uk-button-default,
.uk-tile-primary:not(.uk-preserve-color) .uk-button-default,
.uk-card-primary.uk-card-body .uk-button-default { background-image: linear-gradient(90deg, rgba(107, 198, 175, .22) 0 50%, transparent 50% 100%); }
.uk-button-primary:hover,
.uk-button-secondary:hover,
.uk-button-default:hover { background-position: 0 0; }
/* Inverse primary (14/10/26, vision pass): on navy the theme's primary button is
 * white with navy text, and the navy wipe above painted over the white, leaving
 * navy text on navy (the mobile menu's "Request a proposal", every page). White
 * with a mint-tint wipe instead, as the inverse default button has above. */
.uk-light .uk-button-primary,
.uk-offcanvas-bar .uk-button-primary,
.uk-section-primary:not(.uk-preserve-color) .uk-button-primary,
.uk-section-secondary:not(.uk-preserve-color) .uk-button-primary,
.uk-tile-primary:not(.uk-preserve-color) .uk-button-primary,
.uk-card-primary.uk-card-body .uk-button-primary { background-image: linear-gradient(90deg, #e1f4ef 0 50%, #ffffff 50% 100%); }

/*
 * Text-link hover: the label fills navy -> mint from the left (12/10/26).
 * WHY: the export paints the text with a gradient clipped to the glyphs and slides
 * it across on hover; the 2px mint rule stays. No setting does text-fill wipes.
 * Light bands only: on navy the theme's own inverse text button applies.
 */
.uk-section:not(.uk-section-primary):not(.uk-section-secondary) .uk-button-text { background-image: linear-gradient(90deg, #6bc6af 0 50%, #234c84 50% 100%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .45s ease; }
.uk-section:not(.uk-section-primary):not(.uk-section-secondary) .uk-button-text:hover { background-position: 0 0; color: transparent; }
.uk-section:not(.uk-section-primary):not(.uk-section-secondary) .uk-button-text .uk-icon { color: #234c84; transition: color .45s ease; }
.uk-section:not(.uk-section-primary):not(.uk-section-secondary) .uk-button-text:hover .uk-icon { color: #6bc6af; }

/*
 * Menu dropdown items (12/10/26).
 * WHY: the export's Resources menu items sit on a 12px-radius tile that tints
 * #f0f9f7 on hover. The dropdown nav has no background or radius variables.
 */
.uk-navbar-dropdown-nav > li > a { padding: 12px; border-radius: 12px; transition: background-color .2s ease; }
.uk-navbar-dropdown-nav > li > a:hover { background-color: #f0f9f7; }

/*
 * Resources dropdown panel (14/10/26, Kacey: "build the resources dropdown as the
 * mockup draws it"; the export draws it behind its hover state).
 * WHY: the export's panel is white, 16px radius, 12px padding, a soft navy shadow,
 * and sits 8px up into the 92px header (top 84). Rows 2px apart: Outfit 16/600
 * title over a DM Sans 14 description, the Resource Library row navy with a 6px gap
 * above it. The width (420), the icons (40px) and the descriptions are the menu
 * items' own YOOtheme settings (set_menu_dropdown.mjs); the panel's radius,
 * padding and shadow have no field short of a browser compile of the style, so
 * they are here: fold into the Customizer at launch.
 */
.tm-header .uk-navbar-dropdown { --uk-position-offset: -8px; padding: 12px; border-radius: 16px; box-shadow: 0 24px 60px rgba(26, 59, 105, 0.18); }
.tm-header .uk-navbar-dropdown-nav > li + li { margin-top: 2px; }
.tm-header .uk-navbar-dropdown-nav > li > a { color: #132d55; font-size: 16px; font-weight: 600; line-height: 1.3; }
.tm-header .uk-navbar-dropdown-nav .uk-nav-subtitle { margin-top: 2px; color: #4a5f7e; font: 400 14px/1.4 'DM Sans', sans-serif; }
.tm-header .uk-navbar-dropdown-nav > li.es-menu-library { margin-top: 6px; }
.tm-header .uk-navbar-dropdown-nav > li.es-menu-library > a { background-color: #234c84; color: #ffffff; }
.tm-header .uk-navbar-dropdown-nav > li.es-menu-library > a:hover { background-color: #1a3b69; }
.tm-header .uk-navbar-dropdown-nav > li.es-menu-library .uk-nav-subtitle { color: #d5dfec; }
/* the page you are on (Kacey 15/10/26: the dropdown showed no current item). WordPress and
 * YOOtheme already mark it uk-active; it had no style. The hover tint plus a mint bar, so it
 * reads as "you are here", not as a hover. */
.tm-header .uk-navbar-dropdown-nav > li.uk-active > a { background-color: #f0f9f7; box-shadow: inset 3px 0 0 #6bc6af; color: #234c84; }
.tm-header .uk-navbar-dropdown-nav > li.es-menu-library.uk-active > a { background-color: #1a3b69; box-shadow: inset 3px 0 0 #6bc6af; color: #ffffff; }
/* the mobile menu shares the items: its navy panel swallowed the library's
 * #1a3b69 icon circle, so a faint mint ring outlines it there */
.uk-offcanvas-bar .es-menu-library img { border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(107, 198, 175, 0.6); }

/*
 * Button icons (Phase 6, 12/10/26).
 * WHY: the mockup's arrows are mint on navy and outline buttons, and deep navy
 * on the mint button. The Button element has no icon colour field.
 */
.uk-button-primary .uk-icon, .uk-button-default .uk-icon, .uk-button-link .uk-icon { color: #6bc6af; }
.uk-button-secondary .uk-icon { color: #1a3b69; }

/*
 * Topic tags (Phase 6, 12/10/26).
 * WHY: the blog's topic pills (resources tile; Phase 10 post cards) are 12px
 * ink on #e1f4ef, 999px radius, 5/10 padding, 6px apart. Inline markup in a
 * text element; no element draws a pill list.
 */
.es-tag { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; border-radius: 999px; background: #e1f4ef; color: #132d55; font-size: 12px; font-weight: 500; line-height: 16px; }

/* --- Homepage ----------------------------------------------------------- */

/*
 * Homepage newsletter pills (Phase 6, 12/10/26).
 * WHY: the mockup draws Name and Email as 56px white pills (1.5px #cfe3dd
 * border, 24px sides, flex 1 and 1.3) beside a navy 56px Subscribe pill, all on
 * one line, 12px apart. Gravity Forms has no field for that layout and its own
 * theme styles the inputs and button. Qualified with the wrapper classes to
 * beat Gravity Forms' rules. Stacks under 640.
 */
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme { margin: 0; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme form { display: flex; align-items: flex-start; gap: 12px; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform-body { flex: 1; min-width: 0; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_fields { display: flex; gap: 12px; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gfield { flex: 1; min-width: 0; margin: 0; padding: 0; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gfield--type-email { flex: 1.3; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme input[type="text"],
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme input[type="email"] { width: 100%; height: 56px; box-sizing: border-box; padding: 0 24px; border: 1.5px solid #cfe3dd; border-radius: 999px; background: #ffffff; color: #132d55; font: 400 16px/1.6 'DM Sans', sans-serif; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme input:focus { border-color: #234c84; outline: none; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme input::placeholder { color: #4a5f7e; opacity: 1; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_footer { margin: 0; padding: 0; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_button { height: 56px; margin: 0; padding: 0 28px; border: 0; border-radius: 999px; background: #234c84 linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) 100% 0 / 201% 100% no-repeat; color: #ffffff; font: 600 16px/56px 'Outfit', sans-serif; cursor: pointer; transition: background-position .45s ease; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_button:hover { background-position: 0 0; }
/* the shortcode sits inside the text element's paragraph */
.es-home-newsletter .gform_wrapper { margin: 0; }

/* --- Contact band (sitewide bottom widget) ---------------------------------- */

/*
 * Enquiry form (Phase 6, 12/10/26).
 * WHY: the mockup's form card has 14px ink labels over underline inputs (1.5px
 * #d8dee7 rule, 10px under the text) with an 18px line icon at the left of
 * each, two fields a row 28px apart and 24px between rows, and a navy pill Send
 * with a mint arrow, right-aligned. Gravity Forms has no fields for any of it
 * and its theme styles inputs and buttons, so the wrapper classes qualify each
 * rule. Icons are the export's own (wp-content/uploads/engaged-super/icons/).
 * A submit is an <input>, so the arrow is a background image.
 */
.es-contact-form_wrapper.gform_wrapper.gravity-theme { margin: 0; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_fields { column-gap: 28px; row-gap: 24px; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gfield_label { margin: 0 0 8px; padding: 0; color: #132d55; font: 500 14px/1.3 'DM Sans', sans-serif; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gfield_required { color: #234c84; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme input[type="text"],
.es-contact-form_wrapper.gform_wrapper.gravity-theme input[type="email"],
.es-contact-form_wrapper.gform_wrapper.gravity-theme input[type="tel"],
.es-contact-form_wrapper.gform_wrapper.gravity-theme textarea { width: 100%; min-height: 44px; box-sizing: border-box; margin: 0; padding: 0 0 10px 30px; border: 0; border-bottom: 1.5px solid #d8dee7; border-radius: 0; background: transparent no-repeat 0 2px / 18px 18px; color: #132d55; font: 400 16px/1.45 'DM Sans', sans-serif; box-shadow: none; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme textarea { height: 96px; min-height: 0; resize: none; background-position: 0 3px; }
/* Gravity Forms' basic.css sets line-height 2 and min-height 32px on every input
 * through four :not() attribute selectors, which outrank the rule above; matched
 * here so the export's 34px row holds (Phase 8: the inputs measured 43px). */
.es-contact-form_wrapper.gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]):not([type="submit"]) { min-height: 0; line-height: 1.45; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme input:focus,
.es-contact-form_wrapper.gform_wrapper.gravity-theme textarea:focus { border-bottom-color: #234c84; outline: none; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme ::placeholder { color: #7f92ab; opacity: 1; }
.es-contact-form_wrapper #field_1_1 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-name.svg); }
.es-contact-form_wrapper #field_1_5 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-firm.svg); }
.es-contact-form_wrapper #field_1_4 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-email.svg); }
.es-contact-form_wrapper #field_1_3 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-phone.svg); }
.es-contact-form_wrapper #field_1_6 textarea { background-image: url(/wp-content/uploads/engaged-super/icons/field-message.svg); }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_footer { display: flex; justify-content: flex-end; margin: 26px 0 0; padding: 0; }
/* two layers: the icon, over the export's navy wipe (12/10/26). The icon is the export's mint
 * paper plane, LEFT of the label, 10px gap (corrected 15/10/26: it had been built as a
 * right-hand arrow; the approved homepage export and both subpage layouts draw the plane). */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_button { height: 57px; margin: 0; padding: 0 30px 0 58px; border: 0; border-radius: 999px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236bc6af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E") no-repeat left 30px center / 18px 18px, linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) no-repeat 100% 0 / 201% 100%, #234c84; color: #ffffff; font: 600 17px/57px 'Outfit', sans-serif; cursor: pointer; transition: background-position .45s ease; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_button:hover { background-position: left 30px center, 0 0; }
/* Gravity Forms' '"*" indicates required fields' line: removed at Kacey's call (12/10/26, the asterisks speak for themselves) */
.es-contact-form_wrapper .gform_required_legend { display: none; }
/* the shortcode sits inside the text element's paragraph */
.es-contact-band .gform_wrapper { margin: 0; }

/*
 * Payments form (Phase 11, 19/10/26, Gravity Form 6).
 * WHY: it carries the enquiry form's class, so labels, underline inputs and the navy pill
 * come from the rules above; this adds only what differs. Field icons in the same Lucide
 * line style (the mockup draws no payments form): email and firm reused, a hash for the
 * invoice number and a dollar sign for the amount. Submit has no paper plane (that is the
 * enquiry form's "send"). The card details placeholder marks where the Stripe field goes
 * until the add-on is connected; it is removed with it.
 */
.es-payments-form_wrapper #field_6_8 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-email.svg); }
.es-payments-form_wrapper #field_6_2 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-firm.svg); }
.es-payments-form_wrapper #field_6_15 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-invoice.svg); }
.es-payments-form_wrapper #field_6_14 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-amount.svg); }
.es-payments-form_wrapper.gform_wrapper.gravity-theme .gform_button,
.es-payments-form_wrapper.gform_wrapper.gravity-theme .gform_button.gform-has-spinner { padding: 0 34px; background: linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) no-repeat 100% 0 / 201% 100%, #234c84; }
.es-payments-form_wrapper.gform_wrapper.gravity-theme .gform_button:hover { background-position: 0 0; }
.es-payments-form_wrapper .es-pay-card-placeholder { padding: 18px 20px; border: 1.5px dashed #c6d3e3; border-radius: 12px; color: #4a5f7e; font-size: 15px; line-height: 1.5; }
.es-payments-form_wrapper .es-pay-card-placeholder p { margin: 0; }

/*
 * Fact sheets download wall (Phase 11, 19/10/26; the isonic-fact-sheets plugin, Gravity Form 7).
 * WHY: [es_fact_sheet_download] prints both states, the form (.es-fs-locked) and the PDF
 * button (.es-fs-open). The plugin's head script puts es-fs-unlocked on <html> before the
 * page paints for anyone who has signed up in this browser, and the form's confirmation adds
 * it on the spot (the Park Furniture pattern, Kacey 19/10/26), so the state is pure CSS and a
 * returning visitor never sees the form flash. The form carries the enquiry form's class;
 * this adds its icons and a download icon on its button in place of the paper plane.
 */
.es-fs-open { display: none; }
html.es-fs-unlocked .es-fs-open { display: block; }
html.es-fs-unlocked .es-fs-locked { display: none; }
.es-fs-lead { margin: 0 0 24px; color: #4a5f7e; font-size: 16px; line-height: 1.6; }
.es-fs-open .es-fs-lead { color: #132d55; font-weight: 500; }
.es-fs-button { margin: 0; }
.es-fs-meta { margin: 12px 0 0; color: #4a5f7e; font-size: 14px; }
.es-fs-none { margin: 0; color: #4a5f7e; }
.es-factsheet-form_wrapper #field_7_1 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-name.svg); }
.es-factsheet-form_wrapper #field_7_2 input { background-image: url(/wp-content/uploads/engaged-super/icons/field-email.svg); }
.es-factsheet-form_wrapper.gform_wrapper.gravity-theme .gform_button { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236bc6af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E") no-repeat left 30px center / 18px 18px, linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) no-repeat 100% 0 / 201% 100%, #234c84; }

/* --- Resource Library (15/10/26, Ultimate Member) ------------------------- */

/*
 * The library's log-in, request access and reset password forms are Ultimate
 * Member's (Kacey 15/10/26), inside the page's text elements with the class
 * es-um-form. WHY: UM's form settings cover fields, labels and button words
 * only, not this look, and its own stylesheet sets inputs with !important; so
 * this matches them to the enquiry form beside them (14px ink labels, underline
 * inputs with the field icons, the navy wipe pill). Scoped to es-um-form so UM
 * anywhere else keeps its own styling.
 */
.es-um-form .um { max-width: none !important; margin: 0; opacity: 1; }
.es-um-form .um-form .um-row { display: flex; gap: 28px; margin: 0 0 24px !important; }
.es-um-form .um-form .um-row > [class^="um-col"] { float: none; width: auto; flex: 1 1 0; min-width: 0; margin: 0; }
.es-um-form .um-form .um-row > .um-clear { display: none; }
@media (max-width: 479px) { .es-um-form .um-form .um-row { flex-direction: column; gap: 24px; } }
.es-um-form .um-field { padding: 0; }
.es-um-form .um-field + .um-field { margin-top: 24px; }
.es-um-form .um-field-label { margin: 0 0 8px; }
.es-um-form .um-field-label label { color: #132d55 !important; font: 500 14px/1.3 'DM Sans', sans-serif !important; }
.es-um-form .um-field-label-icon { display: none; }
.es-um-form .um-form input.um-form-field { width: 100% !important; height: auto !important; min-height: 44px; box-sizing: border-box; margin: 0; padding: 0 0 10px 30px !important; border: 0 !important; border-bottom: 1.5px solid #d8dee7 !important; border-radius: 0 !important; background: transparent no-repeat 0 2px / 18px 18px !important; color: #132d55 !important; font: 400 16px/1.45 'DM Sans', sans-serif !important; box-shadow: none !important; }
.es-um-form .um-form input.um-form-field:focus { border-bottom-color: #234c84 !important; outline: none; }
.es-um-form .um-form input.um-form-field::placeholder { color: #7f92ab; opacity: 1; }
.es-um-form .um-field[data-key="first_name"] input,
.es-um-form .um-field[data-key="last_name"] input { background-image: url(/wp-content/uploads/engaged-super/icons/field-name.svg) !important; }
.es-um-form .um-field[data-key="firm"] input { background-image: url(/wp-content/uploads/engaged-super/icons/field-firm.svg) !important; }
.es-um-form .um-field[data-key="phone_number"] input { background-image: url(/wp-content/uploads/engaged-super/icons/field-phone.svg) !important; }
.es-um-form .um-field[data-key="user_email"] input,
.es-um-form .um-field[data-key="username"] input,
.es-um-form .um-field[data-key="username_b"] input { background-image: url(/wp-content/uploads/engaged-super/icons/field-email.svg) !important; }
.es-um-form .um-field[data-key="user_password"] input,
.es-um-form .um-field[data-key="confirm_user_password"] input { background-image: url(/wp-content/uploads/engaged-super/icons/field-password.svg) !important; }
/* keep me logged in, forgot password */
.es-um-form .um-field-checkbox-option { color: #4a5f7e !important; font-size: 15px; line-height: 1.4; }
.es-um-form .um-field-checkbox-state i { color: #234c84 !important; }
.es-um-form .um-col-alt { margin: 26px 0 0; }
.es-um-form .um-col-alt .um-center, .es-um-form .um-col-alt .um-left { float: none; width: auto; text-align: left; }
.es-um-form .um-col-alt-b { margin: 20px 0 0; padding: 0; text-align: left !important; }
.es-um-form .um-field-label .um-req { color: #234c84 !important; }
/* UM forces this link to a centred grey block with !important (um-styles.css a.um-link-alt) */
.es-um-form .um-col-alt-b a.um-link-alt { display: inline !important; text-align: left; line-height: 1.5; color: #234c84 !important; font-size: 15px; font-weight: 600; border-bottom: 1.5px solid #6bc6af !important; text-decoration: none !important; }
.es-um-form .um-col-alt-b a.um-link-alt:hover { border-bottom-color: #234c84 !important; text-decoration: none !important; }
/* the submit: the navy wipe pill */
.es-um-form .um input[type="submit"].um-button { display: inline-block; width: auto !important; min-width: 0 !important; height: 57px; margin: 0; padding: 0 30px !important; border: 0 !important; border-radius: 999px !important; background: linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) no-repeat 100% 0 / 201% 100%, #234c84 !important; color: #ffffff !important; font: 600 17px/57px 'Outfit', sans-serif !important; cursor: pointer; transition: background-position .45s ease; box-shadow: none !important; }
.es-um-form .um input[type="submit"].um-button:hover { background-position: 0 0 !important; }
/* UM's validation messages and its "request received" message, in the site's colours */
.es-um-form .um-field-error { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecec !important; color: #8a1c1c !important; font-size: 14px; line-height: 1.4; }
.es-um-form .um-field-arrow { display: none; }
.es-um-form .um-postmessage, .es-login-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; background: #e1f4ef; color: #132d55; font-size: 15px; line-height: 1.5; }

/* --- Footer ------------------------------------------------------------- */

/*
 * Footer newsletter pill (Phase 5, 12/10/26).
 * WHY: the mockup draws the email field and the mint Subscribe button inside one
 * deep-navy pill (359 x 55, button 107.5 x 43 inset 6px). Gravity Forms has no
 * field for that shape, and its own theme styles the input and button. Matched
 * to the site's small secondary button (Outfit 15/700, #6bc6af on #132d55).
 * Qualified with the wrapper classes to beat Gravity Forms' own theme rules.
 */
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme { margin: 0; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme form { display: flex; align-items: center; gap: 12px; background: #1a3b69; border-radius: 999px; padding: 6px 6px 6px 24px; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform-body { flex: 1; min-width: 0; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gfield { margin: 0; padding: 0; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme input[type="email"] { width: 100%; height: 44px; padding: 0; border: 0; background: transparent; color: #ffffff; font: 400 16px/1.6 'DM Sans', sans-serif; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme input[type="email"]::placeholder { color: #d5dfec; opacity: 1; }
/* Focus (Kacey 14/10/26): the theme's dotted :focus-visible outline drew a box
 * inside the pill on click (a text input always matches :focus-visible, so it
 * shows for the mouse too). The pill takes a 2px mint ring instead, which is
 * also the keyboard focus indicator. The homepage newsletter and the enquiry
 * form already swap the outline for a navy border on focus. */
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme input[type="email"]:focus { outline: none; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme form { transition: box-shadow .2s ease; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme form:has(input[type="email"]:focus) { box-shadow: 0 0 0 2px #6bc6af; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform_footer { margin: 0; padding: 0; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform_button { height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: #6bc6af linear-gradient(90deg, #8ad3c0 0 50%, #6bc6af 50% 100%) 100% 0 / 201% 100% no-repeat; color: #132d55; font: 700 15px/44px 'Outfit', sans-serif; cursor: pointer; transition: background-position .45s ease; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform_button:hover { background-position: 0 0; }
/* the shortcode sits inside the text element's paragraph */
.es-footer-newsletter > p { margin: 0; }

/*
 * Floating call button, phones only (Phase 5, 12/10/26).
 * WHY: the template's floating call button, on every iSonic build, rebuilt in
 * brand navy (the seed shipped it olive). No builder element can be
 * position: fixed. Hidden from 960 up by its uk-hidden@m class.
 */
.floatingphone-mobile { position: fixed; right: 16px; bottom: 16px; z-index: 980; }
.floatingphone-mobile a { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 3px solid #ffffff; border-radius: 50%; background: #234c84; color: #ffffff; box-shadow: 0 8px 20px rgba(26, 59, 105, 0.3); }
.floatingphone-mobile a:hover { background: #1a3b69; color: #ffffff; }

/*
 * iSonic credit alignment (Phase 5, 12/10/26).
 * WHY: agency rule - bottom-right of the footer, centred on mobile. The
 * template's credit markup carries no alignment of its own, so each variant
 * (right from 960, centred below, by the builder's visibility setting) is
 * aligned here.
 */
.es-credit-right { text-align: right; }
.es-credit-center { text-align: center; }

/* --- Form states (Phase 11, 19/10/26) ------------------------------------ */

/*
 * Errors, the sending spinner and the thank-you message on the three Gravity
 * Forms (enquiry 1, footer newsletter 2, homepage newsletter 3).
 * WHY: the states only appear after a submit, so the earlier phases never drew
 * them, and Gravity Forms' own versions are off-brand on every one: a red-bordered
 * box with a drop shadow above the form, red labels, a full 1px red box round an
 * underline input, and a black and white spinner. All three forms submit by AJAX,
 * so each state replaces the form in place. The colours are the library forms'
 * (es-um-form above), so every form on the site errs the same way: #fdecec box,
 * #8a1c1c text, 10px radius. Labels stay ink; the message under the field says
 * what is wrong.
 * Markup read from Gravity Forms 3.1.3's own source on the dev server: the
 * summary .gform_validation_errors sits INSIDE the <form>, before .gform-body; a
 * failed field gets .gfield_error and its message .gfield_validation_message; the
 * spinner .gform-loader goes inside the button (seen in the captures); an inline
 * confirmation is .gform_confirmation_wrapper plus the form's own class (no
 * _wrapper suffix) round .gform_confirmation_message.
 */

/* the summary box: the enquiry form keeps it, in the site's colours */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_validation_errors { margin: 0 0 24px; padding: 14px 18px; border: 0; border-radius: 12px; background: #fdecec; box-shadow: none; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_validation_errors > h2 { margin: 0; color: #8a1c1c; font: 500 15px/1.5 'DM Sans', sans-serif; }
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon { display: none; }
/* Gravity Forms focuses the summary after a failed submit (so a screen reader reads it) and
   rings it in dark red; nothing in it can be clicked or typed in, so the box is the cue */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_validation_errors:focus { outline: none; }
/* the newsletters have one or two fields, so their summary is read out, not shown:
   Gravity Forms moves focus to it after a failed submit, so it stays in the page */
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform_validation_errors,
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_validation_errors { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; box-shadow: none; white-space: nowrap; }

/* the message under a field (same box as the library forms' .um-field-error) */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gfield_validation_message,
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gfield_validation_message,
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gfield_validation_message { margin: 8px 0 0; padding: 10px 14px; border: 0; border-radius: 10px; background: #fdecec; color: #8a1c1c; font: 400 14px/1.4 'DM Sans', sans-serif; }
/* the failed field: the underline turns red (Gravity Forms draws a full 1px box) */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gfield_error input[aria-invalid="true"],
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gfield_error textarea[aria-invalid="true"] { border: 0; border-bottom: 1.5px solid #c43d3d; }
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gfield_error input[aria-invalid="true"] { border: 1.5px solid #c43d3d; }

/* Footer newsletter, failed submit. The pill is the form's own background, so a
   message inside the form would land inside the pill and stretch it. In this state
   only, the form becomes a two-row grid: the pill is drawn by ::before on row 1
   behind the field and the button, and the message takes row 2, under the pill.
   The fields' wrappers step aside (display: contents) so the field and its
   message can sit in the grid. The normal state above is untouched. */
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error form { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: center; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error form::before { content: ''; grid-column: 1 / -1; grid-row: 1; align-self: stretch; border-radius: 999px; background: #1a3b69; box-shadow: 0 0 0 2px #c43d3d; transition: box-shadow .2s ease; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error form:has(input[type="email"]:focus)::before { box-shadow: 0 0 0 2px #6bc6af; }
/* the normal state's focus ring is on the form itself, which is the whole grid here */
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error form:has(input[type="email"]:focus) { box-shadow: none; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .gform-body,
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .gform_fields,
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .gfield--type-email { display: contents; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .ginput_container { grid-column: 1; grid-row: 1; min-width: 0; padding: 6px 0 6px 24px; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .gform_footer { grid-column: 2; grid-row: 1; padding: 6px 6px 6px 0; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error .gfield_validation_message { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme.gform_validation_error input[type="email"] { border: 0; }

/* the sending spinner. Gravity Forms 3.1.3 puts it INSIDE the button (gform-has-spinner),
   hides the label (color: transparent) and centres the spinner over it, so the button keeps
   its size; only the colours are ours (it ships black and white). Seen 19/10/26: placed in
   the row beside the label, it widened the button by 20px and sat off-centre. */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform-loader,
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform-loader,
.es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform-loader { font-size: 2.5px; border-color: rgba(255, 255, 255, 0.3); border-inline-start-color: #ffffff; }
.es-newsletter-footer_wrapper.gform_wrapper.gravity-theme .gform-loader { border-color: rgba(19, 45, 85, 0.25); border-inline-start-color: #132d55; }
/* Send's paper plane is a background layer, so it would stay beside the spinner: the
   wipe and the navy only while sending */
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_button.gform-has-spinner,
.es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_button.gform-has-spinner:hover { background: linear-gradient(90deg, #1a3b69 0 50%, #234c84 50% 100%) no-repeat 100% 0 / 201% 100%, #234c84; }

/* the thank-you message that replaces a newsletter form (the enquiry form goes to
   the Thank You page instead): the pill it replaced, with the export's mint tick */
.gform_confirmation_wrapper.es-newsletter-footer .gform_confirmation_message,
.gform_confirmation_wrapper.es-newsletter-home .gform_confirmation_message { display: flex; align-items: center; gap: 12px; box-sizing: border-box; border-radius: 999px; font: 500 16px/1.4 'DM Sans', sans-serif; }
.gform_confirmation_wrapper.es-newsletter-footer .gform_confirmation_message::before,
.gform_confirmation_wrapper.es-newsletter-home .gform_confirmation_message::before { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #6bc6af url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23132d55' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 16px 16px; }
.gform_confirmation_wrapper.es-newsletter-footer .gform_confirmation_message { min-height: 56px; padding: 6px 24px 6px 14px; background: #1a3b69; color: #ffffff; }
.gform_confirmation_wrapper.es-newsletter-home .gform_confirmation_message { min-height: 56px; padding: 8px 28px 8px 14px; border: 1.5px solid #cfe3dd; background: #ffffff; color: #132d55; }

/* --- Media queries ------------------------------------------------------ */

@media (max-width: 640px) {
    /* Enquiry form (Phase 8, M11/M13): Gravity Forms makes every field full width
     * up to 640, but the 28px column gap still applied to its 12-column grid:
     * 11 gaps = 308px, wider than the 250px card at 320. One column, no gap. */
    .es-contact-form_wrapper.gform_wrapper.gravity-theme .gform_fields { column-gap: 0; }
}

@media (max-width: 639px) {
    /* Homepage newsletter (Phase 6): Name, Email and Subscribe stack on phones. */
    .es-newsletter-home_wrapper.gform_wrapper.gravity-theme form,
    .es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_fields { flex-direction: column; align-items: stretch; }
    .es-newsletter-home_wrapper.gform_wrapper.gravity-theme .gform_button { width: 100%; }
}

@media (max-width: 959px), (hover: none) and (pointer: coarse) {
    /* Touch targets (Phase 8, M40): every tappable thing at least 44px tall on
     * phones and touch screens. Desktop with a mouse keeps the mockup's sizes.
     * - text links ("How we work", "All services" ...) measured 31px
     * - the Resource Library small buttons 41px
     * No element or theme setting sets a minimum tap height. */
    .uk-button-text { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
    .uk-button-small { min-height: 44px; line-height: 42px; }
    /* the enquiry form's underline inputs, 34px as drawn, 44px to tap */
    .es-contact-form_wrapper.gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]):not([type="submit"]) { min-height: 44px; }
    /* breadcrumb links on every inner page measured 18px tall (Phase 9 check, M40) */
    .uk-breadcrumb > * > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}

@media (max-width: 959px) {
    /* Mobile header (Phase 8, M40): the menu toggle was 20px wide, because the
     * nav item padding is 0 for the desktop nav's 36px spacing (Phase 4) and the
     * toggle shares that variable. 12px each side; the icon sits 12px in from the
     * container edge (a negative margin to keep it flush overflowed the navbar, M11). */
    .tm-header-mobile .uk-navbar-toggle { padding-left: 12px; padding-right: 12px; }
    /* The logo in the mobile menu measured 36px tall (M40). */
    .uk-offcanvas-bar .uk-logo { display: inline-flex; align-items: center; min-height: 44px; }

    /* Floating call button clearance (Phase 5): the 56px button sits 16px off
     * the bottom on phones and covered the credit (foot-375.png, 12/10/26).
     * Section padding has no per-breakpoint setting in YOOtheme. */
    .es-footer-bottom { padding-bottom: 96px; }
}

@media (min-width: 960px) and (max-width: 1199px) {
    /* Desktop header, downsized (Phase 8, M01b/M05, Kacey 14/10/26: downsize the
     * header, never raise the mobile breakpoint). The full-size header needs
     * 943.5px (logo 229 + nav 457.6 + 44 gap + button 212.9): from 960 to 1023
     * it wrapped into three rows (227px) and at 1024 the logo touched "Home".
     * Here: the logo at 36px tall (179 wide), the mobile header's own size; nav
     * items 24px apart (36); 24px from the nav to the button (44). 825.7px, so
     * 54px clear of the logo at 960. The logo height, @navbar-nav-gap-m and
     * @navbar-gap-m are single values for every desktop width, and the mockup's
     * full size holds from 1200, so the band needs a query. Button and nav type
     * stay full size. */
    .tm-header .uk-logo img { height: 36px; width: auto; }
    .tm-header .uk-navbar-nav { gap: 24px; }
    .tm-header .uk-navbar-right { gap: 24px; }
}
