/* AlfredCare Site Theme: reset, layout shell, header, mobile menu, footer, scroll-top.
   Values were measured on the OceanWP version of the site so the two render identically. */

/* ---------- Tokens ---------- */
:root {
	--ac-teal: #00A8C6;
	--ac-navy: #1E4054;
	--ac-navy-dark: #0C4156;
	--ac-yellow: #F2B705;
	--ac-teal-light: #66CBDD;
	--ac-teal-bg: #E6F6F9;
	--ac-grey: #F2F2F2;
	--ac-text: #4a4a4a;
	--ac-header-bg: #fbfbfb;
	--ac-font: Montserrat, sans-serif;
}

/* ---------- Reset (what OceanWP's base provided) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; font-size: 62.5%; overflow-x: hidden; overflow-y: scroll; }
body { margin: 0; background: #fff; color: var(--ac-text); font: 400 14px/1.8 var(--ac-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
select { font-size: 14px; height: 31.5px; padding: 0 15px; border: 1px solid #ddd; background: #fff; color: var(--ac-text); }
img { max-width: 100%; height: auto; border: 0; }
a { color: #333; text-decoration: none; transition: .3s; }
a:focus, button:focus { outline: none; box-shadow: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ac-font); line-height: 1.4; margin: 0 0 20px; color: #333; font-weight: 600; }
h1 { font-size: 23px; } h2 { font-size: 20px; } h3 { font-size: 18px; } h4 { font-size: 17px; } h5 { font-size: 14px; } h6 { font-size: 15px; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 20px; padding-left: 20px; }
.clr::after { content: ""; display: block; clear: both; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; height: auto; width: auto; left: 6px; top: 7px; z-index: 100000; background: #fff; padding: 15px 23px; }
#outer-wrap, #wrap, #main, #content-wrap { position: relative; }

/* Inline SVG icons that replace OceanWP's icon fonts: sized like a glyph of the current font. */
.ac-i { display: inline-block; box-sizing: content-box; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
.ac-i-angle-right { width: .625em; }
/* Meta icons: Simple Line Icons glyphs sat on a wider advance and a taller line box than 1em. */
ul.meta li .ac-i, time.published .ac-i { width: 17px; height: 17px; vertical-align: -7px; }

/* ---------- Header ---------- */
#site-header { position: sticky; top: 0; z-index: 9998; background: var(--ac-header-bg); }
.admin-bar #site-header { top: 32px; }
#site-header-inner { position: relative; width: 1240px; max-width: 90%; margin: 0 auto; padding: 10px 0; }
#site-logo { display: table; float: left; }
#site-logo-inner { display: block; }
#site-logo a { display: inline; }
#site-logo img { display: block; max-height: 60px; width: auto; }

/* Language switch under the logo (mobile only; desktop uses the menu item) */

/* Desktop navigation */
#site-navigation-wrap { display: none; position: relative; }
#site-navigation ul { list-style: none; margin: 0; padding: 0; }
#site-navigation .main-menu { display: flex; align-items: center; }
#site-navigation .main-menu > li { position: relative; margin: 0; }
/* Designer feedback 29.10.: links navy by default and teal on hover, wider spacing, language as a separate pill, wider buttons (Figma header). */
#site-navigation .main-menu > li > a { display: block; padding: 0 14px; font: 500 15px/40px var(--ac-font); letter-spacing: .2px; color: var(--ac-navy); transition: .3s; }
#site-navigation .main-menu > li > a:hover { color: var(--ac-teal); }
#site-navigation .ac-meet-alfred .ac-ma-caret { font-size: 11px; margin-left: 5px; }
/* Language pill (Figma: flag + code, grey pill); the two languages open underneath on hover */
#site-navigation .menu-item-lang > a { padding: 0 8px 0 18px; }
#site-navigation .menu-item-lang .text-wrap { display: inline-flex; align-items: center; gap: 8px; background: #F2F2F2; padding: 0 16px 0 14px; border-radius: 999px; line-height: 36px; color: var(--ac-navy); transition: background .3s, color .3s; }
#site-navigation .menu-item-lang > a:hover .text-wrap, #site-navigation .menu-item-lang:focus-within .text-wrap { background: var(--ac-teal-bg); color: var(--ac-teal); }
#site-navigation .ac-flag { display: inline-block; width: 21px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); flex: none; }
#site-navigation .ac-flag svg { display: block; width: 100%; height: 100%; }
#site-navigation .ac-lang-menu { position: absolute; top: 100%; left: 8px; min-width: 150px; background: #fff; border-top: 3px solid #01a8c6; border-radius: 12px; box-shadow: 0 14px 34px rgba(1, 25, 14, .16); padding: 8px; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .3s; z-index: 9999; text-align: left; }
#site-navigation .ac-lang-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
#site-navigation .ac-lang:hover .ac-lang-menu, #site-navigation .ac-lang:focus-within .ac-lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
#site-navigation .ac-lang-menu li { margin: 0; padding: 0; }
#site-navigation .ac-lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font: 500 14px/20px var(--ac-font); color: var(--ac-navy); white-space: nowrap; }
#site-navigation .ac-lang-menu a:hover { background: var(--ac-teal-bg); color: var(--ac-teal); }
#site-navigation .ac-lang-menu .current a { color: #7A8A94; }
#site-navigation .ac-lang-menu a[lang="ar"] span:last-child { font-family: "IBM Plex Sans Arabic", var(--ac-font); }
/* Sign In */
#menu-item-209 .menu-link .text-wrap { display: inline-block; background: #fff; padding: 0 30px; border: solid 2px var(--ac-navy); border-radius: 10px; line-height: 40px; color: var(--ac-navy); transition: background .3s, color .3s; }
#menu-item-209 .menu-link .text-wrap:hover { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; }
/* Hire Alfred */
#menu-item-28 .menu-link .text-wrap { display: inline-block; background: var(--ac-teal); padding: 0 30px; border-radius: 10px; line-height: 44px; color: #fff; transition: background .3s; }
#menu-item-28 .menu-link .text-wrap:hover { background: var(--ac-navy); }
#site-navigation #menu-item-209 > a { padding-right: 8px; }
#site-navigation #menu-item-28 > a { padding-right: 0; }

/* Meet Alfred dropdown (desktop) */
#site-navigation .ac-ma-menu { position: absolute; top: 100%; left: 0; width: 290px; background: #fff; border-top: 3px solid #01a8c6; border-radius: 16px; box-shadow: 0 14px 34px rgba(1, 25, 14, .16); padding: 12px; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .3s; z-index: 9999; text-align: left; line-height: 14px; }
#site-navigation .ac-ma-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
#site-navigation .ac-meet-alfred:hover .ac-ma-menu, #site-navigation .ac-meet-alfred:focus-within .ac-ma-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
#site-navigation .ac-ma-item { display: block; margin: 0; padding: 0; width: 100%; }
#site-navigation .ac-ma-item a { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 10px; background: transparent; line-height: 40px; color: #333; }
#site-navigation .ac-ma-item a:hover { background: var(--ac-teal-bg); }
#site-navigation .ac-ma-ic { flex: none; width: 20px; height: 20px; margin-top: 2px; }
#site-navigation .ac-ma-ic svg { width: 20px; height: 20px; display: block; }
#site-navigation .ac-ma-tx { display: block; }
#site-navigation .ac-ma-tx b { display: block; font: 600 15px/1.25 var(--ac-font); color: var(--ac-navy); }
#site-navigation .ac-ma-tx i { display: block; font: italic 400 11px/1.35 var(--ac-font); color: #7A8A94; margin-top: 2px; white-space: normal; }

/* Hamburger (3dx) */
.oceanwp-mobile-menu-icon { float: right; position: relative; width: 20px; height: 74px; }
.oceanwp-mobile-menu-icon a { display: inline; color: var(--ac-teal); font: 500 14px/74px var(--ac-font); letter-spacing: .6px; }
.hamburger { display: inline-block; cursor: pointer; width: 20px; height: 74px; line-height: 74px; padding: 0; margin: 0; background: transparent; border: 0; overflow: visible; transition: opacity .15s linear, filter .15s linear; }
.hamburger-box { display: inline-block; position: relative; width: 20px; height: 16px; }
.hamburger-inner { display: block; position: absolute; top: 8px; margin-top: 2px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { position: absolute; width: 20px; height: 2px; background: var(--ac-teal); border-radius: 3px; transition: transform .15s ease; }
.hamburger-inner::before, .hamburger-inner::after { content: ""; display: block; left: 0; }
.hamburger-inner::before { top: -7px; }
.hamburger-inner::after { bottom: -7px; }
.hamburger--3dx .hamburger-box { perspective: 40px; }
.hamburger--3dx .hamburger-inner { transition: transform .15s cubic-bezier(.645, .045, .355, 1), background-color 0s .1s cubic-bezier(.645, .045, .355, 1); }
.hamburger--3dx .hamburger-inner::before, .hamburger--3dx .hamburger-inner::after { transition: transform 0s .1s cubic-bezier(.645, .045, .355, 1); }
.hamburger--3dx.is-active .hamburger-inner { background: transparent !important; transform: rotateY(180deg); }
.hamburger--3dx.is-active .hamburger-inner::before { transform: translate3d(0, 7px, 0) rotate(45deg); }
.hamburger--3dx.is-active .hamburger-inner::after { transform: translate3d(0, -7px, 0) rotate(-45deg); }

/* Mobile dropdown menu */
#mobile-dropdown { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: 600px; overflow-y: auto; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); z-index: 9999; }
#mobile-dropdown.is-open { display: block; }
#mobile-dropdown ul { list-style: none; margin: 0; padding: 0; }
#mobile-dropdown ul li { border-bottom: 1px solid rgba(0, 0, 0, .035); }
#mobile-dropdown ul li a { display: block; position: relative; padding: 12px 40px; font: 500 15px/27px var(--ac-font); color: var(--ac-navy); text-align: left; }
#mobile-dropdown ul li a:hover, #mobile-dropdown .menu-item-has-children.active > a { color: var(--ac-teal); }
#mobile-dropdown .dropdown-toggle { position: absolute; right: 0; top: 0; width: 60px; height: 51px; padding-right: 40px; text-align: center; cursor: pointer; }
#mobile-dropdown .dropdown-toggle::before { content: "+"; position: absolute; top: 50%; left: 50%; margin-top: -15px; font: 400 20px/30px var(--ac-font); height: 30px; }
/* 29.10. designer (mobile): one chevron on the right instead of caret + plus; Sign In / Hire Alfred as buttons; navy text. */
#mobile-dropdown .ac-ma-caret { display: none; }
#mobile-dropdown .dropdown-toggle::before { content: "▾"; font-size: 18px; transition: transform .2s; }
#mobile-dropdown .menu-item-has-children.active > a > .dropdown-toggle::before { content: "▾"; transform: rotate(180deg); }
#mobile-dropdown li.menu-item-209, #mobile-dropdown li.menu-item-28 { border-bottom: 0; padding: 0 40px; }
#mobile-dropdown li.menu-item-209 { padding-top: 20px; }
#mobile-dropdown li.menu-item-28 { padding-bottom: 28px; }
#mobile-dropdown li.menu-item-209 > a, #mobile-dropdown li.menu-item-28 > a { display: inline-block; padding: 6px 0; }
#mobile-dropdown li.menu-item-209 .text-wrap { display: inline-block; min-width: 160px; text-align: center; line-height: 40px; padding: 0 28px; border: 2px solid var(--ac-navy); border-radius: 10px; color: var(--ac-navy); }
#mobile-dropdown li.menu-item-28 .text-wrap { display: inline-block; min-width: 164px; text-align: center; line-height: 44px; padding: 0 28px; background: var(--ac-teal); border-radius: 10px; color: #fff; }
#mobile-dropdown .sub-menu { display: none; background: rgba(0, 0, 0, .02); border-top: 1px solid rgba(0, 0, 0, .035); }
#mobile-dropdown .menu-item-has-children.active > .sub-menu { display: block; }
#mobile-dropdown .sub-menu li:last-child { border-bottom: 0; }
/* Role items in the mobile submenu: icon + title + line, instead of the raw oversized SVG the old site showed. */
#mobile-dropdown .ac-ma-item a { display: flex; align-items: flex-start; gap: 11px; padding: 10px 40px; }
#mobile-dropdown .ac-ma-ic { flex: none; width: 20px; height: 20px; margin-top: 4px; }
#mobile-dropdown .ac-ma-ic svg { width: 20px; height: 20px; display: block; }
#mobile-dropdown .ac-ma-tx b { display: block; font-weight: 600; color: var(--ac-navy); line-height: 1.25; }
#mobile-dropdown .ac-ma-tx i { display: block; font-size: 12px; line-height: 1.35; color: #7A8A94; margin-top: 2px; }

/* Desktop breakpoint (OceanWP default: mobile menu below 960px) */
@media (min-width: 960px) {
	#site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
	#site-logo { display: flex; align-items: center; flex: none; height: 74px; }
	#site-logo .clr, #site-logo a { display: flex; align-items: center; padding: 0; margin: 0; }
	#site-navigation-wrap { display: block; flex: none; margin-left: auto; right: -15px; }
	.oceanwp-mobile-menu-icon, #mobile-dropdown { display: none !important; }
}
/* Condensed menu between 960 and 1500px (former "condense header nav" block) */
@media (min-width: 960px) and (max-width: 1500px) {
	#site-navigation .main-menu > li > a { padding-left: 12px; padding-right: 12px; font-size: 14px; }
	#site-navigation .menu-item-lang > a { padding-left: 14px; padding-right: 6px; }
	#menu-item-209 .menu-link .text-wrap { padding: 0 26px; }
	#menu-item-28 .menu-link .text-wrap { padding: 0 26px; }
	#site-header-inner { max-width: 96%; }
}
@media (min-width: 960px) and (max-width: 1200px) {
	#site-navigation .main-menu > li > a { padding-left: 6px; padding-right: 6px; font-size: 13px; }
	#site-navigation .menu-item-lang .text-wrap { padding: 0 12px; }
	#menu-item-209 .menu-link .text-wrap, #menu-item-28 .menu-link .text-wrap { padding: 0 14px; }
	#site-header-inner { max-width: 99%; }
}

/* ---------- Footer ---------- */
#footer-widgets { padding: 0; color: var(--ac-teal); }
#footer-widgets a { color: var(--ac-teal); }
.ac-ft { width: 100%; background: var(--ac-navy-dark); color: var(--ac-grey); font-family: var(--ac-font); }
.ac-ft-in { max-width: 1200px; margin: 0 auto; padding: 56px 20px 44px; }
.ac-ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.ac-ft-brand { flex: 0 1 380px; max-width: 380px; }
.ac-ft-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.ac-ft-logo img { display: block; height: auto; width: 86px; }
.ac-ft-word { font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.ac-ft-tag { margin: 32px 0 0; font-size: 18px; line-height: 21px; font-style: italic; font-weight: 400; color: var(--ac-grey); }
.ac-ft-cols { display: flex; gap: 64px; flex: 0 1 auto; flex-wrap: wrap; }
.ac-ft-col { min-width: 140px; }
.ac-ft-col h4 { margin: 0 0 24px; font-size: 16px; line-height: 21px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--ac-teal-light); text-decoration: underline; text-underline-offset: 4px; }
.ac-ft-col ul { list-style: none; margin: 0; padding: 0; }
.ac-ft-col li { margin: 0 0 16px; }
.ac-ft-col li:last-child { margin-bottom: 0; }
.ac-ft-col a, #footer-widgets .ac-ft-col a { font-size: 14px; line-height: 21px; font-weight: 300; color: var(--ac-grey); text-decoration: none; transition: color .2s; }
.ac-ft-col a:hover, #footer-widgets .ac-ft-col a:hover { color: var(--ac-teal-light); }
#footer-widgets .ac-ft-tag { color: var(--ac-grey); }
.ac-ft-bottom { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(242, 242, 242, .25); text-align: center; font-size: 14px; line-height: 21px; font-weight: 400; color: rgba(242, 242, 242, .45); }
@media (max-width: 1100px) { .ac-ft-cols { gap: 40px; } }
@media (max-width: 900px) { .ac-ft-top { flex-direction: column; gap: 40px; } .ac-ft-brand { flex: 0 0 auto; } /* in a column the 380px flex-basis became height: a big gap under the tagline (designer, 29.10.) */ .ac-ft-cols { width: 100%; justify-content: flex-start; gap: 40px 56px; } }
@media (max-width: 560px) { .ac-ft-in { padding: 48px 20px 36px; } .ac-ft-cols { flex-direction: column; gap: 32px; } .ac-ft-bottom { margin-top: 48px; } }

/* ---------- Scroll to top ---------- */
#scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 100; width: 40px; height: 40px; line-height: 40px; text-align: center; background: rgba(0, 0, 0, .4); color: #fff; border-radius: 2px; font-size: 18px; opacity: 0; visibility: hidden; transition: .3s; display: flex; align-items: center; justify-content: center; }
#scroll-top.show { opacity: 1; visibility: visible; }
#scroll-top:hover { background: rgba(0, 0, 0, .6); }
#scroll-top svg { width: 18px; height: 18px; }
@media (max-width: 480px) { #scroll-top { width: 26px; height: 26px; line-height: 24px; font-size: 14px; } #scroll-top svg { width: 14px; height: 14px; } }

/* 03.11. designer (mobile): every standalone button spans the full content width; Sign In / Hire Alfred in the menu too. */
@media (max-width: 767px) {
	body .rp-ctas { flex-direction: column; align-items: stretch; align-self: stretch; width: 100%; }
	body .rp-b1, body .rp-b2, body .rp-wy-btn, body .rp-fin-btn, body .rp-og-btn, body .rp-as-btn,
	body .ac-bb-btn, body .ac-bapp-btn, body .ac-fin-btn {
		box-sizing: border-box; width: 100%; min-width: 0; max-width: none; align-self: stretch;
		margin-left: 0; margin-right: 0; padding-left: 16px; padding-right: 16px;
	}
}
#mobile-dropdown li.menu-item-209 > a, #mobile-dropdown li.menu-item-28 > a { display: block; }
#mobile-dropdown li.menu-item-209 .text-wrap, #mobile-dropdown li.menu-item-28 .text-wrap { display: block; min-width: 0; }

/* 03.11. footer (mobile): everything centred, also in Arabic. */
@media (max-width: 767px) {
	.ac-ft .ac-ft-in .ac-ft-top { align-items: center; text-align: center; }
	.ac-ft-brand { width: 100%; margin: 0 auto; }
	.ac-ft-logo { justify-content: center; }
	.ac-ft .ac-ft-cols { justify-content: center; align-items: flex-start; }
	.ac-ft-col { min-width: 0; }
}
@media (max-width: 560px) { .ac-ft .ac-ft-cols { align-items: stretch; } }
/* 03.11.: credit line under the copyright, same type as the copyright line. */
.ac-ft-credit { margin-top: 8px; text-align: center; font-size: 14px; line-height: 21px; font-weight: 400; color: rgba(242, 242, 242, .45); }
.ac-ft .ac-ft-in .ac-ft-credit a, .ac-ft .ac-ft-in .ac-ft-credit a:visited { color: rgba(242, 242, 242, .45) !important; text-decoration: none; }
.ac-ft .ac-ft-in .ac-ft-credit a:hover, .ac-ft .ac-ft-in .ac-ft-credit a:focus { color: rgba(242, 242, 242, .45) !important; text-decoration: underline; text-underline-offset: 3px; }

/* 03.11.: role page heroes carry the same background patterns as the home hero (sizes and offsets from the home hero). */
.elementor-element-a1b2e10, .elementor-element-a2b2e10, .elementor-element-a3b2e10, .elementor-element-a4b2e10 { overflow: hidden; }
.elementor-element-a1b2e10 > .e-con-inner, .elementor-element-a2b2e10 > .e-con-inner, .elementor-element-a3b2e10 > .e-con-inner, .elementor-element-a4b2e10 > .e-con-inner { position: relative; z-index: 1; }
.ac-hp { position: absolute; z-index: 0; display: block; height: auto; max-width: none; mix-blend-mode: multiply; pointer-events: none; }
.ac-hp.r { top: 0; right: 0; width: 148px; }
.ac-hp.l { top: 365px; left: 0; width: 288px; }
@media (max-width: 767px) { .ac-hp { display: none; } }
