/* MFI Radiology – shared site styles for all landing pages (SOURCE OF TRUTH: shared/assets/css/site.css; copied into each
   funnel by tools/sync-shared.py — do not edit the copies).
   Reproduced from mfiradiology.com.au (Bygge theme + Elementor kit 2608) and verified against the live DOM with
   tools/compare-live.mjs. Values are the measured live values unless commented otherwise. */

/* Self-hosted copies of the exact Google Fonts families the live site loads (Source Sans Pro, Roboto, Rubik, Manrope), latin subset, woff2. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rubik-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-pro-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-pro-700-latin.woff2') format('woff2'); }

:root {
  --primary: #cc2027;          /* --codeless-primary-color / --e-global-color-primary */
  --secondary: #ff0000;        /* --codeless-secondary-color (button hover) */
  --dark: #1d2327;             /* header, menu, footer */
  --dark-2: #1c242a;
  --black: #231f20;
  --page-bg: #f4f7f9;
  --text: #6b7178;             /* live --e-global-color-text is #7A7A7A (4.0:1 on the page background, fails WCAG AA); #6B7178 is the nearest grey that passes (4.6:1 on #F4F7F9, 4.9:1 on white) */
  --text-strong: #4f5559;
  --footer-text: #b2bdc6;
  --footer-icon: #4b565e;
  --line: #d7dbde;
  --line-soft: #e4e7e9;
  --error: #b3261e;
  --success: #1f7a4d;
  --whatsapp: #0f766a;         /* WhatsApp teal darkened for 5.5:1 white-text contrast (brand #128C7E measures 4.13:1) */

  --f-primary: "Source Sans Pro", "Source Sans 3", sans-serif;   /* --e-global-typography-primary-font-family (self-hosted, same files Google serves the live site) */
  --f-text: Roboto, sans-serif;                                    /* --e-global-typography-text-font-family */
  --f-rubik: Rubik, sans-serif;
  --f-manrope: Manrope, sans-serif;

  --container: 1140px;         /* Elementor boxed container */
  --header-h: 136px;
  --header-h-mobile: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* body: .elementor-kit-2608 – Roboto 16/28 on #F4F7F9 with the logo-mark watermark (text grey nudged for WCAG AA, see --text) */
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
  background: var(--page-bg) url("../img/mfi-watermark.png") no-repeat 100% 54% / 38% auto;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 1024px) { body { background-position: 97% 71%; background-size: 334px auto; } }
