/* Style-only restyle of the existing Elementor subpages. Layout and content are untouched.
   Everything is scoped under body.um-restyle. The home hero (.um-hero) keeps its own styles. */
@font-face { font-family: "UM Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/InterTight-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "UM Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../fonts/InterTight-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.um-restyle {
  --rs-ink: #181D27; --rs-text: #414651; --rs-muted: #535862; --rs-line: #E9EAEB; --rs-soft: #F5F5F5; --rs-yellow: #FFD100;
  --rs-display: "UM Inter Tight", "Inter Tight", Inter, system-ui, sans-serif;
  --rs-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fff; color: var(--rs-text); -webkit-font-smoothing: antialiased;
}

/* Headings: Inter Tight, bold, tight tracking */
body.um-restyle :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title):not(.um-hero *) { font-family: var(--rs-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--rs-ink); text-wrap: balance; }
body.um-restyle h1:not(.um-hero *), body.um-restyle .elementor-widget-heading h1.elementor-heading-title:not(.um-hero *) { letter-spacing: 0 !important; }
/* white headings stay white on photo banners */
body.um-restyle .elementor-heading-title[style*="color: #fff"], body.um-restyle .elementor-heading-title[style*="color:#fff"] { color: #fff; }

/* Body copy: Inter, comfortable size */
body.um-restyle :is(.elementor-widget-text-editor, .elementor-widget-theme-post-content, .entry-content) { font-family: var(--rs-sans) !important; font-size: 16px; line-height: 1.6; }
body.um-restyle :is(.elementor-widget-text-editor, .elementor-widget-theme-post-content, .entry-content) :is(p, li, td, div, span) { font-family: var(--rs-sans) !important; }
body.um-restyle .elementor-widget-text-editor p { line-height: 1.6; }

/* Buttons: pills, ink */
body.um-restyle .elementor-button:not(.um-hero *) { font-family: var(--rs-display) !important; font-weight: 600 !important; letter-spacing: 0 !important; font-size: 16px; line-height: 24px; border-radius: 999px !important; min-height: 48px; padding: 12px 26px; box-shadow: none; transition: background-color .15s, color .15s, border-color .15s; }
body.um-restyle .elementor-button:not(.um-hero *):hover { box-shadow: none; }

/* Forms (Elementor Pro Form): boxed rounded fields, labels above */
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-label { font-family: var(--rs-sans); font-size: 14px; font-weight: 500; color: var(--rs-ink); letter-spacing: 0; margin-bottom: 6px; }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual:not(.elementor-select-wrapper), body.um-restyle .elementor-form:not(.um-hero *) .elementor-select-wrapper select { min-height: 52px; padding: 0 16px !important; border: 1px solid #D5D7DA !important; border-radius: 14px !important; background-color: #fff; color: var(--rs-ink); font: 400 16px/24px var(--rs-sans); box-shadow: none; }
body.um-restyle .elementor-form:not(.um-hero *) textarea.elementor-field-textual { min-height: 120px; padding: 14px 16px !important; }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual::placeholder { color: #717680; opacity: 1; }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual:focus, body.um-restyle .elementor-form:not(.um-hero *) .elementor-select-wrapper select:focus { outline: 2px solid var(--rs-ink); outline-offset: 1px; border-color: var(--rs-ink) !important; }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-type-submit .elementor-button { min-height: 52px; }

/* Accordions / toggles */
body.um-restyle .elementor-accordion .elementor-tab-title, body.um-restyle .elementor-toggle .elementor-tab-title { font-family: var(--rs-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--rs-ink); padding-top: 20px; padding-bottom: 20px; }
body.um-restyle .elementor-accordion .elementor-tab-title a, body.um-restyle .elementor-toggle .elementor-tab-title a { font: inherit !important; color: inherit; }
body.um-restyle .elementor-accordion .elementor-accordion-item, body.um-restyle .elementor-toggle .elementor-toggle-item { border-color: var(--rs-line) !important; }
body.um-restyle .elementor-accordion .elementor-tab-content, body.um-restyle .elementor-toggle .elementor-tab-content { border-color: var(--rs-line) !important; color: var(--rs-text); font-family: var(--rs-sans); }

/* Counters */
body.um-restyle .elementor-counter-number-wrapper { font-family: var(--rs-display) !important; font-weight: 700 !important; letter-spacing: 0; }
body.um-restyle .elementor-counter-title { font-family: var(--rs-sans) !important; font-weight: 400; color: var(--rs-muted); }

/* Soft bands share one tone */
body.um-restyle .elementor-section[style*="background-color:#e9"], body.um-restyle .e-con[style*="background-color:#e9"] { background-color: var(--rs-soft) !important; }

/* Cards: Elementor image boxes, broker cards, news cards */
body.um-restyle .um-brokers-grid > * { border-radius: 20px; overflow: hidden; box-shadow: none; border: 1px solid var(--rs-line); background: #fff; }
body.um-restyle .um-brokers-grid img { border-radius: 0; }
body.um-restyle :is(main, .page-content, .entry-content) :is(.elementor-widget-image img, .elementor-image-box-img img):not(.um-hero *):not([src*="logo"]) { border-radius: 20px; }
body.um-restyle :is(header, footer, .elementor-location-header, .elementor-location-footer) img, body.um-restyle .elementor-widget-theme-site-logo img, body.um-restyle img[src*="logo"] { border-radius: 0 !important; }
body.um-restyle .elementor-posts .elementor-post, body.um-restyle .e-loop-item { border-radius: 20px; box-shadow: none; }

/* Footer and header typography (layout untouched) */
body.um-restyle footer :is(h2, h3, h4, .elementor-heading-title) { font-family: var(--rs-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
body.um-restyle .elementor-nav-menu .elementor-item { font-family: var(--rs-sans); font-weight: 500; letter-spacing: 0.04em; }
body.um-restyle a:not(.elementor-button):not(.elementor-item) { text-underline-offset: 3px; }
@media (max-width: 767px) { body.um-restyle { font-size: 16px; } body.um-restyle .elementor-button:not(.um-hero *) { width: auto; } }

/* Soft bands: the kit's "Gray 200" (#E9EAEB) becomes the shared soft tone #F5F5F5 on restyled pages */
body.um-restyle.elementor-kit-6 { --e-global-color-e55f96a: #F5F5F5; }
/* Nested accordion (Elementor 4) */
body.um-restyle .e-n-accordion-item-title, body.um-restyle .e-n-accordion-item-title-header, body.um-restyle .e-n-accordion-item-title-text { font-family: var(--rs-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--rs-ink); }
body.um-restyle .e-n-accordion-item-title { padding-top: 18px; padding-bottom: 18px; }
body.um-restyle .e-n-accordion-item { border-color: var(--rs-line) !important; }
body.um-restyle .e-n-accordion-item > .e-con { font-family: var(--rs-sans); color: var(--rs-text); }
/* Post lists: the card clips overflow, so give the text a little room so tight-tracked first letters are not cut */
body.um-restyle .elementor-post__text { padding-left: 4px; padding-right: 4px; }

/* ====================== redesign (2026-11): brand blue, 6px corners, no negative tracking ====================== */
body.um-restyle { --rs-brand: #012169; --rs-brand-2: #00164A; }
body.um-restyle :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title):not(.um-hero *):not(footer *) { color: var(--rs-brand); letter-spacing: 0 !important; }
body.um-restyle h1:not(.um-hero *), body.um-restyle .elementor-widget-heading h1.elementor-heading-title:not(.um-hero *) { letter-spacing: 0 !important; }
body.um-restyle .elementor-heading-title[style*="color: #fff"], body.um-restyle .elementor-heading-title[style*="color:#fff"], body.um-restyle [class*="elementor-"] [style*="background-image"] .elementor-heading-title { color: #fff; }
body.um-restyle .elementor-button:not(.um-hero *):not(.elementor-button[type="submit"]) { border-radius: 6px !important; letter-spacing: 0 !important; position: relative; isolation: isolate; overflow: hidden; transition: color .28s, border-color .28s, transform .12s; }
body.um-restyle .elementor-button:not(.um-hero *):not(.elementor-button[type="submit"])::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rs-brand-2); transform: translateX(-101%); transition: transform .34s cubic-bezier(.22,.61,.36,1); }
body.um-restyle .elementor-button:not(.um-hero *):not(.elementor-button[type="submit"]):hover::before { transform: none; }
body.um-restyle .elementor-button:not(.um-hero *):not(.elementor-button[type="submit"]):active { transform: scale(.97); }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual:not(.elementor-select-wrapper), body.um-restyle .elementor-form:not(.um-hero *) .elementor-select-wrapper select { border-radius: 6px !important; }
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual:focus { outline-color: var(--rs-brand); border-color: var(--rs-brand) !important; }
body.um-restyle :is(main, .page-content, .entry-content) :is(.elementor-widget-image img, .elementor-image-box-img img):not(.um-hero *):not([src*="logo"]) { border-radius: 6px; }
body.um-restyle .elementor-posts .elementor-post, body.um-restyle .e-loop-item { border-radius: 6px; }
body.um-restyle .elementor-accordion .elementor-tab-title, body.um-restyle .elementor-toggle .elementor-tab-title, body.um-restyle .e-n-accordion-item-title-text { color: var(--rs-brand); letter-spacing: 0 !important; }
body.um-restyle .elementor-counter-number-wrapper { color: var(--rs-brand); letter-spacing: 0; }
body.um-restyle a:not(.elementor-button):not(.elementor-item):not(.umc a):not(.umbc a) { text-decoration-color: var(--rs-brand); }
/* footer in the new look: same grey, blue headings, 4 columns as before */
.elementor-location-footer { background: #F5F5F5; }
.elementor-location-footer :is(h2, h3, h4, .elementor-heading-title) { color: #181D27; letter-spacing: 0; }
/* home hero: brand-blue submit button, 6px */
.um-hero-form .elementor-button[type="submit"], .um-hero .elementor-button[type="submit"] { background: #012169 !important; border-radius: 6px !important; }

/* 2026-11 review: footer headings without tracking, in-text links in brand blue */
.elementor-location-footer :is(h1,h2,h3,h4,h5,.elementor-heading-title) { letter-spacing: 0 !important; }
.elementor-widget-text-editor a:not(.elementor-button) { color: var(--um-brand, #012169); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.elementor-widget-text-editor a:not(.elementor-button):hover { color: var(--um-brand-2, #00164A); }

/* 2026-11 review: single 6px radius for fields, cards, images and buttons */
body.um-restyle .elementor-form:not(.um-hero *) .elementor-field-textual:not(.elementor-select-wrapper), body.um-restyle .elementor-form:not(.um-hero *) .elementor-select-wrapper select { border-radius: 6px !important; }
body.um-restyle .um-brokers-grid > * { border-radius: 6px; }
body.um-restyle :is(main, .page-content, .entry-content) :is(.elementor-widget-image img, .elementor-image-box-img img):not(.um-hero *):not([src*="logo"]) { border-radius: 6px; }
body.um-restyle .elementor-posts .elementor-post, body.um-restyle .e-loop-item { border-radius: 6px; }
body.um-restyle .elementor-button:not(.um-hero *):not(.elementor-button[type="submit"]) { border-radius: 6px !important; letter-spacing: 0 !important; }

/* Maaklerid: same plain white header as Pakkumised (title left, short intro), no dark banner */
body.page-id-722 .elementor-element-b9acd7b { background: #fff !important; background-image: none !important; min-height: 0 !important; }
body.page-id-722 .elementor-element-b9acd7b::before, body.page-id-722 .elementor-element-b9acd7b > .elementor-background-overlay { display: none !important; background: none !important; }
body.page-id-722 .elementor-element-b9acd7b > .e-con-inner { max-width: 1560px; padding: 48px 40px 8px; align-items: flex-start; }
body.page-id-722 .elementor-element-b9acd7b .elementor-heading-title { color: #012169 !important; font: 700 clamp(30px, 3.2vw, 44px)/1.1 "Inter Tight", Inter, sans-serif !important; letter-spacing: 0 !important; text-align: left !important; }
body.page-id-722 .elementor-element-b9acd7b .elementor-widget-text-editor, body.page-id-722 .elementor-element-b9acd7b .elementor-widget-text-editor * { color: #414651 !important; text-align: left !important; }
body.page-id-722 .elementor-element-b9acd7b .elementor-widget-text-editor { max-width: 760px; font: 400 17px/1.6 Inter, system-ui, sans-serif; }
@media (max-width: 820px) { body.page-id-722 .elementor-element-b9acd7b > .e-con-inner { padding: 32px 20px 0; } }
body.page-id-722 .e-con:has(.um-brokers-grid), body.page-id-722 .e-con:has(.um-brokers-grid) > .e-con-inner { background: #fff !important; }
body.page-id-722 .e-con:has(.um-brokers-grid) > .e-con-inner { max-width: 1560px; width: 100%; padding: 24px 40px 80px; box-sizing: border-box; }
body.page-id-722 .um-brokers-grid { max-width: none; width: 100%; gap: 24px; }
@media (max-width: 820px) { body.page-id-722 .e-con:has(.um-brokers-grid) > .e-con-inner { padding: 20px 20px 56px; } }