@media (max-width: 767px)  { body { background-image: url("../img/mfi-watermark-400.png"); background-position: 100% 73%; background-size: 256px auto; } main p { font-size: 17.6px; line-height: 29.92px; margin-bottom: 17.6px; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
p { margin: 0 0 16px; }
p a { color: var(--primary); font-weight: 700; text-decoration: underline; }
p a:hover { color: var(--secondary); }
strong { color: var(--text-strong); font-weight: 700; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--f-primary); font-weight: 700; color: #000; margin: 0 0 20px; line-height: 1.2; }
h1 { font-size: 72px; line-height: 86.4px; color: #fff; }
h2 { font-size: 40px; line-height: 48px; }
h3 { font-size: 26px; line-height: 32px; }
@media (max-width: 1024px) { h1 { font-size: 56px; line-height: 67.2px; } h2 { font-size: 34px; line-height: 40px; } }
@media (max-width: 767px)  { h1 { font-size: 48px; line-height: 57.6px; } h2 { font-size: 30px; line-height: 36px; } h3 { font-size: 24px; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1180px) { .container { padding: 0; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -100px; background: var(--dark); color: #fff; padding: 10px 14px; z-index: 1000; }
.skip-link:focus { top: 8px; }
.gtm-noscript { display: none; visibility: hidden; }

/* ------------------------------------------------------------------ .btnn (site button rule, verbatim) */
.btnn {
  font-family: var(--f-primary); display: inline-block; text-decoration: none; font-weight: 600; font-size: 1em; line-height: 28px;
  letter-spacing: .1em; background-color: var(--primary); color: #fff; margin: 10px 10px 10px 0; padding: 10px 20px;
  border-radius: 5px; border: 0; cursor: pointer; transition: background-color .2s; text-align: center;
}
.btnn:hover, .btnn:focus-visible { background-color: var(--secondary); color: #fff; }
.btnn svg { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.btnn--outline { background: transparent; color: var(--dark); box-shadow: inset 0 0 0 2px var(--dark); }
.btnn--outline:hover, .btnn--outline:focus-visible { background: var(--dark); color: #fff; }
.btnn--whatsapp { background: var(--whatsapp); }
.btnn--whatsapp:hover, .btnn--whatsapp:focus-visible { background: #0b5f56; }
.btnn--block { display: block; width: 100%; margin: 10px 0 0; }
.btnn[disabled], .btnn[aria-busy="true"] { opacity: .75; cursor: progress; }

.req { color: #c02b0a; font-weight: 700; }   /* required-field marker, colour from the live Gravity Forms */

/* ------------------------------------------------------------------ Trust bar (brief requirement; not on the live site) */
.trustbar { background: #14191c; color: #b2bdc6; font-family: var(--f-manrope); font-size: 12px; line-height: 20px; }
.trustbar__inner { padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trustbar p { margin: 0; }
.trustbar strong { color: #fff; font-weight: 700; }
.trustbar a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 24px; }
.trustbar a:hover { text-decoration: underline; }
.trustbar svg { width: 14px; height: 14px; }
@media (max-width: 1024px) { .trustbar a { min-height: 44px; } }   /* comfortable tap target on touch devices */
@media (max-width: 767px) { .trustbar__inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px; } }

/* ------------------------------------------------------------------ Header (Elementor header #2576: section padding 0 20px; columns 10% logo / 50% menu / 40% buttons) */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.site-header__inner { padding: 0 20px; min-height: 120px; display: flex; align-items: center; }   /* live: 120px, or 136px while the two buttons stack (below ~1500px) */
.site-logo { flex: 0 0 10%; padding: 10px; min-width: 0; }                /* column padding 10px → logo at x=30 */
.site-logo img { width: 123px; max-width: 100%; height: auto; }          /* live: 123px wide, clamped by the 10% column → 113x49 @1366, 96x42 @1200, 123x54 @1920 */

.site-nav { flex: 0 0 50%; padding: 0 0 0 20px; display: flex; align-items: center; min-width: 0; }   /* ul = column − 20px, e.g. 643px @1366, 920px @1920 */
.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
.menu > li { position: relative; margin: 0 20px 0 0; }
.menu a {
  font-family: var(--f-primary); font-weight: 600; font-size: 16px; line-height: 16px; letter-spacing: 1.5px; color: #fff;
  text-decoration: none; display: flex; align-items: center; padding: 13px 4px; position: relative; white-space: nowrap;
  transition: color .2s;
}
.menu > li.has-sub > a { padding-right: 14px; }   /* live items with children carry a 10px sub-arrow placeholder */
.menu > li:hover > a, .menu > li.is-open > a, .menu > li > a:focus-visible { color: var(--primary); }
.sub-toggle { display: none; }
/* live .sub-menu: rgba(29,35,39,.75), 220px, items 16px/16px padding 16px 20px, 1px dividers, 4px top radius */
.sub-menu {
  position: absolute; left: 0; top: 100%; width: 220px; background: rgba(29, 35, 39, .75); padding: 0; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu, .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.sub-menu a { padding: 16px 20px; line-height: 16px; white-space: normal; border-radius: 4px; }
.sub-menu li:first-child a { border-radius: 4px; }
.sub-menu a:hover { color: var(--primary); }

.header-btns { flex: 0 0 40%; display: flex; justify-content: flex-end; align-items: center; min-width: 0; padding-right: 6px; }   /* button right edge as live (x=1331 @1366, x=1883 @1920) */
.header-btns__row { width: 54%; display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; align-items: center; }   /* live html widget ≈54% of the column: side by side when it fits (≥~1500px), stacked below */
.btnn.nav { display: block; margin: 10px 10px 10px 0; white-space: nowrap; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }   /* 42x45 tap target around the live 22x25 icon */
.nav-toggle svg { width: 22px; height: 25px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  /* live mobile header: 120px, section padding 0 10px, logo 123x54 at (20,21), bars icon 22px at right edge 380 */
  .site-header { position: relative; }
  .site-header__inner { min-height: var(--header-h-mobile); align-items: flex-start; padding: 11px 10px 0; }
  .site-logo { flex: 0 0 auto; padding: 10px; }
  .site-logo img { width: 123px; height: 54px; }
  .header-btns { display: none; }
  .nav-toggle { display: block; margin-top: 14px; margin-right: -10px; }   /* icon stays at (358,35) like the live site */
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex: none; background: rgba(29, 35, 39, .75); padding: 0; z-index: 90; max-height: calc(100vh - var(--header-h-mobile)); overflow: auto; }
  .site-nav.is-open { display: block; }
  .menu { display: block; }
  .menu > li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; align-items: center; background: rgba(29, 35, 39, .75); }
  .menu > li > a, .menu > li.has-sub > a { flex: 1; padding: 16px 20px; font-size: 16px; line-height: 16px; }
  .sub-toggle { display: block; background: none; border: 0; color: #fff; padding: 12px 20px; cursor: pointer; }
  .sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; flex-basis: 100%; width: auto; background: transparent; border-radius: 0; }
  .menu > li.is-open > .sub-menu { display: block; }
  .sub-menu li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .sub-menu li:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
  .sub-menu a { padding: 16px 20px 16px 40px; font-size: 16px; background: rgba(29, 35, 39, .75); border-radius: 4px; }
  .sub-menu li:first-child a { border-radius: 4px; }
}

/* ------------------------------------------------------------------ Page header banner (.ce-page-header.modern → .page-data padding 80px 0, H1 margin 50px 0 48px) */
.page-header { position: relative; background: var(--page-bg); color: #fff; overflow: hidden; }
.page-header__bg { position: absolute; inset: 0; z-index: 0; }
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-header__inner { position: relative; z-index: 1; max-width: 1366px; margin: 0 auto; padding: 64px 15px 80px; }   /* live: 80px top, of which 16px sits under the fixed header */
.page-header h1 { margin: 50px 0 48px; }
.page-header h1 .h1-sub { display: block; font-size: 32px; line-height: 40px; font-weight: 600; margin-top: 14px; }
@media (max-width: 1024px) { .page-header h1 .h1-sub { font-size: 26px; line-height: 32px; } }
@media (max-width: 767px) {
  .page-header__inner { padding: 60px 15px 60px; }
  .page-header h1 { margin: 20px 0 32px; }
  .page-header h1 .h1-sub { font-size: 22px; line-height: 28px; margin-top: 12px; }
  .page-header__bg img { object-position: 28% 50%; }   /* keep the image's built-in red gradient behind the text on narrow screens */
}


/* ================================================================== Shared page components (approved styling, used by every funnel) */
.section { position: relative; padding: 70px 0; }
.section--dark { background: var(--dark); color: var(--footer-text); }
.section--dark h2 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__head h2 { margin-bottom: 12px; }
.section__cta { text-align: center; margin-top: 30px; }
.section__cta .btnn { margin: 10px 5px 0; }
@media (max-width: 1024px) { .section { padding: 56px 0; } }

/* Boxes (white panel, hairline border, 5px radius like the site's buttons/forms) */
.boxes { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .boxes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 991px) { .boxes { gap: 16px; } .box { padding: 24px 18px; } .box h3 { font-size: 22px; line-height: 28px; } }
.box { background: #fff; border: 1px solid var(--line-soft); border-radius: 5px; padding: 34px 30px; }
.box__icon { width: 56px; height: 56px; color: var(--primary); margin-bottom: 18px; }
.box__icon svg { width: 56px; height: 56px; }
.box h3 { margin-bottom: 10px; }
.box p { margin: 0; }

/* Final CTA band */
.final { text-align: center; }
.final p { color: #c9cfd4; max-width: 640px; margin: 0 auto 10px; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; }
.final__hours { font-size: 14px; line-height: 22px; color: #9aa4ac; margin-top: 18px; }

/* Legal strip (blueprint compliance items; sits above the shared footer) */
.legal { background: var(--page-bg); border-top: 1px solid var(--line-soft); padding: 28px 0; font-size: 13px; line-height: 20px; color: var(--text); }
.legal__inner { display: grid; grid-template-columns: 1fr; gap: 12px 40px; }
@media (min-width: 992px) { .legal__inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.legal__notice { margin: 0; }
.legal__notice strong { color: var(--black); }
.legal__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
@media (min-width: 992px) { .legal__links { justify-content: flex-end; } }
.legal__links li + li::before { content: "|"; margin: 0 10px; color: var(--line); }
.legal__links a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.legal__copyright { margin: 14px 0 0; font-size: 12px; line-height: 18px; }

/* ------------------------------------------------------------------ Footer (Elementor footer #148, measured: Footer-BG cover, 1140px container, 4 x 285px columns, H3 at 85px, copyright bar full-bleed) */
.site-footer { position: relative; background: var(--dark-2) url("../img/footer-bg-1600.jpg") center / cover no-repeat; color: var(--text); padding: 60px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.site-footer__col { padding: 10px; }
.site-footer h3 { color: #fff; font-size: 36.8px; line-height: 36px; margin: 15px 0 20px; }
.footer-logo img { width: 200px; height: auto; margin-bottom: 20px; }
.footer-badge img { width: 150px; height: auto; }
.icon-box { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.icon-box svg { width: 24px; height: 24px; color: var(--footer-icon); flex: none; margin-top: 2px; }
.icon-box span, .icon-box a { font-family: var(--f-text); font-weight: 500; font-size: 16px; line-height: 28px; color: var(--footer-text); text-decoration: none; }
.icon-box a { display: inline-block; }   /* full 28px line box as the tap target */
.icon-box a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { font-family: var(--f-rubik); font-weight: 400; font-size: 16px; line-height: 36px; color: var(--footer-text); text-decoration: none; display: block; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 20px; }
.social a { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 18px; line-height: 18px; transition: border-color .2s, background .2s; }
.social a:hover { border-color: var(--primary); background: var(--primary); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-notice { margin: 40px 0 0; font-family: var(--f-manrope); font-size: 12px; line-height: 20px; color: #9aa4ac; }
.footer-notice strong { color: #fff; }
.footer-bottom { margin: 50px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 10px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; }
.footer-bottom p { margin: 0; font-family: var(--f-manrope); font-size: 12px; line-height: 36px; color: #fff; }
.footer-bottom a { color: #fff; font-weight: 700; text-decoration: underline; }
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  /* live mobile footer: centred, icons above text, H3 28.8px, columns 370px (section padding 10px), copyright 14.4px/24.48px */
  .site-footer { padding: 50px 0 0; }
  .site-footer .container { padding: 0 10px; }
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer__col { padding: 10px; }
  .site-footer h3 { font-size: 28.8px; margin: 15px 0 10px; }
  .footer-logo img, .footer-badge img { margin-left: auto; margin-right: auto; }
  .footer-logo img { margin-bottom: 20px; }
  .icon-box { flex-direction: column; align-items: center; gap: 9px; margin-bottom: 10px; }
  .icon-box svg { margin-top: 0; }
  .social { justify-content: center; }
  .footer-notice { text-align: center; padding: 0 10px; }
  .footer-bottom { padding-bottom: calc(10px + var(--sticky-space, 0px)); }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .footer-bottom p { font-size: 14.4px; line-height: 24.48px; }
}

/* ------------------------------------------------------------------ Mobile sticky actions (brief requirement; not on the live site) */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left)); background: rgba(29, 35, 39, .97); border-top: 1px solid rgba(255, 255, 255, .12); }
.stickybar .btnn { margin: 0; padding: 10px 12px; font-size: 15px; }
.stickybar .btnn--ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.stickybar .btnn--ghost:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .stickybar { display: none; } }
@media (max-width: 767px) { body { --sticky-space: 72px; } }

